Skip to content

Commit

Permalink
Merge pull request #120
Browse files Browse the repository at this point in the history
feat(httprunner): add extractors log
  • Loading branch information
lihuacai168 authored Sep 23, 2023
2 parents 44abe47 + 6e0385c commit f1b044d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httprunner/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ def extract_response(self, extractors, context):
logger.info("start to extract from response object.")
extracted_variables_mapping = OrderedDict()
extract_binds_order_dict = utils.convert_mappinglist_to_orderdict(extractors)

logger.info("extractors: %s" , extract_binds_order_dict)
for key, field in extract_binds_order_dict.items():
if '$' in field:
field = context.eval_content(field)
extracted_variables_mapping[key] = self.extract_field(field)

logger.info("extract finish, extracted_variables_mapping: %s" , extracted_variables_mapping)
return extracted_variables_mapping

0 comments on commit f1b044d

Please sign in to comment.