apache / apache/jmeter

Foreach logic controller cannot understand two or more input variable prefixes

Open
#5,497 2 comments 0 reactions 0 assignees View on GitHub
need info os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**YU** ([Bug 65129](https://bz.apache.org/bugzilla//show_bug.cgi?id=65129&redirect=false)):
When I use two extractors to extract 'title' and 'id', and set the "Match NO" value to -1, I get two array objects title and id at this time, and I want to use the forEach controller to process them in a loop These two arrays;
When the title_1 element is processed, the id_1 element can also be processed, and when title_2 is processed, the id_2 element can also be located, but the forEach controller can only recognize one input variable;
Because title and id appear in pairs, I need to process title according to title, but forEach cannot pass more than one input variable.

Created attachment [bug.jmx](https://apache.github.io/jmeter-bugzilla-attachments/29/65129/37730/bug.jmx): I visit https://www.catalog.update.microsoft.com/home.aspx , query all the information of kb4474419, and decide whether to process ID according to the title
bug.jmx

````xml




false
true
false







false

saveConfig


true
true
true
true
true
true
true
true
false
true
true
false
false
false
true
false
false
false
true
0
true
true
true
true
true
true






continue

false
1

1
1
false


true






false
KB4474419
=
true
q



www.catalog.update.microsoft.com



/Search.aspx
GET
true
false
true
false






title
td.resultsbottomBorder a


false
-1




false
id
<a id='
_link

false
-1




title,id
CurrentTitle,CurrentId
true
0,0
${title_matchNr},${id_matchNr}






www.qq.com




GET
true
false
true
false








````

Severity: normal
OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.