Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

How to run test cases in parallel using TestNG?

Category: Selenium WebDriver

The parallel attribute of suite tag can accept four values:
tests – All the test cases inside tag of testng.xml file will run parallel
classes – All the test cases inside a java class will run parallel
methods – All the methods with @Test annotation will execute parallel
instances – Test cases in same instance will execute parallel but two methods of two different instances will run in different thread.




        
                
                        
                
                

Leave a Reply

Your email address will not be published. Required fields are marked *