Import results - Results API
If enabled, the WMAS Test Runner can import results exported by any arbitrary other instance.
Upload results and create a new, finished session
POST /api/results/import
If successful, the server responds with the token of the imported session:
{
"token": "String"
}
However, if an error occured, the server responds the error message:
{
"error": "String"
}
Upload a results json file and overwrite results of a specific API.
POST /api/results/<session_token>/<api_name>/json
{
"results": [
{
"test": "String",
"status": "Enum['OK', 'ERROR', 'TIMEOUT', 'NOT_RUN']",
"message": "String",
"subtests": [
{
"name": "String",
"status": "Enum['PASS', 'FAIL', 'TIMEOUT', 'NOT_RUN']",
"message": "String"
}
]
}
]
}
If successful, the server responds with status code 200.