This project was created to meet the challenge of Lambdatest certification with Playwright, Python and running the LambdaTest platform with GitPod to execute the project.
Prerequisites
- Python 3 & Pip
- LambdaTest Account - https://www.lambdatest.com/
To run the test on the LambdaTest platform remotely, you need to configure the environment variables which are in the settings.py file (LN11 / LN12)
- Inside LambdaTest in the "Automation" tab, click on "Access Key"
- Configure the environment variables on your machine with the LambdaTest values
export LT_USERNAME="<Username>"
export LT_ACCESS_KEY="<Access Key>"
-
Install the Gitpod browser extension https://www.gitpod.io/docs/configure/user-settings/browser-extension
-
Once your GitPod workspace connects, run the project in the terminal
# Run tests serial mode
pytest test_playwright.py
# run tests parallel mode
pytest test_playwright.py -n 3
# Clone repository
git clone https://github.com/WallPetrucci/LambdaTestPlaywrightCertification
# Enter the project directory
cd LambdaTestPlaywrightCertification
# Install dependencies
pip install -r requirements.txt
playwright install-deps
playwright install
# Run tests serial mode
pytest test_playwright.py
# Run tests parallel mode
pytest test_playwright.py -n 3
Any questions? Contact us!
Wallace - Linkedin: https://www.linkedin.com/in/wallacepetrucci - [email protected]
Project Link: https://github.com/WallPetrucci/LambdaTestPlaywrightCertification