From 85f02c763fd7137f3c908c4ed7b6d59abb0ec1bc Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sun, 17 May 2020 09:56:11 +0800 Subject: [PATCH] fix: convert testcase validator, content => body --- httprunner/ext/har2case/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/httprunner/ext/har2case/core.py b/httprunner/ext/har2case/core.py index 51864d6e..779e6499 100644 --- a/httprunner/ext/har2case/core.py +++ b/httprunner/ext/har2case/core.py @@ -261,9 +261,7 @@ class HarParser(object): if isinstance(value, (dict, list)): continue - teststep_dict["validate"].append( - {"eq": ["content.{}".format(key), value]} - ) + teststep_dict["validate"].append({"eq": ["body.{}".format(key), value]}) def _prepare_teststep(self, entry_json): """ extract info from entry dict and make teststep