Below are the list of REST APIs we developed related to test case
Expand |
---|
title | Create New Test Case with Test Steps without Test Suite |
---|
|
/rest/testray/latest/public/testCase/create/createTestCase http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/create/createTestCase Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
|
Code Block |
---|
| {
"fields":
{
"project":
{"key": "TAT"},
"summary": "[API] Test Case 1 without Test Suite information",
"description": "This Test Case Is Created from REST API, [API] Test Case 1",
"issuetypeissueType":
{"name": "Test Case"}
},
"testcasestepstestCaseSteps":
[
{"step":"It is the first Test Step", "stepData": "It is Test Data for the first Test Step", "expectedResult":"It is the Expected Result for the first Test Step"},
{"step":"It is the second Test Step", "stepData": "It is Test Data for the second Test Step", "expectedResult":"It is the Expected Result for the second Test Step"}
]
} |
|
Expand |
---|
title | Create New Test Case with Test Steps with Test Suite |
---|
|
/rest/testray/latest/public/testSuite/createTestCase http://testray.goldfingerholdings.onl/rest/testray/latest/public/testSuite/createTestCase Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
|
Code Block |
---|
| {
"fields":
{
"project":
{"key": "TAT"},
"summary": "[API] Test Case 2 with Test Suite information",
"description": "This Test Case Is Created from REST API, [API] Test Case 1",
"issuetypeissueType":
{"name": "Test Case"}
},
"testCaseSteps":
[
{"step": "It is the first Test Step", "stepData": "It is Test Data for the first Test Step", "expectedResult": "It is the Expected Result for the first Test Step"},
{"step": "It is the second Test Step", "stepData": "It is Test Data for the second Test Step", "expectedResult": "It is the Expected Result for the second Test Step"},
{"step": "It is the third Test Step", "stepData": "It is Test Data for the third Test Step", "expectedResult": "It is the Expected Result for the third Test Step"}
],
"linkToTestSuite":
{
"testSuitePath": "TAT Test Suite 1/API Sub Suite 1/API Sub Suite 1-1",
"projectKey": "TAT"
}
} |
|
Expand |
---|
title | Add Test Steps to a Test Case |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/addSteps http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/addSteps Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
|
Code Block |
---|
| [
{ "step":"1st additional test step added via REST API",
"stepData": "1st additional test data added via REST API",
"expectedResult":"1st additional expected result added via REST API"
},
{ "step":"2nd additional test step added via REST API",
"stepData": "",
"expectedResult":"2nd additional expected result added via REST API"
}
] |
|
Expand |
---|
title | Get Test Steps from a Test Case |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/steps http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/steps Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
| NULL |
Expand |
---|
title | Update a Test Step from Test Case with Step ID |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/updateStep http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/updateStep Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
|
Code Block |
---|
| {
"ID":"112233",
"step":"Update Step XXX",
"stepData":"Update Test Data ZZZ",
"expectedResult":"Update Expected Result YYY"
} |
|
Expand |
---|
title | Update a Test Step from Test Case with Step sequenceNumber |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/updateStep http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/updateStep Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
|
Code Block |
---|
| {
"sequenceNumber":"3",
"step":"Step 3 Updated",
"stepData":"Test Data 3 Updated",
"expectedResult":"Expected Result 3 Updated"
} |
|
Expand |
---|
title | Delete a Test Step from Test Case with Step ID |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/deleteStep/{testStepID} http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/deleteStep/133242 Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
| NULL |
Expand |
---|
title | Create Ad Hoc Test Run from a Test Case |
---|
|
/rest/testray/latest/public/testRun/adhoc/create/{testCaseIssueKey} http://testray.goldfingerholdings.onl/rest/testray/latest/public/testRun/adhoc/create/TAT-1 Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
| NULL |
Expand |
---|
title | Get Ad Hoc Test Run Details from a Test Case |
---|
|
/rest/testray/latest/public/testRun/adhoc/getTestRuns/{testCaseIssueKey} http://testray.goldfingerholdings.onl/rest/testray/latest/public/testRun/adhoc/getTestRuns/TAT-1 Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
| NULL |
Expand |
---|
title | Get All Linked Requirements from a Test Case |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/linkedRequirements http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-110/linkedRequirements Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
| NULL |
Expand |
---|
title | Delete Requirement Associations from a Test Case |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/deleteLinkedRequirements http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-110/deleteLinkedRequirements Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
|
Code Block |
---|
| {
"requirementKeys":["TAT-100"]
} |
|
Expand |
---|
title | Get Defects Reported from a Test Case |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/getDefects http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-110/getDefects Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
| NULL |
Expand |
---|
title | Get Test Suite Information from a Test Case |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/linkedTestSuites http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-110/linkedTestSuites Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
| NULL |
Expand |
---|
title | Get Test Plan Information from a Test Case |
---|
|
/rest/testray/latest/public/testCase/{testCaseIssueKey}/linkedTestPlans http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-100/linkedTestPlans Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
| NULL |
Expand |
---|
title | Link a Test Case to a Test Suite |
---|
|
/rest/testray/latest/public/testSuite/linkTestCase http://testray.goldfingerholdings.onl/rest/testray/latest/public/testSuite/linkTestCase Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
|
Code Block |
---|
| {
"testCaseKeys": ["TAT-1", "TAT-2"],
"testSuitePath": "TAT Test Suite 1/API Sub Suite 1/API Sub Suite 1-1",
"projectKey": "TAT"
} |
|
Expand |
---|
title | Delete Test Suite Information from a Test Case |
---|
|
/rest/testray/latest/public/testSuite/{projectKey}/removeTestSuiteMember http://testray.goldfingerholdings.onl/rest/testray/latest/public/testSuite/TAT/removeTestSuiteMember Status |
---|
colour | Blue |
---|
title | REQUEST body |
---|
|
Code Block |
---|
| {
"testSuitePath": "TAT Test Suite 1/API Sub Suite 1/API Sub Suite 1-1",
"testCaseKeys": ["TAT-1", "TAT-2"]
} |
|