UI automation framework made with python , selenium and PTest.
- Make sure your system has python 3.0 or > 3.0
- Make sure your system has Chrome browser (This framework supports Firefox and Edge as well.The default browser is Chrome)
- Clone this project and go to the project directory
- Create a virtual environment and activate the virtual environment
- Install the required packages
pip install -r requirements.txt
- Go to the project directory where test_ui folder is present.
- Run the tests from terminal
ptest3 -t test_ui.tests.test.UITests
This will run all the test cases.
After running all the test cases it will automatically generate the reports and report path can be found in the last line. Example:
====================================================================================================
Test finished in 172.52s.
Total: 45, passed: 45, failed: 0, skipped: 0. Pass rate: 100.0%.
====================================================================================================
Generating xunit report...
Cleaning old xunit report...
xunit report is generated at /Users/ranit/PycharmProjects/Revolut/test-output/xunit-results.xml
Generating html report...
Cleaning old html report...
html report is generated at /Users/ranit/PycharmProjects/Revolut/test-output/html-report
Copy the html report path generated in your terminal and open it in browser.