即使清除了cookie,所有迭代的响应数据也相同 [英] Same response data for all iterations even though cookie is cleared
问题描述
我在Jmeter中的测试结构 线程组(2个用户)
My Test structure in Jmeter Thread group (2 users)
- Http请求
- 监听器
对于每次迭代,相同的form_key值都会得到响应,但不应如此. 如何在每次迭代中获得唯一的form_key Jmeter测试结果屏幕截图
For each iteration same form_key values are getting in response which should not be. How to get unique form_key in response for each iteration Jmeter Test result screenshot
推荐答案
我无法使用在线 http://demo-acm-2.bird.eu/customer/account/login/
I cannot reproduce your issue using one of the online Magento demo instances, in particular this one: http://demo-acm-2.bird.eu/customer/account/login/
如您所见,每次迭代的每个用户每次form_key
都不相同.
As you can see, each time form_key
is different for each user for each iteration.
如果您使用的是 HTTP Cookie管理器-确保选中每次迭代清除Cookie"盒
If you're using HTTP Cookie Manager - make sure to tick "Clear cookies each iteration" box
还要确保正确设置 HTTP请求采样器将http
或https
放入协议",将服务器名称或IP放入相关字段,路径等.
Also make sure to properly setup the HTTP Request sampler, to wit put http
or https
into "Protocol", server name or IP to the relevant field, path, etc.
这篇关于即使清除了cookie,所有迭代的响应数据也相同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!