Python 3.6.5
python-pip
Mozilla Firefox 61.0.1
geckodriver 0.21.0
Install dependencies:
pip install -r requrements.txt
Data for tests should be provided in files (specify type and path in config.py: csv, xml or sqlite)
py.test --resultlog=logs/result.log tests.py
Test execution info can be found in /logs:
- pytest.log (detailed log)
- result.log (execution result)
- screenshots
Sometimes google return 405 after redirection. It's possible to avoid it using additional timeout. Uncomment lines:
2 # import time
...
29 # time.sleep(1) # sleep to avoid 405 response
...