【发布时间】:2017-05-08 14:02:24
【问题描述】:
我正在尝试对包含特殊字符的响应执行响应消息断言。
我看过这个问题:
Adding / at the start and end of the asserted string in Response Assertion in JMeter
但是当它包含特殊字符时,我仍然无法让它与断言匹配。我已经尝试过文本响应/包含、子字符串和响应消息/包含、子字符串,但它们都不匹配。
我要测试的模式是:
“v1.Accounts.Accounts.UpdateAccount 由于验证错误而失败:[MobileNumber]字段MobileNumber必须是字符串或数组类型,最大长度为'20'。”
【问题讨论】:
-
你能发布你的断言模式吗?
标签: jmeter assertions