Skip to content

santhoshperfecto/PerfectoPython3Selenium4FrameworkParallelTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PerfectoPython3Selenium4FrameworkParallelTest

Perfecto Python3 Selenium project with parallel testing

Prerequisites

  • Python3.x
  • Selenium 4.x
  • Appium Python Client 2.x

Install

Install Perfecto Python3 Reportium package using below command.

pip install perfecto-py3 (Windows)

pip3 install perfecto-py3 (Mac)

Install pytest and pytest-xdist(for parallel testing)

Integration with Perfecto

  1. Navigate to "webdriverfactory.py" under base package

  2. Replace "cloud name" with your perfecto cloud name (e.g. trial is the cloudName of trial.app.perfectomobile.com).

  3. Replace "security token" with your perfecto security token.

  4. Update associated browser options as needed or leave as is.

Executing the script

Run the project/scripts from the IDE(Ex: PyCharm) after updating Pytest configuration file as below. image

            OR

Run the script from command line/terminal using below steps.

  • Open command line/terminal and navigate to Python project(tests) folder.

  • Run the below command:

    pytest -n 4

You can see the test is triggered parallely on Windows Chrome/FF/Edge and Mac Safari browsers.

About

Perfecto Python3 Selenium project with parallel testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages