Skip to content

Repository files navigation

🎭 Playwright-Python Wall-Task 🎭

test-demo

14030613_025708.mp4

🛠️ Tech Stack

Tool Description
allure-pytest Allure reporting with your Pytest tests for better reporting
playwright Python library to automate the Chromium, WebKit, and Firefox browsers through a single API.
pytest Popular testing framework for Python
pytest-base-url Pytest plugin for setting a base URL for your tests
pytest-playwright Pytest plugin for Playwright integration for browser automation testing

⚙️ Setup Instructions

🚀Quick setup(Test on MacOS) 🚀

curl -o wall-task.sh https://raw.githubusercontent.com/deviran01/wall-task/master/quick.sh && bash wall-task.sh && rm wall-task.sh

🛳️ Docker Compose (Recommend) 🛳️

docker-compose up --build

Then you can see allure report on:

http://localhost:5252/

✍️Setup manually ✍️

Clone the project

git clone git@github.com:deviran01/wall-task.git
cd wall-task

Create and activate a virtual environment

For Windows:

py -m pip install --user virtualenv
py -m venv env
.\env\Scripts\activate

For Unix:

python3 -m pip install --user virtualenv
python3 -m venv venv
source venv/bin/activate

Install requirements

pip install ./pip/requirements.txt

Install playwright Dependencies (chrome, firefox,...)

playwright install

🏃‍♂️ Running Tests

pytest --alluredir=allure-results

When no browser was selected then chrome will be used.

  • Run according to tags:
pytest -m <tag_name>

📊 Viewing Test Results

Install Allure Commandline To View Test results

For Windows

scoop install allure

For Linux(Ubuntu)

sudo apt-get install default-jre
wget https://github.com/allure-framework/allure2/releases/download/2.18.1/allure_2.18.1-1_all.deb
sudo dpkg -i allure_2.18.1-1_all.deb

For Mac

brew install allure

View Results Locally:

allure serve allure-results

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages