Yes, thats correct.

- Manish
kPoint wins *Global eLearning
Award<http://www.kpoint.com/kpoint-wins-learntech-global-e-learning-award/>
* in “Learning Technologies Solution”!


On Tue, Jul 16, 2013 at 4:27 PM, Niraj <niraj.khatm...@gmail.com> wrote:

> Hey Manish,
>
> Thanks a ton for helping me out. So please correct me if i am wrong
>
> UserDefined variable
> var = notfound
> while loop with the condition ${var} = = "notfound"
> Ajax1
> ----Regex
> Ajax2
> -----Regex
> Ajax3
> -----Regex
> Ajax4
> -----Regex
> Ajax5
> -----Regex
> 6th request with ID
>
>
>
>
>
>
> On Tue, Jul 16, 2013 at 3:34 PM, Manish Sapariya <msapar...@gmail.com
> >wrote:
>
> > In fact the condition for first while controller will be "as long as
> > ID=="ID_NOT_FOUND".
> > Set the id to ID_NOT_FOUND before  entering while loop. In the regex
> inside
> > while
> > loop set the value of id="ID_NOT_FOUND" if you don't find match.
> >
> > In the second while controller you will have to use loop count, which
> will
> > also be incremened
> > in first while, but willl not be used to break out of loop.
> >
> > -Manish
> > kPoint wins *Global eLearning
> > Award<
> http://www.kpoint.com/kpoint-wins-learntech-global-e-learning-award/
> > >
> > * in “Learning Technologies Solution”!
> >
> >
> > On Tue, Jul 16, 2013 at 3:30 PM, Manish Sapariya <msapar...@gmail.com
> > >wrote:
> >
> > > In that kapsule, you should break out of the loop as soon as you get
> the
> > > valid ID and complete next set of request in the next loop.
> > > In that case, simple loop controller may not be sufficient, you will
> have
> > > to go with while controller.
> > >
> > >
> > > If you need help for "how a while loop is used", I have a tutorial
> > > http://goo.gl/V6za3
> > > Hope this helps.
> > >
> > > Regards,
> > > Manish
> > > kPoint wins *Global eLearning Award<
> > http://www.kpoint.com/kpoint-wins-learntech-global-e-learning-award/>
> > > * in “Learning Technologies Solution”!
> > >
> > >
> > > On Tue, Jul 16, 2013 at 3:11 PM, Niraj <niraj.khatm...@gmail.com>
> wrote:
> > >
> > >> Let me give one example.
> > >>
> > >> Say i have 5 Ajax request and 6th request is the request which will be
> > >> using ID generated from one of the Ajax request.
> > >>
> > >> If i run test and ID gets returned from 3rd Ajax, so my next request
> > >> should
> > >> be 6th request which will be using ID from 3rd Ajax request. Now I
> don't
> > >> want to send 4th and 5th Ajax as they will override my variable as
> regx
> > >> also used in this requests.
> > >>
> > >>
> > >>
> > >>
> > >> On Tue, Jul 16, 2013 at 3:06 PM, Manish Sapariya <msapar...@gmail.com
> > >> >wrote:
> > >>
> > >> > In that case you can have loop controller and one HTTP sample inside
> > the
> > >> > loop, which has regex post processor.
> > >> > Regards,
> > >> > Manish
> > >> >
> > >> >
> > >> > On Tue, Jul 16, 2013 at 3:00 PM, Niraj <niraj.khatm...@gmail.com>
> > >> wrote:
> > >> >
> > >> > > All Ajax are same. Pooling some data from the server. Once it has
> > >> > required
> > >> > > data then display the book on browser.
> > >> > >
> > >> > >
> > >> > > On Tue, Jul 16, 2013 at 2:57 PM, Manish Sapariya <
> > msapar...@gmail.com
> > >> > > >wrote:
> > >> > >
> > >> > > > Are you sure, you application is really in-deterministic to this
> > >> > extent.
> > >> > > > I really don't think so.
> > >> > > >
> > >> > > > Are all these ajax request different?
> > >> > > > What do they do?
> > >> > > >
> > >> > > > Regards,
> > >> > > > Manish
> > >> > > > kPoint wins *Global eLearning
> > >> > > > Award<
> > >> > >
> > http://www.kpoint.com/kpoint-wins-learntech-global-e-learning-award/
> > >> > > > >
> > >> > > > * in “Learning Technologies Solution”!
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > On Tue, Jul 16, 2013 at 2:49 PM, Niraj <
> niraj.khatm...@gmail.com>
> > >> > wrote:
> > >> > > >
> > >> > > > > Hello All,
> > >> > > > >
> > >> > > > > I am facing one execution issue mentioned below.
> > >> > > > >
> > >> > > > > I have Web application where after successful login,User will
> > get
> > >> > home
> > >> > > > > page. On homepage user will get links for the books which he
> > >> > purchased.
> > >> > > > > Once user click on one of the link, new tab will get open and
> > user
> > >> > can
> > >> > > > view
> > >> > > > > the book. This is my scenario.
> > >> > > > >
> > >> > > > > Now while recording till login everything work out well. Now
> > When
> > >> > user
> > >> > > > > click on book and books get open in new tab in between there
> are
> > >> > around
> > >> > > > 50+
> > >> > > > > Ajax request gets sent from client to server which i can see
> in
> > my
> > >> > > JMeter
> > >> > > > > script.
> > >> > > > >
> > >> > > > > In one of the Ajax request response there is one ID gets
> > generated
> > >> > > which
> > >> > > > is
> > >> > > > > used in the next request which will open the book on browser.
> > >> > > > >
> > >> > > > > Now my issue how to extract that ID from Ajax request
> response.
> > >> > > Sometime
> > >> > > > i
> > >> > > > > am getting that ID in the 4th Ajax request and sometime in the
> > >> 40th
> > >> > > Ajax
> > >> > > > > request.
> > >> > > > >
> > >> > > > > Do i need to right regex for all the 50 Ajax requests?
> > >> > > > >
> > >> > > > > How i can execute the next request (which is not the Ajax)
> with
> > >> the
> > >> > ID
> > >> > > > from
> > >> > > > > Ajax request response?
> > >> > > > >
> > >> > > > > Please let me know if i need to provide any more details.
> > >> > > > >
> > >> > > > > Please let me know how i can handle this situation.
> > >> > > > >
> > >> > > > > Thanks,
> > >> > > > > Niraj
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
> > >
> >
> >
> > --
> > Thanks and Regards,
> > Manish
> > kPoint wins *Global eLearning
> > Award<
> http://www.kpoint.com/kpoint-wins-learntech-global-e-learning-award/
> > >
> > * in “Learning Technologies Solution”!
> >
>



-- 
Thanks and Regards,
Manish
kPoint wins *Global eLearning
Award<http://www.kpoint.com/kpoint-wins-learntech-global-e-learning-award/>
* in “Learning Technologies Solution”!

Reply via email to