Creating executable file for
running the entire test suite using ANT.(One click execution in selenium web
driver)
1.
We have seen how to
run all tests and generate reports and later email the reports.
2.
Now I want to
execute all commands and run the entire project in 1 click.
3.
For that I have to
create a notepad and write the following commands (targets in build.xml).
4 . Copy paste below
lines in a note pad and later save it with .bat extension.
d:
D:\Workspace\TestProject
ant -f
testbuildname.xml clean junitreport sendMail
5.
Here
ant,clean,junitreport and sendMail are targets specified in your build.xml.
6.
You can directly
double click on this file and the entire suite would be executed.
7.
After successful
execution of the suite, results will be emailed to your id.
No comments:
Post a Comment