WebTestPropertiesValidationRulesContentValidation interface
内容验证属性的集合
属性
| content |
在 WebTest 的返回中查找的内容。 不得为 null 或为空。 |
| ignore |
设置后,此值会使 ContentMatch 验证大小写不区分大小写。 |
| pass |
如果为 true,则如果 ContentMatch 字符串匹配,则验证将传递。 如果为 false,则如果存在匹配项,验证将失败 |
属性详细信息
contentMatch
在 WebTest 的返回中查找的内容。 不得为 null 或为空。
contentMatch?: string
属性值
string
ignoreCase
设置后,此值会使 ContentMatch 验证大小写不区分大小写。
ignoreCase?: boolean
属性值
boolean
passIfTextFound
如果为 true,则如果 ContentMatch 字符串匹配,则验证将传递。 如果为 false,则如果存在匹配项,验证将失败
passIfTextFound?: boolean
属性值
boolean