Open ChillarAnand opened 7 years ago
Here is a sample log
DEBUG:Initial Test Result, based on expected response code: False Must include 'user' and 'token' parameters with request. [('date', 'Wed, 11 Jan 2017 09:53:08 GMT'), ('server', 'WSGIServer/0.2 CPython/3.5.2'), ('vary', 'Accept-Language, Cookie'), ('content-language', 'en'), ('content-type', 'text/html; charset=utf-8'), ('x-frame-options', 'SAMEORIGIN')] DEBUG:{"response_headers": [["date", "Wed, 11 Jan 2017 09:53:08 GMT"], ["server", "WSGIServer/0.2 CPython/3.5.2"], ["vary", "Accept-Language, Cookie"], ["content-language", "en"], ["content-type", "text/html; charset=utf-8"], ["x-frame-options", "SAMEORIGIN"]], "failures": [{"message": "Invalid HTTP response code: response code 403 not in expected codes [[200]]", "details": null, "validator": null, "failure_type": "Invalid HTTP Response Code"}], "body": "b\"Must include 'user' and 'token' parameters with request.\"", "test": {"_url": "http://localhost:8000/api/projects", "_headers": {}, "templated": {}, "expected_status": [200], "templates": null, "name": "List all projects", "_body": "user=8&token=4im-0148ba2f6b30e931bc34"}, "response_code": 403, "passed": false} ERROR:Test Failed: List all projects URL=http://localhost:8000/api/projects Group=Default HTTP Status Code: 403 ERROR:Test Failure, failure type: Invalid HTTP Response Code, Reason: Invalid HTTP response code: response code 403 not in expected codes [[200]] Test Group Default FAILED: : 1/2 Tests Passed!
This is impossible to read. Can you please provide an option to pretty print?
Here is a sample log
This is impossible to read. Can you please provide an option to pretty print?