public class TestLinkAPI extends Object
Constructor and Description |
---|
TestLinkAPI(URL url,
String devKey)
Constructor with parameters.
|
TestLinkAPI(URL url,
String devKey,
String proxyHost,
int proxyPort)
Constructor with parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
about()
Displays information about TL.
|
Map<String,Object> |
addPlatformToTestPlan(Integer testProjectId,
Integer testPlanId,
String platformName)
Adds a platform to a test plan.
|
Map<String,Object> |
addTestCaseKeywords(Map<String,List<String>> testCaseKeywordsMap)
Add keywords to existing test cases.
|
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.
|
void |
assignTestCaseExecutionTask(Integer testPlanId,
String testCaseExternalId,
String user,
String buildName)
Assign user to execute Test Case in Test Plan
|
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,
TestCaseStatus status,
TestImportance importance,
ExecutionType execution,
Integer order,
Integer internalId,
Boolean checkDuplicatedName,
ActionOnDuplicate actionOnDuplicatedName)
Creates a Test Case.
|
Map<String,Object> |
createTestCaseSteps(Integer testCaseId,
String testCaseExternalId,
Integer version,
TestCaseStepAction action,
List<TestCaseStep> testCaseSteps)
Create, Update or Push a list of TestCaseSteps in 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,
ActionOnDuplicate actionOnDuplicatedName)
Create a test suite.
|
void |
deleteExecution(Integer executionId)
Deletes an execution.
|
Map<String,Object> |
deleteTestCaseSteps(String testCaseExternalId,
Integer version,
List<TestCaseStep> testCaseSteps)
Delete a list if TestCaseSteps from a Test Case.
|
Boolean |
doesUserExist(String user)
Checks if the given user exists.
|
Object |
executeXmlRpcCall(String methodName,
Map<String,Object> executionData)
Executes a XML-RPC call.
|
Build[] |
getBuildsForTestPlan(Integer testPlanId)
Retrieves an Array of Builds for a given Test Plan.
|
String |
getDevKey() |
Map<String,Object> |
getExecCountersByBuild(Integer testPlanId)
Gets the exec counters by build.
|
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,
String testCaseExternalId,
Integer platformId,
String platformName,
Integer buildId,
String buildName,
Integer options)
Retrieves last execution result of a Test Case.
|
Build |
getLatestBuildForTestPlan(Integer testPlanId)
Retrieves the latest Build for a given Test Plan.
|
Platform[] |
getProjectPlatforms(Integer projectId)
Retrieves the platforms of a test project.
|
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 testCaseVersion,
Integer testCaseExternalId)
Return an array of attachments of a Test Case.
|
List<Integer> |
getTestCaseBugs(Integer testPlanId,
Integer testCaseId,
Integer testCaseExternalId,
Integer platformId,
String platformName,
Integer buildId,
String buildName)
Get bugs related to a test case.
|
TestCase |
getTestCaseByExternalId(String fullTestCaseExternalId,
Integer version)
Get a Test Case using the full external id, composed by the prefix and the external id: prefix-externalId
|
CustomField |
getTestCaseCustomFieldDesignValue(Integer testCaseId,
Integer testCaseExternalId,
Integer versionNumber,
Integer testProjectId,
String customFieldName,
ResponseDetails details)
Retrieves list of Custom Fields for a Test Case.
|
CustomField |
getTestCaseCustomFieldExecutionValue(Integer testCaseId,
Integer testCaseExternalId,
Integer versionNumber,
Integer executionId,
Integer testPlanID,
Integer testProjectId,
String customFieldName,
ResponseDetails details)
Gets the test case custom field value on test execution scope.
|
CustomField |
getTestCaseCustomFieldTestPlanDesignValue(Integer testCaseId,
Integer testCaseExternalId,
Integer versionNumber,
Integer testProjectId,
String customFieldName,
ResponseDetails details)
Gets the test case custom field value on test plan design scope.
|
Integer |
getTestCaseIDByName(String testCaseName,
String testSuiteName,
String testProjectName,
String testCasePathName)
Get a test case ID by a test case Name
|
List<String> |
getTestCaseKeywords(Integer testProjectId,
Integer testCaseId)
Gets list of keywords for a given Test case
|
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,
TestCaseDetails detail)
Retrieves Test Cases for Test Plans.
|
TestCase[] |
getTestCasesForTestSuite(Integer testSuiteId,
Boolean deep,
TestCaseDetails detail)
Retrieves Test Cases for a Test Suite.
|
TestPlan |
getTestPlanByName(String planName,
String projectName)
Retrieves a Test Plan by its name.
|
CustomField |
getTestPlanCustomFieldDesignValue(Integer testPlanId,
Integer testProjectId,
String customFieldName,
ResponseDetails details)
Gets the test plan custom field value
|
Platform[] |
getTestPlanPlatforms(Integer planId)
Retrieves Platforms of a Test Plan.
|
TestProject |
getTestProjectByName(String projectName)
Retrieves a Test Project by its name.
|
Attachment[] |
getTestSuiteAttachments(Integer testSuiteId)
Return an array of attachments of a Test Suite.
|
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)
Gets stats for test plan.
|
URL |
getUrl() |
User |
getUserByLogin(String login)
Get user by login.
|
org.apache.xmlrpc.client.XmlRpcClient |
getXmlRpcClient() |
String |
ping()
ping method is an alias for sayHello.
|
Map<String,Object> |
removePlatformFromTestPlan(Integer testProjectId,
Integer testPlanId,
String platformName)
Removes a platform from a test plan.
|
String |
repeat(String str)
Repeat the text.
|
ReportTCResultResponse |
reportTCResult(Integer testCaseId,
Integer testCaseExternalId,
Integer testPlanId,
ExecutionStatus status,
List<TestCaseStepResult> steps,
Integer buildId,
String buildName,
String notes,
Integer executionDuration,
Boolean guess,
String bugId,
Integer platformId,
String platformName,
Map<String,String> customFields,
Boolean overwrite,
String user,
String timestamp)
Reports a Test Case result.
|
String |
sayHello()
Says hello to the user.
|
ReportTCResultResponse |
setTestCaseExecutionResult(Integer testCaseId,
Integer testCaseExternalId,
Integer testPlanId,
ExecutionStatus status,
List<TestCaseStepResult> steps,
Integer buildId,
String buildName,
String notes,
Integer executionDuration,
Boolean guess,
String bugId,
Integer platformId,
String platformName,
Map<String,String> customFields,
Boolean overwrite,
String user,
String timestamp)
Reports a Test Case result.
|
Map<String,Object> |
setTestCaseExecutionType(Integer testProjectId,
Integer testCaseId,
Integer testCaseExternalId,
Integer versionNumber,
ExecutionType executionType)
Sets the test case execution type.
|
Boolean |
setTestMode(Boolean testMode)
Set the test mode.
|
String |
toString() |
Map<String,Object> |
updateBuildCustomFields(Integer buildId,
Integer testProjectId,
Integer testPlanId,
Map<String,String> customFields)
Update build custom fields.
|
Map<String,Object> |
updateTestCase(TestCase tc)
Update an already existing test case with the data of the given test case as a new version.
|
Map<String,Object> |
updateTestCaseCustomFieldDesignValue(Integer testCaseId,
Integer versionNumber,
Integer testProjectId,
String customFieldName,
String customFieldValue)
Update the value of an existing custom field for a Test Case
|
Attachment |
uploadAttachment(Integer fkId,
String fkTable,
String title,
String description,
String fileName,
String fileType,
String content)
Upload an attachment linking it to a DB table.
|
Attachment |
uploadExecutionAttachment(Integer executionId,
String title,
String description,
String fileName,
String fileType,
String content)
Upload an execution attachment.
|
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.
|
public TestLinkAPI(URL url, String devKey) throws TestLinkAPIException
Instantiates TestLink services. It also checks the devKey and throws a TestLinkAPIException if it is invalid.
url
- The URL to set.devKey
- The Developer Key to set.TestLinkAPIException
- if the service returns an errorpublic TestLinkAPI(URL url, String devKey, String proxyHost, int proxyPort) throws TestLinkAPIException
url
- The URL to set.devKey
- The Developer Key to set.proxyHost
- The IP address of the proxy serverproxyPort
- The proxy server portTestLinkAPIException
- if the service returns an errorpublic org.apache.xmlrpc.client.XmlRpcClient getXmlRpcClient()
public URL getUrl()
public String getDevKey()
public Boolean checkDevKey(String devKey) throws TestLinkAPIException
devKey
- Developer Key.true
if devKey is valid, false
otherwise.TestLinkAPIException
- if the service returns an errorpublic Boolean doesUserExist(String user) throws TestLinkAPIException
user
- user user nametrue
if the user exists, false
otherwise.TestLinkAPIException
- if the service returns an errorpublic User getUserByLogin(String login) throws TestLinkAPIException
login
- user loginTestLinkAPIException
- if the service returns an errorpublic String ping() throws TestLinkAPIException
TestLinkAPIException
- if the service returns an errorpublic String sayHello() throws TestLinkAPIException
TestLinkAPIException
- if the service returns an errorpublic String about() throws TestLinkAPIException
TestLinkAPIException
- if the service returns an errorpublic Boolean setTestMode(Boolean testMode) throws TestLinkAPIException
testMode
- test modeTestLinkAPIException
- if the service returns an errorpublic String repeat(String str) throws TestLinkAPIException
str
- textTestLinkAPIException
- if the service returns an errorpublic Attachment uploadAttachment(Integer fkId, String fkTable, String title, String description, String fileName, String fileType, String content) throws TestLinkAPIException
fkId
- FKfkTable
- FK table nametitle
- titledescription
- descriptionfileName
- file namefileType
- file typecontent
- contentTestLinkAPIException
- if the service returns an errorpublic String[] getFullPath(Integer nodeId) throws TestLinkAPIException
nodeId
- node IDTestLinkAPIException
- if the service returns an errorpublic Execution getLastExecutionResult(Integer testPlanId, Integer testCaseId, String testCaseExternalId, Integer platformId, String platformName, Integer buildId, String buildName, Integer options) throws TestLinkAPIException
testPlanId
- test plan IDtestCaseId
- test case IDtestCaseExternalId
- test case external IDplatformId
- platform IDplatformName
- platform namebuildId
- build IDbuildName
- build nameoptions
- array of optionsTestLinkAPIException
- if the service returns an errorpublic TestProject createTestProject(String testProjectName, String testProjectPrefix, String notes, Boolean enableRequirements, Boolean enableTestPriority, Boolean enableAutomation, Boolean enableInventory, Boolean isActive, Boolean isPublic) throws TestLinkAPIException
testProjectName
- test project nametestProjectPrefix
- test project prefixnotes
- notesenableRequirements
- flag to enable requirementsenableTestPriority
- flag to enable test priorityenableAutomation
- flag to enable automationenableInventory
- flag to enable inventoryisActive
- whether the project is active or notisPublic
- whether the project is public or notTestLinkAPIException
- if the service returns an errorpublic TestProject getTestProjectByName(String projectName) throws TestLinkAPIException
projectName
- Test Project name.TestLinkAPIException
- if the service returns an errorpublic Platform[] getProjectPlatforms(Integer projectId) throws TestLinkAPIException
projectId
- test project IDTestLinkAPIException
- if the service returns an error if an error occurs when retrieving the platformspublic TestProject[] getProjects() throws TestLinkAPIException
TestLinkAPIException
- if the service returns an errorpublic TestPlan[] getProjectTestPlans(Integer projectId) throws TestLinkAPIException
projectId
- Test Project IDTestLinkAPIException
- if the service returns an errorpublic Attachment uploadTestProjectAttachment(Integer testProjectId, String title, String description, String fileName, String fileType, String content) throws TestLinkAPIException
testProjectId
- test project ID test project IDtitle
- titledescription
- descriptionfileName
- file namefileType
- file typecontent
- contentTestLinkAPIException
- if the service returns an errorpublic 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
- whether the project is active or notisPublic
- whether the project is public or notTestLinkAPIException
- if the service returns an errorpublic TestPlan getTestPlanByName(String planName, String projectName) throws TestLinkAPIException
planName
- Test Plan name.projectName
- Test Project name.TestLinkAPIException
- if the service returns an errorpublic Platform[] getTestPlanPlatforms(Integer planId) throws TestLinkAPIException
planId
- Test Plan Id.TestLinkAPIException
- if the service returns an errorpublic Map<String,Object> getTotalsForTestPlan(Integer testPlanId) throws TestLinkAPIException
testPlanId
- test plan IDTestLinkAPIException
- if the service returns an errorpublic Map<String,Object> removePlatformFromTestPlan(Integer testProjectId, Integer testPlanId, String platformName) throws TestLinkAPIException
testProjectId
- test project ID test project IDtestPlanId
- test plan IDplatformName
- platform nameTestLinkAPIException
- if the service returns an errorpublic Map<String,Object> addPlatformToTestPlan(Integer testProjectId, Integer testPlanId, String platformName) throws TestLinkAPIException
testProjectId
- test project ID test project IDtestPlanId
- test plan IDplatformName
- platform nameTestLinkAPIException
- if the service returns an errorpublic Map<String,Object> updateBuildCustomFields(Integer buildId, Integer testProjectId, Integer testPlanId, Map<String,String> customFields) throws TestLinkAPIException
buildId
- Build IDtestProjectId
- Test Project IDtestPlanId
- test plan IDcustomFields
- Custom Fields name, value pairsTestLinkAPIException
- if the service returns as errorpublic Build createBuild(Integer testPlanId, String buildName, String buildNotes) throws TestLinkAPIException
testPlanId
- test plan IDbuildName
- build namebuildNotes
- build notesTestLinkAPIException
- if the service returns an errorpublic Build[] getBuildsForTestPlan(Integer testPlanId) throws TestLinkAPIException
testPlanId
- Test Plan ID.TestLinkAPIException
- if the service returns an errorpublic Build getLatestBuildForTestPlan(Integer testPlanId) throws TestLinkAPIException
testPlanId
- Test Plan ID.TestLinkAPIException
- if the service returns an errorpublic Map<String,Object> getExecCountersByBuild(Integer testPlanId)
testPlanId
- test plan IDpublic TestSuite createTestSuite(Integer testProjectId, String name, String details, Integer parentId, Integer order, Boolean checkDuplicatedName, ActionOnDuplicate actionOnDuplicatedName) throws TestLinkAPIException
testProjectId
- Test project IDname
- Test suite namedetails
- detailsparentId
- Parent IDorder
- ordercheckDuplicatedName
- whether to check for duplicated names or notactionOnDuplicatedName
- action when there is a duplicated nameTestSuite
TestLinkAPIException
- if it fails to create a test suitepublic TestSuite[] getTestSuiteByID(List<Integer> testSuiteIds) throws TestLinkAPIException
testSuiteIds
- List of Test Suite Ids.TestLinkAPIException
- if the service returns an errorpublic Attachment uploadTestSuiteAttachment(Integer testSuiteId, String title, String description, String fileName, String fileType, String content) throws TestLinkAPIException
testSuiteId
- test suite IDtitle
- titledescription
- descriptionfileName
- file namefileType
- file typecontent
- contentTestLinkAPIException
- if the service returns an errorpublic TestSuite[] getTestSuitesForTestPlan(Integer testPlanId) throws TestLinkAPIException
testPlanId
- test plan IDTestLinkAPIException
- if the service returns an errorpublic TestSuite[] getTestSuitesForTestSuite(Integer testSuiteId) throws TestLinkAPIException
testSuiteId
- test suite IDTestLinkAPIException
- if the service returns an errorpublic TestSuite[] getFirstLevelTestSuitesForTestProject(Integer testProjectId) throws TestLinkAPIException
testProjectId
- test project IDTestLinkAPIException
- if the service returns an errorpublic TestCase createTestCase(String testCaseName, Integer testSuiteId, Integer testProjectId, String authorLogin, String summary, List<TestCaseStep> steps, String preconditions, TestCaseStatus status, TestImportance importance, ExecutionType execution, Integer order, Integer internalId, Boolean checkDuplicatedName, ActionOnDuplicate actionOnDuplicatedName) throws TestLinkAPIException
testCaseName
- test case nametestSuiteId
- test suite IDtestProjectId
- test project IDauthorLogin
- author loginsummary
- summarysteps
- stepspreconditions
- preconditionsstatus
- statusimportance
- importanceexecution
- executionorder
- orderinternalId
- internal IDcheckDuplicatedName
- flag to check for duplicated nameactionOnDuplicatedName
- what to do when a duplicated name is foundTestLinkAPIException
- if the service returns an errorpublic Map<String,Object> updateTestCase(TestCase tc) throws TestLinkAPIException
tc
- new version of the test caseTestLinkAPIException
- if the service returns an error if updating the test case failspublic Map<String,Object> createTestCaseSteps(Integer testCaseId, String testCaseExternalId, Integer version, TestCaseStepAction action, List<TestCaseStep> testCaseSteps) throws TestLinkAPIException
testCaseId
- test case IDtestCaseExternalId
- test case external IDversion
- versionaction
- actiontestCaseSteps
- test case stepsTestLinkAPIException
- if the service returns an errorpublic Map<String,Object> deleteTestCaseSteps(String testCaseExternalId, Integer version, List<TestCaseStep> testCaseSteps) throws TestLinkAPIException
testCaseExternalId
- test case external IDversion
- versiontestCaseSteps
- test case stepsTestLinkAPIException
- if the service returns an errorpublic Integer addTestCaseToTestPlan(Integer testProjectId, Integer testPlanId, Integer testCaseId, Integer version, Integer platformId, Integer order, Integer urgency) throws TestLinkAPIException
testProjectId
- test project IDtestPlanId
- test plan IDtestCaseId
- test case IDversion
- versionplatformId
- platform IDorder
- orderurgency
- urgencyTestLinkAPIException
- if the service returns an errorpublic TestCase[] getTestCasesForTestSuite(Integer testSuiteId, Boolean deep, TestCaseDetails detail) throws TestLinkAPIException
testSuiteId
- test suite IDdeep
- flag for depthdetail
- test case details requestedTestLinkAPIException
- if the service returns an errorpublic TestCase getTestCase(Integer testCaseId, Integer testCaseExternalId, Integer version) throws TestLinkAPIException
testCaseId
- test case IDtestCaseExternalId
- test case external IDversion
- versionTestLinkAPIException
- if the service returns an errorpublic TestCase getTestCaseByExternalId(String fullTestCaseExternalId, Integer version) throws TestLinkAPIException
fullTestCaseExternalId
- Full external id: prefix-externalIdversion
- versionTestLinkAPIException
- if the service returns an errorpublic 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, TestCaseDetails detail) throws TestLinkAPIException
testPlanId
- test plan IDtestCasesIds
- test case ID'sbuildId
- build IDkeywordsIds
- keyword ID'skeywords
- keywordsexecuted
- flag for executed or notassignedTo
- assigneeexecuteStatus
- execution statusexecutionType
- execution typegetStepInfo
- test case step infodetail
- test case detailsTestLinkAPIException
- if the service returns an errorpublic Integer getTestCaseIDByName(String testCaseName, String testSuiteName, String testProjectName, String testCasePathName) throws TestLinkAPIException
testCaseName
- test case nametestSuiteName
- test suite nametestProjectName
- test project nametestCasePathName
- test case path nameTestLinkAPIException
- if the service returns an errorpublic Attachment uploadTestCaseAttachment(Integer testCaseId, String title, String description, String fileName, String fileType, String content) throws TestLinkAPIException
testCaseId
- test case IDtitle
- titledescription
- descriptionfileName
- file namefileType
- file typecontent
- contentTestLinkAPIException
- if the service returns an errorpublic Attachment[] getTestCaseAttachments(Integer testCaseId, Integer testCaseVersion, Integer testCaseExternalId) throws TestLinkAPIException
testCaseId
- test case IDtestCaseExternalId
- test case external IDtestCaseVersion
- test case versionTestLinkAPIException
- if the service returns an errorpublic Attachment[] getTestSuiteAttachments(Integer testSuiteId) throws TestLinkAPIException
testSuiteId
- test suite IDTestLinkAPIException
- if service return errorpublic Attachment uploadExecutionAttachment(Integer executionId, String title, String description, String fileName, String fileType, String content) throws TestLinkAPIException
executionId
- execution IDtitle
- titledescription
- descriptionfileName
- file namefileType
- file typecontent
- contentTestLinkAPIException
- if the service returns an errorpublic void deleteExecution(Integer executionId) throws TestLinkAPIException
executionId
- Execution Id.TestLinkAPIException
- if the service returns an errorpublic ReportTCResultResponse reportTCResult(Integer testCaseId, Integer testCaseExternalId, Integer testPlanId, ExecutionStatus status, List<TestCaseStepResult> steps, Integer buildId, String buildName, String notes, Integer executionDuration, Boolean guess, String bugId, Integer platformId, String platformName, Map<String,String> customFields, Boolean overwrite, String user, String timestamp) throws TestLinkAPIException
testCaseId
- test case IDtestCaseExternalId
- test case external IDtestPlanId
- test plan IDstatus
- statussteps
- test steps resultsbuildId
- build IDbuildName
- build namenotes
- notesexecutionDuration
- execution duration (minutes)guess
- flag to guess other parameters or notbugId
- bug IDplatformId
- platform IDplatformName
- platform namecustomFields
- custom fieldsoverwrite
- flag to overwrite or notuser
- if present checks if user is a valid logintimestamp
- format YYYY-MM-DD HH:MM:SS (e.g. 2015-05-22 12:15:45)TestLinkAPIException
- if the service returns an errorpublic ReportTCResultResponse setTestCaseExecutionResult(Integer testCaseId, Integer testCaseExternalId, Integer testPlanId, ExecutionStatus status, List<TestCaseStepResult> steps, Integer buildId, String buildName, String notes, Integer executionDuration, Boolean guess, String bugId, Integer platformId, String platformName, Map<String,String> customFields, Boolean overwrite, String user, String timestamp) throws TestLinkAPIException
testCaseId
- test case IDtestCaseExternalId
- test case external IDtestPlanId
- test plan IDstatus
- statussteps
- test steps resultsbuildId
- build IDbuildName
- build namenotes
- notesexecutionDuration
- execution duration (minutes)guess
- flag to guess other parameters or notbugId
- bug IDplatformId
- platform IDplatformName
- platform namecustomFields
- custom fieldsoverwrite
- flag to overwrite or notuser
- if present checks if user is a valid logintimestamp
- format YYYY-MM-DD HH:MM:SS (e.g. 2015-05-22 12:15:45)TestLinkAPIException
- if the service returns an errorpublic CustomField getTestCaseCustomFieldDesignValue(Integer testCaseId, Integer testCaseExternalId, Integer versionNumber, Integer testProjectId, String customFieldName, ResponseDetails details) throws TestLinkAPIException
testCaseId
- test case IDtestCaseExternalId
- test case external IDversionNumber
- version numbertestProjectId
- test project IDcustomFieldName
- custom field namedetails
- detailsTestLinkAPIException
- if the service returns an errorpublic CustomField getTestPlanCustomFieldDesignValue(Integer testPlanId, Integer testProjectId, String customFieldName, ResponseDetails details) throws TestLinkAPIException
testPlanId
- test plan IDtestProjectId
- test project IDcustomFieldName
- custom field namedetails
- detailsTestLinkAPIException
- if the service returns an errorpublic CustomField getTestCaseCustomFieldTestPlanDesignValue(Integer testCaseId, Integer testCaseExternalId, Integer versionNumber, Integer testProjectId, String customFieldName, ResponseDetails details) throws TestLinkAPIException
testCaseId
- test case IDtestCaseExternalId
- test case external IDversionNumber
- version numbertestProjectId
- test project IDcustomFieldName
- custom field namedetails
- detailsTestLinkAPIException
- if the service returns an errorpublic CustomField getTestCaseCustomFieldExecutionValue(Integer testCaseId, Integer testCaseExternalId, Integer versionNumber, Integer executionId, Integer testPlanID, Integer testProjectId, String customFieldName, ResponseDetails details) throws TestLinkAPIException
testCaseId
- test case IDtestCaseExternalId
- test case external IDversionNumber
- version numberexecutionId
- execution IDtestPlanID
- test plan IDtestProjectId
- test project IDcustomFieldName
- custom field namedetails
- detailsTestLinkAPIException
- if the service returns an errorpublic List<String> getTestCaseKeywords(Integer testProjectId, Integer testCaseId) throws TestLinkAPIException
testProjectId
- test project IDtestCaseId
- test case IDTestLinkAPIException
- if the service returns an errorpublic Map<String,Object> setTestCaseExecutionType(Integer testProjectId, Integer testCaseId, Integer testCaseExternalId, Integer versionNumber, ExecutionType executionType)
testProjectId
- test project IDtestCaseId
- test case IDtestCaseExternalId
- test case external IDversionNumber
- version numberexecutionType
- execution typepublic Map<String,Object> updateTestCaseCustomFieldDesignValue(Integer testCaseId, Integer versionNumber, Integer testProjectId, String customFieldName, String customFieldValue)
testCaseId
- test case IDversionNumber
- version numbertestProjectId
- test project IDcustomFieldName
- custom field namecustomFieldValue
- custom field valuepublic void assignTestCaseExecutionTask(Integer testPlanId, String testCaseExternalId, String user, String buildName) throws TestLinkAPIException
testPlanId
- test plan IDtestCaseExternalId
- test case external IDuser
- userbuildName
- build nameTestLinkAPIException
- if the service returns an errorpublic Attachment uploadRequirementSpecificationAttachment(Integer reqSpecId, String title, String description, String fileName, String fileType, String content) throws TestLinkAPIException
reqSpecId
- requirement specification IDtitle
- titledescription
- descriptionfileName
- file namefileType
- file typecontent
- contentTestLinkAPIException
- if the service returns an errorpublic Attachment uploadRequirementAttachment(Integer requirementId, String title, String description, String fileName, String fileType, String content) throws TestLinkAPIException
requirementId
- requirement IDtitle
- titledescription
- descriptionfileName
- file namefileType
- file typecontent
- contentTestLinkAPIException
- if the service returns an errorpublic void assignRequirements(Integer testCaseId, Integer testProjectId, List<Requirement> requirements) throws TestLinkAPIException
testCaseId
- test case IDtestProjectId
- test project IDrequirements
- list of requirementsTestLinkAPIException
- if the service returns an errorpublic Object executeXmlRpcCall(String methodName, Map<String,Object> executionData) throws org.apache.xmlrpc.XmlRpcException, TestLinkAPIException
methodName
- Name of the method.executionData
- Execution data map.org.apache.xmlrpc.XmlRpcException
- if the XML-RPC call is invalidTestLinkAPIException
- if the service returns an errorpublic Map<String,Object> addTestCaseKeywords(Map<String,List<String>> testCaseKeywordsMap)
testCaseKeywordsMap
- - Map of testcase externalId to list of keywordsTestLinkAPIException
- if the service returns an errorpublic List<Integer> getTestCaseBugs(Integer testPlanId, Integer testCaseId, Integer testCaseExternalId, Integer platformId, String platformName, Integer buildId, String buildName)
testPlanId
- test plan IDtestCaseId
- test case IDtestCaseExternalId
- test case external IDplatformId
- platform IDplatformName
- platform namebuildId
- build IDbuildName
- build nameCopyright © 2010–2020. All rights reserved.