是否有可能使用某些现有名称的请求明确发送请求? 在我的集合中,我们有一些请求,GetLatestElement(例如)。
有可能吗?
forceWebView
问候,
答案 0 :(得分:2)
postman.setNExtRequest(Requestname)
https://learning.postman.com/docs/running-collections/building-workflows/
使用
postman.setNextRequest(null)
阻止 postman collection runner 执行任何更多的请求。
您也可以使用:
pm.sendRequest(pm.request)
您可以将任何请求的 pm.request 存储到变量中 pm.variables.set("req",pm.request)
现在你可以执行它:
pm.sendRequest(pm.variables.get("req"))