Wednesday, November 13, 2013

Jenkins Testlink Integration

What is Jenkins

Jenkins is a popular open source continuous integration tool written in Java. You can find more information form http://jenkins-ci.org/.



What is TestLink

TestLink is an open source test management system written in PHP. If you need you can find more information at http://testlink.org/.


Jenkins TestLink Integration

We can use Jenkins TestLink plugin to integrate Jenkins and TestLink  products. If we run unit tests in a Jenkins build job we can use the plugin to publish unit test results in TestLink. Following tutorial explain how to do that https://wiki.jenkins-ci.org/download/attachments/753702/jenkins.pdf

But sometimes it is not practical to run unit tests in a Jenkins build. In those situations we enter the test execution data manually to TestLink and then configure the plugin to read those information form there. We can configure Jenkins to pass, fail or mark the build as unstable depending on the test results read from TestLink.

First you have to install Jenkins TestLink plugin. To do that

1) Go to Manage Jenkins > Manage Plugins
2) Click the Available tab
3) Select Jenkins TestLink Plugin
4) Click Install without restart button.

Then you have to configure Build Job to fetch test results form Testlink.

1) Click on the Job name you want to configure and go to Configure.
2) Under Build, click Add action button and select Invoke TestLink action.



3) Fill the fields according to your Testlink configuration. You have to specify the Build Name you need to fetch test results from.
4) Click Advanced button under Test Execution. Here you can configure whether it is required to fail the build when test cases are failed or not.


You can find out how to configure Testlink by reading Jenkins Testlink Plugin Tutorial ( https://wiki.jenkins-ci.org/download/attachments/753702/jenkins.pdf.)  I have used following Jenkins and Testlink versions in this post.

Jenkins Version   : 1.536
TestLink Version : 1.9.8
Jenkins Testlink Plugin Version : 3.7



4 comments:

  1. i have used following Jenkins and TestLink versions is this post
    Jenkins:1.638
    Testlink:1.9.14
    Jenkins Testlink Plugin:3.11

    and i have read https://wiki.jenkins-ci.org/download/attachments/753702/jenkins.pdf

    howerver, i can`t find the testlink installation in my project configuration. can you tell me what should i do next

    ReplyDelete
  2. oh i have found it in my jenkins system configuraution . thanks.

    ReplyDelete
  3. Did someone manage to integrate this three tools(Ranorex-TestLink-Jenkins)sucessfully ?

    ReplyDelete
  4. I have couple questions regarding this testlink and jenkins integration, could be please help me with it ?

    ReplyDelete