httprunner断⾔
httprunner 断⾔, 在源码 parser.py 中可以查看:
断⾔断⾔说明
"eq", "equals", "==", "is""实际结果"和"期望结果"相等
"lt", "less_than""实际结果"⼩于"期望结果"
"le", "less_than_or_equals""实际结果"⼩于等于"期望结果"
"gt", "greater_than""实际结果"⼤于"期望结果"
"ge", "greater_than_or_equals""实际结果"⼤于等于"期望结果"
"ne", "not_equals""实际结果"和"期望结果"不相等
"str_eq", "string_equals"转义字符串后对⽐,"实际结果"和"期望结果"相
等
"len_eq", "length_equals", "count_eq"字符串或list长度,"实际结果"和"期望结果"相等
"len_gt", "count_gt", "length_greater_than",
"实际结果的长度"⼤于"期望结果"
"count_greater_than"
"len_ge", "count_ge", "length_greater_than_or_equals",
"实际结果的长度"⼤于等于"期望结果" "count_greater_than_or_equals"
"len_lt", "count_lt", "length_less_than", "count_less_than""实际结果的长度"⼩于"期望结果"
"len_le", "count_le", "length_less_than_or_equals",
"实际结果的长度"⼩于等于"期望结果" "count_less_than_or_equals"
equals不等于提取变量说明
em validate(.*)TOC em使⽤正则提取变量
content.data.name使⽤json提取变量
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论