-
Clone this repo and go to the project directory
-
Install & create Virtual ENV
pip install virtualenv
python -m venv ./venv
-
Use the Virtual ENV
source ./venv/bin/activate
-
Install PIP Packages
pip install -r requirements.txt
-
Download required browser
playwright install
playwright cr "URL_to_website"
- use: cr = chromium | ff = firefox | wk = webkit
pytest ./[your_test_script].py
- to run it on HEADLESS, update the
.env
file, the default is 'False' - to use different browser like 'firefox' or 'webkit', update the
.env
file, the default is 'chromium'
- to run it on HEADLESS, update the
-
./run_test.sh
| to run all tests -
./run_test.sh [your_test_script_alias]
| to run a specific scenario- Make sure to give "execute" permission to
run_test.sh
- Make sure to add your test to
test_list.sh
if there is any new test scenario
- Make sure to give "execute" permission to
-
./run_test.sh --help
| for more example how to run the test
pytest
| to run all testspytest -k "tag_or_alias"
| to run a specific scenario (ex: login)