酒馆文档展示了如何use an external function to perform custom validation on an entire response:
response:
status_code: 200
verify_response_with:
function: testing_utils:message_says_hello
还有一些内置的type validators来验证响应的特定字段的类型是否正确:
response:
body:
date: !anystr
如何定义一个自定义函数来验证响应头或响应体中的单个值?你知道吗
一些用例:
目前没有回答
相关问题 更多 >
编程相关推荐