Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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

{
    "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

 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

 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

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

]
 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

{
    "testCycleId": 600, 
    "testRunIds": [60000, 60001]
}
  • No labels