Testlink Helper is a java package for easier integration with automation testing tool that need to sync the test documentation with test management tools Testlink.
Flow:
- Create test plan
- Create test build
- Create test case
- Assign test case to test plan
- Assign user to test execution plan
- Send report test execution
TestLinkMain.java
TestLinkMain testLinkMain = new TestLinkMain(TESTLINK_XMLRPC_URL, TESTLINK_USER_KEY);
testLinkMain.Init(PROJECT_NAME, PROJECT_ID, VERSION, BUILD_NAME, PLAN_NAME, USERNAME)
testLinkMain.Run(TESTCASE_NAME, TEST_IS_SUCCESS, ERROR_MESSAGE, STEP_RESULTS, SUITE_ID);
To send step result to TestLink with Testlink Helper, you need to send it with class StepResult.java
List<StepResult> stepResults = new ArrayList<StepResult>();
for(TestStep testStep : testStepList) {
StepResult stepResult = new StepResult();
stepResult.name = testStep.getDescription();
stepResult.status = testStep.isFailure() || testStep.isError() ? "Failed" : "Success";
stepResults.add(stepResult);
}
If you using framework automation tool SerenityBDD and need to add class for running this library, we provide some example in here.
You can copy it in your SerenityBDD project and change the coresponding variable.