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,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 |
Finally add @TestLink in your unit testcases (methods) just like this:
@TestLink(value = "testCaseThree", suite = "TestLinkModuleIntTest") public void testCaseThree() {