【发布时间】:2013-05-11 23:36:11
【问题描述】:
我正在尝试在需要您先登录的网站中进行简单的负载测试。
我阅读了有关 cookie 管理器的 jmeter 文档,并且看起来只要我在 cookie 管理器是 sessionID 的同一线程组中发出所有请求,在 http 请求之间共享但不是我的情况。
我的简单结构是:
Thread Group
HTTP Cookie Manager
HTTP Requests Defaults
Simple Controller
http request // POST method to authenticate in the site (this works fine, I get a session id)
http request // GET method (this one should use the same session id from the previous http requests but I get a new one instead)
我在 firefox 中使用 firebug 做了同样的网页流程来查看请求/响应,并且会话 id 是相同的,服务器没有发送新的,所以看起来 cookie 管理器没有保持相同的会话 id并将其用于所有请求。
有人能指出我正确的方向吗?我做错了什么?
【问题讨论】:
标签: jmeter jsessionid cookiemanager