mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
fix: convert testcase validator, content => body
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user