These variables are stored in the Profiles > default file:
| Variable | Value |
|---|---|
apiKey |
Your OpenWeatherMap API Key |
lat |
-6.2615 (Jakarta Selatan) |
lon |
106.8106 (Jakarta Selatan) |
units |
metric (optional) |
- Endpoint:
/data/2.5/forecast - Assertions:
- Status code = 200
- Response has
city,list - JSON schema validation
- Temperature, weather description exist
- Endpoint:
/data/2.5/air_pollution - Assertions:
- Status code = 200
- Response has
coord,list[0].components - AQI value range (1-5)
- All components are numbers
- Open the project in Katalon Studio
- Go to Test Suites > TS_WeatherAndAirPollution
- Click Run (choose desired environment)
- Reports will be generated in
Reports/directory
- Run a Test Suite
- Go to Reports
- Choose the latest report
- Right-click > Open with > Report
- Use your own API key and stay within free-tier rate limits.
- Variables are externalized to the Global Profile.
- Assertions include status code, JSON schema, and key attributes.