foreach控制器无法正确使用变量 [英] foreach controller not working correctly with variables

查看:404
本文介绍了foreach控制器无法正确使用变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试遍历用户定义的变量,并将其添加到Cookie管理器中.

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

这是我的设置方式:

但是当我查看结果时,它只使用FIRST变量,并将其用于所有循环.因此,HTTP Cookie Manager仅替换第一个变量.

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.

此行为是意外的,我设置错误了吗?我添加了调试采样器,可以看到vars正在更改,但是由于某些原因,http cookie管理器没有替换它们

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

推荐答案

您需要定义变量:

cookie_matchNr设置为3

cookie_matchNr set to 3

请参阅:

这篇关于foreach控制器无法正确使用变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆