How to run Qxf2 framework tests in parallel using pytest-xdist plugin

In this blog, we will show you how easily Qxf2’s page object model framework can be run in parallel using pytest-xdist  plugin.
As pre-requisite, Fork, and clone our framework. Follow the Readme.md and set up the framework.

To run GUI tests in the framework parallel use the below command. As we have only 3 GUI tests I have passed 3 and marker used is GUI.
pytest -n 3 -m GUI
The test will open 3 different browsers to execute tests in parallel.

Execution of the command can be seen in the video below.

 

I started my career as a Dotnet Developer. I had the opportunity of writing automation scripts for unit testing in Testcomplete using C#. In a couple of years, I was given the opportunity to set up QA function for our in-house products and that’s when I became full-time Tester. I have an overall 12 years of experience. I have experience in Functional – Integration and Regression Testing, Database, Automation testing and exposure to Application Security and API testing. I have excellent experience in test processes, methodologies and delivery for products in Information security and Pharma domain. On the Personal side, I love playing with kids, watch Football, read novels by Indian Authors and cooking.

Be First to Comment

Leave a Reply

Your email address will not be published.