postman 使用笔记

添加共享cookie方法之一:设置变量

在login接口中,tests块,实现如下代码:

cookies = pm.response.headers.get(“set-cookie”)pm.environment.set(“LOCAL_COOKIE”, cookies);

在使用接口中设置headers

cookies 设置values {{LOCAL_COOKIE}}

You May Also Like

About the Author: daidai5771

发表评论

电子邮件地址不会被公开。 必填项已用*标注