Error -Not able to run the testng.xml using ant run command. | Selenium Forum
M
Posted on 26/09/2016
Hi Ashish,
Error -Not able to run the testng.xml using ant run command.

Run testing.xml suite file through command promot("ant run" command)
build successful but classes not instantiated.

Please help to resolve this.

Ant compile success all files compiled

M
Replied on 27/09/2016

is there testng jar file selenium jars folder?


M
Replied on 27/09/2016

Yes ashish, TestNg.jar is present

I am getting warning in the below code in build.xml file

<taskdef name="testng" classpath="${test.classpath}"
classname="org.testng.TestNGAntTask" />


M
Replied on 28/09/2016

download the latest version of testng jar file and try again.