0

JMeter Test Plan and Response

With OpenSubmission failing on assertion and JMeterThread.last_sample_ok=false, why is child to If Controller (HTTP request PostDocument) executing?

  • are they real tests? – Yu Zhang Jul 26 '16 at 22:11
2

Because you have the Debug Sampler between failing sampler and the If Controller. Debug Sampler is successful in the absolute majority of cases, and it generates a result and overwrites ${JMeterThread.last_sample_ok} variable.

So

  1. Disable or remove the Debug Sampler which is before the If Controller. If you need debugging information - consider adding Debug PostProcessor as child of the "OpenSubmission" request
  2. Make sure you use ${JMeterThread.last_sample_ok} as If Controller condition.

Demo:

Debug Sampler Overwrite last result

See How to Use JMeter's 'IF' Controller and Get Pie guide for comprehensive information on conditionally executing JMeter Samplers using If Controller.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.