LambdaTest / Pylenium-pytest-tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross Browser Testing with LambdaTest using Pylenium + pytest

This repo accompanies the LambdaTest YouTube video series and includes all of the code examples seen in each video.

This series is all about using Pylenium + pytest to perform Cross Browser Testing with LambdaTest!

How to use this repo

If you want to follow along with the exact setup that I'm using, then I recommend watching my YouTube video called:

Setup VS Code for Python with pyenv & poetry

I highly recommend watching the above video! It will guide you through setting up your machine and your IDE for Python Development!

Then clone this project and you're ready to follow the remaining steps!

  1. If using poetry, then install the dependencies which will also create a virtual environment automatically. (If you followed the recommended video, this step is already done.)
poetry install

Otherwise, create a virtual environment first and then install Pylenium in it:

pip install pyleniumio
  1. Pylenium uses pytest as the Test Framework, but you need to setup your IDE to use pytest. (If you followed the recommended video, this step is already done.)

  2. There is a branch for each video in the series. Within each branch, there is a commit with different pieces as I progress through the video. This is helpful since you can follow the progression of the code in the video. You can pause the video, checkout the commit we're currently working on, and copy + paste or try things yourself!

I've included the links to each commit below for convenience :)

Video 1 - Introduction and Setup

  • No code yet at this point

Video 2 - Write UI Tests

Video 3 - Run Tests in Parallel

Video 4 - Cross Browser Testing with LambdaTest

About


Languages

Language:Python 97.4%Language:Shell 2.6%