Hi Ashish/Guys,
I have created a Hub and 2 nodes (node1 with chrome driver and node2 with firefox driver). I want to run two browsers parallel for same test in separate nodes. But issue is, when I m running it through testng.xml, first test runs on node 1 and nothing happens on node 2. But when first test finishes on node 1 then second test starts running on node 2. So its running sequential but in different nodes alternatively.
Please let me know what wrong i am doing. Thanks in advance.
Grid commands used
Hub: java -jar selenium-server-standalone-2.53.0.jar -role hub
Node1: java -jar selenium-server-standalone-2.53.0.jar -role node -hub http://localhost:4444/grid/register -port 5555 -Dwebdriver.chrome.driver="C:\Downloads\chromedriver.exe" -browser browserName="chrome", maxInstances=1 -maxSession 1
Node2: java -jar selenium-server-standalone-2.53.0.jar -role node -hub http://localhost:4444/grid/register -port 5556 -Dwebdriver.firefox.bin="C:\Mozilla Firefox\firefox.exe" -browser browserName="firefox", maxInstances=1 -maxSession 1
XML files:
-------------------------------------------------------------------
Avonex.xml (suite.xml)
-------------------------------------------------------------------
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Avonex_Regression" parallel="tests">
<test name="Registeration">
<classes>
<class name="com.ML2.Regression.existing.Avonex.Registeration" ></class>
<class name="com.ML2.Regression.existing.Avonex.Login_Edit_Logout"></class>
</classes>
</test>
</suite>
-------------------------------------------------------------------------------
testng.xml
-------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<!-- for parallel execution on grid -->
<suite name="My suite" verbose="1" parallel="tests" thread-count="10">
<suite-files>
<suite-file path="./Avonex.xml" />
</suite-files>
</suite>
-----------------------------------------------------------------------------------