Skip to content

Lexxx42/testing_framework_selenium_pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testing_framework_selenium_pytest

Used tools

Allure usage example

Add allure to PATH environment if using Windows.

To get Allure reports you should run tests with the following flag

--alluredir=

Example:

pytest --alluredir=elements_report elements_test.py

Where:

  • elements_report - is a dir with reports files
  • elements_test - is a test files for elements page.

To get Allure report from test results use the following command

allure serve allure_results

allure report

To run specific test you can use the following command

pytest --alluredir=elements_report .\framework\tests\elements_test.py::TestElements::TestTextBox::test_text_box

To run all tests with Allure report:

pytest --alluredir=allure_results .\framework\tests

You can check my last run of all tests from my framework:

allure serve allure_results

Framework all tests run

final report summary

One of found defects with a screenshot

final report defect with a screenshot