Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml文件提取变量中有-符号时,执行用例会jmespath会报错 #1742

Closed
annewwang opened this issue Apr 17, 2024 · 2 comments
Closed
Labels
pending pending for confirmation

Comments

@annewwang
Copy link

问题描述

yaml文件提取变量中有-符号,执行用例会jmespath会报错

extract:
  cookie: headers.Set-Cookie

image

版本信息

版本信息:

  • 操作系统类型:Windows
  • Python 版本:3.7
  • HttpRunner 版本 :4.3.5

项目文件内容(非必须)

@annewwang annewwang added the pending pending for confirmation label Apr 17, 2024
@dragonleeee
Copy link

这不是bug,看文档 有说的,带"-"要加引号,像这样 headers.“Set-Cookie”

@annewwang
Copy link
Author

谢谢大家,修改了写法,已解决:

cookie: headers.\"Set-Cookie\"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending pending for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants