【问题标题】:JMeter - JSON path regex issueJMeter - JSON 路径正则表达式问题
【发布时间】:2017-01-13 08:43:47
【问题描述】:

请帮助我调查为什么 JSON 路径表达式出现错误,而“jsconquerytool”网站上的相同表达式一切正常。

https://i.stack.imgur.com/J0qpA.png

https://i.stack.imgur.com/qk2OT.png

【问题讨论】:

    标签: json regex jmeter


    【解决方案1】:

    您在 JMeter 中的表达式缺少点:

    • 在 jsonquerytool 你有:

      $.attachments[?(@.name="attachment for delete")].id
      
    • 在 JMeter 中你有

      $.attachments[?(@name='attachment for delete')].id
                       ^ here the dot is missing
      

    所以如果你纠正了这个错字,一切都应该按预期开始。

    参考,以防万一:

    【讨论】:

      猜你喜欢
      • 2020-11-26
      • 2018-01-23
      • 1970-01-01
      • 1970-01-01
      • 2021-12-06
      • 1970-01-01
      • 2019-11-13
      • 2018-03-01
      相关资源
      最近更新 更多