Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
162 views
in Framework-FAQ by The go-to Tester (181 points)

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)

In testNG.xml file,

 

<suite name="Test-method Suite" parallel="methods" thread-count="2" >
 
We have attribute called paralle, which allows you to execute tests in parallel, it has options such as "methos", "classes" and "tests".
 
"Methos" - this will execute each @Test method in parallel
"Classes" - This will execute each class in parallel, Test methods inside class in sequential.
"Tests" - This will execute each <test> node in parallel.
 
"thread-count" attribute can help you control how many tests to be execute in parallel.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...