The random parameter is to prevent the browser from caching the requests. It shouldn't have any implication afaict. Martijn
On Jan 8, 2008 2:40 PM, Peter Thomas <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to use JMeter when Ajax is involved. I have a form where a > drop-down-choice "onChange" event, adds another drop-down onto the form > over > ajax. When the form is first shown, the second drop-down component is not > visible at all. After the ajax operation and when both the drop-downs are > visible, I submit the form normally. > > I tried to make this flow into a JMeter script. I am using the JMeter > regex > support and am able to scrape the ajax post url. I verified that the ajax > call successfully returns the XML response along with the expected HTML > chunk without any problems by using a response debug listener in JMeter. > Only thing I could be missing is that "&random=0.5855686047921232" kind of > thing at the end of the URL. > > The problem is this form has validation involving the second drop down and > when runing the JMeter script, the form validation always fails on submit. > It appears that even when JMeter has the drop-down value in the POST, > Wicket > doesn't see it I'm guessing maybe because the previous Ajax operation did > not work and Wicket thinks the second drop down is not visible yet. > > I seem to have everything right except the "random" thing. So my question > is - is it possible to use something like JMeter when Ajax is involved and > has anyone had any success with something like this? Does Wicket require > the "random" param in the Ajax request / url ? If this random param is > indeed required what is the best way to derive the value expected. If it > is > some wicket-ajax javascript function, it may be possible to get it > evaluated > by JMeter (rhino?) but it sounds like a very, very long shot :| > > Any suggestions or ideas would be greatly appreciated. > > Thanks, > > Peter. > -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
