I am newbie to
Ant. I have read the previous posts about JUNIT/ANT. But I am not quite sure how to resolve my issues...
I can run the
JUNIT Tester using the below batch file...
---------------Tester.bat------------
set CLASSPATH="C:\a.jar";"C:\b.jar";"C:\junit-4.1.jar"
C:\jdk1.5.0_06\bin\java -classpath %CLASSPATH% org.junit.runner.JUnitCore com.thoughtworks.selenium.QATester
---------------------------------
If I run the above, batch file, QATester class executes since QATester.class is part of b.jar file.
Now, I have 2 issues...
1) How can I convert the above batch file into Ant target
2) QATester.class file launches
http://hostname:8080/xyz . I have hard coded hostname in the class file. Now, my question, how can I pass this hostname as an argument from the Ant target?
Please response. I have been struggling a lot to resolve...
Thanks in advance