Dear JMeter Users:
Is there a way to test the number of matches extracted by a Regular Expression
Extractor element?
The following code works. Unfortunately, it ALWAYS works. I used a regular expression
tester to make sure that the target string occurs 4 times in the HTTP response text.
If I understand the manual, when the condition in the If Controller evaluates to
false, the test plan should stop. So specifying the wrong number of matches in the
condition should stop the test plan. But it does not.
HTTP Request
Regular Expression Extractor element
Reference Name: Matches
Regular Expression: string
Template: $1$
Match No: 1
Default Value: NoMatches
If Controller element
Condition: Matches_matchNr == 4
Sincerely yours,
Kyle