【问题标题】:How to get Extract specific *token* value from a long html contect in json response in JMeter如何从 JMeter 的 json 响应中的长 html 内容中提取特定的 *token* 值
【发布时间】:2021-02-15 21:29:13
【问题描述】:

标签: json jmeter


【解决方案1】:

最简单的方法是 Boundary Extractor 提供:

  • token= 作为左边界
  • & 作为右边界

如果您想使用Regular Expression Extractor,以下正则表达式将为您解决问题:

token=(.+?)&

更多信息:The Boundary Extractor vs. the Regular Expression Extractor in JMeter

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-28
    • 2022-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多