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

Expand
titleAdd Test Cases to a Test Cycle

Status
colourGreen
titlePOST
/rest/testray/latest/public/testPlan/{testPlanIssueKey}/{testCycleName or testCycleID}/addMembers

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

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{
    "testSuitePaths": [],
    "testCaseAndPath": [
        {
            "testCaseKey": "TPB-1699",
            "suitePath": "20230116 Test Suite"
        },
        {
            "testCaseKey": "TPB-1704",
            "suitePath": "20230116 Test Suite/20230120 Sub Suite 1/120 Sub Suite 1-1"
        }
    ]
}

OR

{
    "testSuitePaths": ["20230214 Test Suite", "20230116 Test Suite/20230120 Sub Suite 1"],
    "testCaseAndPath": []
}
Expand
titleGet Test Case Members from Test Cycle by Cycle Name

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

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

Status
colourBlue
titleREQUEST body
NULL

Expand
titleGet Test Case Members from Test Runs in a Test CycleCycle by Cycle ID

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

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

Status
colourBlue
titleREQUEST body
NULL

Expand
titleGet Test Runs from a Test Cycle by Cycle Name

Status
colourGreen
titleget
/rest/testray/latest/public/testPlan/{testPlanIssueKey}/cycle/{testCycleIDtestCycleName}/testRunsByCycleIdtestRuns

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/cycle/600Cycle 10/testRunsByCycleIdtestRuns

Status
colourBlue
titleREQUEST body
NULL

Expand
titleTBDGet Test Runs in a Test Cycle by Cycle ID

Status
colourGreen
titlePOSTget
/rest/testray/latest/public/testPlan/{testPlanIssueKey}/addCyclecycle/{testCycleID}/testRuns

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

Status
colourBlue
titleREQUEST body
NULL

Expand
titleCreate Test Runs from a Test Cycle

Status
colourGreen
titlePOST
/rest/testray/latest/public/testRun/{testCycleID}/createTestRuns

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testRun/600/createTestRuns

Status
colourBlue
titleREQUEST body

Code Block
languagejson
[
    {
        "testCaseKey":"TPB-1745",
        "configurations":
        {
            "nameOS":"REST API Cycle 1"macOS",
            "DB":"MySQL"
        },
        "environmenturgency":"FirefoxHigh",
        "buildassigneeId":"v9.0",5f115539e5efc1001bbd5051"
    },
    {
        "plannedStartDatetestCaseKey":"2021-10-10TPB-1745",
        "configurations":
        {
            "OS":"macOS",
            "DB":"OracleDB"
        },
        "urgency":"Low",
    "plannedEndDate":"2025-11-11"    "assigneeId":"5f115539e5efc1001bbd5051"
    }

]
Expand
titleDelete Test Runs from a Test Cycle

Status
colourGreen
titledelete
/rest/testray/latest/public/testRun/delete

Status
colourYellow
titleSAMPLE
http://testray.goldfingerholdings.onl/rest/testray/latest/public/testRun/delete

Status
colourBlue
titleREQUEST body

Code Block
languagejson
{
    "testCycleId": 600, 
    "testRunIds": [60000, 60001]
}