generic build.xml file for ANT+TestNG+Selenium RC framework

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

generic build.xml file for ANT+TestNG+Selenium RC framework

anand.dandekar
Is there a generic structure of a build.xml file which can be used for running the test suite from ANT ?
I will have all the test cases specified in Testng.xml which will be run by build file.
But is there any generic structure for build.xml file containing tasks for testng ?
Reply | Threaded
Open this post in threaded view
|

Re: generic build.xml file for ANT+TestNG+Selenium RC framework

softwaretestingforum
Administrator
I had described it here - http://www.seleniumtests.com/2011/06/selenium-tutorial-ant-build-for.html
Does it help?
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: generic build.xml file for ANT+TestNG+Selenium RC framework

anand.dandekar
Thanks Tarun. Yes, that helped indeed.
Reply | Threaded
Open this post in threaded view
|

Re: generic build.xml file for ANT+TestNG+Selenium RC framework

anand.dandekar
In reply to this post by softwaretestingforum
Also, don't you start and stop the selenium server from build.xml file ?
Reply | Threaded
Open this post in threaded view
|

Re: generic build.xml file for ANT+TestNG+Selenium RC framework

softwaretestingforum
Administrator
That was for Selenium2, so there was no need to start and shut down.
But yes you can start and shut down server from ant build
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: generic build.xml file for ANT+TestNG+Selenium RC framework

Black Swan
How do we start server from ant build?
Reply | Threaded
Open this post in threaded view
|

Re: generic build.xml file for ANT+TestNG+Selenium RC framework

softwaretestingforum
Administrator
This might help - http://java.dzone.com/articles/running-selenium-alternate
~ seleniumtests.com