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 <[email protected]>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 <[email protected]> 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 <[email protected] > > >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 <[email protected]> > 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 > > > > > > > > > >
