Currently working on Selenium WebDriver and using Java. I have asked a question earlier to create the Task scheduler and i created as mentioned in the How to create scheduler to run my script every night at 12.00- Selenium WebDriver But the Problem it is opening the eclipse at the time i have scheduled but the problem Once it open the eclipse it need to run all test one by one
I tried in cmd prompt, and getting error Error: Could not find or load main class org.testng.TestNG
Anyone please suggest me to fix the issue.
I have a run.bat as follows:
set ProjectPath=C:\Documents and Settings\amth\workspace\OneReports\src\
echo %ProjectPath%
set classpath=%ProjectPath%bin;%ProjectPath%lib*
echo %classpath%
java org.testng.TestNG %ProjectPath%Test.xml
While checking in the Command Prompt it is appearing as follows:
C:\Documents and Settings\amth>cd desktop
C:\Documents and Settings\amth\Desktop>run.bat
C:\Documents and Settings\amth\workspace\OneReports\src\
C:\Documents and Settings\amth\workspace\OneReports\src\bin;C:\Documents and Settings\amth\workspace\OneReports\src\lib*C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\Java\jdk1.7.0_51\bin;
Press any key to continue . . .
java org.testng.eclipse C:\Documents and Settings\amth\workspace\OneReports\src\Test.xml
C:\Documents and Settings\amth\Desktop>
Is Jenkins and some other scheduler will work for windowsxp
Currently using TestNG framework, Selenium webdriver, Java code