Robot Framework 接口测试
一个POST的查询请求,WEB点击查询,Fiddler抓包如下https://testerhome.com/uploads/photo/2018/86998ea7-79b7-4416-afab-e77c3be5c7b5.png!large
https://testerhome.com/uploads/photo/2018/fb284266-7b69-498b-aea2-2e7e59cc9aea.png!large
其中,plateno、starttime、endtime、region是必须的,其他都是可选的我写的脚本如下,参数都是直接从fiddler直接拷贝的:
https://testerhome.com/uploads/photo/2018/38e84fe6-7de8-49e6-9ade-63e3223222b9.png!large
为什么运行失败呢?返回值:
message=未知异常JSON parse error: Cannot deserialize instance of java.util.ArrayList out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.util.ArrayList out of START_OBJECT token
at Source: (PushbackInputStream); line: 1, column: 112
还是内容的问题 JSON解析错误,好好检查下内容
JSON解析错误 json错误
页:
[1]