On Fri, 03 Dec 2004 11:16:15 +1100, Kim Wan <[EMAIL PROTECTED]> wrote: > Hi all, > > I am setting up a testplan that executes reports by sending http > requests. Some of these requests take a few minutes to execute so I've > added a while loop and a cookie manager to continually access the state > of a query within any one session. The while loop checks the html being > returned - if the title is "Executing Query" (extracted from the server > response) then it continues until the correct title is returned (the > report has finished executing). > > This is the basic setup: > > Thread Group > HTTP Cookie Manager > Simple Controller > Http Request > Regular Expression (Reference name: Title; Regular > Expression: <title>(.*)</title>) > While Controller ("${title}" == "Executing Query")
This is not a valid condition. [I'm assuming you are using version 2.0.2. An earlier nightly build did assume the condition was javascript, but this is no longer the case - see the docs.] The while controller requires one of the following: - blank - LAST - function/variable > Http Request How is the value of the "title" variable going to get updated? > > The While loop seems to execute regardless however I've tried placing Yes, because it is not "false" > the same conditions in an If loop and it works fine. I've also tried The If controller assumes JavaScript. > placing "Executing Query" in a user defined variable (named > Executing_Query) but the behaviour is still the same. Even when placing > 2!=2 or "${Executing_Query}" != "${Executing_Query}", still the loop > executes! The title is being extracted correctly so I've run out of ideas. This is because the condition is not being evaluated as "false". > Am I going about this incorrectly? Yes, see above! > Any ideas would be much appreciated! It would be easier to set the condition to blank, and add an assertion for the nested HTTP Request that fails when the title is NOT "Executing Query" - i.e. move the Regex into the loop, and set the NOT checkbox. > Kim > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]