foreach controller not working correctly with variables

寵の児 提交于 2019-12-11 00:32:46

问题


Im trying to loop over my user defined variables and add them to cookie manager.

Here is how I set it up:

But when I look at the results it only takes the FIRST var and uses that for ALL of the loops. So HTTP Cookie Manager is only replacing the first var.

This behavior is unexpected, have I set something up wrong? I added the debug sampler and I can see the vars are changing but for some reason http cookie manager is not replacing them


回答1:


You need to define variable:

cookie_matchNr set to 3

See:

  • http://jmeter.apache.org/usermanual/component_reference.html#Regular_Expression_Extractor


来源:https://stackoverflow.com/questions/46732290/foreach-controller-not-working-correctly-with-variables

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!