Test automation examples made in Selenium with Python
To be executed is necessary to install following tools:
- python
- pytest (with pip)
- allure-pytest (with pip)
- pytest-xdist (with pip) or pytest-parallel
- allure (with conda or similar)
- Selemnium (with pip)
- Selenium drivers (downloading chromedriver, geckodriver, etc)
- ConfigParser
First of all, you need to change myconfig.py in Framework directory to addapt to your needs.
Then, in order to execute, you need to use next sentences in DNVGL directory:
- py.test -s -v -n=3 --alluredir=./results ./Source/Test/ (with pytest-xdist)
- py.test --workers auto --alluredir=./results ./Source/Test/ (with pytest-parallel, not for WindowsOS)
- allure serve < DNVGL directory >\results
Used to read conf file + properties + ...
Order:
- --browser=firefox/chrome/chrome-local-webdriver/firefox-local-webdriver
- looks in myframework.config (in root folder)
- Take standard as defined in Config()