on-internet
← Community

Create a batch file to invoke testng.xml to run selenium scripts

Stack Overflow ·

I need help to create a .bat file to invoke testng.xml which has all the tests to run.According to this link, I created the .bat file. Here is what I have written in it: java -cp "C:\Program Files\Selenium Execution Engine\lib\library\testng-5.8-jdk15.jar";"C:\POM_Newdemo\EF_Progression\bin\testscripts" org.testng.TestNG "C:\POM_Newdemo\EF_Progression\testng.xml" where: -cp : is class path C:\Program Files\Selenium Execution Engine\lib\library\testng-5.8-jdk15.jar : is the path of my testng jar file C:\POM_Newdemo\EF_Progression\bin\testscripts : is the path of my .class files of my tests C:\P

Comments

Sign in or sign up to comment and upvote.

No comments yet.