On Tue, 2008-01-08 at 19:10 +0530, 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.

I tend to use siege quite a bit, but in this case I don't think it'll do
what you need.  One of the jetty devs recently did some cometd
benchmarking [1] you can find the code here [2] and maybe with some
hacking get it to do what you want.  imho this has to be less painful
than anything involving jmeter. (netbeans coincidentally has some
built-in jmeter support, but doubt that will help this case as well.)
Sorry I can't be more help also try the jmeter list maybe?

Good luck

./C

[1] http://cometdaily.com/2008/01/07/20000-reasons-that-comet-scales/
[2]
http://fisheye.codehaus.org/browse/jetty-contrib/jetty/branches/jetty-6.1/contrib/cometd/client/src/test/java/org/mortbay/cometd/client/BayeuxLoadGenerator.java?r=root:


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to