This is a test script to presnet automation test for Android application MyObservatory
- Launcher app
- Open Side Menu
- Select item: 9-Day Weather Forecast
- Verify Forecast of the next 9 days are displayed
- fail to select "HK 9-day weather forecast" button in side menu
- fail to open HK 9-day weather forecast page
- fail to collect 9-day forecast data on page ( e.g. if we only found 8 days data, test will set to fail)
Environment ( this is the environment i run this script so it nice you can have similar things before you run it)
- Macbook pro running on IOS 10.12.3
- Appium v1.6.5
- Python 3.6
- Python package, Appium-Python-Client(0.24), pytest(3.2.0), selenium(3.4.3)
- Android application MyObservatory, please download it from Google play store
Please modify desired caps to fit your test device.
my condig is: platformVersion': '7.1.2', 'deviceName': 'Nexus 5X'
but you should modify above data in test script to fit your environment
- clone to local machine
- start appium service
- run "python HKO.py"
- check console log also status on device
- you also can check screenshots of HK 9days forecast page to manually verification
Sometimes it fails when finding item "HK 9 Day forecast" in side menu. the script seems not did the "swipe" action on device I haven't digged into why this happend. The workaround is to kill and restart your appium service. Then run scritp agian.