Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98817

Cannot run bat file

$
0
0

I want to run a .bat file with the next lines:

set projectLocation=E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest
cd %projectLocation%
set classpath=%projectLocation%\bin;%projectLocation%\lib\*
java org.testng.TestNG %projectLocation%\testng.xml
pause

But the problem is I got the next error message:

E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest\bin>cd E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest

E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest>java -cp E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest\lib*;E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest\bin org.testng.TestNG testng.xml

[TestNG] [ERROR]

Cannot find class in classpath: com.mc4.bo.Main

E:\proyectos\YPFB_MOD-USER\ypfb_tr_mod-user-despliegues-qa-test\ypfb-tr-mod-user\ModUserTest>pause

Presione una tecla para continuar . . .

I developed a java test using IntelliJIdea, all examples I found are in eclipse, I don't know what the purpose of the bin folder is, and there's no explanation about it. Are there files inside this folder?.

I don't know what the error is in the classpath.


Viewing all articles
Browse latest Browse all 98817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>