what is the process of the running the java files that are present in testng xml using ANT -


i want know process of running java files mentioned in testng.xml using ant.

do have compile java files first , run it? or testng ant task takes care of compiling , running? have gone through testng ant task code didn't quite it. can explain?

<taskdef resource="testngtasks" classpath="testng.jar" />  <testng classpathref="run.cp" outputdir="${testng.report.dir}" sourcedir="${test.src.dir}" haltonfailure="true">      <xmlfileset dir="${test14.dir}" includes="testng.xml" /> </testng> 

according testng doc

one of attributes classpath, classpathref or nested must used providing tests classpath.

which means have compile test classes before running tests.


Comments

Popular posts from this blog

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -