RUN /testcases/:id
Run test case
Request header
Name |
Type |
Required or Optional |
Description |
Token |
String |
Required |
Authentication credentials Token |
Request parameters
Name |
Type |
Required or Optional |
Description |
runID |
int |
Optional |
Test request ID, and the default value is 0. It is used to identify the test case to be executed in the test request. |
version |
int |
Optional |
Test case version. The default is the latest version of the test case. |
Request body
Name |
Type |
Required or Optional |
Description |
steps |
array |
Required |
The result and description of the test case. The result can be "n/a|fail|blocked|pass" |
Request example
{
"steps":
[
{"result":"n/a","real":"Ignore"},
{"result":"fail","real":"Fail"},
{"result":"blocked","real":"Blocked"},
{"result":"pass","real":"Successful"}
]
}
Request response
Name |
Type |
Required or Optional |
Description |
message |
string |
Required |
Failure message. Empty array will be returned if successful. |