仪表;控制foreach嵌套
Jmeter; control foreach nested
是否可以在Jmeter中嵌套2个foreach控件?
我想做这样的事情:
Set variables 1 (with 5 variables)
Foreach (from 1 to 5)
Set variables 2 (with 3 variables)
Foreach (from 1 to 3)
HTTP petition, with 2 parameters (1 from setvariables 1 and another from setvariables2)
我期望的结果是 15 个 HTTP 请求。
我现在得到的结果只有 3 个 HTTP petitios(只有第一个值 o Setvariable 1)。
有可能。
我有像
这样的变量
A_1 = a
A_2 = b
A_3 = c
A_4 = d
A_5 = e
&
B_1 = 1
B_2 = 2
B_3 = 3
B_4 = 4
B_5 = 5
变量 A 的外部 for loop
和内部循环用于 B。
对于每个 'A',我都按照下面给出的方式执行所有 B。
CSV Data Set Config
也可以。
在我的博客中详细查看。
http://www.testautomationguru.com/jmeter-looping-2-csv-files/
是否可以在Jmeter中嵌套2个foreach控件?
我想做这样的事情:
Set variables 1 (with 5 variables)
Foreach (from 1 to 5)
Set variables 2 (with 3 variables)
Foreach (from 1 to 3)
HTTP petition, with 2 parameters (1 from setvariables 1 and another from setvariables2)
我期望的结果是 15 个 HTTP 请求。
我现在得到的结果只有 3 个 HTTP petitios(只有第一个值 o Setvariable 1)。
有可能。
我有像
这样的变量A_1 = a
A_2 = b
A_3 = c
A_4 = d
A_5 = e
&
B_1 = 1
B_2 = 2
B_3 = 3
B_4 = 4
B_5 = 5
变量 A 的外部 for loop
和内部循环用于 B。
对于每个 'A',我都按照下面给出的方式执行所有 B。
CSV Data Set Config
也可以。
在我的博客中详细查看。
http://www.testautomationguru.com/jmeter-looping-2-csv-files/