JacksonMar / Testproject

testproject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip install -r requirements.txt

Set additional argument

-p no:cacheprovider --alluredir=/tmp/reports/allure-results

-p no:cacheprovider --html=/tmp/reports/htmls/report.html

-p no:cacheprovider --reruns 3 # pip install pytest-rerunfailures

Known issues

Если возникло "ImportError: cannot import name 'MarkInfo'" То удалить pytest-selenium

Если нет модуля allure: 'pip install allure-pytest'

Если возникло "ModuleNotFoundError: No module named 'webdriver_manager'" То 'pip install webdriver-manager'

Если "TypeError: init() missing 3 required positional arguments: 'excinfo', 'start', and 'stop'" То обновить flaky в pip до последней версии

To run tests

HTML Report

Alt text

Allure Report

http://biercoff.com/opening-local-version-of-allure-report-with-chrome/ Alt text

Re-run failed tests

Alt text

About

testproject