Bug 65129

Summary: Foreach logic controller cannot understand two or more input variable prefixes
Product: JMeter - Now in Github Reporter: YU <254465833>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEEDINFO ---    
Severity: normal    
Priority: P2    
Version: 5.4   
Target Milestone: JMETER 5.4.1   
Hardware: PC   
OS: All   
Attachments: 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
Simple workaround

Description YU 2021-02-08 02:44:01 UTC
Created attachment 37730 [details]
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

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.
Comment 1 Mohamed Ibrahim 2022-05-09 22:51:10 UTC
Hello,

I guess, that is not necessary and would not be an ideal way to proceed with the scripting.

If your intention is to map the variable's ordinal - Then you can achieve it using pre-processor 

I have attached a workaround - Have a look and revert
Comment 2 Mohamed Ibrahim 2022-05-09 22:56:03 UTC
Created attachment 38281 [details]
Simple workaround
Comment 3 The ASF infrastructure team 2022-09-24 20:38:21 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5497