When i write the script in bat file with following code for project location where actual testng file is placed:
set projectLocation=C:\Users\Automation-master
cd %projectLocation%
set classpath=%projectLocation%\bin;%projectLocation%\seleniumLibrary\*
java org.testng.TestNG %projectLocation%\testng.xml
With the above code Browser is invoked.
But in the same way i need to execute the Jar(of the above project) file comprising of class files, libs and testng xml with the actual tests in it through command line.
My query is how to specify classpath of libs and classes in the jar file and also point the testng xml file in the jar to execute the script?