jmeter-登录cookie问题

Posted winging

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jmeter-登录cookie问题相关的知识,希望对你有一定的参考价值。

1、首先需要了解错误的原因,先打开jmeter的log查看

技术分享图片

2、查找到日志后,具体定位问题

3、如果是地址跨domain的问题,可以查看http-cookie manager的帮助日志,可以找到答案

JMeter checks that received cookies are valid for the URL. This means that cross-domain cookies are not stored. If you have bugged behaviour or want Cross-Domain cookies to be used, define the JMeter property "CookieManager.check.cookies=false".

具体操作,在user property下,加上CookieManager.check.cookies=false即可

 

以上是关于jmeter-登录cookie问题的主要内容,如果未能解决你的问题,请参考以下文章

Jmeter请求之cookie处理方式(十六)

JMeter提取登录的Cookie

jmeter如何设置登录接口只调用一次以及遇到的问题:cookie参数放在消息头headers里面?

jmeter怎样自动获取cookie

Jmeter引用cookies进行登录实战

错误解决——使用jmeter录制登录脚本,可以运行,但登录失败,提示no cookies,或{“code“:302,“msg“:“请先登录!“}