While Controller not getting execute when use more than twice in Test Plan
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**Madan Singh** ([Bug 65583](https://bz.apache.org/bugzilla//show_bug.cgi?id=65583&redirect=false)):
Test Objective:Loop http sampler unless response contains a specified string "Success"
Problem Description:Using While controller and regular expression extractor to implement the test object but observed I can only use this logic only twice in my test plan.
When I use while controller with same logic 3rd time(for 3rd different sampler), it do not execute sampler even the condition is true and as a result my scripting is blocked, I cannot execute my test and really feeling low that JMeter doesn't support such simple functionality.
I am a JMeter user from last 10 yrs.
Please help here for immediate resolution.I have attached screenshot for the while controller block I am using.
While controller condition used is ${__javascript("${status}".indexOf("SUCCESS") == -1,)}
Created attachment [while_controller.JPG](https://apache.github.io/jmeter-bugzilla-attachments/83/65583/38038/while_controller.JPG): While Controller not getting execute when use more than twice in Test Plan
Severity: blocker
OS: All
Contributor guide
Research direction
Start by reproducing the Test Plan described in the issue: use three different samplers, While controllers, regular expression extractors, and the condition ${__javascript("${status}".indexOf("SUCCESS") == -1,)}. Inspect the attached while_controller.JPG for the reported setup. Done means the third While Controller executes its sampler when the condition remains true.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, javascript
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100