This unitils module will allow you to push results of automated test results to Testlink, an opensource test management software to use:
To install testlink check http://teamst.org/ .
Suppose testlink is situated on "http://localhost/testlink/"
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> |
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,testlinkunitils.module.testlink.className=org.unitils.testlink.TestLinkModuleunitils.module.testlink.runAfter=unitils.module.testlink.enabled=true org.unitils.testlink.url= http://localhost/testlink/org.unitils.testlink.project= My_New_Projectorg.unitils.testlink.testPlan= My_Testplanorg.unitils.testlink.buildName=0.0.1 #version of your SUTorg.unitils.testlink.username= MonkeyUserorg.unitils.testlink.devkey= 4be86209b7373137663a27715ad9a8a6org.unitils.testlink.createTestIfNeeded=trueorg.unitils.testlink.assingTestIfNeeded=True |
Finally add @TestLink in your unit testcases (methods) just like this:
@TestLink(value = "testCaseThree", suite = "TestLinkModuleIntTest")
public void testCaseThree() {