Below is my XML piece.
<?xml version="1.0" encoding="UTF-8"?> <suite name='Automation' threadCount="5" parallel="methods"> <tests> <parameter name='clientName' value='Five' /> <test name='PA'> <classes> <class name='TC_INC_1'> </class> </classes> </test> So I am loading the required data from excel through DATA PROVIDER in TestNg. What I wanted to achieve is to run each row in different threads. Lets say I had 5 rows of data
1- Go to Google.com 2- Go to Facebook.com 3- Go to Dollarama.com 4- Go to Walmart.com 5- Go to KegSteak.com And say I am running two thread means two browsers. I want both browsers run parallelly executing each of the row in any sequence.
Thread 1 - 1- Go to Google.com Thread 2- 2- Go to Facebook.com First test done - browser closed and opens again.
Now it should pick the 3 and fourth row. Thread 1 - 3- Go to Dollarama.com Thread 2- 4- Go to Walmart.com
browser closed and opens again. Thread 1 - 5- Go to KegSteak.com
[![testdata][1]][1]
What I actually see is two browsers open and one of the browser runs the url and the other just becomes static after launching chrome.
Any fixes ?