[英]JMETER -- want to call response (response data -- body) to body data of other HTTP request)
Hi I am new to JMETER and not sure what could be the possible solution for my query.嗨,我是 JMETER 的新手,不确定我的查询可能的解决方案是什么。
I have a scenario from my application which我的应用程序中有一个场景
I have recorded script for this using Blazemeter.我已经使用 Blazemeter 为此录制了脚本。
Now when execute the script, the API call for new invoice always generates a new and unique invoice (as I can see from listener - View result tree) but when it tries to save, it fails with error Duplicate invoice number , which is as expected.现在,当执行脚本时,新发票的 API 调用总是生成一个新的唯一发票(正如我从侦听器 - 查看结果树中看到的那样)但是当它尝试保存时,它失败并出现错误Duplicate invoice number ,这是预期的.
If I replace the new body data's invoice number with new unique number (142), it saves the new invoice successfully in application but same script will fail again as body data have 142 and that invoice number was being created already.如果我用新的唯一编号 (142) 替换新正文数据的发票编号,它会在应用程序中成功保存新发票,但相同的脚本将再次失败,因为正文数据有 142 并且已经创建了该发票编号。
Any solution / comments to this problem will be appreciated.对此问题的任何解决方案/评论将不胜感激。
Your question is not clear enough so I can provide only generic piece of advice: parameterize these invoice numbers using suitable JMeter Functions您的问题不够清楚,所以我只能提供一般性建议:使用合适的 JMeter 函数参数化这些发票编号
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.