I have a class with 3 tests
and I am using pytest
to run my tests with Selenium-Webdriver to perform UI operations.
class abc:
def test_1(self):
print("I am test_1 open browser and perform operations")
def test_2(self):
print("I am test_2 open browser and perform operations")
def test_3(self):
print("I am test_3 open browser and perform operations")
Each test opens Chrome
browser instance to perform set of UI operations. Now I want to run all the above tests at single go. So ideally pytest
should open three Chrome
browser instances at the same time. (I read about xdist plugin, but I think that's used for running tests on different platforms)
Please provide your inputs.