我测试中的第一个 Jmeter 断言需要我没有定义的额外字符。如何使我的结果准确?
the first Jmeter assertion in my test expects extra characters I did not define. How to make my results accurate?
我正在循环访问聊天机器人的 .csv 输入文件,并使用 Response Assertion 验证他们的响应。
第一行给我这条消息,失败
Assertion error: false
Assertion failure: true
Assertion failure message: Test failed: text expected to contain /The intent is
EntityWhat/
我不知道是什么导致它需要这些额外的字符。它们根本不在响应中,也不在我的断言中。紧接着的一行通过了断言。两个响应都包含文本 The intent is EntityWhat
有没有其他人遇到过这个奇怪的故障?
您的 CSV 文件包含 BOM,这在大多数文本编辑器中是不可见的,但在 JMeter 中是不可见的。你需要以某种方式replace/remove这个角色
我正在循环访问聊天机器人的 .csv 输入文件,并使用 Response Assertion 验证他们的响应。
第一行给我这条消息,失败
Assertion error: false
Assertion failure: true
Assertion failure message: Test failed: text expected to contain /The intent is
EntityWhat/
我不知道是什么导致它需要这些额外的字符。它们根本不在响应中,也不在我的断言中。紧接着的一行通过了断言。两个响应都包含文本 The intent is EntityWhat
有没有其他人遇到过这个奇怪的故障?
您的 CSV 文件包含 BOM,这在大多数文本编辑器中是不可见的,但在 JMeter 中是不可见的。你需要以某种方式replace/remove这个角色