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

feat: 指定 response 的提取方式到变量 #1028

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xtulnx
Copy link

@xtulnx xtulnx commented Jul 8, 2022

  • json: json 结构,
  • xml: xml结构包括 html,使用 xpath,如 @username = {{h.response.body.#xml.//*[@id="username"]/@value}}
  • js: 所有文本类型,如 @role = {{h.response.body.#js.new RegExp('角色:([^< ]+)').exec(body)[1]}}
  • regex: 纯正则匹配提取,待实现
  • hex: 二进制数据提取,待实现

* json: json 结构,
* xml: xml结构包括 html,使用 xpath,如 @username = {{h.response.body.#xml.//*[@id="username"]/@value}}
* js: 所有文本类型,如 @ROLE = {{h.response.body.#js.new RegExp('角色:([^< ]+)').exec(body)[1]}}
* regex: 纯正则匹配提取,待实现
* hex: 二进制数据提取,待实现
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant