本文整理匯總了Java中br.eti.kinoshita.testlinkjavaapi.TestLinkAPI類的典型用法代碼示例。如果您正苦於以下問題:Java TestLinkAPI類的具體用法?Java TestLinkAPI怎麽用?Java TestLinkAPI使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
TestLinkAPI類屬於br.eti.kinoshita.testlinkjavaapi包,在下文中一共展示了TestLinkAPI類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: execute
import br.eti.kinoshita.testlinkjavaapi.TestLinkAPI; //導入依賴的package包/類
public void execute() throws MojoExecutionException{
try {
api = new TestLinkAPI(new URL(url), devKey);
} catch (MalformedURLException e) {
e.printStackTrace();
}
// Get all testcases in testlink that has custom and automated
testProject = api.getTestProjectByName(projectName);
tp = api.getTestPlanByName(testPlan,testProject.getName());
List<TestCase> tcs;
getLog().info("TestProject: " + testProject.getName());
getLog().info("TestPlan: " + tp.getName());
if(platform != null){
tcs = getTestcasesByPlatform(tp,platform);
} else {
TestCase[] testCases = this.api.getTestCasesForTestPlan(tp.getId(), null, null, null, null, null, null, null,
ExecutionType.AUTOMATED, null, TestCaseDetails.FULL);
tcs = Arrays.asList(testCases);
}
Map<String, List<TestCase>> testcasesPerCustomfields = sortTestcasesByCustomFields(tcs);
// Parse xml junit result
reportJunitResultsToTestlink(testcasesPerCustomfields);
}
示例2: connect
import br.eti.kinoshita.testlinkjavaapi.TestLinkAPI; //導入依賴的package包/類
public void connect()
{
LOG.info("Started connect to testLink...");
try
{
api = new TestLinkAPI(testLinkURL, testLinkProp.getDevKey());
}
catch (TestLinkAPIException e)
{
processError(e);
}
LOG.info("TestLink say:" + api.ping());
}