This project contains the build of automated test runners with multiple tests in the same file.
Designed to practice the build of several tests and run them separately or all at the same time by adding to the run config the -n 4 in order to run all 4 tests at once.
- Selenium Automate the tests on web pages, using https://the-internet.herokuapp.com/ to practice.
- Python Using python language to write and automate the scripts.
- Flexibility and Adaptability: Tailor the scripts to your specific interests and goals.
Running multiple tests at the same time setup
1 - Install the pytest-xdist package. 2 - Specify pytest as the project testing framework under the Setting menu > Tools > Python integrated tools > Testing (applies to PyCharm users). 3 - Right-click your tests > Modify run configurations. 4 - in the Additional Arguments field, add -n 4 if you need to run 4 tests in parallel.
Please make sure that the required libraries and frameworks are installed for proper project functionality.
-
Fork this repository:
Click on the "Fork" button at the top-right of this page to create your own copy of these Selenium automation scripts.
-
Clone your forked repository:
Copy and run the desired files or project folders.
To use the specific .py files:
- Copy the content of the script file.
- Paste the content into a new Python file.
- Save the file, look over it or run it.
Feel free to modify and adapt the files based on your specific requirements.
You can customize the scripts as needed for your own desired usage. Add test functions based on the structure provided.
script_file.py : contain several explanations and practical examples of the Automation using Selenium on the tested page.
Contributions are welcome! Feel free to contribute to this practice project.
If you have suggestions, ideas, or improvements, please don't hesitate.
Thank you for considering contributing!
MIT License