The Json output generated do not have status on Test
Thanks for this awesome tool .
When performing a test it is always nice to have a place where the test results , are stored
It would be nice have a section in json where status of test as is PASS , FAIL , SKIPPED along with reason is maintained !
Solution I'd like
The above test is actually a failed test . when run from the console we can see that it has thrown a red text as below .
✖ Testing getDummyData failed (1.234s)
[ Validation ] The JSON response value should have been janet.weaver@reqres but instead it was janet.weaver@reqres.in
But in the future when we go back and take a look at the json it does not provide an insight on if its a success / failed test case !
Example Output:
Showcasing only the desired section which can be appended to the existing json
Test result for each test
{
"content": {
"data": {
"id": 2,
"email": "janet.weaver@reqres.in",
"first_name": "Janet",
"last_name": "Weaver",
"avatar": "https://s3.amazonaws.com/uifaces/faces/twitter/josephstein/128.jpg"
}
},
"result":{
"status": "failed",
"reason": "The JSON response value should have been janet.weaver@reqres but instead it was janet.weaver@reqres.in"
}
}
Test summary at the end of a suite
below data is fictional !
The Json output generated do not have status on Test Thanks for this awesome tool . When performing a test it is always nice to have a place where the test results , are stored It would be nice have a section in json where status of test as is PASS , FAIL , SKIPPED along with reason is maintained !
Command used to execute the test
strest 0-sampleTest.strest.yml -n -s dummy_test.json
Output Json
Solution I'd like The above test is actually a failed test . when run from the console we can see that it has thrown a red text as below .
But in the future when we go back and take a look at the json it does not provide an insight on if its a success / failed test case !
Example Output: Showcasing only the desired section which can be appended to the existing json Test result for each test
Test summary at the end of a suite below data is fictional !