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
261 stars 192 forks source link

Interactive mode integration #298

Closed akkuldn closed 3 years ago

akkuldn commented 3 years ago

This is a new feature that allows the user to run the tests interactively via the terminal. Steps to run:

If you're using Gitbash for windows please make sure to set your bash alias by adding the following command to your bash_rc file alias python='winpty python.exe' Install the requirements using pip install -r reqquirements.txt Commands to run the test : python -m pytest tests/test_example_form.py --interactivemode_flag Y python -m pytest tests/test_mobile_bitcoin_price.py --interactivemode_flag Y python -m pytest tests/test_api_example.py --interactivemode_flag Y Changes made: A new feature to run the tests interactive using --interactivemode_flag A new pytest fixture test_api_obj in contest file for API tests Importing the API URL from a conf file