Description
As system, I can obtain and update the assignee and the executedby of a Test Run using the REST API.
PUT /rest/raven/1.0/api/testrun/{id}/
Example Request
curl -H "Content-Type: application/json" -X PUT -u admin:admin --data @example.json http://yourserver / rest/raven/1.0/api/testrun/1
example.json
{
"status": "FAIL",
"comment": "new comment",
"assignee": "john",
"executedby": "rambo",
"defects": {
"add": [
"test-114",
"test-115",
"test-116"
]
},
"evidences": {
"add": [{
"filename": "test1.txt",
"contentType": "plain/text",
"data": "(base64 encoding...)"
}, {
"filename": "test2.txt",
"contentType": "plain/text",
"data": "(base64 encoding...)"
}],
"remove": ["254", "443"]
},
"examples": [{
"id": "1379",
"status": "TODO"
}]
}
GET /rest/raven/1.0/api/testrun/{id}/assignee
Example Request
curl -H "Content-Type: application/json" -X GET -u admin:admin http://yourserver/rest/raven/1.0/api/testrun/3/assignee
PUT /rest/raven/1.0/api/testrun/{id}/assignee
Example Request
curl -H "Content-Type: application/json" -X PUT -u admin:admin http://yourserver/rest/raven/1.0/api/testrun/3/assignee?user=admin
GET /rest/raven/1.0/api/testrun/{id}/executedBy
Example Request
curl -H "Content-Type: application/json" -X GET -u admin:admin http://yourserver/rest/raven/1.0/api/testrun/3/executedBy
PUT /rest/raven/1.0/api/testrun/{id}/executedBy
Example Request
curl -H "Content-Type: application/json" -X PUT -u admin:admin http://yourserver/rest/raven/1.0/api/testrun/3/executedBy?user=admin