When I run Test NG test开发者_开发问答 using testng.xml, it runs fine but if i run testng.xml using ant (Build.xml), it gives an error Cannot fine class in classpath
Testng.xml:-
?xml version="1.0" encoding="UTF-8"?>
Build.xml:-
<xmlfileset dir="." includes="testng.xml"/> 
<xmlfileset dir="." includes="testng.xml">
Certainly the error is in this line.Its looking for compiled classes in the base directory(dir=".").point dir to bin folder where the compiled classes would be usually or wherever you have kept the compile classes.here an example:
<xmlfileset dir="${basedir}/bin" includes="testng.xml">
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论