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 plan.

Expand
titleAdd a Test Cycle to a Test Plan

Status
colourGreen
titlePOST
/rest/testray/latest/public/testPlan/{testPlanIssueKey}/addCycle

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/addCycle

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{
    "name":"REST API Cycle 1",
    "environment":"Firefox",
    "build":"v9.0",
    "plannedStartDate":"2021-10-10",
    "plannedEndDate":"2025-11-11"
}
Expand
titleGet Test Cycles from a Test Plan

Status
colourGreen
titleget
/rest/testray/latest/public/testPlan/{testPlanIssueKey}/cycles

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/cycles

Status
colourBlue
titleREQUEST body
NULL

Expand
titleUpdate Test Cycle Status

Status
colourGreen
titlePut
/rest/testray/latest/public/testPlan/{testPlanIssueKey}/cycle/{cycleName}/wf/{action}

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/cycle/Cycle 1/wf/Start

Info

If there is no test run created from ‘Assign Configurations’ option, please use following to start test cycle with ‘No Configuration’ assigned for test runs:

http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/cycle/Cycle 1/wf/Start?forceStart=true

Status
colourBlue
titleREQUEST body
NULL

Status
colourPurple
titleactions

  • Start

  • Complete

  • Abort

  • Resume

Expand
titleDelete a Test Cycle from a Test Plan by Cycle ID

Status
colourGreen
titledelete
/rest/testray/latest/public/testPlan/{testPlanIssueKey}/deleteCycleById

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/deleteCycleById

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{ 
    "id": "1000"
}
Expand
titleGet Defects Reported from a Test Plan

Status
colourGreen
titleget
/rest/testray/latest/public/testPlan/{testPlanIssueKey}/defects

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/defects

Status
colourBlue
titleREQUEST body
NULL

...