Module11 - buildxml is not working - Throwing error | Selenium Forum
S
Sanjiv kumar Singh Posted on 13/02/2019

I took the build.xml from Module11-TestNG

I also set the JAR path correctly..

Below is the error while ant compile

E:\Selenium Workspace\TestNG_Tutorial_Mod9>ant compile
Buildfile: E:\Selenium Workspace\TestNG_Tutorial_Mod9\build.xml

setClassPath:

init:

BUILD FAILED
E:\Selenium Workspace\TestNG_Tutorial_Mod9\build.xml:39: taskdef class org.testng.TestNGAntTask cannot be found
using the classloader AntClassLoader[E:\Selenium Related Stuff\Commons\JARS\temp\hamcrest-core-1.3.jar;E:\Selenium Related Stuff\Commons\JARS\temp\junit-4.13-beta-1.jar]

Total time: 0 seconds

E:\Selenium Workspace\TestNG_Tutorial_Mod9>

 


A
Ashish Thakur Replied on 20/02/2019

Please make sure you have included all the jar files with their correct versions.

In your case, it is missing TestNG jar files.