https://github.com/lexxx42/testing_framework_selenium_pytest
Testing framework for site https://demoqa.com/ selenium+pytest+allure
https://github.com/lexxx42/testing_framework_selenium_pytest
allure allure-pytest faker pytest python selenium-webdriver webdriver-manager
Last synced: about 2 months ago
JSON representation
Testing framework for site https://demoqa.com/ selenium+pytest+allure
- Host: GitHub
- URL: https://github.com/lexxx42/testing_framework_selenium_pytest
- Owner: Lexxx42
- License: mit
- Created: 2023-04-09T14:52:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-20T12:47:01.000Z (almost 3 years ago)
- Last Synced: 2025-07-15T02:30:39.126Z (12 months ago)
- Topics: allure, allure-pytest, faker, pytest, python, selenium-webdriver, webdriver-manager
- Language: Python
- Homepage:
- Size: 4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# testing_framework_selenium_pytest
## Used tools
+ [Python 3.11.3](https://www.python.org/downloads/)
+ [Selenium](https://selenium-python.readthedocs.io/) - API for SeleniumWebDriver
+ [pytest](https://docs.pytest.org/en/7.3.x/) - test runner
+ [webdriver_manager](https://github.com/SergeyPirogov/webdriver_manager) - for webdrivers (no more driver installations
needed)
+ [Faker](https://faker.readthedocs.io/en/master/) - for test data generation
+ [Allure](https://github.com/allure-framework/allure2) - for test run reports
## Allure usage example
**Add allure to PATH environment if using Windows.**
To get Allure reports you should run tests with the following flag
```shell
--alluredir=
```
Example:
```shell
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
```shell
allure serve allure_results
```

To run specific test you can use the following command
```shell
pytest --alluredir=elements_report .\framework\tests\elements_test.py::TestElements::TestTextBox::test_text_box
```
To run all tests with Allure report:
```shell
pytest --alluredir=allure_results .\framework\tests
```
You can check my last run of all tests from my framework:
```shell
allure serve allure_results
```
## Framework all tests run

### One of found defects with a screenshot