I am using jenkinn+selenium grid plugin to execute my testNG tests selenium
i have two bat files:
a. ffnode.bat - this register the node. content is as below
cd [path of the selenium jars]
java -jar selenium-server-standalone-2.53.1.jar -role node hub http://localhost:4444/wd/hub -browser browserName=firefox -port 5556
b. testngcmd.bat - To execute tests. content is as below
cd [my project path]
set ProjectPath=C:\Users\hp\Workspace-ActivateRegression\Regression
echo %ProjectPath%
set classpath=%ProjectPath%\bin;%ProjectPath%\jars*
echo %classpath%
java org.testng.TestNG %ProjectPath%\testng.xml
Now in my jenkinn project >> Build env >> execute winddow batch command >> bat file path >> i ask jenkinn to execute these two bat files - ffnode.bat and then testngcmd.bat
Nothing happens after execution of ffnode.bat Only a waiting sign appears in console output
However if i manually execute these two file then tests run fine.
Also if i manually run ffnode and then testngcmd(using jenkinn) then als the test runs fine
Problem is only when both bat files are called using jenkin