One click Selenium suite execution using Bat file
Creating simple build.xml for TestNG : http://catchbug.blogspot.in/2014/05/selenium-simple-buildxml-code-for-testng.html
Pre-Req:
- Works for Selenium TestNG Suite.
- ANT+build.xml should have been implemented in the framework.
Steps :
- Goto to your project , where your build.xml resides.
- Create a new text file there .
- Copy the below code and paste it inside the text file.
- Rename the extension as ".bat"
Code here :
echo.rem *** Created By Deepak ******
echo.
call ant -buildfile build.xml setClassPath init all clean compile build run
echo.
echo **** view your Test-NG results in path "your_project\test-output\index.html" ********
echo.
echo *** you can remove wait screen , by deleting pause command in this file ****
echo.
pause
No comments:
Post a Comment