使用apipost参数化和断言的时候,需要进行参数定位。 参数化的时候定位token
token在响应中的位置为response.json.data.token,我们用console.log打印token的值
如何定位包含在数组中的参数,定位name这个值
定位数组需要定位它是数组的第几个值从0开始,response.json.data.test[0].name,response.json.data.test[1].name
Apipost官方链接:https://console.apipost.cn/register?utm_source=10006
作者:清清青青 链接:https://juejin.cn/post/6943885042678497294 来源:稀土掘金 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。