在JMeter的Response Assertion中在断言字符串的开头和结尾添加/ [英] Adding / at the start and end of the asserted string in Response Assertion in JMeter

查看:428
本文介绍了在JMeter的Response Assertion中在断言字符串的开头和结尾添加/的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

声明给定值:

操作":"GET/api/invoice_status",描述":"[NO_AUTH]获得 发票状态"

"action":"GET /api/invoice_status","description":"[NO_AUTH] get invoice statuses"

断言失败消息:

测试失败:文本应包含/"action":"GET /api/invoice_status,"说明:" [NO_AUTH]获取发票状态"/

Test failed: text expected to contain /"action":"GET /api/invoice_status","description":"[NO_AUTH] get invoice statuses"/

推荐答案

通过使用\正斜杠转义字符来获得解决方案.

Got the solution by using the \ forward slash escape character.

这篇关于在JMeter的Response Assertion中在断言字符串的开头和结尾添加/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆