美文网首页
接口测试--apipost参数定位

接口测试--apipost参数定位

作者: 木卯小台 | 来源:发表于2021-03-26 16:16 被阅读0次

使用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://www.haomeiwen.com/subject/zzojhltx.html