Test Cycle Resource
- Cheney Ma
Below are the list of REST APIs we developed related to 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 /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 /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
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"
}
]
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