使用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=10006https://console.apipost.cn/register?utm_source=10006
作者:清清青青 链接:juejin.cn/post/694388…
来源:稀土掘金 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。