On Jan 8, 2008 9:58 PM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote:
> Did you see the wicket wiki page on this... Looking closer I see you > did(as you wrote a part of it):) > > Kudos:) > > And btw I've had no trouble testing ajax with jmeter(was it you who > helped me with the regx for dropdowns?)... yep :) and the learnings from that ended up on the wiki, hope to add more soon... > > My case was to have a dropdown populate the palette via onchange and > ajax although this was on 1.2.6... > > regards Nino > > Peter Thomas 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. > > > > > > -- > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
