Skip to content

Demo repository for the guide on taking screenshots for Allure Report with Pytest and Playwright

Notifications You must be signed in to change notification settings

allure-examples/guide-pytest-playwright-screenshots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integrating screenshots in Allure Report with Pytest and Playwright

This repository is a part of Allure Report documentation and contains code examples for integrating screenshots in Allure Report with Pytest and Playwright. You can find the original documentation:

Run examples

  1. Clone the repository through HTTPS:

    git clone https://github.com/allure-examples/guide-pytest-playwright-screenshots.git

    or SSL:

    git clone [email protected]:allure-examples/guide-pytest-playwright-screenshots.git
  2. In the shell of your choice, navigate to the repository directory

    cd path/to/guide-pytest-playwright-screenshots
  3. The repository provides with automatic scripts that install the virtual environment, necessary packages, and run the tests. Run the script correspondind to your operating system. For Linux and MacOS:

    ./run.sh
    

    For OS Windows:

    .\run.bat

    Alternatively, create and activate Python virtual environment and install the packages manually:

    python -m venv venv
    source venv/bin/activate
    pip install -m requirements.txt

    After the installation, run:

    pytest
    
  4. Run Allure Report server:

    allure serve -p <port-of-your-choice>
  5. Browse Allure Report page on http://127.0.0.1/<port-of-your-choice>.

About

Demo repository for the guide on taking screenshots for Allure Report with Pytest and Playwright

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published