Testlink

This unitils module will allow you to push results of automated test results to Testlink, an opensource test management software to use:

Installation Testlink

To install testlink check http://teamst.org/ .
Suppose testlink is situated on "http://localhost/testlink/"

  1. Log into testlink with the user you want to user to do automated tests. Suppose the user is "MonkeyUser"
  2. Find the "Personal API access key" under My Settings. You'll need it later. Suppose it is "4be86209b7373137663a27715ad9a8a6"
  3. Create a testlink project: "My_New_Project"
  4. Create a new Testplan "My_Testplan" in the "My_New_Project"

Installation

If you are using maven, you can add following dependency to your project.

01
02
03
04
05
<dependency>
    <groupId>org.unitils.testlink</groupId>
    <artifactId>unitils-testlink</artifactId>
    <version>1.0.3</version>
</dependency>

Config

Please create unitils-local.properties, and add testlink to unitils.modules. Code as following:

01
02
03
04
05
06
07
08
09
10
11
12
13
14
unitils.modules=inject,testlink
 
unitils.module.testlink.className=org.unitils.testlink.TestLinkModule
unitils.module.testlink.runAfter=
unitils.module.testlink.enabled=true
      
org.unitils.testlink.url= http://localhost/testlink/
org.unitils.testlink.project= My_New_Project
org.unitils.testlink.testPlan= My_Testplan
org.unitils.testlink.buildName=0.0.1 #version of your SUT
org.unitils.testlink.username= MonkeyUser
org.unitils.testlink.devkey= 4be86209b7373137663a27715ad9a8a6
org.unitils.testlink.createTestIfNeeded=true
org.unitils.testlink.assingTestIfNeeded=True

Example

Finally add @TestLink in your unit testcases (methods) just like this:

@TestLink(value = "testCaseThree", suite = "TestLinkModuleIntTest")
public void testCaseThree() {