How to use two regular expression variable values with match count -1 in ForEach controller.
JMeter version: 3.1
Scenario: Questions List page>Each question has unique ID> Need to click each question on the list page and the HTTP request takes two parameters - QuestionID and Title
For this scenario I could achieve for one parameter (title) by using ForEach controller with regular expression match count set to -1.
When I have another RegExp for QuestionID with match count set to -1, how to use in the same ForEach controller since it takes only one input variable and puts that in one output variable. Below is the current test plan structure.
JMeter TestPlan structure:
The HTTP request looks like:
POST https://test.com:xx/test
POST BODY:
mode=pr&questionId=454&Title=abcde
Here I have to put/get questionId and Title variable values, each title will have unique questionId.
ThreadGroup
--Req1 --Req2
---RegEx (title): with Match No. -1 (Debug Sampler shows match count: 4) `---RegEx (QuestionID): with MAtch No. -1 (Debug sampler shows match count: 2)
Loop Controller
---ForEach Controller (for title input variable)
----HTTP req using ForEach controller's output variable
Run the test> it is able to successfully iterate through title variable values however how to use QuestionID variable also in ForEach controller so that the HTTP request can have both RegExp variables.
Please guide.