This unitils module will allow you to push results of automated test results to testlink, an opensource test management software (@seehttp://testlink.org/ )
Config the testlink module to connect to you project, put in unitils.properties . Cnfr. values in Step 1, replace them with the values corresponding to your project
Unitils Testlink Module
This unitils module will allow you to push results of automated test results to testlink, an opensource test management software (@see http://testlink.org/ )
to use:
Testlink Module Load the artifact (maven)
Testlink Module possible config
Please create unitils-local.properties, and add testlink to unitils.modules. Code as following:
Add testlink configuration in unitils-local.properties as following:
Finally add @TestLink in your unit testcases (methods) just like this:
After the test is run of the testcases result will be pushed back to testlink
Cookbook Simple example
Step 1: Testlink
To install testlink check http://teamst.org/ . Suppose testlink is situated on "http://localhost/testlink/"
Log into testlink with the user you want to user to do automated tests. Suppose the user is "MonkeyUser"
Find the "Personal API access key" under My Settings. You'll need it later. Suppose it is "4be86209b7373137663a27715ad9a8a6"
Create a testlink project: "My_New_Project"
Create a new Testplan "My_Testplan" in the "My_New_Project"
Step 2: Config Unitils
Put this inside your .pom file.
create file unitils.properties in src/test/resources
load the testlink module, put in unitils.properties
Config the testlink module to connect to you project, put in unitils.properties . Cnfr. values in Step 1, replace them with the values corresponding to your project
Step 3: write JUnit test and connect it to testlink
Create a test called helloworld, and see a result in testlink under "helloworld" by adding @TestLink("helloworld") on the test
RUN!
The result should now be in testlink. Running the same test over and over again without changing the buildName will overwrite the previous results
Last edit: Thomas De Rycke 2013-09-11