Need to build a small
a suite of PYTEST framework in PYTHON.
For this task, you will need to use the OpenWeather API
([login to view URL]). The free subscription allows you up to 60 API calls
per minute for commercial or non-commercial purposes. Write a small suite of tests
against the Current Weather (for one location)
Maximum no of tests required.
(NEED COMMENTS FOR EACH LINE OF CODE)
Read me Doc should include:
1,Approch of the Task
2,any issues you have discovered,
[login to view URL] ways in which you feel
your test suite could be improved in the with code
4,Installation and execution steps of the Test
5,explain all the steps how to
integrate the tests into CICD
Example of test cases:
[login to view URL] path: verify that weather forecast is correctly shown for the given city
[login to view URL] should be switchable between Fahrenheit/Celsius.
[login to view URL] should be able to choose multiple cities
[login to view URL] the weather and configurations should be correctly stored and read
[login to view URL] details should be shown for each weather type. (e.g: thunderstorm, sunny, rain,lattitude,longitude)
[login to view URL] is broken down to time slices (e.g: 12 PM, 1 PM, 2 PM and so on)
[login to view URL] should be shown for N number of future date (e.g: for the next 1 week)
[login to view URL] there is a network failure and unable to reach server, appropriate message should be shown
[login to view URL] should not be unnecessary error messages shown
[login to view URL] should also show the Precipitation, humidity, and wind percentage apart from the temperature
[login to view URL] forecast should also display the minimum and maximum temperature of the day.
[login to view URL] city id shown
13. verify correct status code
[login to view URL] wrong status code not shown.