Error while executing script through bat file | Selenium Forum
A
Avijeet Posted on 21/05/2019

i have created a script and tried to run the script through xml file and its working fine. but when i tried to run the script through bat file its throwing error. Could you please advise if below details is correct or not. Let me know if you need more details.

bat file:

set projectLocation=C:\Selenium_Project\PPDS_Weekly_Job
cd %projectLocation%
set classpath=%projectLocation%\bin;%projectLocation%\lib\*
java org.testng.TestNG %projectLocation%\testng.xml

 

1. created a bat file run.bat as above.

2. created a library file and put all jar file inside that.


A
Ashish Thakur Replied on 23/05/2019

Please refer Mod 24 for his. We have covered the execution of code with ant, by creating a bat file.