0% found this document useful (0 votes)
35 views1 page

TestNG Parallel Execution Setup Guide

The document provides XML configurations for running TestNG test suites in parallel. It includes parameters for operating system and browser, and specifies how to run methods and classes in parallel. Additionally, it mentions the use of DataProvider for parallel execution of test cases.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

TestNG Parallel Execution Setup Guide

The document provides XML configurations for running TestNG test suites in parallel. It includes parameters for operating system and browser, and specifies how to run methods and classes in parallel. Additionally, it mentions the use of DataProvider for parallel execution of test cases.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Agar class ke andar sare methods ko chalana ho to ye use karo

<?xml version="1.0" encoding="UTF-8"?>


<!DOCTYPE suite SYSTEM "[Link]
<suite name="Suite" >
<test name="Test" thread-count="10" parallel="methods">

<parameter name ="os" value ="windows"/>


<parameter name ="browser" value ="chrome"/>

<classes>

<class name="testCases.TC001_AccountRegistrationTest"/>

</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->

Note : Is framework me extra chrome bhi chalega kuki BaseclassExtend Horai hai har
test ke lie

-----------------------------------------------------------------------------------
-------------------

DataProvider wale ko parallel me then , parallel=true; phle dedo thik(below xml


will run all dataprovider methods and class both run in parallel ,but other
class inside method will not run in parallel)

<?xml version="1.0" encoding="UTF-8"?>


<!DOCTYPE suite SYSTEM "[Link]
<suite name="Suite" data-provider-thread-count="5">
<test name="Test" thread-count="5" parallel="classes">

<parameter name ="os" value ="windows"/>


<parameter name ="browser" value ="chrome"/>

<classes>

<class name="testCases.TC003_LoginDDT"/>
<class name="testCases.TC001_AccountRegistrationTest"/>

</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->

You might also like