mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 16:07:45 +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)):
|
if isinstance(value, (dict, list)):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
teststep_dict["validate"].append(
|
teststep_dict["validate"].append({"eq": ["body.{}".format(key), value]})
|
||||||
{"eq": ["content.{}".format(key), value]}
|
|
||||||
)
|
|
||||||
|
|
||||||
def _prepare_teststep(self, entry_json):
|
def _prepare_teststep(self, entry_json):
|
||||||
""" extract info from entry dict and make teststep
|
""" extract info from entry dict and make teststep
|
||||||
|
|||||||
Reference in New Issue
Block a user