你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebTestPropertiesValidationRulesContentValidation interface

内容验证属性的集合

属性

contentMatch

在 WebTest 的返回中查找的内容。 不得为 null 或为空。

ignoreCase

设置后,此值会使 ContentMatch 验证大小写不区分大小写。

passIfTextFound

如果为 true,则如果 ContentMatch 字符串匹配,则验证将传递。 如果为 false,则如果存在匹配项,验证将失败

属性详细信息

contentMatch

在 WebTest 的返回中查找的内容。 不得为 null 或为空。

contentMatch?: string

属性值

string

ignoreCase

设置后,此值会使 ContentMatch 验证大小写不区分大小写。

ignoreCase?: boolean

属性值

boolean

passIfTextFound

如果为 true,则如果 ContentMatch 字符串匹配,则验证将传递。 如果为 false,则如果存在匹配项,验证将失败

passIfTextFound?: boolean

属性值

boolean