qxf2 / qxf2-page-object-model

Write Selenium and Appium tests in Python using the Page Object pattern. This Pythonic GUI and API test automation framework will help you get started with QA automation quickly. It comes with many useful integrations like - email, BrowserStack, Slack, TestRail, etc. This repository is developed and maintained by Qxf2 Services.
https://qxf2.com
MIT License
256 stars 191 forks source link

Enchance mobile tests #396

Closed akkuldn closed 1 month ago

akkuldn commented 3 months ago

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:

  1. Swipe
  2. Zoom
  3. Drag and Drop
  4. Long Press
  5. Scroll to Bottom
  6. Scroll to Top
  7. Scroll Backward
  8. Scroll Forward

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

akkuldn commented 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.