- Download Jenkins
- Start Jenkins sever
- java -jar LocationOfJenkinsWarFile
- Server will start at http://localhost:8080
- Configure Jenkins
- Set the JAVA_HOME and Project Location in configuration setting
- Create a TestNG class and testng.xml
- Create a bat file
- java -cp bin;lib/* org.testng.TestNG testng.xml
- Build your project
- You can also schedule your build
- Configure mail setting
- SMTP Server for Gmail is smtp.gmail.com and port number is 465
- Post build setting
No comments:
Post a Comment