<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Parallel test suite" parallel="classes" thread-count="2">
<test thread-count="1" name="Transactoin">
<parameter name="remoteurl" value="http://xx.xx.xxx.xxx:5555/wd/hub"></parameter>
<classes>
<class name="POM_Test.ATransactionTest"/>
</classes>
</test> <!-- Test -->
<test thread-count="1" name="MyAlerts">
<parameter name="remoteurl" value="http://xx.xx.xx.xxx:5556/wd/hub"></parameter>
<classes>
<class name="POM_Test.MyAlertsTest"/>
</classes>
</test>
</suite> <!-- Suite -->
ATransactionTest
Class
has 47
Test cases
MyAlertsTest
Class
has 40
Test cases.
I wanted to run both classes simulatneously
and MyAlertsTest should take remoteurl which is given in the parameter and ATransaction test should take remoteurl given the parameter.
But what happens is, ATransactionTest
runs first in Node1
once all test case completed MyAlerts
runs in Node2
. How to run simulatenously.
Thanks