Scm Activity Test Case Management
Demo
REST API’s
Get List of Jobs / Test Cases:
GET http://localhost:8080/rest/scmactivity/1.0/changeset/jobs/list
curl -u username -XGET \
http://localhost:8080/rest/scmactivity/1.0/changeset/jobs/list?issueKey=DT-1
Create or update Jobs / Test Cases:
GET http://localhost:8080/rest/scmactivity/1.0/changeset/job
% curl -u username -XPOST -H "Content-Type: application/json" --data '{"issueKey":"DT-1",
"jobName":"Test Case #2","jobStatus":"failure","jobLink":"https://localhost",
"jobDescription":"org.checkerframework:checker-qual:jar:3.12.0 already exists."}'
http://localhost:8080/rest/scmactivity/1.0/changeset/job
{"id":2,"message":"Updated Job ID #2"}
%
Schema fields:
{
"issueKey": {
"type": "string"
},
"jobId": {
"type": "string"
},
"jobName": { //Unique
"type": "string"
},
"jobStatus": {
"type": "string"
},
"jobLink": {
"type": "string"
},
"jobDescription": {
"type": "string"
},
"notifyEmail": {
"type": "boolean"
},
"notifyAs": {
"type": "string"
}
}
Delete Jobs / Test Cases:
DELETE http://localhost:8080/rest/scmactivity/1.0/changeset/remove/job?issueKey={issueKey}&jobId={jobId}
DELETE http://localhost:8080/rest/scmactivity/1.0/changeset/remove/jobs?issueKey={issueKey}