|
LR测试websservice接口
测试一个保存的接口
但是给值是一个拼接的字符串,函数的格式如下。在SOAPUI中测试通过
{"jsessionId":"23232323","reservePeriod":"A","reserveResult":"CT_IN","remark":"已预约","operate":"","userId":"1000141","userName":"232","reserveDate":"2014-04-18","orderId":"2222"}
但是在LR中不识别这样的拼接串,lr自动转换为:
{\"jsessionId\":\"22\",\"reservePeriod\":\"A\",\"reserveResult\":\"CT_IN\",\"remark\":\"已预约\",\"operate\":\"\",\"userId\":\"33\",\"userName\":\"XX\",\"reserveDate\":\"2014-04-15\",\"orderId\":\"333\"}",
可是回放的时候还是报错,哪位大侠帮忙看看,lr中的{}是定义的参数,但是拼接串的格式是带{},我是不是要先定义一个常量,再把常量赋给lr中的接口值 |
|