作者你好,python版增加自定义断言、json参数可整体用变量替换、csv中定义用例名,麻烦看下这样实现合理不 #1727
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1.python版增加自定义断言,较复杂的响应结果校验用自定义断言,获取comparator的时候不是内置的断言函数则添加标识,make时根据标识生成不同的断言调用,执行断言的时候根据标识取出自定义方法;自定义断言方法需要是现在debugtalk中;
2.请求体json可以整体用变量替换,使用csv参数化的时候可以整个参数都放在了csv中;
3.使用csv文件参数化的时候增加自定义用例名,最后一列的名字(最后一列第一行)为ids时自动作为用例名,方便查看每组参数执行的什么场景;