Closed akkuldn closed 1 month ago
My Observations after running the
Weather Shopper
test :
- Running the test in
Landscape
mode failed ❌ . Is this expected?- Running the test in normal mode works fine ✅
Hey Shiva, yes the landscape mode issue is expected. We had planned on handling it in a separate PR.
In this PR i have enhanced mobile testing by adding new gestures to the base page and also an end to end test for weather shopper android application. Added the following methods to Mobile Base page:
2. End to end test for weather shopper application Command:
python -m pytest tests/test_mobile_app.py --mobile_os_name Android --mobile_os_version 11 --device_name emulator-5554 --app_name weather_shopper.apk --app_path /d/android_studio/ --app_package com.qxf2.weathershopper
3. Added support for testing in landscape mode Command:
python -m pytest tests/test_mobile_app.py --mobile_os_name Android --mobile_os_version 11 --device_name emulator-5554 --app_name weather_shopper.apk --app_path /d/android_studio/ --app_package com.qxf2.weathershopper --orientation=LANDSCAPE