Bug 65129 - Foreach logic controller cannot understand two or more input variable prefixes
Summary: Foreach logic controller cannot understand two or more input variable prefixes
Status: NEEDINFO
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.4
Hardware: PC All
: P2 normal (vote)
Target Milestone: JMETER 5.4.1
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-08 02:44 UTC by YU
Modified: 2022-05-09 22:56 UTC (History)
0 users



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 (8.54 KB, application/xml)
2021-02-08 02:44 UTC, YU
Details
Simple workaround (9.28 KB, application/xml)
2022-05-09 22:56 UTC, Mohamed Ibrahim
Details

Note You need to log in before you can comment on or make changes to this bug.
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