David Amies | 2 Aug 2011 03:44
Picon
Picon
Favicon

Re: Handling loopbacks

I have a similar problem, I have an application written in Dojo That I need to test, I have tried with HTMLUnit (http://htmlunit.sourceforge.net/) and have had some success, it does spit out a lot of errors.
 
I am by no means a HTMLUnit, but it does seem to work with the grinder. I have got as far as opening the web page (with authentication) and getting the form elements, but have not successfully submitted the form (could be weirdness with my app?) The getting started guide (http://htmlunit.sourceforge.net/gettingStarted.html) has java examples that are not hard to convert to Jython.
If you try it I would be interested to hear how you go.
 
Dave.

>>> Philip Aston <philipa-O5WfVfzUwx8@public.gmane.org> 2/08/2011 1:53 am >>>
On 01/08/11 13:16, jason tilbury wrote:
> Hi
> I have an annoying situation where grinder is hitting a home page that
> actually is a javascript performing a loopback call to the server. The
> problem is that this seems to generate some url that can't of course
> be invoked by grinder, therefore grinder never sees the proper page,
> and hence misses out on session specific information. Anyone know of a
> general way of handling these situations so that I can see if I can
> manipulate it somehow?
> cheers
> J

Its theoretically possible to download and execute the javascript, but
this would be quite a research project.

I'd say your best route would be first to capture and understand the URL
generation behaviour of the javascript (either by inspecting the
javascript code, or recording the behaviour with wireshark or the
TCPProxy), then duplicate its function in your script.

- Phil

------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
grinder-use mailing list
grinder-use-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/grinder-use

****************************************************
This message has passed through an insecure network.
Please direct all enquiries to the message author.
****************************************************

**************************************************** This message has passed through an insecure network. Please direct all enquiries to the message author. ****************************************************

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

Gmane