record more info about request and response, and display in report

This commit is contained in:
httprunner
2018-07-21 11:40:44 +08:00
parent 47b1fe2cd3
commit 8bdb05faf0
5 changed files with 100 additions and 97 deletions

View File

@@ -137,7 +137,7 @@ class TestHttpRunner(ApiServerUnittest):
summary = runner.summary
self.assertTrue(summary["success"])
self.assertEqual(summary["stat"]["testsRun"], 1)
self.assertEqual(summary["details"][0]["records"][0]["meta_data"]["response_body"]["data"], "abc")
self.assertEqual(summary["details"][0]["records"][0]["meta_data"]["response"]["json"]["data"], "abc")
def test_html_report_repsonse_image(self):
testset_path = "tests/httpbin/load_image.yml"