Urgent:Build fails when i try to run testng via cmd prmpt | Selenium Forum
M
Posted on 06/08/2016
Build always fails when i run textng.xml via cmd prmpt.....

Following is the cmds am using:cd C:\Selenium Automation_Framework\x\y
java -cp bin;lib\*;lib\libs\* org.testng.TestNG testng.xml


Please refer snapshot sir....
[b:23ayf00i]
Please suggest to make test pass sir[/b:23ayf00i]

M
Replied on 06/08/2016

Same thing passes if i run via eclipse...

Responsive image

M
Replied on 06/08/2016

[b:39fvxfj9]Sir,

is class path icorrect ?[/b:39fvxfj9]

cd C:\Selenium Automation_Framework\X\Y
set ProjectPath=C:\Selenium Automation_Framework\X\Y
echo %ProjectPath%
[b:39fvxfj9]set classpath=%ProjectPath%\bin;%ProjectPath%\lib\*[/b:39fvxfj9]
echo %classpath%
java -cp bin;lib\*;lib\libs\* org.testng.TestNG testng.xml
PAUSE


M
Replied on 06/08/2016

k something is wrong.........

i WANT to print the error description on cmd prompt
how do i do that?


M
Replied on 06/08/2016

Sir, i made it throw error in cmd prompt...
pls refer snapshot.....

[b:98t5wtqr]This method is there in that file...
pls give ur suggestions:[/b:98t5wtqr]

Responsive image

M
Replied on 07/08/2016

Issue resolved sir.....