![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
测试脚本
文章平均质量分 86
Jorah_Bronn
精耕细作
展开
-
【robotframework】部分问题及解决思路总结(截止2018.03)
1.某接口脚本没通过,报错信息如下: Keyword ‘AutoTestLib_Common.Create Dict’ expected 3 non-keyword arguments, got 0.;methodName方法名,常量:deviceFingerPrint?? 原因: Source文件下的User Keyword文件,忘记写入前三个固定参数,因此报错。 ...原创 2018-03-02 21:16:06 · 2777 阅读 · 0 评论 -
接口测试断言,用python解析格式不规范的Json中的指定value
说一下背景:最近有新的接口需要做测试,在做断言校验返回结果的时候,需要校验返回的Json里嵌套的Value,常规操作是使用python提供的.load()直接解析即可,但此处遇到的Json存在嵌套,且将嵌套的Json存为Str,导致解析之前必须重新处理才能继续解析。上代码// An highlighted block def GetKeyInStr(self,dictionary, cmdK...原创 2018-09-20 20:56:46 · 1859 阅读 · 0 评论