Wednesday, July 18, 2012

Test Automation - integrating to Jenkins

Test Automation - integrating to Jenkins/Hudson


Currently test driven development is the latest trend in the software industry due to the Agile Process. Hence it is really important to utilize test automation tools in the QA process to automate possible test cases. This allows to save time and utilize the resources very well. In this post I would like to discus about how we can integrate test automation scripts to Jenkins (Continuous Integration Tool / Build Tool) and generate test results.

There are lot of approaches to do this task and it depends on the tools that is used by your company for test Automation.

Here are few suggestions I can given and you may further refer following links to integrate you test scripts to Jenkins/Hudson

Marathon vs Jenkins

  • If your using Marathon as the test automation tool then you can create a simple build.xml with the test scripts. Test Scripts can be groups in to several ant targets. 
  • You can create a Jenkins job and setup the build.xml and invoke the relevant ant target.
  • Further you need to mention the marathon home path in the build xml and the project paths of the test automation projects.
  • Further you can setup "Publish JUnit test result report" with the JUnit report generation path of your test automation project
  • Then you may execute these Jenkins jobs as you wish
  • This will execute your test scripts using Marathon, and generate JUnit test reports and it will display under test results of the Jenkins Job.
TestLink vs Jenkins

Further you can integrate Testlink with Jenkins and you may refer following article for more details.


No comments:

Post a Comment