Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Below are the list of REST APIs we developed related to test case

Expand
titleCreate New Test Case with Test Steps without Test Suite

Status
colourGreen
titlePOST
/rest/testray/latest/public/testCase/create/createTestCase

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/create/createTestCase

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{
  "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",
    "issuetype":
      {"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"}
  ]
}
Expand
titleCreate New Test Case with Test Steps with Test Suite

Status
colourGreen
titlePOST
/rest/testray/latest/public/testSuite/createTestCase

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testSuite/createTestCase

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{
  "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",
    "issuetype":
     {"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
titleAdd Test Steps to a Test Case

Status
colourGreen
titlePOST
/rest/testray/latest/public/testCase/{testCaseIssueKey}/addSteps

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/addSteps

Status
colourBlue
titleREQUEST body

Code Block
languagejson
[
    {   "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
titleGet Test Steps from a Test Case

Status
colourGreen
titleGET
/rest/testray/latest/public/testCase/{testCaseIssueKey}/steps

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/steps

Status
colourBlue
titleREQUEST body
NULL

Expand
titleUpdate a Test Step from Test Case with Step ID

Status
colourGreen
titlePut
/rest/testray/latest/public/testCase/{testCaseIssueKey}/updateStep

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/updateStep

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{
    "ID":"112233", 
    "step":"Update Step XXX", 
    "stepData":"Update Test Data ZZZ",
    "expectedResult":"Update Expected Result YYY" 
}
Expand
titleUpdate a Test Step from Test Case with Step sequenceNumber

Status
colourGreen
titlePut
/rest/testray/latest/public/testCase/{testCaseIssueKey}/updateStep

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/updateStep

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{ 
    "sequenceNumber":"3", 
    "step":"Step 3 Updated", 
    "stepData":"Test Data 3 Updated",
    "expectedResult":"Expected Result 3 Updated" 
}
Expand
titleDelete a Test Step from Test Case with Step ID

Status
colourGreen
titleDelete
/rest/testray/latest/public/testCase/{testCaseIssueKey}/deleteStep/{testStepID}

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-1/deleteStep/133242

Status
colourBlue
titleREQUEST body
NULL

Expand
titleCreate Ad Hoc Test Run from a Test Case

Status
colourGreen
titlePut
/rest/testray/latest/public/testRun/adhoc/create/{testCaseIssueKey}

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testRun/adhoc/create/TAT-1

Status
colourBlue
titleREQUEST body
NULL

Expand
titleGet Ad Hoc Test Run Details from a Test Case

Status
colourGreen
titleget
/rest/testray/latest/public/testRun/adhoc/getTestRuns/{testCaseIssueKey}

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testRun/adhoc/getTestRuns/TAT-1

Status
colourBlue
titleREQUEST body
NULL

Expand
titleGet All Linked Requirements from a Test Case

Status
colourGreen
titleget
/rest/testray/latest/public/testCase/{testCaseIssueKey}/linkedRequirements

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-110/linkedRequirements

Status
colourBlue
titleREQUEST body
NULL

Expand
titleDelete Requirement Associations from a Test Case

Status
colourGreen
titledelete
/rest/testray/latest/public/testCase/{testCaseIssueKey}/deleteLinkedRequirements

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-110/deleteLinkedRequirements

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{
    "requirementKeys":["TAT-100"]
}
Expand
titleGet Defects Reported from a Test Case

Status
colourGreen
titleget
/rest/testray/latest/public/testCase/{testCaseIssueKey}/getDefects

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-110/getDefects

Status
colourBlue
titleREQUEST body
NULL

Expand
titleGet Test Suite Information from a Test Case

Status
colourGreen
titleget
/rest/testray/latest/public/testCase/{testCaseIssueKey}/linkedTestSuites

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-110/linkedTestSuites

Status
colourBlue
titleREQUEST body
NULL

Expand
titleGet Test Plan Information from a Test Case

Status
colourGreen
titleget
/rest/testray/latest/public/testCase/{testCaseIssueKey}/linkedTestPlans

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testCase/TAT-100/linkedTestPlans

Status
colourBlue
titleREQUEST body
NULL

Expand
titleLink a Test Case to a Test Suite

Status
colourGreen
titlePOST
/rest/testray/latest/public/testSuite/linkTestCase

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testSuite/linkTestCase

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{
	"testCaseKeys": ["TAT-1", "TAT-2"],
	"testSuitePath": "TAT Test Suite 1/API Sub Suite 1/API Sub Suite 1-1",
	"projectKey": "TAT"
}
Expand
titleDelete Test Suite Information from a Test Case

Status
colourGreen
titledelete
/rest/testray/latest/public/testSuite/{projectKey}/removeTestSuiteMember

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testSuite/TAT/removeTestSuiteMember

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{
    "testSuitePath": "TAT Test Suite 1/API Sub Suite 1/API Sub Suite 1-1",
    "testCaseKeys": ["TAT-1", "TAT-2"]
}