【发布时间】:2019-01-11 15:31:38
【问题描述】:
通过 Postman 中的 Interceptor 可以调用 API 并从 响应正文 获取 Cookie。
通过这种方式做到的:https://www.linkedin.com/pulse/how-read-cookie-value-postman-request-chaining-ishan-girdhar-oscp
但如果我尝试从 Newman 命令行实现相同的功能,它会给我一个错误,因为 CI 中没有涉及拦截器(POSTMAN + JENKINS)
尝试通过此链接,但没有多大帮助:https://github.com/postmanlabs/newman/issues/242
请建议我在运行 Newman 时读取 cookie 的方法!
非常感谢!
【问题讨论】:
标签: javascript jenkins postman newman