Skip to content

Update README #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 85 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,85 @@
# guide-pytest-playwright-video
# Integrating video in Allure Report with Pytest and Playwright

This repository contains code example for integrating videos in Allure Report with Pytest and Playwright. You can find the original documentation:

- [English version](https://allurereport.org/docs/guides/pytest-playwright-video/)
- [Spanish version](https://allurereport.org/es/docs/guides/pytest-playwright-video/)

## Preparation

1. Make sure you have installed:

- [Python](https://www.python.org/downloads/) version 3.9 or higher
- [Allure Report](https://allurereport.org/docs/install/)

1. Clone the repository via HTTPS:

```shell
git clone https://github.com/allure-examples/guide-pytest-playwright-video.git
```

or SSH:

```shell
git clone [email protected]:allure-examples/guide-pytest-playwright-video.git
```

1. In the shell of your choice, navigate to the repository directory:

```shell
cd path/to/guide-pytest-selenium-screenshots
```

## Run tests

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:

```shell
.\run.bat
```

Alternatively:
1. Create a Python virtual environment manually:

```shell
python -m venv venv
```

1. Activate the virtual environment (Linux and MacOS):

```shell
source venv/bin/activate
```

OS Windows:
```powershell
.\venv\Scripts\Activate.ps1
```

1. Install the packages used in the project:

```
pip install -r requirements.txt
```

1. Run Pytest:

```
pytest
```

## Run Allure Report

1. To start a local Allure Report server, in the project root directory run:

```shell
allure serve -p <port-of-your-choice>
```

1. Browse the Allure Report page on `http://127.0.0.1:<port-of-your-choice>`