Skip to content

jpourdanis/python-testing-samples

Repository files navigation

Python testing examples

Introduction

This is a simple project to demostrate the Page Object Model implementation with Pytest for Web UI validation testing.

Libraries

Install all the libraries with the following command

pip install -r requirements.txt

How to

To run ui tests in parallel use this command:

pytest -n auto -m "not serial"

With this call, pytest will spawn a number of workers processes equal to the number of available CPUs, and distribute the tests randomly across them.

To run api tests serial use this command:

export API_TOKEN=<your-api-token-here> && python -m pytest -n0 -m "serial"

Releases

No releases published

Packages

No packages published

Languages