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.