Skip to main content
Skip table of contents

Test Cycle Resource

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

Add Test Cases to a Test Cycle

POST /rest/testray/latest/public/testPlan/{testPlanIssueKey}/{testCycleName or testCycleID}/addMembers

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

REQUEST BODY

JSON
{
    "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": []
}
Get Test Case Members from Test Cycle by Cycle Name

GET /rest/testray/latest/public/testPlan/{testPlanIssueKey}/{testCycleName}/members

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

REQUEST BODY NULL

Get Test Case Members from Test Cycle by Cycle ID

GET /rest/testray/latest/public/testPlan/{testPlanIssueKey}/{testCycleID}/members

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

REQUEST BODY NULL

Create Test Runs from a Test Cycle

POST /rest/testray/latest/public/testRun/{testCycleID}/createTestRuns

SAMPLE http://testray.goldfingerholdings.onl/rest/testray/latest/public/testRun/600/createTestRuns

REQUEST BODY

JSON
[
    {
        "testCaseKey":"TPB-1745",
        "configurations":
        {
            "OS":"macOS",
            "DB":"MySQL"
        },
        "urgency":"High",
        "assigneeId":"5f115539e5efc1001bbd5051"
    },
    {
        "testCaseKey":"TPB-1745",
        "configurations":
        {
            "OS":"macOS",
            "DB":"OracleDB"
        },
        "urgency":"Low",
        "assigneeId":"5f115539e5efc1001bbd5051"
    }

]
Get Test Runs from a Test Cycle by Cycle Name

GET /rest/testray/latest/public/testPlan/{testPlanIssueKey}/cycle/{testCycleName}/testRuns

SAMPLE http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/cycle/Cycle 10/testRuns

REQUEST BODY NULL

Get Test Runs in a Test Cycle by Cycle ID

GET /rest/testray/latest/public/testPlan/{testPlanIssueKey}/cycle/{testCycleID}/testRuns

SAMPLE http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/cycle/600/testRuns

REQUEST BODY NULL

Delete Test Runs from a Test Cycle

DELETE /rest/testray/latest/public/testRun/delete

SAMPLE http://testray.goldfingerholdings.onl/rest/testray/latest/public/testRun/delete

REQUEST BODY

JSON
{
    "testCycleId": 600, 
    "testRunIds": [60000, 60001]
}
Get Defects Reported from a Test Cycle

GET /rest/testray/latest/public/testPlan/{testPlanIssueKey}/cycle/{testCycleID}/defects

SAMPLE http://testray.goldfingerholdings.onl/rest/testray/latest/public/testPlan/TAT-200/cycle/600/defects

REQUEST BODY NULL

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.