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

tests for mock payment screen field validations #431

Closed nelabhotlaR closed 1 week ago

nelabhotlaR commented 1 month ago

The PR consists of: 1) Weather shopper Mock Payment screen field validations tests: tests/test_weather_shopper_payment_app.py

2) added code in core_helpers/mobile_app_helper.py - to get the source code of the page.

3) added code in core_helpers/selenium_action_objects.py - to hide the keyboard.

4) .circleci/config.yml - added lines to install tesseract.

5) In conf/locators_conf.py - # mock payment screen field names defined as a list.

used this list to navigate the cursor on the field.

6) in conf/weather_shopper_mobile_conf.py added test data.

8) In requirements.txt - pytesseract package

invalid-card

image-field payment-validation invalid-expiry-date

To run the test

python3 -m pytest -s tests/test_weather_shopper_payment_app.py --app_name weather_shopper.apk --app_path /usr/local/android-studio/bin --app_package com.qxf2.weathershopper --remote_flag y