标签:处理器 case ble 前置 处理 requests rip 使用 sts
postman 参数化:
前置处理器(Pre-requestScriptest):
postman.setGlobalVariable("key","value");
body中使用:"{{key}}"
后置处理器:
如果是标准接口返回的json
可以在后置处理器(Tests)中添加:
jsonData = JSON.parse(responseBody);
postman.setGlobalVariable("caseId", jsonData.data.caseId);
postman.setGlobalVariable("userId", jsonData.data.userId);
标签:处理器 case ble 前置 处理 requests rip 使用 sts
原文地址:https://www.cnblogs.com/wangzhiqiang004/p/12787615.html