You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by hoffm11 <ho...@gmail.com> on 2009/08/12 14:59:30 UTC

Wait for Text to show up before moving on

Is there a way in jmeter to say..

Wait for Assertion X to display on the screen before moving to the next
request in the script?
-- 
View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by hoffm11 <ho...@gmail.com>.

ok.  I have a page that has wait_spin.gif in the body.  Once the page is
done processing, wait_spin.gif goes away and the result set is returned.

In my while loop, I have

While (condition:  ${match})
- HTTP Request
-- RegEx Extractor
----reference name:  match
----reg Ex:  (wait_spin\.gif)
----Template:  $1$
----Match No. 1
----default value:  NO VALUE

Evethough wait_spin.gif doesn't show up it still stays in the while loop.

What the heck am I not doing right?  



sebb-2-2 wrote:
> 
> On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>
>>  Um, I am confused why this isn't valid?  I thought you can just specify
>> the
>>  variable in the condition?
> 
> Of course, but the condition has to evaluate to "false" in order to
> exit the loop.
> See the documentation.
> 
>>  I expect it to exit the while loop once the text "Total Number Returned"
>> is
>>  return and then continue on with the rest of the script.  The
>> application
>>  uses a lot of ajax stuff and this is the only why I can get this to
>> work.
>>
>>  Can you give me an example on how this can be done and what I am doing
>>  incorrect?
>>
>>
>>
>>
>>  sebb-2-2 wrote:
>>  >
>>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>  >>
>>  >>  Alright here is what I have.
>>  >>
>>  >>  While Controller  (Condition..  ${match}
>>  >
>>  > That is not a valid condition, see:
>>  >
>>  >
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>>  >
>>  >>  - Regex Expression
>>  >>   -  Ref Name:  match
>>  >>   -  Reg Ex:  Total Number Returned
>>  >>   - Template:  $1$
>>  >>   -  Match No.  1
>>  >>   -  Default value:  NO VALUE
>>  >>
>>  >>  - HTTP Request (this page will have a hourglass and then post "Total
>>  >> Number
>>  >>  Returned" when done)
>>  >>   -  show.page
>>  >>
>>  >>  This does not work for me.
>>  >>
>>  >
>>  > In what way does it not work?
>>  > What happens?
>>  > What did you expect to happen?
>>  >
>>  >>
>>  >>  sebb-2-2 wrote:
>>  >>  >
>>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>  >>  >>
>>  >>  >>  Is there a way in jmeter to say..
>>  >>  >>
>>  >>  >>  Wait for Assertion X to display on the screen before moving to
>> the
>>  >> next
>>  >>  >>  request in the script?
>>  >>  >
>>  >>  > How does a browser do this?
>>  >>  >
>>  >>  > You need to create a While loop with the appropriate sampler and
>>  >>  > Post-Processor.
>>  >>  >
>>  >>  >> --
>>  >>  >>  View this message in context:
>>  >>  >>
>>  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>>  >>  >>  Sent from the JMeter - User mailing list archive at Nabble.com.
>>  >>  >>
>>  >>  >>
>>  >>  >>
>>  >> ---------------------------------------------------------------------
>>  >>  >>  To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  >>  For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>>  >>  >>
>>  >>  >>
>>  >>  >
>>  >>  >
>> ---------------------------------------------------------------------
>>  >>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  > For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>>  >>  >
>>  >>  >
>>  >>  >
>>  >>
>>  >>
>>  >> --
>>  >>  View this message in context:
>>  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>>  >>
>>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>>  >>
>>  >>
>>  >> 
>> ---------------------------------------------------------------------
>>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >>
>>  >>
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >
>>  >
>>  >
>>
>>  --
>>
>> View this message in context:
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
>>
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 



-- 
View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941175.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by Deepak Shetty <sh...@gmail.com>.
hi
Again you need to check this first from the browser . You need to know
exactly what the browser is doing. If it's ajax then you dont need this
loop. You would simply make the ajax call as a separate request and when
this request returns, is when the process is done ...
So either do a view source in the browser and check the code or use
LiveHttpheaders and get a request log and see it or post either of these to
this list

regards
deepak

On Wed, Aug 12, 2009 at 12:47 PM, hoffm11 <ho...@gmail.com> wrote:

>
> I believe it is ajax.
>
> It just keeps refreshing the page and never give me the results.
>
>
> Deepak Shetty wrote:
> >
> > yes but theres no way to do that in this case other than checking that
> the
> > value doesn't begin with a '$' right? (because undefined variables would
> > resolve as ${var} ) , in which case the condition doesnt read well...
> > so
> > while
> >    ${__javaScript("${match}".substring(0,1) =="$" ||
> > "${match}"=="wait_spin.gif")}
> > Is there any other way?
> >
> > I prefer the readability of an explicit initialisation
> > regards
> > deepak
> >
> >
> > On Wed, Aug 12, 2009 at 11:15 AM, sebb <se...@gmail.com> wrote:
> >
> >> On 12/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
> >> > also I suppose you need to initalise the value of ${match}
> >>
> >> Not necessary, so long as it is not "false".
> >>
> >> >  OR have your condition as
> >> >  ${__javaScript("${match}" != "wait_spin.gif")}
> >> >  so that the initial value is irrelevant
> >> >
> >> >  One question.. how does the browser do this ? does it continuously
> >> refresh
> >> >  (in which case your test is correct) or does it wait for the response
> >> of
> >> an
> >> >  AJAX call (in which case you probably shouldnt implement your test in
> >> this
> >> >  way)
> >> >
> >> >  regards
> >> >
> >> > deepak
> >> >
> >> >
> >> >  On Wed, Aug 12, 2009 at 10:31 AM, sebb <se...@gmail.com> wrote:
> >> >
> >> >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >> >  > >
> >> >  > >
> >> >  > >  ok.  I have a page that has wait_spin.gif in the body.  Once the
> >> page is
> >> >  > >  done processing, wait_spin.gif goes away and the result set is
> >> returned.
> >> >  > >
> >> >  > >  In my while loop, I have
> >> >  > >
> >> >  > >  While (condition:  ${match})
> >> >  > >  - HTTP Request
> >> >  > >  -- RegEx Extractor
> >> >  > >  ----reference name:  match
> >> >  > >  ----reg Ex:  (wait_spin\.gif)
> >> >  > >
> >> >  > > ----Template:  $1$
> >> >  > >  ----Match No. 1
> >> >  > >
> >> >  > > ----default value:  NO VALUE
> >> >  > >
> >> >  > >  Evethough wait_spin.gif doesn't show up it still stays in the
> >> while
> >> >  > loop.
> >> >  > >
> >> >  > >  What the heck am I not doing right?
> >> >  > >
> >> >  >
> >> >  > As I wrote already, the While Controller condition needs to
> evaluate
> >> >  > to "false" in order to exit the loop.
> >> >  >
> >> >  > As far as I can tell, ${match} will be equal to "NO VALUE" or
> >> >  > "wait_spin.gif".
> >> >  >
> >> >  > Neither of these is the same as "false".
> >> >  >
> >> >  > >
> >> >  > >
> >> >  > > sebb-2-2 wrote:
> >> >  > >  >
> >> >  > >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >> >  > >  >>
> >> >  > >  >>  Um, I am confused why this isn't valid?  I thought you can
> >> just
> >> >  > specify
> >> >  > >  >> the
> >> >  > >  >>  variable in the condition?
> >> >  > >  >
> >> >  > >  > Of course, but the condition has to evaluate to "false" in
> >> order
> >> to
> >> >  > >  > exit the loop.
> >> >  > >  > See the documentation.
> >> >  > >  >
> >> >  > >  >>  I expect it to exit the while loop once the text "Total
> >> Number
> >> >  > Returned"
> >> >  > >  >> is
> >> >  > >  >>  return and then continue on with the rest of the script.
>  The
> >> >  > >  >> application
> >> >  > >  >>  uses a lot of ajax stuff and this is the only why I can get
> >> this to
> >> >  > >  >> work.
> >> >  > >  >>
> >> >  > >  >>  Can you give me an example on how this can be done and what
> I
> >> am
> >> >  > doing
> >> >  > >  >>  incorrect?
> >> >  > >  >>
> >> >  > >  >>
> >> >  > >  >>
> >> >  > >  >>
> >> >  > >  >>  sebb-2-2 wrote:
> >> >  > >  >>  >
> >> >  > >  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >> >  > >  >>  >>
> >> >  > >  >>  >>  Alright here is what I have.
> >> >  > >  >>  >>
> >> >  > >  >>  >>  While Controller  (Condition..  ${match}
> >> >  > >  >>  >
> >> >  > >  >>  > That is not a valid condition, see:
> >> >  > >  >>  >
> >> >  > >  >>  >
> >> >  > >  >>
> >> >  >
> >>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
> >> >  > >  >>  >
> >> >  > >  >>  >>  - Regex Expression
> >> >  > >  >>  >>   -  Ref Name:  match
> >> >  > >  >>  >>   -  Reg Ex:  Total Number Returned
> >> >  > >  >>  >>   - Template:  $1$
> >> >  > >  >>  >>   -  Match No.  1
> >> >  > >  >>  >>   -  Default value:  NO VALUE
> >> >  > >  >>  >>
> >> >  > >  >>  >>  - HTTP Request (this page will have a hourglass and then
> >> post
> >> >  > "Total
> >> >  > >  >>  >> Number
> >> >  > >  >>  >>  Returned" when done)
> >> >  > >  >>  >>   -  show.page
> >> >  > >  >>  >>
> >> >  > >  >>  >>  This does not work for me.
> >> >  > >  >>  >>
> >> >  > >  >>  >
> >> >  > >  >>  > In what way does it not work?
> >> >  > >  >>  > What happens?
> >> >  > >  >>  > What did you expect to happen?
> >> >  > >  >>  >
> >> >  > >  >>  >>
> >> >  > >  >>  >>  sebb-2-2 wrote:
> >> >  > >  >>  >>  >
> >> >  > >  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >> >  > >  >>  >>  >>
> >> >  > >  >>  >>  >>  Is there a way in jmeter to say..
> >> >  > >  >>  >>  >>
> >> >  > >  >>  >>  >>  Wait for Assertion X to display on the screen before
> >> moving
> >> >  > to
> >> >  > >  >> the
> >> >  > >  >>  >> next
> >> >  > >  >>  >>  >>  request in the script?
> >> >  > >  >>  >>  >
> >> >  > >  >>  >>  > How does a browser do this?
> >> >  > >  >>  >>  >
> >> >  > >  >>  >>  > You need to create a While loop with the appropriate
> >> sampler
> >> >  > and
> >> >  > >  >>  >>  > Post-Processor.
> >> >  > >  >>  >>  >
> >> >  > >  >>  >>  >> --
> >> >  > >  >>  >>  >>  View this message in context:
> >> >  > >  >>  >>  >>
> >> >  > >  >>  >>
> >> >  > >  >>
> >> >  >
> >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
> >> >  > >  >>  >>  >>  Sent from the JMeter - User mailing list archive at
> >> >  > Nabble.com.
> >> >  > >  >>  >>  >>
> >> >  > >  >>  >>  >>
> >> >  > >  >>  >>  >>
> >> >  > >  >>  >>
> >> >  >
> >> ---------------------------------------------------------------------
> >> >  > >  >>  >>  >>  To unsubscribe, e-mail:
> >> >  > >  >> jmeter-user-unsubscribe@jakarta.apache.org
> >> >  > >  >>  >>  >>  For additional commands, e-mail:
> >> >  > >  >> jmeter-user-help@jakarta.apache.org
> >> >  > >  >>  >>  >>
> >> >  > >  >>  >>  >>
> >> >  > >  >>  >>  >
> >> >  > >  >>  >>  >
> >> >  > >  >>
> >> ---------------------------------------------------------------------
> >> >  > >  >>  >>  > To unsubscribe, e-mail:
> >> >  > jmeter-user-unsubscribe@jakarta.apache.org
> >> >  > >  >>  >>  > For additional commands, e-mail:
> >> >  > >  >> jmeter-user-help@jakarta.apache.org
> >> >  > >  >>  >>  >
> >> >  > >  >>  >>  >
> >> >  > >  >>  >>  >
> >> >  > >  >>  >>
> >> >  > >  >>  >>
> >> >  > >  >>  >> --
> >> >  > >  >>  >>  View this message in context:
> >> >  > >  >>  >>
> >> >  > >  >>
> >> >  >
> >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
> >> >  > >  >>  >>
> >> >  > >  >>  >> Sent from the JMeter - User mailing list archive at
> >> Nabble.com.
> >> >  > >  >>  >>
> >> >  > >  >>  >>
> >> >  > >  >>  >>
> >> >  > >  >>
> >> ---------------------------------------------------------------------
> >> >  > >  >>  >>  To unsubscribe, e-mail:
> >> >  > jmeter-user-unsubscribe@jakarta.apache.org
> >> >  > >  >>  >>  For additional commands, e-mail:
> >> >  > jmeter-user-help@jakarta.apache.org
> >> >  > >  >>  >>
> >> >  > >  >>  >>
> >> >  > >  >>  >
> >> >  > >  >>  >
> >> >  >
> >> ---------------------------------------------------------------------
> >> >  > >  >>  > To unsubscribe, e-mail:
> >> >  > jmeter-user-unsubscribe@jakarta.apache.org
> >> >  > >  >>  > For additional commands, e-mail:
> >> >  > jmeter-user-help@jakarta.apache.org
> >> >  > >  >>  >
> >> >  > >  >>  >
> >> >  > >  >>  >
> >> >  > >  >>
> >> >  > >  >>  --
> >> >  > >  >>
> >> >  > >  >> View this message in context:
> >> >  > >  >>
> >> >  >
> >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
> >> >  > >  >>
> >> >  > >  >> Sent from the JMeter - User mailing list archive at
> >> Nabble.com.
> >> >  > >  >>
> >> >  > >  >>
> >> >  > >  >>
> >> >  >
> >> ---------------------------------------------------------------------
> >> >  > >  >>  To unsubscribe, e-mail:
> >> jmeter-user-unsubscribe@jakarta.apache.org
> >> >  > >  >>  For additional commands, e-mail:
> >> >  > jmeter-user-help@jakarta.apache.org
> >> >  > >  >>
> >> >  > >  >>
> >> >  > >  >
> >> >  > >  >
> >> ---------------------------------------------------------------------
> >> >  > >  > To unsubscribe, e-mail:
> >> jmeter-user-unsubscribe@jakarta.apache.org
> >> >  > >  > For additional commands, e-mail:
> >> jmeter-user-help@jakarta.apache.org
> >> >  > >  >
> >> >  > >  >
> >> >  > >  >
> >> >  > >
> >> >  > >
> >> >  > >
> >> >  > >  --
> >> >  > >
> >> >  > > View this message in context:
> >> >  >
> >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
> >> >  > >
> >> >  > > Sent from the JMeter - User mailing list archive at Nabble.com.
> >> >  > >
> >> >  > >
> >> >  > >
> >>  ---------------------------------------------------------------------
> >> >  > >  To unsubscribe, e-mail:
> >> jmeter-user-unsubscribe@jakarta.apache.org
> >> >  > >  For additional commands, e-mail:
> >> jmeter-user-help@jakarta.apache.org
> >> >  > >
> >> >  > >
> >> >  >
> >> >  >
> >> ---------------------------------------------------------------------
> >> >  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> >  > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >> >  >
> >> >  >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24943303.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Wait for Text to show up before moving on

Posted by hoffm11 <ho...@gmail.com>.
I believe it is ajax.  

It just keeps refreshing the page and never give me the results.  


Deepak Shetty wrote:
> 
> yes but theres no way to do that in this case other than checking that the
> value doesn't begin with a '$' right? (because undefined variables would
> resolve as ${var} ) , in which case the condition doesnt read well...
> so
> while
>    ${__javaScript("${match}".substring(0,1) =="$" ||
> "${match}"=="wait_spin.gif")}
> Is there any other way?
> 
> I prefer the readability of an explicit initialisation
> regards
> deepak
> 
> 
> On Wed, Aug 12, 2009 at 11:15 AM, sebb <se...@gmail.com> wrote:
> 
>> On 12/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
>> > also I suppose you need to initalise the value of ${match}
>>
>> Not necessary, so long as it is not "false".
>>
>> >  OR have your condition as
>> >  ${__javaScript("${match}" != "wait_spin.gif")}
>> >  so that the initial value is irrelevant
>> >
>> >  One question.. how does the browser do this ? does it continuously
>> refresh
>> >  (in which case your test is correct) or does it wait for the response
>> of
>> an
>> >  AJAX call (in which case you probably shouldnt implement your test in
>> this
>> >  way)
>> >
>> >  regards
>> >
>> > deepak
>> >
>> >
>> >  On Wed, Aug 12, 2009 at 10:31 AM, sebb <se...@gmail.com> wrote:
>> >
>> >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>> >  > >
>> >  > >
>> >  > >  ok.  I have a page that has wait_spin.gif in the body.  Once the
>> page is
>> >  > >  done processing, wait_spin.gif goes away and the result set is
>> returned.
>> >  > >
>> >  > >  In my while loop, I have
>> >  > >
>> >  > >  While (condition:  ${match})
>> >  > >  - HTTP Request
>> >  > >  -- RegEx Extractor
>> >  > >  ----reference name:  match
>> >  > >  ----reg Ex:  (wait_spin\.gif)
>> >  > >
>> >  > > ----Template:  $1$
>> >  > >  ----Match No. 1
>> >  > >
>> >  > > ----default value:  NO VALUE
>> >  > >
>> >  > >  Evethough wait_spin.gif doesn't show up it still stays in the
>> while
>> >  > loop.
>> >  > >
>> >  > >  What the heck am I not doing right?
>> >  > >
>> >  >
>> >  > As I wrote already, the While Controller condition needs to evaluate
>> >  > to "false" in order to exit the loop.
>> >  >
>> >  > As far as I can tell, ${match} will be equal to "NO VALUE" or
>> >  > "wait_spin.gif".
>> >  >
>> >  > Neither of these is the same as "false".
>> >  >
>> >  > >
>> >  > >
>> >  > > sebb-2-2 wrote:
>> >  > >  >
>> >  > >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>> >  > >  >>
>> >  > >  >>  Um, I am confused why this isn't valid?  I thought you can
>> just
>> >  > specify
>> >  > >  >> the
>> >  > >  >>  variable in the condition?
>> >  > >  >
>> >  > >  > Of course, but the condition has to evaluate to "false" in
>> order
>> to
>> >  > >  > exit the loop.
>> >  > >  > See the documentation.
>> >  > >  >
>> >  > >  >>  I expect it to exit the while loop once the text "Total
>> Number
>> >  > Returned"
>> >  > >  >> is
>> >  > >  >>  return and then continue on with the rest of the script.  The
>> >  > >  >> application
>> >  > >  >>  uses a lot of ajax stuff and this is the only why I can get
>> this to
>> >  > >  >> work.
>> >  > >  >>
>> >  > >  >>  Can you give me an example on how this can be done and what I
>> am
>> >  > doing
>> >  > >  >>  incorrect?
>> >  > >  >>
>> >  > >  >>
>> >  > >  >>
>> >  > >  >>
>> >  > >  >>  sebb-2-2 wrote:
>> >  > >  >>  >
>> >  > >  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>> >  > >  >>  >>
>> >  > >  >>  >>  Alright here is what I have.
>> >  > >  >>  >>
>> >  > >  >>  >>  While Controller  (Condition..  ${match}
>> >  > >  >>  >
>> >  > >  >>  > That is not a valid condition, see:
>> >  > >  >>  >
>> >  > >  >>  >
>> >  > >  >>
>> >  >
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>> >  > >  >>  >
>> >  > >  >>  >>  - Regex Expression
>> >  > >  >>  >>   -  Ref Name:  match
>> >  > >  >>  >>   -  Reg Ex:  Total Number Returned
>> >  > >  >>  >>   - Template:  $1$
>> >  > >  >>  >>   -  Match No.  1
>> >  > >  >>  >>   -  Default value:  NO VALUE
>> >  > >  >>  >>
>> >  > >  >>  >>  - HTTP Request (this page will have a hourglass and then
>> post
>> >  > "Total
>> >  > >  >>  >> Number
>> >  > >  >>  >>  Returned" when done)
>> >  > >  >>  >>   -  show.page
>> >  > >  >>  >>
>> >  > >  >>  >>  This does not work for me.
>> >  > >  >>  >>
>> >  > >  >>  >
>> >  > >  >>  > In what way does it not work?
>> >  > >  >>  > What happens?
>> >  > >  >>  > What did you expect to happen?
>> >  > >  >>  >
>> >  > >  >>  >>
>> >  > >  >>  >>  sebb-2-2 wrote:
>> >  > >  >>  >>  >
>> >  > >  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>> >  > >  >>  >>  >>
>> >  > >  >>  >>  >>  Is there a way in jmeter to say..
>> >  > >  >>  >>  >>
>> >  > >  >>  >>  >>  Wait for Assertion X to display on the screen before
>> moving
>> >  > to
>> >  > >  >> the
>> >  > >  >>  >> next
>> >  > >  >>  >>  >>  request in the script?
>> >  > >  >>  >>  >
>> >  > >  >>  >>  > How does a browser do this?
>> >  > >  >>  >>  >
>> >  > >  >>  >>  > You need to create a While loop with the appropriate
>> sampler
>> >  > and
>> >  > >  >>  >>  > Post-Processor.
>> >  > >  >>  >>  >
>> >  > >  >>  >>  >> --
>> >  > >  >>  >>  >>  View this message in context:
>> >  > >  >>  >>  >>
>> >  > >  >>  >>
>> >  > >  >>
>> >  >
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>> >  > >  >>  >>  >>  Sent from the JMeter - User mailing list archive at
>> >  > Nabble.com.
>> >  > >  >>  >>  >>
>> >  > >  >>  >>  >>
>> >  > >  >>  >>  >>
>> >  > >  >>  >>
>> >  >
>> ---------------------------------------------------------------------
>> >  > >  >>  >>  >>  To unsubscribe, e-mail:
>> >  > >  >> jmeter-user-unsubscribe@jakarta.apache.org
>> >  > >  >>  >>  >>  For additional commands, e-mail:
>> >  > >  >> jmeter-user-help@jakarta.apache.org
>> >  > >  >>  >>  >>
>> >  > >  >>  >>  >>
>> >  > >  >>  >>  >
>> >  > >  >>  >>  >
>> >  > >  >>
>> ---------------------------------------------------------------------
>> >  > >  >>  >>  > To unsubscribe, e-mail:
>> >  > jmeter-user-unsubscribe@jakarta.apache.org
>> >  > >  >>  >>  > For additional commands, e-mail:
>> >  > >  >> jmeter-user-help@jakarta.apache.org
>> >  > >  >>  >>  >
>> >  > >  >>  >>  >
>> >  > >  >>  >>  >
>> >  > >  >>  >>
>> >  > >  >>  >>
>> >  > >  >>  >> --
>> >  > >  >>  >>  View this message in context:
>> >  > >  >>  >>
>> >  > >  >>
>> >  >
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>> >  > >  >>  >>
>> >  > >  >>  >> Sent from the JMeter - User mailing list archive at
>> Nabble.com.
>> >  > >  >>  >>
>> >  > >  >>  >>
>> >  > >  >>  >>
>> >  > >  >>
>> ---------------------------------------------------------------------
>> >  > >  >>  >>  To unsubscribe, e-mail:
>> >  > jmeter-user-unsubscribe@jakarta.apache.org
>> >  > >  >>  >>  For additional commands, e-mail:
>> >  > jmeter-user-help@jakarta.apache.org
>> >  > >  >>  >>
>> >  > >  >>  >>
>> >  > >  >>  >
>> >  > >  >>  >
>> >  >
>> ---------------------------------------------------------------------
>> >  > >  >>  > To unsubscribe, e-mail:
>> >  > jmeter-user-unsubscribe@jakarta.apache.org
>> >  > >  >>  > For additional commands, e-mail:
>> >  > jmeter-user-help@jakarta.apache.org
>> >  > >  >>  >
>> >  > >  >>  >
>> >  > >  >>  >
>> >  > >  >>
>> >  > >  >>  --
>> >  > >  >>
>> >  > >  >> View this message in context:
>> >  > >  >>
>> >  >
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
>> >  > >  >>
>> >  > >  >> Sent from the JMeter - User mailing list archive at
>> Nabble.com.
>> >  > >  >>
>> >  > >  >>
>> >  > >  >>
>> >  > 
>> ---------------------------------------------------------------------
>> >  > >  >>  To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>> >  > >  >>  For additional commands, e-mail:
>> >  > jmeter-user-help@jakarta.apache.org
>> >  > >  >>
>> >  > >  >>
>> >  > >  >
>> >  > >  >
>> ---------------------------------------------------------------------
>> >  > >  > To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>> >  > >  > For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>> >  > >  >
>> >  > >  >
>> >  > >  >
>> >  > >
>> >  > >
>> >  > >
>> >  > >  --
>> >  > >
>> >  > > View this message in context:
>> >  >
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
>> >  > >
>> >  > > Sent from the JMeter - User mailing list archive at Nabble.com.
>> >  > >
>> >  > >
>> >  > >
>>  ---------------------------------------------------------------------
>> >  > >  To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>> >  > >  For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>> >  > >
>> >  > >
>> >  >
>> >  >
>> ---------------------------------------------------------------------
>> >  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>> >  >
>> >  >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24943303.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by Deepak Shetty <sh...@gmail.com>.
oh ok i get it now..

On Wed, Aug 12, 2009 at 2:10 PM, sebb <se...@gmail.com> wrote:

> On 12/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
> > yes but theres no way to do that in this case other than checking that
> the
> >  value doesn't begin with a '$' right? (because undefined variables would
> >  resolve as ${var} ) , in which case the condition doesnt read well...
>
> ${var}
>
> works fine as a While Condition, so long as it eventually becomes "false".
>
> >  so
> >  while
> >    ${__javaScript("${match}".substring(0,1) =="$" ||
> >  "${match}"=="wait_spin.gif")}
> >  Is there any other way?
>
> Yes, use the condition
>
> ${var}
>
> and set up the Regex PostProcessor to return "false" when the wait is over.
>
> >  I prefer the readability of an explicit initialisation
>
> It will need to be reset if the loop is to be repeated.
>
> >  regards
>
> > deepak
> >
> >
> >
> >  On Wed, Aug 12, 2009 at 11:15 AM, sebb <se...@gmail.com> wrote:
> >
> >  > On 12/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
> >  > > also I suppose you need to initalise the value of ${match}
> >  >
> >  > Not necessary, so long as it is not "false".
> >  >
> >  > >  OR have your condition as
> >  > >  ${__javaScript("${match}" != "wait_spin.gif")}
> >  > >  so that the initial value is irrelevant
> >  > >
> >  > >  One question.. how does the browser do this ? does it continuously
> >  > refresh
> >  > >  (in which case your test is correct) or does it wait for the
> response of
> >  > an
> >  > >  AJAX call (in which case you probably shouldnt implement your test
> in
> >  > this
> >  > >  way)
> >  > >
> >  > >  regards
> >  > >
> >  > > deepak
> >  > >
> >  > >
> >  > >  On Wed, Aug 12, 2009 at 10:31 AM, sebb <se...@gmail.com> wrote:
> >  > >
> >  > >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  > >  > >
> >  > >  > >
> >  > >  > >  ok.  I have a page that has wait_spin.gif in the body.  Once
> the
> >  > page is
> >  > >  > >  done processing, wait_spin.gif goes away and the result set is
> >  > returned.
> >  > >  > >
> >  > >  > >  In my while loop, I have
> >  > >  > >
> >  > >  > >  While (condition:  ${match})
> >  > >  > >  - HTTP Request
> >  > >  > >  -- RegEx Extractor
> >  > >  > >  ----reference name:  match
> >  > >  > >  ----reg Ex:  (wait_spin\.gif)
> >  > >  > >
> >  > >  > > ----Template:  $1$
> >  > >  > >  ----Match No. 1
> >  > >  > >
> >  > >  > > ----default value:  NO VALUE
> >  > >  > >
> >  > >  > >  Evethough wait_spin.gif doesn't show up it still stays in the
> while
> >  > >  > loop.
> >  > >  > >
> >  > >  > >  What the heck am I not doing right?
> >  > >  > >
> >  > >  >
> >  > >  > As I wrote already, the While Controller condition needs to
> evaluate
> >  > >  > to "false" in order to exit the loop.
> >  > >  >
> >  > >  > As far as I can tell, ${match} will be equal to "NO VALUE" or
> >  > >  > "wait_spin.gif".
> >  > >  >
> >  > >  > Neither of these is the same as "false".
> >  > >  >
> >  > >  > >
> >  > >  > >
> >  > >  > > sebb-2-2 wrote:
> >  > >  > >  >
> >  > >  > >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  > >  > >  >>
> >  > >  > >  >>  Um, I am confused why this isn't valid?  I thought you can
> just
> >  > >  > specify
> >  > >  > >  >> the
> >  > >  > >  >>  variable in the condition?
> >  > >  > >  >
> >  > >  > >  > Of course, but the condition has to evaluate to "false" in
> order
> >  > to
> >  > >  > >  > exit the loop.
> >  > >  > >  > See the documentation.
> >  > >  > >  >
> >  > >  > >  >>  I expect it to exit the while loop once the text "Total
> Number
> >  > >  > Returned"
> >  > >  > >  >> is
> >  > >  > >  >>  return and then continue on with the rest of the script.
>  The
> >  > >  > >  >> application
> >  > >  > >  >>  uses a lot of ajax stuff and this is the only why I can
> get
> >  > this to
> >  > >  > >  >> work.
> >  > >  > >  >>
> >  > >  > >  >>  Can you give me an example on how this can be done and
> what I
> >  > am
> >  > >  > doing
> >  > >  > >  >>  incorrect?
> >  > >  > >  >>
> >  > >  > >  >>
> >  > >  > >  >>
> >  > >  > >  >>
> >  > >  > >  >>  sebb-2-2 wrote:
> >  > >  > >  >>  >
> >  > >  > >  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  > >  > >  >>  >>
> >  > >  > >  >>  >>  Alright here is what I have.
> >  > >  > >  >>  >>
> >  > >  > >  >>  >>  While Controller  (Condition..  ${match}
> >  > >  > >  >>  >
> >  > >  > >  >>  > That is not a valid condition, see:
> >  > >  > >  >>  >
> >  > >  > >  >>  >
> >  > >  > >  >>
> >  > >  >
> >  >
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
> >  > >  > >  >>  >
> >  > >  > >  >>  >>  - Regex Expression
> >  > >  > >  >>  >>   -  Ref Name:  match
> >  > >  > >  >>  >>   -  Reg Ex:  Total Number Returned
> >  > >  > >  >>  >>   - Template:  $1$
> >  > >  > >  >>  >>   -  Match No.  1
> >  > >  > >  >>  >>   -  Default value:  NO VALUE
> >  > >  > >  >>  >>
> >  > >  > >  >>  >>  - HTTP Request (this page will have a hourglass and
> then
> >  > post
> >  > >  > "Total
> >  > >  > >  >>  >> Number
> >  > >  > >  >>  >>  Returned" when done)
> >  > >  > >  >>  >>   -  show.page
> >  > >  > >  >>  >>
> >  > >  > >  >>  >>  This does not work for me.
> >  > >  > >  >>  >>
> >  > >  > >  >>  >
> >  > >  > >  >>  > In what way does it not work?
> >  > >  > >  >>  > What happens?
> >  > >  > >  >>  > What did you expect to happen?
> >  > >  > >  >>  >
> >  > >  > >  >>  >>
> >  > >  > >  >>  >>  sebb-2-2 wrote:
> >  > >  > >  >>  >>  >
> >  > >  > >  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  > >  > >  >>  >>  >>
> >  > >  > >  >>  >>  >>  Is there a way in jmeter to say..
> >  > >  > >  >>  >>  >>
> >  > >  > >  >>  >>  >>  Wait for Assertion X to display on the screen
> before
> >  > moving
> >  > >  > to
> >  > >  > >  >> the
> >  > >  > >  >>  >> next
> >  > >  > >  >>  >>  >>  request in the script?
> >  > >  > >  >>  >>  >
> >  > >  > >  >>  >>  > How does a browser do this?
> >  > >  > >  >>  >>  >
> >  > >  > >  >>  >>  > You need to create a While loop with the appropriate
> >  > sampler
> >  > >  > and
> >  > >  > >  >>  >>  > Post-Processor.
> >  > >  > >  >>  >>  >
> >  > >  > >  >>  >>  >> --
> >  > >  > >  >>  >>  >>  View this message in context:
> >  > >  > >  >>  >>  >>
> >  > >  > >  >>  >>
> >  > >  > >  >>
> >  > >  >
> >  >
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
> >  > >  > >  >>  >>  >>  Sent from the JMeter - User mailing list archive
> at
> >  > >  > Nabble.com.
> >  > >  > >  >>  >>  >>
> >  > >  > >  >>  >>  >>
> >  > >  > >  >>  >>  >>
> >  > >  > >  >>  >>
> >  > >  >
> ---------------------------------------------------------------------
> >  > >  > >  >>  >>  >>  To unsubscribe, e-mail:
> >  > >  > >  >> jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  > >  >>  >>  >>  For additional commands, e-mail:
> >  > >  > >  >> jmeter-user-help@jakarta.apache.org
> >  > >  > >  >>  >>  >>
> >  > >  > >  >>  >>  >>
> >  > >  > >  >>  >>  >
> >  > >  > >  >>  >>  >
> >  > >  > >  >>
> >  > ---------------------------------------------------------------------
> >  > >  > >  >>  >>  > To unsubscribe, e-mail:
> >  > >  > jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  > >  >>  >>  > For additional commands, e-mail:
> >  > >  > >  >> jmeter-user-help@jakarta.apache.org
> >  > >  > >  >>  >>  >
> >  > >  > >  >>  >>  >
> >  > >  > >  >>  >>  >
> >  > >  > >  >>  >>
> >  > >  > >  >>  >>
> >  > >  > >  >>  >> --
> >  > >  > >  >>  >>  View this message in context:
> >  > >  > >  >>  >>
> >  > >  > >  >>
> >  > >  >
> >  >
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
> >  > >  > >  >>  >>
> >  > >  > >  >>  >> Sent from the JMeter - User mailing list archive at
> >  > Nabble.com.
> >  > >  > >  >>  >>
> >  > >  > >  >>  >>
> >  > >  > >  >>  >>
> >  > >  > >  >>
> >  > ---------------------------------------------------------------------
> >  > >  > >  >>  >>  To unsubscribe, e-mail:
> >  > >  > jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  > >  >>  >>  For additional commands, e-mail:
> >  > >  > jmeter-user-help@jakarta.apache.org
> >  > >  > >  >>  >>
> >  > >  > >  >>  >>
> >  > >  > >  >>  >
> >  > >  > >  >>  >
> >  > >  >
> ---------------------------------------------------------------------
> >  > >  > >  >>  > To unsubscribe, e-mail:
> >  > >  > jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  > >  >>  > For additional commands, e-mail:
> >  > >  > jmeter-user-help@jakarta.apache.org
> >  > >  > >  >>  >
> >  > >  > >  >>  >
> >  > >  > >  >>  >
> >  > >  > >  >>
> >  > >  > >  >>  --
> >  > >  > >  >>
> >  > >  > >  >> View this message in context:
> >  > >  > >  >>
> >  > >  >
> >  >
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
> >  > >  > >  >>
> >  > >  > >  >> Sent from the JMeter - User mailing list archive at
> Nabble.com.
> >  > >  > >  >>
> >  > >  > >  >>
> >  > >  > >  >>
> >  > >  >
>  ---------------------------------------------------------------------
> >  > >  > >  >>  To unsubscribe, e-mail:
> >  > jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  > >  >>  For additional commands, e-mail:
> >  > >  > jmeter-user-help@jakarta.apache.org
> >  > >  > >  >>
> >  > >  > >  >>
> >  > >  > >  >
> >  > >  > >  >
> >  > ---------------------------------------------------------------------
> >  > >  > >  > To unsubscribe, e-mail:
> >  > jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  > >  > For additional commands, e-mail:
> >  > jmeter-user-help@jakarta.apache.org
> >  > >  > >  >
> >  > >  > >  >
> >  > >  > >  >
> >  > >  > >
> >  > >  > >
> >  > >  > >
> >  > >  > >  --
> >  > >  > >
> >  > >  > > View this message in context:
> >  > >  >
> >  >
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
> >  > >  > >
> >  > >  > > Sent from the JMeter - User mailing list archive at Nabble.com.
> >  > >  > >
> >  > >  > >
> >  > >  > >
> >  >  ---------------------------------------------------------------------
> >  > >  > >  To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  > >  For additional commands, e-mail:
> >  > jmeter-user-help@jakarta.apache.org
> >  > >  > >
> >  > >  > >
> >  > >  >
> >  > >  >
> ---------------------------------------------------------------------
> >  > >  > To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >  > >  >
> >  > >  >
> >  > >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >  >
> >  >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Wait for Text to show up before moving on

Posted by sebb <se...@gmail.com>.
On 12/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
> yes but theres no way to do that in this case other than checking that the
>  value doesn't begin with a '$' right? (because undefined variables would
>  resolve as ${var} ) , in which case the condition doesnt read well...

${var}

works fine as a While Condition, so long as it eventually becomes "false".

>  so
>  while
>    ${__javaScript("${match}".substring(0,1) =="$" ||
>  "${match}"=="wait_spin.gif")}
>  Is there any other way?

Yes, use the condition

${var}

and set up the Regex PostProcessor to return "false" when the wait is over.

>  I prefer the readability of an explicit initialisation

It will need to be reset if the loop is to be repeated.

>  regards

> deepak
>
>
>
>  On Wed, Aug 12, 2009 at 11:15 AM, sebb <se...@gmail.com> wrote:
>
>  > On 12/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
>  > > also I suppose you need to initalise the value of ${match}
>  >
>  > Not necessary, so long as it is not "false".
>  >
>  > >  OR have your condition as
>  > >  ${__javaScript("${match}" != "wait_spin.gif")}
>  > >  so that the initial value is irrelevant
>  > >
>  > >  One question.. how does the browser do this ? does it continuously
>  > refresh
>  > >  (in which case your test is correct) or does it wait for the response of
>  > an
>  > >  AJAX call (in which case you probably shouldnt implement your test in
>  > this
>  > >  way)
>  > >
>  > >  regards
>  > >
>  > > deepak
>  > >
>  > >
>  > >  On Wed, Aug 12, 2009 at 10:31 AM, sebb <se...@gmail.com> wrote:
>  > >
>  > >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  > >  > >
>  > >  > >
>  > >  > >  ok.  I have a page that has wait_spin.gif in the body.  Once the
>  > page is
>  > >  > >  done processing, wait_spin.gif goes away and the result set is
>  > returned.
>  > >  > >
>  > >  > >  In my while loop, I have
>  > >  > >
>  > >  > >  While (condition:  ${match})
>  > >  > >  - HTTP Request
>  > >  > >  -- RegEx Extractor
>  > >  > >  ----reference name:  match
>  > >  > >  ----reg Ex:  (wait_spin\.gif)
>  > >  > >
>  > >  > > ----Template:  $1$
>  > >  > >  ----Match No. 1
>  > >  > >
>  > >  > > ----default value:  NO VALUE
>  > >  > >
>  > >  > >  Evethough wait_spin.gif doesn't show up it still stays in the while
>  > >  > loop.
>  > >  > >
>  > >  > >  What the heck am I not doing right?
>  > >  > >
>  > >  >
>  > >  > As I wrote already, the While Controller condition needs to evaluate
>  > >  > to "false" in order to exit the loop.
>  > >  >
>  > >  > As far as I can tell, ${match} will be equal to "NO VALUE" or
>  > >  > "wait_spin.gif".
>  > >  >
>  > >  > Neither of these is the same as "false".
>  > >  >
>  > >  > >
>  > >  > >
>  > >  > > sebb-2-2 wrote:
>  > >  > >  >
>  > >  > >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  > >  > >  >>
>  > >  > >  >>  Um, I am confused why this isn't valid?  I thought you can just
>  > >  > specify
>  > >  > >  >> the
>  > >  > >  >>  variable in the condition?
>  > >  > >  >
>  > >  > >  > Of course, but the condition has to evaluate to "false" in order
>  > to
>  > >  > >  > exit the loop.
>  > >  > >  > See the documentation.
>  > >  > >  >
>  > >  > >  >>  I expect it to exit the while loop once the text "Total Number
>  > >  > Returned"
>  > >  > >  >> is
>  > >  > >  >>  return and then continue on with the rest of the script.  The
>  > >  > >  >> application
>  > >  > >  >>  uses a lot of ajax stuff and this is the only why I can get
>  > this to
>  > >  > >  >> work.
>  > >  > >  >>
>  > >  > >  >>  Can you give me an example on how this can be done and what I
>  > am
>  > >  > doing
>  > >  > >  >>  incorrect?
>  > >  > >  >>
>  > >  > >  >>
>  > >  > >  >>
>  > >  > >  >>
>  > >  > >  >>  sebb-2-2 wrote:
>  > >  > >  >>  >
>  > >  > >  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  > >  > >  >>  >>
>  > >  > >  >>  >>  Alright here is what I have.
>  > >  > >  >>  >>
>  > >  > >  >>  >>  While Controller  (Condition..  ${match}
>  > >  > >  >>  >
>  > >  > >  >>  > That is not a valid condition, see:
>  > >  > >  >>  >
>  > >  > >  >>  >
>  > >  > >  >>
>  > >  >
>  > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>  > >  > >  >>  >
>  > >  > >  >>  >>  - Regex Expression
>  > >  > >  >>  >>   -  Ref Name:  match
>  > >  > >  >>  >>   -  Reg Ex:  Total Number Returned
>  > >  > >  >>  >>   - Template:  $1$
>  > >  > >  >>  >>   -  Match No.  1
>  > >  > >  >>  >>   -  Default value:  NO VALUE
>  > >  > >  >>  >>
>  > >  > >  >>  >>  - HTTP Request (this page will have a hourglass and then
>  > post
>  > >  > "Total
>  > >  > >  >>  >> Number
>  > >  > >  >>  >>  Returned" when done)
>  > >  > >  >>  >>   -  show.page
>  > >  > >  >>  >>
>  > >  > >  >>  >>  This does not work for me.
>  > >  > >  >>  >>
>  > >  > >  >>  >
>  > >  > >  >>  > In what way does it not work?
>  > >  > >  >>  > What happens?
>  > >  > >  >>  > What did you expect to happen?
>  > >  > >  >>  >
>  > >  > >  >>  >>
>  > >  > >  >>  >>  sebb-2-2 wrote:
>  > >  > >  >>  >>  >
>  > >  > >  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  > >  > >  >>  >>  >>
>  > >  > >  >>  >>  >>  Is there a way in jmeter to say..
>  > >  > >  >>  >>  >>
>  > >  > >  >>  >>  >>  Wait for Assertion X to display on the screen before
>  > moving
>  > >  > to
>  > >  > >  >> the
>  > >  > >  >>  >> next
>  > >  > >  >>  >>  >>  request in the script?
>  > >  > >  >>  >>  >
>  > >  > >  >>  >>  > How does a browser do this?
>  > >  > >  >>  >>  >
>  > >  > >  >>  >>  > You need to create a While loop with the appropriate
>  > sampler
>  > >  > and
>  > >  > >  >>  >>  > Post-Processor.
>  > >  > >  >>  >>  >
>  > >  > >  >>  >>  >> --
>  > >  > >  >>  >>  >>  View this message in context:
>  > >  > >  >>  >>  >>
>  > >  > >  >>  >>
>  > >  > >  >>
>  > >  >
>  > http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>  > >  > >  >>  >>  >>  Sent from the JMeter - User mailing list archive at
>  > >  > Nabble.com.
>  > >  > >  >>  >>  >>
>  > >  > >  >>  >>  >>
>  > >  > >  >>  >>  >>
>  > >  > >  >>  >>
>  > >  > ---------------------------------------------------------------------
>  > >  > >  >>  >>  >>  To unsubscribe, e-mail:
>  > >  > >  >> jmeter-user-unsubscribe@jakarta.apache.org
>  > >  > >  >>  >>  >>  For additional commands, e-mail:
>  > >  > >  >> jmeter-user-help@jakarta.apache.org
>  > >  > >  >>  >>  >>
>  > >  > >  >>  >>  >>
>  > >  > >  >>  >>  >
>  > >  > >  >>  >>  >
>  > >  > >  >>
>  > ---------------------------------------------------------------------
>  > >  > >  >>  >>  > To unsubscribe, e-mail:
>  > >  > jmeter-user-unsubscribe@jakarta.apache.org
>  > >  > >  >>  >>  > For additional commands, e-mail:
>  > >  > >  >> jmeter-user-help@jakarta.apache.org
>  > >  > >  >>  >>  >
>  > >  > >  >>  >>  >
>  > >  > >  >>  >>  >
>  > >  > >  >>  >>
>  > >  > >  >>  >>
>  > >  > >  >>  >> --
>  > >  > >  >>  >>  View this message in context:
>  > >  > >  >>  >>
>  > >  > >  >>
>  > >  >
>  > http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>  > >  > >  >>  >>
>  > >  > >  >>  >> Sent from the JMeter - User mailing list archive at
>  > Nabble.com.
>  > >  > >  >>  >>
>  > >  > >  >>  >>
>  > >  > >  >>  >>
>  > >  > >  >>
>  > ---------------------------------------------------------------------
>  > >  > >  >>  >>  To unsubscribe, e-mail:
>  > >  > jmeter-user-unsubscribe@jakarta.apache.org
>  > >  > >  >>  >>  For additional commands, e-mail:
>  > >  > jmeter-user-help@jakarta.apache.org
>  > >  > >  >>  >>
>  > >  > >  >>  >>
>  > >  > >  >>  >
>  > >  > >  >>  >
>  > >  > ---------------------------------------------------------------------
>  > >  > >  >>  > To unsubscribe, e-mail:
>  > >  > jmeter-user-unsubscribe@jakarta.apache.org
>  > >  > >  >>  > For additional commands, e-mail:
>  > >  > jmeter-user-help@jakarta.apache.org
>  > >  > >  >>  >
>  > >  > >  >>  >
>  > >  > >  >>  >
>  > >  > >  >>
>  > >  > >  >>  --
>  > >  > >  >>
>  > >  > >  >> View this message in context:
>  > >  > >  >>
>  > >  >
>  > http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
>  > >  > >  >>
>  > >  > >  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>  > >  > >  >>
>  > >  > >  >>
>  > >  > >  >>
>  > >  >  ---------------------------------------------------------------------
>  > >  > >  >>  To unsubscribe, e-mail:
>  > jmeter-user-unsubscribe@jakarta.apache.org
>  > >  > >  >>  For additional commands, e-mail:
>  > >  > jmeter-user-help@jakarta.apache.org
>  > >  > >  >>
>  > >  > >  >>
>  > >  > >  >
>  > >  > >  >
>  > ---------------------------------------------------------------------
>  > >  > >  > To unsubscribe, e-mail:
>  > jmeter-user-unsubscribe@jakarta.apache.org
>  > >  > >  > For additional commands, e-mail:
>  > jmeter-user-help@jakarta.apache.org
>  > >  > >  >
>  > >  > >  >
>  > >  > >  >
>  > >  > >
>  > >  > >
>  > >  > >
>  > >  > >  --
>  > >  > >
>  > >  > > View this message in context:
>  > >  >
>  > http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
>  > >  > >
>  > >  > > Sent from the JMeter - User mailing list archive at Nabble.com.
>  > >  > >
>  > >  > >
>  > >  > >
>  >  ---------------------------------------------------------------------
>  > >  > >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > >  > >  For additional commands, e-mail:
>  > jmeter-user-help@jakarta.apache.org
>  > >  > >
>  > >  > >
>  > >  >
>  > >  > ---------------------------------------------------------------------
>  > >  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  > >  >
>  > >  >
>  > >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by Deepak Shetty <sh...@gmail.com>.
yes but theres no way to do that in this case other than checking that the
value doesn't begin with a '$' right? (because undefined variables would
resolve as ${var} ) , in which case the condition doesnt read well...
so
while
   ${__javaScript("${match}".substring(0,1) =="$" ||
"${match}"=="wait_spin.gif")}
Is there any other way?

I prefer the readability of an explicit initialisation
regards
deepak


On Wed, Aug 12, 2009 at 11:15 AM, sebb <se...@gmail.com> wrote:

> On 12/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
> > also I suppose you need to initalise the value of ${match}
>
> Not necessary, so long as it is not "false".
>
> >  OR have your condition as
> >  ${__javaScript("${match}" != "wait_spin.gif")}
> >  so that the initial value is irrelevant
> >
> >  One question.. how does the browser do this ? does it continuously
> refresh
> >  (in which case your test is correct) or does it wait for the response of
> an
> >  AJAX call (in which case you probably shouldnt implement your test in
> this
> >  way)
> >
> >  regards
> >
> > deepak
> >
> >
> >  On Wed, Aug 12, 2009 at 10:31 AM, sebb <se...@gmail.com> wrote:
> >
> >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  > >
> >  > >
> >  > >  ok.  I have a page that has wait_spin.gif in the body.  Once the
> page is
> >  > >  done processing, wait_spin.gif goes away and the result set is
> returned.
> >  > >
> >  > >  In my while loop, I have
> >  > >
> >  > >  While (condition:  ${match})
> >  > >  - HTTP Request
> >  > >  -- RegEx Extractor
> >  > >  ----reference name:  match
> >  > >  ----reg Ex:  (wait_spin\.gif)
> >  > >
> >  > > ----Template:  $1$
> >  > >  ----Match No. 1
> >  > >
> >  > > ----default value:  NO VALUE
> >  > >
> >  > >  Evethough wait_spin.gif doesn't show up it still stays in the while
> >  > loop.
> >  > >
> >  > >  What the heck am I not doing right?
> >  > >
> >  >
> >  > As I wrote already, the While Controller condition needs to evaluate
> >  > to "false" in order to exit the loop.
> >  >
> >  > As far as I can tell, ${match} will be equal to "NO VALUE" or
> >  > "wait_spin.gif".
> >  >
> >  > Neither of these is the same as "false".
> >  >
> >  > >
> >  > >
> >  > > sebb-2-2 wrote:
> >  > >  >
> >  > >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  > >  >>
> >  > >  >>  Um, I am confused why this isn't valid?  I thought you can just
> >  > specify
> >  > >  >> the
> >  > >  >>  variable in the condition?
> >  > >  >
> >  > >  > Of course, but the condition has to evaluate to "false" in order
> to
> >  > >  > exit the loop.
> >  > >  > See the documentation.
> >  > >  >
> >  > >  >>  I expect it to exit the while loop once the text "Total Number
> >  > Returned"
> >  > >  >> is
> >  > >  >>  return and then continue on with the rest of the script.  The
> >  > >  >> application
> >  > >  >>  uses a lot of ajax stuff and this is the only why I can get
> this to
> >  > >  >> work.
> >  > >  >>
> >  > >  >>  Can you give me an example on how this can be done and what I
> am
> >  > doing
> >  > >  >>  incorrect?
> >  > >  >>
> >  > >  >>
> >  > >  >>
> >  > >  >>
> >  > >  >>  sebb-2-2 wrote:
> >  > >  >>  >
> >  > >  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  > >  >>  >>
> >  > >  >>  >>  Alright here is what I have.
> >  > >  >>  >>
> >  > >  >>  >>  While Controller  (Condition..  ${match}
> >  > >  >>  >
> >  > >  >>  > That is not a valid condition, see:
> >  > >  >>  >
> >  > >  >>  >
> >  > >  >>
> >  >
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
> >  > >  >>  >
> >  > >  >>  >>  - Regex Expression
> >  > >  >>  >>   -  Ref Name:  match
> >  > >  >>  >>   -  Reg Ex:  Total Number Returned
> >  > >  >>  >>   - Template:  $1$
> >  > >  >>  >>   -  Match No.  1
> >  > >  >>  >>   -  Default value:  NO VALUE
> >  > >  >>  >>
> >  > >  >>  >>  - HTTP Request (this page will have a hourglass and then
> post
> >  > "Total
> >  > >  >>  >> Number
> >  > >  >>  >>  Returned" when done)
> >  > >  >>  >>   -  show.page
> >  > >  >>  >>
> >  > >  >>  >>  This does not work for me.
> >  > >  >>  >>
> >  > >  >>  >
> >  > >  >>  > In what way does it not work?
> >  > >  >>  > What happens?
> >  > >  >>  > What did you expect to happen?
> >  > >  >>  >
> >  > >  >>  >>
> >  > >  >>  >>  sebb-2-2 wrote:
> >  > >  >>  >>  >
> >  > >  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  > >  >>  >>  >>
> >  > >  >>  >>  >>  Is there a way in jmeter to say..
> >  > >  >>  >>  >>
> >  > >  >>  >>  >>  Wait for Assertion X to display on the screen before
> moving
> >  > to
> >  > >  >> the
> >  > >  >>  >> next
> >  > >  >>  >>  >>  request in the script?
> >  > >  >>  >>  >
> >  > >  >>  >>  > How does a browser do this?
> >  > >  >>  >>  >
> >  > >  >>  >>  > You need to create a While loop with the appropriate
> sampler
> >  > and
> >  > >  >>  >>  > Post-Processor.
> >  > >  >>  >>  >
> >  > >  >>  >>  >> --
> >  > >  >>  >>  >>  View this message in context:
> >  > >  >>  >>  >>
> >  > >  >>  >>
> >  > >  >>
> >  >
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
> >  > >  >>  >>  >>  Sent from the JMeter - User mailing list archive at
> >  > Nabble.com.
> >  > >  >>  >>  >>
> >  > >  >>  >>  >>
> >  > >  >>  >>  >>
> >  > >  >>  >>
> >  > ---------------------------------------------------------------------
> >  > >  >>  >>  >>  To unsubscribe, e-mail:
> >  > >  >> jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  >>  >>  >>  For additional commands, e-mail:
> >  > >  >> jmeter-user-help@jakarta.apache.org
> >  > >  >>  >>  >>
> >  > >  >>  >>  >>
> >  > >  >>  >>  >
> >  > >  >>  >>  >
> >  > >  >>
> ---------------------------------------------------------------------
> >  > >  >>  >>  > To unsubscribe, e-mail:
> >  > jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  >>  >>  > For additional commands, e-mail:
> >  > >  >> jmeter-user-help@jakarta.apache.org
> >  > >  >>  >>  >
> >  > >  >>  >>  >
> >  > >  >>  >>  >
> >  > >  >>  >>
> >  > >  >>  >>
> >  > >  >>  >> --
> >  > >  >>  >>  View this message in context:
> >  > >  >>  >>
> >  > >  >>
> >  >
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
> >  > >  >>  >>
> >  > >  >>  >> Sent from the JMeter - User mailing list archive at
> Nabble.com.
> >  > >  >>  >>
> >  > >  >>  >>
> >  > >  >>  >>
> >  > >  >>
> ---------------------------------------------------------------------
> >  > >  >>  >>  To unsubscribe, e-mail:
> >  > jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  >>  >>  For additional commands, e-mail:
> >  > jmeter-user-help@jakarta.apache.org
> >  > >  >>  >>
> >  > >  >>  >>
> >  > >  >>  >
> >  > >  >>  >
> >  > ---------------------------------------------------------------------
> >  > >  >>  > To unsubscribe, e-mail:
> >  > jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  >>  > For additional commands, e-mail:
> >  > jmeter-user-help@jakarta.apache.org
> >  > >  >>  >
> >  > >  >>  >
> >  > >  >>  >
> >  > >  >>
> >  > >  >>  --
> >  > >  >>
> >  > >  >> View this message in context:
> >  > >  >>
> >  >
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
> >  > >  >>
> >  > >  >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >  > >  >>
> >  > >  >>
> >  > >  >>
> >  >  ---------------------------------------------------------------------
> >  > >  >>  To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  >>  For additional commands, e-mail:
> >  > jmeter-user-help@jakarta.apache.org
> >  > >  >>
> >  > >  >>
> >  > >  >
> >  > >  >
> ---------------------------------------------------------------------
> >  > >  > To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >  > >  >
> >  > >  >
> >  > >  >
> >  > >
> >  > >
> >  > >
> >  > >  --
> >  > >
> >  > > View this message in context:
> >  >
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
> >  > >
> >  > > Sent from the JMeter - User mailing list archive at Nabble.com.
> >  > >
> >  > >
> >  > >
>  ---------------------------------------------------------------------
> >  > >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >  > >  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >  > >
> >  > >
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >  >
> >  >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Wait for Text to show up before moving on

Posted by sebb <se...@gmail.com>.
On 12/08/2009, Deepak Shetty <sh...@gmail.com> wrote:
> also I suppose you need to initalise the value of ${match}

Not necessary, so long as it is not "false".

>  OR have your condition as
>  ${__javaScript("${match}" != "wait_spin.gif")}
>  so that the initial value is irrelevant
>
>  One question.. how does the browser do this ? does it continuously refresh
>  (in which case your test is correct) or does it wait for the response of an
>  AJAX call (in which case you probably shouldnt implement your test in this
>  way)
>
>  regards
>
> deepak
>
>
>  On Wed, Aug 12, 2009 at 10:31 AM, sebb <se...@gmail.com> wrote:
>
>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  > >
>  > >
>  > >  ok.  I have a page that has wait_spin.gif in the body.  Once the page is
>  > >  done processing, wait_spin.gif goes away and the result set is returned.
>  > >
>  > >  In my while loop, I have
>  > >
>  > >  While (condition:  ${match})
>  > >  - HTTP Request
>  > >  -- RegEx Extractor
>  > >  ----reference name:  match
>  > >  ----reg Ex:  (wait_spin\.gif)
>  > >
>  > > ----Template:  $1$
>  > >  ----Match No. 1
>  > >
>  > > ----default value:  NO VALUE
>  > >
>  > >  Evethough wait_spin.gif doesn't show up it still stays in the while
>  > loop.
>  > >
>  > >  What the heck am I not doing right?
>  > >
>  >
>  > As I wrote already, the While Controller condition needs to evaluate
>  > to "false" in order to exit the loop.
>  >
>  > As far as I can tell, ${match} will be equal to "NO VALUE" or
>  > "wait_spin.gif".
>  >
>  > Neither of these is the same as "false".
>  >
>  > >
>  > >
>  > > sebb-2-2 wrote:
>  > >  >
>  > >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  > >  >>
>  > >  >>  Um, I am confused why this isn't valid?  I thought you can just
>  > specify
>  > >  >> the
>  > >  >>  variable in the condition?
>  > >  >
>  > >  > Of course, but the condition has to evaluate to "false" in order to
>  > >  > exit the loop.
>  > >  > See the documentation.
>  > >  >
>  > >  >>  I expect it to exit the while loop once the text "Total Number
>  > Returned"
>  > >  >> is
>  > >  >>  return and then continue on with the rest of the script.  The
>  > >  >> application
>  > >  >>  uses a lot of ajax stuff and this is the only why I can get this to
>  > >  >> work.
>  > >  >>
>  > >  >>  Can you give me an example on how this can be done and what I am
>  > doing
>  > >  >>  incorrect?
>  > >  >>
>  > >  >>
>  > >  >>
>  > >  >>
>  > >  >>  sebb-2-2 wrote:
>  > >  >>  >
>  > >  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  > >  >>  >>
>  > >  >>  >>  Alright here is what I have.
>  > >  >>  >>
>  > >  >>  >>  While Controller  (Condition..  ${match}
>  > >  >>  >
>  > >  >>  > That is not a valid condition, see:
>  > >  >>  >
>  > >  >>  >
>  > >  >>
>  > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>  > >  >>  >
>  > >  >>  >>  - Regex Expression
>  > >  >>  >>   -  Ref Name:  match
>  > >  >>  >>   -  Reg Ex:  Total Number Returned
>  > >  >>  >>   - Template:  $1$
>  > >  >>  >>   -  Match No.  1
>  > >  >>  >>   -  Default value:  NO VALUE
>  > >  >>  >>
>  > >  >>  >>  - HTTP Request (this page will have a hourglass and then post
>  > "Total
>  > >  >>  >> Number
>  > >  >>  >>  Returned" when done)
>  > >  >>  >>   -  show.page
>  > >  >>  >>
>  > >  >>  >>  This does not work for me.
>  > >  >>  >>
>  > >  >>  >
>  > >  >>  > In what way does it not work?
>  > >  >>  > What happens?
>  > >  >>  > What did you expect to happen?
>  > >  >>  >
>  > >  >>  >>
>  > >  >>  >>  sebb-2-2 wrote:
>  > >  >>  >>  >
>  > >  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  > >  >>  >>  >>
>  > >  >>  >>  >>  Is there a way in jmeter to say..
>  > >  >>  >>  >>
>  > >  >>  >>  >>  Wait for Assertion X to display on the screen before moving
>  > to
>  > >  >> the
>  > >  >>  >> next
>  > >  >>  >>  >>  request in the script?
>  > >  >>  >>  >
>  > >  >>  >>  > How does a browser do this?
>  > >  >>  >>  >
>  > >  >>  >>  > You need to create a While loop with the appropriate sampler
>  > and
>  > >  >>  >>  > Post-Processor.
>  > >  >>  >>  >
>  > >  >>  >>  >> --
>  > >  >>  >>  >>  View this message in context:
>  > >  >>  >>  >>
>  > >  >>  >>
>  > >  >>
>  > http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>  > >  >>  >>  >>  Sent from the JMeter - User mailing list archive at
>  > Nabble.com.
>  > >  >>  >>  >>
>  > >  >>  >>  >>
>  > >  >>  >>  >>
>  > >  >>  >>
>  > ---------------------------------------------------------------------
>  > >  >>  >>  >>  To unsubscribe, e-mail:
>  > >  >> jmeter-user-unsubscribe@jakarta.apache.org
>  > >  >>  >>  >>  For additional commands, e-mail:
>  > >  >> jmeter-user-help@jakarta.apache.org
>  > >  >>  >>  >>
>  > >  >>  >>  >>
>  > >  >>  >>  >
>  > >  >>  >>  >
>  > >  >> ---------------------------------------------------------------------
>  > >  >>  >>  > To unsubscribe, e-mail:
>  > jmeter-user-unsubscribe@jakarta.apache.org
>  > >  >>  >>  > For additional commands, e-mail:
>  > >  >> jmeter-user-help@jakarta.apache.org
>  > >  >>  >>  >
>  > >  >>  >>  >
>  > >  >>  >>  >
>  > >  >>  >>
>  > >  >>  >>
>  > >  >>  >> --
>  > >  >>  >>  View this message in context:
>  > >  >>  >>
>  > >  >>
>  > http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>  > >  >>  >>
>  > >  >>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>  > >  >>  >>
>  > >  >>  >>
>  > >  >>  >>
>  > >  >> ---------------------------------------------------------------------
>  > >  >>  >>  To unsubscribe, e-mail:
>  > jmeter-user-unsubscribe@jakarta.apache.org
>  > >  >>  >>  For additional commands, e-mail:
>  > jmeter-user-help@jakarta.apache.org
>  > >  >>  >>
>  > >  >>  >>
>  > >  >>  >
>  > >  >>  >
>  > ---------------------------------------------------------------------
>  > >  >>  > To unsubscribe, e-mail:
>  > jmeter-user-unsubscribe@jakarta.apache.org
>  > >  >>  > For additional commands, e-mail:
>  > jmeter-user-help@jakarta.apache.org
>  > >  >>  >
>  > >  >>  >
>  > >  >>  >
>  > >  >>
>  > >  >>  --
>  > >  >>
>  > >  >> View this message in context:
>  > >  >>
>  > http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
>  > >  >>
>  > >  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>  > >  >>
>  > >  >>
>  > >  >>
>  >  ---------------------------------------------------------------------
>  > >  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > >  >>  For additional commands, e-mail:
>  > jmeter-user-help@jakarta.apache.org
>  > >  >>
>  > >  >>
>  > >  >
>  > >  > ---------------------------------------------------------------------
>  > >  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  > >  >
>  > >  >
>  > >  >
>  > >
>  > >
>  > >
>  > >  --
>  > >
>  > > View this message in context:
>  > http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
>  > >
>  > > Sent from the JMeter - User mailing list archive at Nabble.com.
>  > >
>  > >
>  > >  ---------------------------------------------------------------------
>  > >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > >  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  > >
>  > >
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by Deepak Shetty <sh...@gmail.com>.
whoops sorry i didnt see that my condition was the other way around , you
would need to initalise match(using beanshell or whatever..
also you should probably have a delay between your http requests.

On Wed, Aug 12, 2009 at 10:44 AM, Deepak Shetty <sh...@gmail.com> wrote:

> also I suppose you need to initalise the value of ${match}
> OR have your condition as
> ${__javaScript("${match}" != "wait_spin.gif")}
> so that the initial value is irrelevant
>
> One question.. how does the browser do this ? does it continuously refresh
> (in which case your test is correct) or does it wait for the response of an
> AJAX call (in which case you probably shouldnt implement your test in this
> way)
>
> regards
> deepak
>
>
> On Wed, Aug 12, 2009 at 10:31 AM, sebb <se...@gmail.com> wrote:
>
>> On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>> >
>> >
>> >  ok.  I have a page that has wait_spin.gif in the body.  Once the page
>> is
>> >  done processing, wait_spin.gif goes away and the result set is
>> returned.
>> >
>> >  In my while loop, I have
>> >
>> >  While (condition:  ${match})
>> >  - HTTP Request
>> >  -- RegEx Extractor
>> >  ----reference name:  match
>> >  ----reg Ex:  (wait_spin\.gif)
>> >
>> > ----Template:  $1$
>> >  ----Match No. 1
>> >
>> > ----default value:  NO VALUE
>> >
>> >  Evethough wait_spin.gif doesn't show up it still stays in the while
>> loop.
>> >
>> >  What the heck am I not doing right?
>> >
>>
>> As I wrote already, the While Controller condition needs to evaluate
>> to "false" in order to exit the loop.
>>
>> As far as I can tell, ${match} will be equal to "NO VALUE" or
>> "wait_spin.gif".
>>
>> Neither of these is the same as "false".
>>
>> >
>> >
>> > sebb-2-2 wrote:
>> >  >
>> >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>> >  >>
>> >  >>  Um, I am confused why this isn't valid?  I thought you can just
>> specify
>> >  >> the
>> >  >>  variable in the condition?
>> >  >
>> >  > Of course, but the condition has to evaluate to "false" in order to
>> >  > exit the loop.
>> >  > See the documentation.
>> >  >
>> >  >>  I expect it to exit the while loop once the text "Total Number
>> Returned"
>> >  >> is
>> >  >>  return and then continue on with the rest of the script.  The
>> >  >> application
>> >  >>  uses a lot of ajax stuff and this is the only why I can get this to
>> >  >> work.
>> >  >>
>> >  >>  Can you give me an example on how this can be done and what I am
>> doing
>> >  >>  incorrect?
>> >  >>
>> >  >>
>> >  >>
>> >  >>
>> >  >>  sebb-2-2 wrote:
>> >  >>  >
>> >  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>> >  >>  >>
>> >  >>  >>  Alright here is what I have.
>> >  >>  >>
>> >  >>  >>  While Controller  (Condition..  ${match}
>> >  >>  >
>> >  >>  > That is not a valid condition, see:
>> >  >>  >
>> >  >>  >
>> >  >>
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>> >  >>  >
>> >  >>  >>  - Regex Expression
>> >  >>  >>   -  Ref Name:  match
>> >  >>  >>   -  Reg Ex:  Total Number Returned
>> >  >>  >>   - Template:  $1$
>> >  >>  >>   -  Match No.  1
>> >  >>  >>   -  Default value:  NO VALUE
>> >  >>  >>
>> >  >>  >>  - HTTP Request (this page will have a hourglass and then post
>> "Total
>> >  >>  >> Number
>> >  >>  >>  Returned" when done)
>> >  >>  >>   -  show.page
>> >  >>  >>
>> >  >>  >>  This does not work for me.
>> >  >>  >>
>> >  >>  >
>> >  >>  > In what way does it not work?
>> >  >>  > What happens?
>> >  >>  > What did you expect to happen?
>> >  >>  >
>> >  >>  >>
>> >  >>  >>  sebb-2-2 wrote:
>> >  >>  >>  >
>> >  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>> >  >>  >>  >>
>> >  >>  >>  >>  Is there a way in jmeter to say..
>> >  >>  >>  >>
>> >  >>  >>  >>  Wait for Assertion X to display on the screen before moving
>> to
>> >  >> the
>> >  >>  >> next
>> >  >>  >>  >>  request in the script?
>> >  >>  >>  >
>> >  >>  >>  > How does a browser do this?
>> >  >>  >>  >
>> >  >>  >>  > You need to create a While loop with the appropriate sampler
>> and
>> >  >>  >>  > Post-Processor.
>> >  >>  >>  >
>> >  >>  >>  >> --
>> >  >>  >>  >>  View this message in context:
>> >  >>  >>  >>
>> >  >>  >>
>> >  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>> >  >>  >>  >>  Sent from the JMeter - User mailing list archive at
>> Nabble.com.
>> >  >>  >>  >>
>> >  >>  >>  >>
>> >  >>  >>  >>
>> >  >>  >>
>> ---------------------------------------------------------------------
>> >  >>  >>  >>  To unsubscribe, e-mail:
>> >  >> jmeter-user-unsubscribe@jakarta.apache.org
>> >  >>  >>  >>  For additional commands, e-mail:
>> >  >> jmeter-user-help@jakarta.apache.org
>> >  >>  >>  >>
>> >  >>  >>  >>
>> >  >>  >>  >
>> >  >>  >>  >
>> >  >>
>> ---------------------------------------------------------------------
>> >  >>  >>  > To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>> >  >>  >>  > For additional commands, e-mail:
>> >  >> jmeter-user-help@jakarta.apache.org
>> >  >>  >>  >
>> >  >>  >>  >
>> >  >>  >>  >
>> >  >>  >>
>> >  >>  >>
>> >  >>  >> --
>> >  >>  >>  View this message in context:
>> >  >>  >>
>> >  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>> >  >>  >>
>> >  >>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>> >  >>  >>
>> >  >>  >>
>> >  >>  >>
>> >  >>
>> ---------------------------------------------------------------------
>> >  >>  >>  To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>> >  >>  >>  For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>> >  >>  >>
>> >  >>  >>
>> >  >>  >
>> >  >>  >
>> ---------------------------------------------------------------------
>> >  >>  > To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>> >  >>  > For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>> >  >>  >
>> >  >>  >
>> >  >>  >
>> >  >>
>> >  >>  --
>> >  >>
>> >  >> View this message in context:
>> >  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
>> >  >>
>> >  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>> >  >>
>> >  >>
>> >  >>
>>  ---------------------------------------------------------------------
>> >  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> >  >>  For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>> >  >>
>> >  >>
>> >  >
>> >  > ---------------------------------------------------------------------
>> >  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>> >  >
>> >  >
>> >  >
>> >
>> >
>> >
>> >  --
>> >
>> > View this message in context:
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
>> >
>> > Sent from the JMeter - User mailing list archive at Nabble.com.
>> >
>> >
>> >  ---------------------------------------------------------------------
>> >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> >  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>

Re: Wait for Text to show up before moving on

Posted by Deepak Shetty <sh...@gmail.com>.
also I suppose you need to initalise the value of ${match}
OR have your condition as
${__javaScript("${match}" != "wait_spin.gif")}
so that the initial value is irrelevant

One question.. how does the browser do this ? does it continuously refresh
(in which case your test is correct) or does it wait for the response of an
AJAX call (in which case you probably shouldnt implement your test in this
way)

regards
deepak

On Wed, Aug 12, 2009 at 10:31 AM, sebb <se...@gmail.com> wrote:

> On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >
> >
> >  ok.  I have a page that has wait_spin.gif in the body.  Once the page is
> >  done processing, wait_spin.gif goes away and the result set is returned.
> >
> >  In my while loop, I have
> >
> >  While (condition:  ${match})
> >  - HTTP Request
> >  -- RegEx Extractor
> >  ----reference name:  match
> >  ----reg Ex:  (wait_spin\.gif)
> >
> > ----Template:  $1$
> >  ----Match No. 1
> >
> > ----default value:  NO VALUE
> >
> >  Evethough wait_spin.gif doesn't show up it still stays in the while
> loop.
> >
> >  What the heck am I not doing right?
> >
>
> As I wrote already, the While Controller condition needs to evaluate
> to "false" in order to exit the loop.
>
> As far as I can tell, ${match} will be equal to "NO VALUE" or
> "wait_spin.gif".
>
> Neither of these is the same as "false".
>
> >
> >
> > sebb-2-2 wrote:
> >  >
> >  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  >>
> >  >>  Um, I am confused why this isn't valid?  I thought you can just
> specify
> >  >> the
> >  >>  variable in the condition?
> >  >
> >  > Of course, but the condition has to evaluate to "false" in order to
> >  > exit the loop.
> >  > See the documentation.
> >  >
> >  >>  I expect it to exit the while loop once the text "Total Number
> Returned"
> >  >> is
> >  >>  return and then continue on with the rest of the script.  The
> >  >> application
> >  >>  uses a lot of ajax stuff and this is the only why I can get this to
> >  >> work.
> >  >>
> >  >>  Can you give me an example on how this can be done and what I am
> doing
> >  >>  incorrect?
> >  >>
> >  >>
> >  >>
> >  >>
> >  >>  sebb-2-2 wrote:
> >  >>  >
> >  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  >>  >>
> >  >>  >>  Alright here is what I have.
> >  >>  >>
> >  >>  >>  While Controller  (Condition..  ${match}
> >  >>  >
> >  >>  > That is not a valid condition, see:
> >  >>  >
> >  >>  >
> >  >>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
> >  >>  >
> >  >>  >>  - Regex Expression
> >  >>  >>   -  Ref Name:  match
> >  >>  >>   -  Reg Ex:  Total Number Returned
> >  >>  >>   - Template:  $1$
> >  >>  >>   -  Match No.  1
> >  >>  >>   -  Default value:  NO VALUE
> >  >>  >>
> >  >>  >>  - HTTP Request (this page will have a hourglass and then post
> "Total
> >  >>  >> Number
> >  >>  >>  Returned" when done)
> >  >>  >>   -  show.page
> >  >>  >>
> >  >>  >>  This does not work for me.
> >  >>  >>
> >  >>  >
> >  >>  > In what way does it not work?
> >  >>  > What happens?
> >  >>  > What did you expect to happen?
> >  >>  >
> >  >>  >>
> >  >>  >>  sebb-2-2 wrote:
> >  >>  >>  >
> >  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >  >>  >>  >>
> >  >>  >>  >>  Is there a way in jmeter to say..
> >  >>  >>  >>
> >  >>  >>  >>  Wait for Assertion X to display on the screen before moving
> to
> >  >> the
> >  >>  >> next
> >  >>  >>  >>  request in the script?
> >  >>  >>  >
> >  >>  >>  > How does a browser do this?
> >  >>  >>  >
> >  >>  >>  > You need to create a While loop with the appropriate sampler
> and
> >  >>  >>  > Post-Processor.
> >  >>  >>  >
> >  >>  >>  >> --
> >  >>  >>  >>  View this message in context:
> >  >>  >>  >>
> >  >>  >>
> >  >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
> >  >>  >>  >>  Sent from the JMeter - User mailing list archive at
> Nabble.com.
> >  >>  >>  >>
> >  >>  >>  >>
> >  >>  >>  >>
> >  >>  >>
> ---------------------------------------------------------------------
> >  >>  >>  >>  To unsubscribe, e-mail:
> >  >> jmeter-user-unsubscribe@jakarta.apache.org
> >  >>  >>  >>  For additional commands, e-mail:
> >  >> jmeter-user-help@jakarta.apache.org
> >  >>  >>  >>
> >  >>  >>  >>
> >  >>  >>  >
> >  >>  >>  >
> >  >> ---------------------------------------------------------------------
> >  >>  >>  > To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> >  >>  >>  > For additional commands, e-mail:
> >  >> jmeter-user-help@jakarta.apache.org
> >  >>  >>  >
> >  >>  >>  >
> >  >>  >>  >
> >  >>  >>
> >  >>  >>
> >  >>  >> --
> >  >>  >>  View this message in context:
> >  >>  >>
> >  >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
> >  >>  >>
> >  >>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >  >>  >>
> >  >>  >>
> >  >>  >>
> >  >> ---------------------------------------------------------------------
> >  >>  >>  To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> >  >>  >>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >  >>  >>
> >  >>  >>
> >  >>  >
> >  >>  >
> ---------------------------------------------------------------------
> >  >>  > To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> >  >>  > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >  >>  >
> >  >>  >
> >  >>  >
> >  >>
> >  >>  --
> >  >>
> >  >> View this message in context:
> >  >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
> >  >>
> >  >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >  >>
> >  >>
> >  >>
>  ---------------------------------------------------------------------
> >  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >  >>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >  >>
> >  >>
> >  >
> >  > ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >  >
> >  >
> >  >
> >
> >
> >
> >  --
> >
> > View this message in context:
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
> >
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> >
> >  ---------------------------------------------------------------------
> >  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Wait for Text to show up before moving on

Posted by Deepak Shetty <sh...@gmail.com>.
hi
use LiveHTTPHeaders in firefox and check what the browser is posting (and at
what intervals of time) whether to the same url or to a different url or
whether the data that is being posted changes
Add view results tree in your test and compare what is getting sent from
JMeter v/s what the browser sent.

if there is some variable data like a token or something then you will have
to extract it (using another regex extractor ) and then make your
HTTPSampler post that data.


regards
deepak

On Wed, Aug 12, 2009 at 12:07 PM, hoffm11 <ho...@gmail.com> wrote:

>
> ok.  There is a weird issue with the website I am testing so its difficult
> to
> get this info..  I wanted to ask this though..
>
> I have another page that has a message "Building page ID" and when its done
> it returns a result set.  The page I am testing seems to keep posting
> itself
> and I never see the result set through JMeter.  Does something in the "Http
> Request" need changed so it just sits there until that message goes away?
> Do the method need changed?
>
> Thanks for your help!
>
>
>
> sebb-2-2 wrote:
> >
> > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >>
> >>
> >>  ok.  I have a page that has wait_spin.gif in the body.  Once the page
> is
> >>  done processing, wait_spin.gif goes away and the result set is
> returned.
> >>
> >>  In my while loop, I have
> >>
> >>  While (condition:  ${match})
> >>  - HTTP Request
> >>  -- RegEx Extractor
> >>  ----reference name:  match
> >>  ----reg Ex:  (wait_spin\.gif)
> >>
> >> ----Template:  $1$
> >>  ----Match No. 1
> >>
> >> ----default value:  NO VALUE
> >>
> >>  Evethough wait_spin.gif doesn't show up it still stays in the while
> >> loop.
> >>
> >>  What the heck am I not doing right?
> >>
> >
> > As I wrote already, the While Controller condition needs to evaluate
> > to "false" in order to exit the loop.
> >
> > As far as I can tell, ${match} will be equal to "NO VALUE" or
> > "wait_spin.gif".
> >
> > Neither of these is the same as "false".
> >
> >>
> >>
> >> sebb-2-2 wrote:
> >>  >
> >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >>  >>
> >>  >>  Um, I am confused why this isn't valid?  I thought you can just
> >> specify
> >>  >> the
> >>  >>  variable in the condition?
> >>  >
> >>  > Of course, but the condition has to evaluate to "false" in order to
> >>  > exit the loop.
> >>  > See the documentation.
> >>  >
> >>  >>  I expect it to exit the while loop once the text "Total Number
> >> Returned"
> >>  >> is
> >>  >>  return and then continue on with the rest of the script.  The
> >>  >> application
> >>  >>  uses a lot of ajax stuff and this is the only why I can get this to
> >>  >> work.
> >>  >>
> >>  >>  Can you give me an example on how this can be done and what I am
> >> doing
> >>  >>  incorrect?
> >>  >>
> >>  >>
> >>  >>
> >>  >>
> >>  >>  sebb-2-2 wrote:
> >>  >>  >
> >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >>  >>  >>
> >>  >>  >>  Alright here is what I have.
> >>  >>  >>
> >>  >>  >>  While Controller  (Condition..  ${match}
> >>  >>  >
> >>  >>  > That is not a valid condition, see:
> >>  >>  >
> >>  >>  >
> >>  >>
> >>
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
> >>  >>  >
> >>  >>  >>  - Regex Expression
> >>  >>  >>   -  Ref Name:  match
> >>  >>  >>   -  Reg Ex:  Total Number Returned
> >>  >>  >>   - Template:  $1$
> >>  >>  >>   -  Match No.  1
> >>  >>  >>   -  Default value:  NO VALUE
> >>  >>  >>
> >>  >>  >>  - HTTP Request (this page will have a hourglass and then post
> >> "Total
> >>  >>  >> Number
> >>  >>  >>  Returned" when done)
> >>  >>  >>   -  show.page
> >>  >>  >>
> >>  >>  >>  This does not work for me.
> >>  >>  >>
> >>  >>  >
> >>  >>  > In what way does it not work?
> >>  >>  > What happens?
> >>  >>  > What did you expect to happen?
> >>  >>  >
> >>  >>  >>
> >>  >>  >>  sebb-2-2 wrote:
> >>  >>  >>  >
> >>  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
> >>  >>  >>  >>
> >>  >>  >>  >>  Is there a way in jmeter to say..
> >>  >>  >>  >>
> >>  >>  >>  >>  Wait for Assertion X to display on the screen before moving
> >> to
> >>  >> the
> >>  >>  >> next
> >>  >>  >>  >>  request in the script?
> >>  >>  >>  >
> >>  >>  >>  > How does a browser do this?
> >>  >>  >>  >
> >>  >>  >>  > You need to create a While loop with the appropriate sampler
> >> and
> >>  >>  >>  > Post-Processor.
> >>  >>  >>  >
> >>  >>  >>  >> --
> >>  >>  >>  >>  View this message in context:
> >>  >>  >>  >>
> >>  >>  >>
> >>  >>
> >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
> >>  >>  >>  >>  Sent from the JMeter - User mailing list archive at
> >> Nabble.com.
> >>  >>  >>  >>
> >>  >>  >>  >>
> >>  >>  >>  >>
> >>  >>  >>
> >> ---------------------------------------------------------------------
> >>  >>  >>  >>  To unsubscribe, e-mail:
> >>  >> jmeter-user-unsubscribe@jakarta.apache.org
> >>  >>  >>  >>  For additional commands, e-mail:
> >>  >> jmeter-user-help@jakarta.apache.org
> >>  >>  >>  >>
> >>  >>  >>  >>
> >>  >>  >>  >
> >>  >>  >>  >
> >>  >>
> ---------------------------------------------------------------------
> >>  >>  >>  > To unsubscribe, e-mail:
> >> jmeter-user-unsubscribe@jakarta.apache.org
> >>  >>  >>  > For additional commands, e-mail:
> >>  >> jmeter-user-help@jakarta.apache.org
> >>  >>  >>  >
> >>  >>  >>  >
> >>  >>  >>  >
> >>  >>  >>
> >>  >>  >>
> >>  >>  >> --
> >>  >>  >>  View this message in context:
> >>  >>  >>
> >>  >>
> >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
> >>  >>  >>
> >>  >>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >>  >>  >>
> >>  >>  >>
> >>  >>  >>
> >>  >>
> ---------------------------------------------------------------------
> >>  >>  >>  To unsubscribe, e-mail:
> >> jmeter-user-unsubscribe@jakarta.apache.org
> >>  >>  >>  For additional commands, e-mail:
> >> jmeter-user-help@jakarta.apache.org
> >>  >>  >>
> >>  >>  >>
> >>  >>  >
> >>  >>  >
> >> ---------------------------------------------------------------------
> >>  >>  > To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> >>  >>  > For additional commands, e-mail:
> >> jmeter-user-help@jakarta.apache.org
> >>  >>  >
> >>  >>  >
> >>  >>  >
> >>  >>
> >>  >>  --
> >>  >>
> >>  >> View this message in context:
> >>  >>
> >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
> >>  >>
> >>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >>  >>
> >>  >>
> >>  >>
> >> ---------------------------------------------------------------------
> >>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>  >>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> >>  >>
> >>  >>
> >>  >
> >>  > ---------------------------------------------------------------------
> >>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>  >
> >>  >
> >>  >
> >>
> >>
> >>
> >>  --
> >>
> >> View this message in context:
> >>
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
> >>
> >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >>
> >>
> >>  ---------------------------------------------------------------------
> >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24942805.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Wait for Text to show up before moving on

Posted by hoffm11 <ho...@gmail.com>.
ok.  There is a weird issue with the website I am testing so its difficult to
get this info..  I wanted to ask this though..

I have another page that has a message "Building page ID" and when its done
it returns a result set.  The page I am testing seems to keep posting itself
and I never see the result set through JMeter.  Does something in the "Http
Request" need changed so it just sits there until that message goes away? 
Do the method need changed?

Thanks for your help!



sebb-2-2 wrote:
> 
> On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>
>>
>>  ok.  I have a page that has wait_spin.gif in the body.  Once the page is
>>  done processing, wait_spin.gif goes away and the result set is returned.
>>
>>  In my while loop, I have
>>
>>  While (condition:  ${match})
>>  - HTTP Request
>>  -- RegEx Extractor
>>  ----reference name:  match
>>  ----reg Ex:  (wait_spin\.gif)
>>
>> ----Template:  $1$
>>  ----Match No. 1
>>
>> ----default value:  NO VALUE
>>
>>  Evethough wait_spin.gif doesn't show up it still stays in the while
>> loop.
>>
>>  What the heck am I not doing right?
>>
> 
> As I wrote already, the While Controller condition needs to evaluate
> to "false" in order to exit the loop.
> 
> As far as I can tell, ${match} will be equal to "NO VALUE" or
> "wait_spin.gif".
> 
> Neither of these is the same as "false".
> 
>>
>>
>> sebb-2-2 wrote:
>>  >
>>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>  >>
>>  >>  Um, I am confused why this isn't valid?  I thought you can just
>> specify
>>  >> the
>>  >>  variable in the condition?
>>  >
>>  > Of course, but the condition has to evaluate to "false" in order to
>>  > exit the loop.
>>  > See the documentation.
>>  >
>>  >>  I expect it to exit the while loop once the text "Total Number
>> Returned"
>>  >> is
>>  >>  return and then continue on with the rest of the script.  The
>>  >> application
>>  >>  uses a lot of ajax stuff and this is the only why I can get this to
>>  >> work.
>>  >>
>>  >>  Can you give me an example on how this can be done and what I am
>> doing
>>  >>  incorrect?
>>  >>
>>  >>
>>  >>
>>  >>
>>  >>  sebb-2-2 wrote:
>>  >>  >
>>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>  >>  >>
>>  >>  >>  Alright here is what I have.
>>  >>  >>
>>  >>  >>  While Controller  (Condition..  ${match}
>>  >>  >
>>  >>  > That is not a valid condition, see:
>>  >>  >
>>  >>  >
>>  >>
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>>  >>  >
>>  >>  >>  - Regex Expression
>>  >>  >>   -  Ref Name:  match
>>  >>  >>   -  Reg Ex:  Total Number Returned
>>  >>  >>   - Template:  $1$
>>  >>  >>   -  Match No.  1
>>  >>  >>   -  Default value:  NO VALUE
>>  >>  >>
>>  >>  >>  - HTTP Request (this page will have a hourglass and then post
>> "Total
>>  >>  >> Number
>>  >>  >>  Returned" when done)
>>  >>  >>   -  show.page
>>  >>  >>
>>  >>  >>  This does not work for me.
>>  >>  >>
>>  >>  >
>>  >>  > In what way does it not work?
>>  >>  > What happens?
>>  >>  > What did you expect to happen?
>>  >>  >
>>  >>  >>
>>  >>  >>  sebb-2-2 wrote:
>>  >>  >>  >
>>  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>  >>  >>  >>
>>  >>  >>  >>  Is there a way in jmeter to say..
>>  >>  >>  >>
>>  >>  >>  >>  Wait for Assertion X to display on the screen before moving
>> to
>>  >> the
>>  >>  >> next
>>  >>  >>  >>  request in the script?
>>  >>  >>  >
>>  >>  >>  > How does a browser do this?
>>  >>  >>  >
>>  >>  >>  > You need to create a While loop with the appropriate sampler
>> and
>>  >>  >>  > Post-Processor.
>>  >>  >>  >
>>  >>  >>  >> --
>>  >>  >>  >>  View this message in context:
>>  >>  >>  >>
>>  >>  >>
>>  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>>  >>  >>  >>  Sent from the JMeter - User mailing list archive at
>> Nabble.com.
>>  >>  >>  >>
>>  >>  >>  >>
>>  >>  >>  >>
>>  >>  >>
>> ---------------------------------------------------------------------
>>  >>  >>  >>  To unsubscribe, e-mail:
>>  >> jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  >>  >>  For additional commands, e-mail:
>>  >> jmeter-user-help@jakarta.apache.org
>>  >>  >>  >>
>>  >>  >>  >>
>>  >>  >>  >
>>  >>  >>  >
>>  >> ---------------------------------------------------------------------
>>  >>  >>  > To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  >>  > For additional commands, e-mail:
>>  >> jmeter-user-help@jakarta.apache.org
>>  >>  >>  >
>>  >>  >>  >
>>  >>  >>  >
>>  >>  >>
>>  >>  >>
>>  >>  >> --
>>  >>  >>  View this message in context:
>>  >>  >>
>>  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>>  >>  >>
>>  >>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>>  >>  >>
>>  >>  >>
>>  >>  >>
>>  >> ---------------------------------------------------------------------
>>  >>  >>  To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  >>  For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>>  >>  >>
>>  >>  >>
>>  >>  >
>>  >>  >
>> ---------------------------------------------------------------------
>>  >>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  > For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>>  >>  >
>>  >>  >
>>  >>  >
>>  >>
>>  >>  --
>>  >>
>>  >> View this message in context:
>>  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
>>  >>
>>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>>  >>
>>  >>
>>  >> 
>> ---------------------------------------------------------------------
>>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >>
>>  >>
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >
>>  >
>>  >
>>
>>
>>
>>  --
>>
>> View this message in context:
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
>>
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24942805.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by sebb <se...@gmail.com>.
On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>
>
>  ok.  I have a page that has wait_spin.gif in the body.  Once the page is
>  done processing, wait_spin.gif goes away and the result set is returned.
>
>  In my while loop, I have
>
>  While (condition:  ${match})
>  - HTTP Request
>  -- RegEx Extractor
>  ----reference name:  match
>  ----reg Ex:  (wait_spin\.gif)
>
> ----Template:  $1$
>  ----Match No. 1
>
> ----default value:  NO VALUE
>
>  Evethough wait_spin.gif doesn't show up it still stays in the while loop.
>
>  What the heck am I not doing right?
>

As I wrote already, the While Controller condition needs to evaluate
to "false" in order to exit the loop.

As far as I can tell, ${match} will be equal to "NO VALUE" or "wait_spin.gif".

Neither of these is the same as "false".

>
>
> sebb-2-2 wrote:
>  >
>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  >>
>  >>  Um, I am confused why this isn't valid?  I thought you can just specify
>  >> the
>  >>  variable in the condition?
>  >
>  > Of course, but the condition has to evaluate to "false" in order to
>  > exit the loop.
>  > See the documentation.
>  >
>  >>  I expect it to exit the while loop once the text "Total Number Returned"
>  >> is
>  >>  return and then continue on with the rest of the script.  The
>  >> application
>  >>  uses a lot of ajax stuff and this is the only why I can get this to
>  >> work.
>  >>
>  >>  Can you give me an example on how this can be done and what I am doing
>  >>  incorrect?
>  >>
>  >>
>  >>
>  >>
>  >>  sebb-2-2 wrote:
>  >>  >
>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  >>  >>
>  >>  >>  Alright here is what I have.
>  >>  >>
>  >>  >>  While Controller  (Condition..  ${match}
>  >>  >
>  >>  > That is not a valid condition, see:
>  >>  >
>  >>  >
>  >> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>  >>  >
>  >>  >>  - Regex Expression
>  >>  >>   -  Ref Name:  match
>  >>  >>   -  Reg Ex:  Total Number Returned
>  >>  >>   - Template:  $1$
>  >>  >>   -  Match No.  1
>  >>  >>   -  Default value:  NO VALUE
>  >>  >>
>  >>  >>  - HTTP Request (this page will have a hourglass and then post "Total
>  >>  >> Number
>  >>  >>  Returned" when done)
>  >>  >>   -  show.page
>  >>  >>
>  >>  >>  This does not work for me.
>  >>  >>
>  >>  >
>  >>  > In what way does it not work?
>  >>  > What happens?
>  >>  > What did you expect to happen?
>  >>  >
>  >>  >>
>  >>  >>  sebb-2-2 wrote:
>  >>  >>  >
>  >>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  >>  >>  >>
>  >>  >>  >>  Is there a way in jmeter to say..
>  >>  >>  >>
>  >>  >>  >>  Wait for Assertion X to display on the screen before moving to
>  >> the
>  >>  >> next
>  >>  >>  >>  request in the script?
>  >>  >>  >
>  >>  >>  > How does a browser do this?
>  >>  >>  >
>  >>  >>  > You need to create a While loop with the appropriate sampler and
>  >>  >>  > Post-Processor.
>  >>  >>  >
>  >>  >>  >> --
>  >>  >>  >>  View this message in context:
>  >>  >>  >>
>  >>  >>
>  >> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>  >>  >>  >>  Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>  >>  >>
>  >>  >>  >>
>  >>  >>  >>
>  >>  >> ---------------------------------------------------------------------
>  >>  >>  >>  To unsubscribe, e-mail:
>  >> jmeter-user-unsubscribe@jakarta.apache.org
>  >>  >>  >>  For additional commands, e-mail:
>  >> jmeter-user-help@jakarta.apache.org
>  >>  >>  >>
>  >>  >>  >>
>  >>  >>  >
>  >>  >>  >
>  >> ---------------------------------------------------------------------
>  >>  >>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  >>  > For additional commands, e-mail:
>  >> jmeter-user-help@jakarta.apache.org
>  >>  >>  >
>  >>  >>  >
>  >>  >>  >
>  >>  >>
>  >>  >>
>  >>  >> --
>  >>  >>  View this message in context:
>  >>  >>
>  >> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>  >>  >>
>  >>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>  >>
>  >>  >>
>  >>  >>
>  >> ---------------------------------------------------------------------
>  >>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>  >>
>  >>  >>
>  >>  >
>  >>  > ---------------------------------------------------------------------
>  >>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>  >
>  >>  >
>  >>  >
>  >>
>  >>  --
>  >>
>  >> View this message in context:
>  >> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
>  >>
>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>
>  >>
>  >>  ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>
>  >>
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>  >
>
>
>
>  --
>
> View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by hoffm11 <ho...@gmail.com>.

ok.  I have a page that has wait_spin.gif in the body.  Once the page is
done processing, wait_spin.gif goes away and the result set is returned.

In my while loop, I have

While (condition:  ${match})
- HTTP Request
-- RegEx Extractor
----reference name:  match
----reg Ex:  (wait_spin\.gif)
----Template:  $1$
----Match No. 1
----default value:  NO VALUE

Evethough wait_spin.gif doesn't show up it still stays in the while loop.

What the heck am I not doing right?  



sebb-2-2 wrote:
> 
> On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>
>>  Um, I am confused why this isn't valid?  I thought you can just specify
>> the
>>  variable in the condition?
> 
> Of course, but the condition has to evaluate to "false" in order to
> exit the loop.
> See the documentation.
> 
>>  I expect it to exit the while loop once the text "Total Number Returned"
>> is
>>  return and then continue on with the rest of the script.  The
>> application
>>  uses a lot of ajax stuff and this is the only why I can get this to
>> work.
>>
>>  Can you give me an example on how this can be done and what I am doing
>>  incorrect?
>>
>>
>>
>>
>>  sebb-2-2 wrote:
>>  >
>>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>  >>
>>  >>  Alright here is what I have.
>>  >>
>>  >>  While Controller  (Condition..  ${match}
>>  >
>>  > That is not a valid condition, see:
>>  >
>>  >
>> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>>  >
>>  >>  - Regex Expression
>>  >>   -  Ref Name:  match
>>  >>   -  Reg Ex:  Total Number Returned
>>  >>   - Template:  $1$
>>  >>   -  Match No.  1
>>  >>   -  Default value:  NO VALUE
>>  >>
>>  >>  - HTTP Request (this page will have a hourglass and then post "Total
>>  >> Number
>>  >>  Returned" when done)
>>  >>   -  show.page
>>  >>
>>  >>  This does not work for me.
>>  >>
>>  >
>>  > In what way does it not work?
>>  > What happens?
>>  > What did you expect to happen?
>>  >
>>  >>
>>  >>  sebb-2-2 wrote:
>>  >>  >
>>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>  >>  >>
>>  >>  >>  Is there a way in jmeter to say..
>>  >>  >>
>>  >>  >>  Wait for Assertion X to display on the screen before moving to
>> the
>>  >> next
>>  >>  >>  request in the script?
>>  >>  >
>>  >>  > How does a browser do this?
>>  >>  >
>>  >>  > You need to create a While loop with the appropriate sampler and
>>  >>  > Post-Processor.
>>  >>  >
>>  >>  >> --
>>  >>  >>  View this message in context:
>>  >>  >>
>>  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>>  >>  >>  Sent from the JMeter - User mailing list archive at Nabble.com.
>>  >>  >>
>>  >>  >>
>>  >>  >>
>>  >> ---------------------------------------------------------------------
>>  >>  >>  To unsubscribe, e-mail:
>> jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  >>  For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>>  >>  >>
>>  >>  >>
>>  >>  >
>>  >>  >
>> ---------------------------------------------------------------------
>>  >>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  > For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>>  >>  >
>>  >>  >
>>  >>  >
>>  >>
>>  >>
>>  >> --
>>  >>  View this message in context:
>>  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>>  >>
>>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>>  >>
>>  >>
>>  >> 
>> ---------------------------------------------------------------------
>>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >>
>>  >>
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >
>>  >
>>  >
>>
>>  --
>>
>> View this message in context:
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
>>
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 



-- 
View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24941184.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by sebb <se...@gmail.com>.
On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>
>  Um, I am confused why this isn't valid?  I thought you can just specify the
>  variable in the condition?

Of course, but the condition has to evaluate to "false" in order to
exit the loop.
See the documentation.

>  I expect it to exit the while loop once the text "Total Number Returned" is
>  return and then continue on with the rest of the script.  The application
>  uses a lot of ajax stuff and this is the only why I can get this to work.
>
>  Can you give me an example on how this can be done and what I am doing
>  incorrect?
>
>
>
>
>  sebb-2-2 wrote:
>  >
>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  >>
>  >>  Alright here is what I have.
>  >>
>  >>  While Controller  (Condition..  ${match}
>  >
>  > That is not a valid condition, see:
>  >
>  > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>  >
>  >>  - Regex Expression
>  >>   -  Ref Name:  match
>  >>   -  Reg Ex:  Total Number Returned
>  >>   - Template:  $1$
>  >>   -  Match No.  1
>  >>   -  Default value:  NO VALUE
>  >>
>  >>  - HTTP Request (this page will have a hourglass and then post "Total
>  >> Number
>  >>  Returned" when done)
>  >>   -  show.page
>  >>
>  >>  This does not work for me.
>  >>
>  >
>  > In what way does it not work?
>  > What happens?
>  > What did you expect to happen?
>  >
>  >>
>  >>  sebb-2-2 wrote:
>  >>  >
>  >>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  >>  >>
>  >>  >>  Is there a way in jmeter to say..
>  >>  >>
>  >>  >>  Wait for Assertion X to display on the screen before moving to the
>  >> next
>  >>  >>  request in the script?
>  >>  >
>  >>  > How does a browser do this?
>  >>  >
>  >>  > You need to create a While loop with the appropriate sampler and
>  >>  > Post-Processor.
>  >>  >
>  >>  >> --
>  >>  >>  View this message in context:
>  >>  >>
>  >> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>  >>  >>  Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>  >>
>  >>  >>
>  >>  >>
>  >> ---------------------------------------------------------------------
>  >>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>  >>
>  >>  >>
>  >>  >
>  >>  > ---------------------------------------------------------------------
>  >>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>  >
>  >>  >
>  >>  >
>  >>
>  >>
>  >> --
>  >>  View this message in context:
>  >> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>  >>
>  >> Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>
>  >>
>  >>  ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>
>  >>
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>  >
>
>  --
>
> View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by hoffm11 <ho...@gmail.com>.
Um, I am confused why this isn't valid?  I thought you can just specify the
variable in the condition?

I expect it to exit the while loop once the text "Total Number Returned" is
return and then continue on with the rest of the script.  The application
uses a lot of ajax stuff and this is the only why I can get this to work.  

Can you give me an example on how this can be done and what I am doing
incorrect?  



sebb-2-2 wrote:
> 
> On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>
>>  Alright here is what I have.
>>
>>  While Controller  (Condition..  ${match}
> 
> That is not a valid condition, see:
> 
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
> 
>>  - Regex Expression
>>   -  Ref Name:  match
>>   -  Reg Ex:  Total Number Returned
>>   - Template:  $1$
>>   -  Match No.  1
>>   -  Default value:  NO VALUE
>>
>>  - HTTP Request (this page will have a hourglass and then post "Total
>> Number
>>  Returned" when done)
>>   -  show.page
>>
>>  This does not work for me.
>>
> 
> In what way does it not work?
> What happens?
> What did you expect to happen?
> 
>>
>>  sebb-2-2 wrote:
>>  >
>>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>  >>
>>  >>  Is there a way in jmeter to say..
>>  >>
>>  >>  Wait for Assertion X to display on the screen before moving to the
>> next
>>  >>  request in the script?
>>  >
>>  > How does a browser do this?
>>  >
>>  > You need to create a While loop with the appropriate sampler and
>>  > Post-Processor.
>>  >
>>  >> --
>>  >>  View this message in context:
>>  >>
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>>  >>  Sent from the JMeter - User mailing list archive at Nabble.com.
>>  >>
>>  >>
>>  >> 
>> ---------------------------------------------------------------------
>>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >>
>>  >>
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >
>>  >
>>  >
>>
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>>
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24939302.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by sebb <se...@gmail.com>.
On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>
>  Alright here is what I have.
>
>  While Controller  (Condition..  ${match}

That is not a valid condition, see:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller

>  - Regex Expression
>   -  Ref Name:  match
>   -  Reg Ex:  Total Number Returned
>   - Template:  $1$
>   -  Match No.  1
>   -  Default value:  NO VALUE
>
>  - HTTP Request (this page will have a hourglass and then post "Total Number
>  Returned" when done)
>   -  show.page
>
>  This does not work for me.
>

In what way does it not work?
What happens?
What did you expect to happen?

>
>  sebb-2-2 wrote:
>  >
>  > On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>  >>
>  >>  Is there a way in jmeter to say..
>  >>
>  >>  Wait for Assertion X to display on the screen before moving to the next
>  >>  request in the script?
>  >
>  > How does a browser do this?
>  >
>  > You need to create a While loop with the appropriate sampler and
>  > Post-Processor.
>  >
>  >> --
>  >>  View this message in context:
>  >> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>  >>  Sent from the JMeter - User mailing list archive at Nabble.com.
>  >>
>  >>
>  >>  ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>
>  >>
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>  >
>
>
> --
>  View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
>
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by hoffm11 <ho...@gmail.com>.
Alright here is what I have.

While Controller  (Condition..  ${match}
- Regex Expression
  -  Ref Name:  match
  -  Reg Ex:  Total Number Returned
  - Template:  $1$
  -  Match No.  1
  -  Default value:  NO VALUE

- HTTP Request (this page will have a hourglass and then post "Total Number
Returned" when done)
  -  show.page

This does not work for me.  


sebb-2-2 wrote:
> 
> On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>>
>>  Is there a way in jmeter to say..
>>
>>  Wait for Assertion X to display on the screen before moving to the next
>>  request in the script?
> 
> How does a browser do this?
> 
> You need to create a While loop with the appropriate sampler and
> Post-Processor.
> 
>> --
>>  View this message in context:
>> http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>>  Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24938085.html
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Wait for Text to show up before moving on

Posted by sebb <se...@gmail.com>.
On 12/08/2009, hoffm11 <ho...@gmail.com> wrote:
>
>  Is there a way in jmeter to say..
>
>  Wait for Assertion X to display on the screen before moving to the next
>  request in the script?

How does a browser do this?

You need to create a While loop with the appropriate sampler and Post-Processor.

> --
>  View this message in context: http://www.nabble.com/Wait-for-Text-to-show-up-before-moving-on-tp24935961p24935961.html
>  Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org