Step 1 (Optional) : Create virtual environment
python -m venv venv
or
python3 -m venv venv
source venv/bin/activate
- for Linux and Mac
venv/Scripts/activate.bat
- for Windows
Step 2: Install the requirenments:
pip install -r requirenments
or
pip3 install -r requirenments
Step 3: Run the automated testing script:
python script.py
or python3 script.py
- terminal where you run script
- in the reports folder
-
tests/
- in the folder where seperate tests can be found -
tests/settings.py
- file where different kind of configurations. -
tests/utils.py
- in the file there is BeautifulSoup script which gets links of the page -
webdriver/
- in the folder firefox drivers can be found./webdriver/geckodriver
- driver for Linux./webdriver/geckodriver.exe
- driver for Windows- Ps. change settings.py file.
WEBDRIVER_PATH
variable
-
reports/
the folder stores html reports for tests after running script.py -
requirements
file where you can find requirement modules for script
You can run each test seperately:
python ./tests/TestName.py -v
or
python3 ./tests/TestName.py -v