Giter VIP home page Giter VIP logo

saucedemo's Introduction

GitHub Actions saucedemo

SAUCEDEMO

[Web-Site]👉 [OUR]👉

Table of contents


Как работать с репозиторием?:

👉Ссылка на инструкцию

Pytest INFO: pytest

Do not forget check your tests with black and flake8 befor pushing

pytest flags

-s - prints desired output (pytest -s test_file_name)

-v - shows test process' percentage (pytest -v test_file_name)

-m - allows to run tests with specific marks (pytest -m mark_title test_file_name)

pytest-xdist

Запускает несколько тестов одновременно
pytest -n auto OR pytest -n 5( any number)

⬆️(back to Menu)


POETRY

WEB с дополнительной информацией ·poetry

Running all tests in the project with poetry:

poetry run pytest 

Running test by name with poetry:

poetry run pytest test_name.py 

Shou setups and PASSED/FAILED^

poetry run pytest test_name.py --setup-show -sv 

⬆️(back to Menu)


PYTHON_HTML_REPORT

WEB с дополнительной информацией ·pytest-html

Installation:

pip install pytest-html

How add python-html reports:

poetry add pytest -html

Start:

poetry run pytest <your_test_name.py> --html=report/report.html --self-contained-html
right click to file > open in browser or in finder
report.html - the name of the file, it can be anything

⬆️(back to Menu)


ALLURE

WEB с дополнительной информацией ·WEB-SITE

Installation:

pip install allure-pytest
pip install allure-combine

1. Create allure:

Соберёт отчеты по всем тестам:
pytest --alluredir=allure
Соберёт отчет по указанному тесту:
pytest имя теста --alluredir=allure

2. Generates a report and opens it in a browser::

allure serve allure

3. Report generated for allure-report:

allure generate <директория где лежит отчет>

4. Create single HTML report:

-создает файл с отчетом complete.html(можно делиться с другими)

allure-combine ./allure-report

-delete sinon.js и server.js

Open allure report:

allure open <directory>  

Clean allure report:

allure report clean 

Change directory:

allure generate old directory-o new directory

Useful links

👉Установка Black

👉Установка Flake8

👉About SELENIUM

👉About SELENIUM.2

👉About Python

👉Allure-combine

⬆️ (back to Menu)

saucedemo's People

Contributors

annadolmatova avatar as-dodo avatar ekaterinakreis avatar eliser14 avatar elvorob avatar katyamy avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.