Test Website using Selenium (https://www.thuisbezorgd.nl)
- Python 3.7 (3.4+)
- Firefox + Geckodriver (Both added to PATH)
- Chrome + Chromedriver (Both added to PATH)
- Install dependencies from requirements.txt:
pip install -r requirements.txt - Environment Variables: Set
BROWSERas the required browser name.
Default ischrome
-
Run on both Firefox and Chrome (One after another)
sh run_tests.sh -
All Tests with junit xml
python runner.py -
All Tests using unittest test detection
python -m unittest -
Specific TestFile/TestClass/TestMethod
python -m unittest TestFile.TestClass.TestMethod
- Test Reports will be generated in
test-reportsfolder. - Test Script Log will be generated as
script.log