0

I have searched for the solution to my problem throughout the web, but couldn't find any.

I need jmeter not to throw a response of an HTTP Request until it founds an specific text in response, because I have this request which takes so much time to respond and generate an specific text, but http request responds back immediately hence not find that specific text.

How to do it? should I use some kind of logic controller, which one and how?

As I am new to Jmeter so I need a proper guidance and solution to this problem.

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
Just_another_developer
  • 5,737
  • 12
  • 50
  • 83

1 Answers1

1

If what you want is wait for a page change that will display the expected text, then this might be the answer otherwise try to clarify:

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
  • I have seen that example and implemented, it works but somehow loop doesn't work properly ... I wrote this in condition "${_javaScript("${DONE}" != "Resolved and Downloaded";)}" .... even though DONE changes it's value from "NOTHING" to "Resolved and Downloaded" but loop never stops/quit. what did I do wrong? – Just_another_developer Dec 28 '12 at 11:19
  • I tried with ${__javaScript("${DONE}" != "Resolved and Downloaded")} and it works for me. Add a Debug Sampler to see if DONE variable exists and has the value you think it has – UBIK LOAD PACK Dec 28 '12 at 14:12
  • yes there is a debug sampler, that's how I am sure that "DONE" exists and Changes its value. – Just_another_developer Dec 30 '12 at 15:21
  • Did you try my syntax ?, in yours you have _javascript, in mine the are 2 underscore – UBIK LOAD PACK Dec 30 '12 at 15:26
  • I have asked it as a separate question, please check http://stackoverflow.com/questions/14069529/regular-expression-in-while-controller-jmeter/14070228#14070228 – Just_another_developer Dec 31 '12 at 05:17
  • I have upvoted your answer but unfortunately it didn't resolve the issue instead started throwing exceptions so I can't mark it accepted.But yes it helped a lot. Cheers! :) – Just_another_developer Dec 31 '12 at 11:50
  • 2
    I answered to you in the Bugzilla you opened https://issues.apache.org/bugzilla/show_bug.cgi?id=54362 . – UBIK LOAD PACK Dec 31 '12 at 13:01