摘要: httprunner框架继承了requests库的优良特征,会自动管理cookie 如果B接口的请求头需要添加A接口返回的cookie,不用手动添加,调用A接口后,B接口的请求头中会自动添加 https://www.cnblogs.com/yoyoketang/p/12343714.html 阅读全文
posted @ 2021-08-31 16:06 mkay 阅读(319) 评论(0) 推荐(0)
摘要: 参考:https://www.jianshu.com/p/b0bad20ec015 例如把请求头中cookie内容删除 def headers_delete_cookie(request: dict): request["headers"]["Set-Cookie"] = "" request["h 阅读全文
posted @ 2021-08-31 15:52 mkay 阅读(387) 评论(0) 推荐(0)