Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Android task
1. ANDROID CHALLENGE
TIME: 3 hours
App: Weather App
Evaluation weightage – 70% Functionality + 30% UI
Features
1. Show weather data for current city
2. Enter city name, and show weather data for that city.
Screens:
1. Home Screen
2. 2. Second Screen
Flow
On Clicking detect location on Home Screen
- Detect current city using GPS
- Show progress bar while location is being detected
- Once city is detected navigate to the second screen
- City name should be shown In the toolbar of the second screen
- Fetch weather data from api
- Show progress bar while weather data is being fetched
- Show fetched weather data in the proper format
- If there is error from service, show toast message
- On clicking the back button, it should go to previous screen
- If there is error while fetching the city, show toast message saying error
- If GPS is off, show dialog to the user asking to turn it on
3. On Entering City name and clicking the arrow in Home Screen
- Navigate to the next screen
- City name should be shown In the toolbar of the second screen
- Fetch weather data from api
- Show progress bar while weather data is being fetched
- Show fetched weather data in the proper format
- If there is error from service, show toast message
- On clicking the back button, it should go to previous screen
API to be used
1. To get weather
http://api.openweathermap.org/data/2.5/weather?q=city_name
e.g. http://api.openweathermap.org/data/2.5/weather?q=pune
2. To get icon
http://openweathermap.org/img/w/icon_name.png
e.g. http://openweathermap.org/img/w/04d.png
NOTE : icon name is available in the response of first service
You can use any background image.