|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.eti.kinoshita.testlinkjavaapi.TestLinkAPI
public class TestLinkAPI
TestLink API class.
| Constructor Summary | |
|---|---|
TestLinkAPI(String url,
String devKey)
Constructor with parameters. |
|
| Method Summary | |
|---|---|
String |
about()
Displays information about TL. |
Integer |
addTestCaseToTestPlan(Integer testProjectId,
Integer testPlanId,
Integer testCaseId,
Integer version,
Integer platformId,
Integer order,
Integer urgency)
Adds a Test Case to a Test Plan. |
void |
assignRequirements(Integer testCaseId,
Integer testProjectId,
List<Requirement> requirements)
Assign a requirements to a Test Case. |
Boolean |
checkDevKey(String devKey)
Checks developer key. |
Build |
createBuild(Integer testPlanId,
String buildName,
String buildNotes)
Creates a Build. |
TestCase |
createTestCase(String testCaseName,
Integer testSuiteId,
Integer testProjectId,
String authorLogin,
String summary,
List<TestCaseStep> steps,
String preconditions,
TestImportance importance,
ExecutionType execution,
Integer order,
Integer internalId,
Boolean checkDuplicatedName,
String actionOnDuplicatedName)
Creates a Test Case. |
TestPlan |
createTestPlan(String planName,
String projectName,
String notes,
Boolean isActive,
Boolean isPublic)
Creates a Test Plan. |
TestProject |
createTestProject(String testProjectName,
String testProjectPrefix,
String notes,
Boolean enableRequirements,
Boolean enableTestPriority,
Boolean enableAutomation,
Boolean enableInventory,
Boolean isActive,
Boolean isPublic)
Creates a Test Project. |
TestSuite |
createTestSuite(Integer testProjectId,
String name,
String details,
Integer parentId,
Integer order,
Boolean checkDuplicatedName,
String actionOnDuplicatedName)
|
void |
deleteExecution(Integer executionId)
Deletes an execution. |
Boolean |
doesUserExist(String user)
Checks if the given user exists. |
Build[] |
getBuildsForTestPlan(Integer testPlanId)
Retrieves an Array of Builds for a given Test Plan. |
String |
getDevKey()
|
TestSuite[] |
getFirstLevelTestSuitesForTestProject(Integer testProjectId)
Get set of test suites AT TOP LEVEL of tree on a Test Project |
String[] |
getFullPath(Integer nodeId)
Retrieves the full path of a node. |
Execution |
getLastExecutionResult(Integer testPlanId,
Integer testCaseId,
Integer testCaseExternalId)
Retrieves last execution result of a Test Case. |
Build |
getLatestBuildForTestPlan(Integer testPlanId)
Retrieves the latest Build for a given Test Plan. |
TestProject[] |
getProjects()
Retrieves all Test Projects from TestLink. |
TestPlan[] |
getProjectTestPlans(Integer projectId)
Retrieves an array of Test Plans associated to a Test Project. |
TestCase |
getTestCase(Integer testCaseId,
Integer testCaseExternalId,
Integer version)
Get a test case |
Attachment[] |
getTestCaseAttachments(Integer testCaseId,
Integer testCaseExternalId)
Return an array of attachments of a Test Case. |
CustomField |
getTestCaseCustomFieldDesignValue(Integer testCaseId,
Integer testCaseExternalId,
Integer versionNumber,
Integer testProjectId,
String customFieldName,
ResponseDetails details)
Retrieves list of Custom Fields for a Test Case. |
Integer |
getTestCaseIDByName(String testCaseName,
String testSuiteName,
String testProjectName,
String testCasePathName)
Get a test case ID by a test case Name |
TestCase[] |
getTestCasesForTestPlan(Integer testPlanId,
List<Integer> testCasesIds,
Integer buildId,
List<Integer> keywordsIds,
String keywords,
Boolean executed,
List<Integer> assignedTo,
String executeStatus,
ExecutionType executionType,
Boolean getStepInfo)
Retrieves Test Cases for Test Plans. |
TestCase[] |
getTestCasesForTestSuite(Integer testSuiteId,
Boolean deep,
String details)
Retrieves Test Cases for a Test Suite. |
TestPlan |
getTestPlanByName(String planName,
String projectName)
Retrieves a Test Plan by its name. |
Platform[] |
getTestPlanPlatforms(Integer planId)
Retrieves Platforms of a Test Plan. |
TestProject |
getTestProjectByName(String projectName)
Retrieves a Test Project by its name. |
TestSuite[] |
getTestSuiteByID(List<Integer> testSuiteIds)
Retrieves Test Suites for given Ids. |
TestSuite[] |
getTestSuitesForTestPlan(Integer testPlanId)
|
TestSuite[] |
getTestSuitesForTestSuite(Integer testSuiteId)
Get list of TestSuites which are DIRECT children of a given TestSuite |
Map<String,Object> |
getTotalsForTestPlan(Integer testPlanId)
|
String |
getUrl()
|
String |
ping()
ping method is an alias for sayHello. |
String |
repeat(String str)
|
void |
reportTCResult(Integer testCaseId,
Integer testCaseExternalId,
Integer testPlanId,
ExecutionStatus status,
Integer buildId,
String buildName,
String notes,
Boolean guess,
String bugId,
Integer platformId,
String platformName,
Map<String,String> customFields,
Boolean overwrite)
Reports a Test Case result. |
String |
sayHello()
Says hello to the user. |
void |
setTestCaseExecutionResult(Integer testCaseId,
Integer testCaseExternalId,
Integer testPlanId,
ExecutionStatus status,
Integer buildId,
String buildName,
String notes,
Boolean guess,
String bugId,
Integer platformId,
String platformName,
Map<String,String> customFields,
Boolean overwrite)
Reports a Test Case result. |
Boolean |
setTestMode(Boolean testMode)
|
String |
toString()
|
Attachment |
uploadAttachment(Integer fkId,
String fkTable,
String title,
String description,
String fileName,
String fileType,
String content)
Uploads an attachment linking it to a DB table. |
Attachment |
uploadRequirementAttachment(Integer requirementId,
String title,
String description,
String fileName,
String fileType,
String content)
Uploads an attachment to a Requirement. |
Attachment |
uploadRequirementSpecificationAttachment(Integer reqSpecId,
String title,
String description,
String fileName,
String fileType,
String content)
Uploads an attachment to a Requirement Specification. |
Attachment |
uploadTestCaseAttachment(Integer testCaseId,
String title,
String description,
String fileName,
String fileType,
String content)
Uploads an attachment to a Test Case. |
Attachment |
uploadTestProjectAttachment(Integer testProjectId,
String title,
String description,
String fileName,
String fileType,
String content)
Uploads an attachment to a Test Project. |
Attachment |
uploadTestSuiteAttachment(Integer testSuiteId,
String title,
String description,
String fileName,
String fileType,
String content)
Uploads an attachment to a Test Suite. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestLinkAPI(String url,
String devKey)
throws MalformedURLException
Constructor with parameters.
Instantiates TestLink services.
url - The URL to set.devKey - The Developer Key to set.
MalformedURLException| Method Detail |
|---|
public String getUrl()
public String getDevKey()
public String toString()
toString in class Object
public Boolean checkDevKey(String devKey)
throws TestLinkAPIException
devKey - Developer Key.
TestLinkAPIException
public Boolean doesUserExist(String user)
throws TestLinkAPIException
user -
TestLinkAPIException
public String ping()
throws TestLinkAPIException
TestLinkAPIException
public String sayHello()
throws TestLinkAPIException
TestLinkAPIException
public String about()
throws TestLinkAPIException
TestLinkAPIException
public Boolean setTestMode(Boolean testMode)
throws TestLinkAPIException
testMode -
TestLinkAPIException
public String repeat(String str)
throws TestLinkAPIException
str -
TestLinkAPIException
public Attachment uploadAttachment(Integer fkId,
String fkTable,
String title,
String description,
String fileName,
String fileType,
String content)
throws TestLinkAPIException
fkId - fkTable - title - description - fileName - fileType - content -
TestLinkAPIException
public String[] getFullPath(Integer nodeId)
throws TestLinkAPIException
nodeId -
TestLinkAPIException
public Execution getLastExecutionResult(Integer testPlanId,
Integer testCaseId,
Integer testCaseExternalId)
throws TestLinkAPIException
testPlanId - testCaseId - testCaseExternalId -
TestLinkAPIException
public TestProject createTestProject(String testProjectName,
String testProjectPrefix,
String notes,
Boolean enableRequirements,
Boolean enableTestPriority,
Boolean enableAutomation,
Boolean enableInventory,
Boolean isActive,
Boolean isPublic)
throws TestLinkAPIException
testProjectName - testProjectPrefix - notes - enableRequirements - enableTestPriority - enableAutomation - enableInventory - isActive - isPublic -
TestLinkAPIException
public TestProject getTestProjectByName(String projectName)
throws TestLinkAPIException
projectName - Test Project name.
TestLinkAPIException
public TestProject[] getProjects()
throws TestLinkAPIException
TestLinkAPIException
public TestPlan[] getProjectTestPlans(Integer projectId)
throws TestLinkAPIException
projectId - Test Project Id.
TestLinkAPIException
public Attachment uploadTestProjectAttachment(Integer testProjectId,
String title,
String description,
String fileName,
String fileType,
String content)
throws TestLinkAPIException
testProjectId - title - description - fileName - fileType - content -
TestLinkAPIException
public TestPlan createTestPlan(String planName,
String projectName,
String notes,
Boolean isActive,
Boolean isPublic)
throws TestLinkAPIException
planName - Test Plan name.projectName - Test Project name.notes - Test Plan notes.isActive - isPublic -
TestLinkAPIException
public TestPlan getTestPlanByName(String planName,
String projectName)
throws TestLinkAPIException
planName - Test Plan name.projectName - Test Project name.
TestLinkAPIException
public Platform[] getTestPlanPlatforms(Integer planId)
throws TestLinkAPIException
planId - Test Plan Id.
TestLinkAPIException
public Map<String,Object> getTotalsForTestPlan(Integer testPlanId)
throws TestLinkAPIException
TestLinkAPIException
public Build createBuild(Integer testPlanId,
String buildName,
String buildNotes)
throws TestLinkAPIException
testPlanId - buildName - buildNotes -
TestLinkAPIException
public Build[] getBuildsForTestPlan(Integer testPlanId)
throws TestLinkAPIException
testPlanId - Test Plan ID.
TestLinkAPIException
public Build getLatestBuildForTestPlan(Integer testPlanId)
throws TestLinkAPIException
testPlanId - Test Plan ID.
TestLinkAPIException
public TestSuite createTestSuite(Integer testProjectId,
String name,
String details,
Integer parentId,
Integer order,
Boolean checkDuplicatedName,
String actionOnDuplicatedName)
throws TestLinkAPIException
TestLinkAPIException
public TestSuite[] getTestSuiteByID(List<Integer> testSuiteIds)
throws TestLinkAPIException
testSuiteIds - List of Test Suite Ids.
TestLinkAPIException
public Attachment uploadTestSuiteAttachment(Integer testSuiteId,
String title,
String description,
String fileName,
String fileType,
String content)
throws TestLinkAPIException
testSuiteId - title - description - fileName - fileType - content -
TestLinkAPIException
public TestSuite[] getTestSuitesForTestPlan(Integer testPlanId)
throws TestLinkAPIException
testPlanId -
TestLinkAPIException
public TestSuite[] getTestSuitesForTestSuite(Integer testSuiteId)
throws TestLinkAPIException
testSuiteId -
TestLinkAPIException
public TestSuite[] getFirstLevelTestSuitesForTestProject(Integer testProjectId)
throws TestLinkAPIException
testProjectId -
TestLinkAPIException
public TestCase createTestCase(String testCaseName,
Integer testSuiteId,
Integer testProjectId,
String authorLogin,
String summary,
List<TestCaseStep> steps,
String preconditions,
TestImportance importance,
ExecutionType execution,
Integer order,
Integer internalId,
Boolean checkDuplicatedName,
String actionOnDuplicatedName)
throws TestLinkAPIException
testCaseName - testSuiteId - testProjectId - authorLogin - summary - steps - preconditions - importance - execution - order - internalId - checkDuplicatedName - actionOnDuplicatedName -
TestLinkAPIException
public Integer addTestCaseToTestPlan(Integer testProjectId,
Integer testPlanId,
Integer testCaseId,
Integer version,
Integer platformId,
Integer order,
Integer urgency)
throws TestLinkAPIException
testProjectId - testPlanId - testCaseId - version - platformId - order - urgency -
TestLinkAPIException
public TestCase[] getTestCasesForTestSuite(Integer testSuiteId,
Boolean deep,
String details)
throws TestLinkAPIException
testSuiteId - deep - details -
TestLinkAPIException
public TestCase getTestCase(Integer testCaseId,
Integer testCaseExternalId,
Integer version)
throws TestLinkAPIException
testCaseId - testCaseExternalId - version -
TestLinkAPIException
public TestCase[] getTestCasesForTestPlan(Integer testPlanId,
List<Integer> testCasesIds,
Integer buildId,
List<Integer> keywordsIds,
String keywords,
Boolean executed,
List<Integer> assignedTo,
String executeStatus,
ExecutionType executionType,
Boolean getStepInfo)
throws TestLinkAPIException
testPlanId - testCasesIds - buildId - keywordsIds - keywords - executed - assignedTo - executeStatus - executionType - getStepInfo -
TestLinkAPIException
public Integer getTestCaseIDByName(String testCaseName,
String testSuiteName,
String testProjectName,
String testCasePathName)
throws TestLinkAPIException
devKey - testCaseName - testSuiteName - testProjectName - testCasePathName -
TestLinkAPIException
public Attachment uploadTestCaseAttachment(Integer testCaseId,
String title,
String description,
String fileName,
String fileType,
String content)
throws TestLinkAPIException
testCaseId - title - description - fileName - fileType - content -
TestLinkAPIException
public Attachment[] getTestCaseAttachments(Integer testCaseId,
Integer testCaseExternalId)
throws TestLinkAPIException
testCaseId - testCaseExternalId -
TestLinkAPIException
public void deleteExecution(Integer executionId)
throws TestLinkAPIException
executionId - Execution Id.
TestLinkAPIException
public void reportTCResult(Integer testCaseId,
Integer testCaseExternalId,
Integer testPlanId,
ExecutionStatus status,
Integer buildId,
String buildName,
String notes,
Boolean guess,
String bugId,
Integer platformId,
String platformName,
Map<String,String> customFields,
Boolean overwrite)
throws TestLinkAPIException
testCaseId - testCaseExternalId - testPlanId - status - buildId - buildName - notes - guess - bugId - platformId - platformName - customFields - overwrite -
TestLinkAPIException
public void setTestCaseExecutionResult(Integer testCaseId,
Integer testCaseExternalId,
Integer testPlanId,
ExecutionStatus status,
Integer buildId,
String buildName,
String notes,
Boolean guess,
String bugId,
Integer platformId,
String platformName,
Map<String,String> customFields,
Boolean overwrite)
throws TestLinkAPIException
testCaseId - testCaseExternalId - testPlanId - status - buildId - buildName - notes - guess - bugId - platformId - platformName - customFields - overwrite -
TestLinkAPIException
public CustomField getTestCaseCustomFieldDesignValue(Integer testCaseId,
Integer testCaseExternalId,
Integer versionNumber,
Integer testProjectId,
String customFieldName,
ResponseDetails details)
throws TestLinkAPIException
testCaseId - testCaseExternalId - versionNumber - testProjectId - customFieldName -
TestLinkAPIException
public Attachment uploadRequirementSpecificationAttachment(Integer reqSpecId,
String title,
String description,
String fileName,
String fileType,
String content)
throws TestLinkAPIException
reqSpecId - title - description - fileName - fileType - content -
TestLinkAPIException
public Attachment uploadRequirementAttachment(Integer requirementId,
String title,
String description,
String fileName,
String fileType,
String content)
throws TestLinkAPIException
requirementId - title - description - fileName - fileType - content -
TestLinkAPIException
public void assignRequirements(Integer testCaseId,
Integer testProjectId,
List<Requirement> requirements)
throws TestLinkAPIException
testCaseId - testProjectId - requirements -
TestLinkAPIException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||