I would say forget the test to simulate clicking the back button.  If its
just a simulation then its not a true "back button" test.  When a user
actually clicks on the "Back" button on the browser a true request is sent
to the server and a new response is recieved from the server.

It almost sounds like to me that httpunit should provide this feature.

I'm not opposed to the change.  In fact, the Setter identified should be
there anyway for conviences such as this..

If you haven't already, can you post the patch in the patches section?

Also, as a side note, it might even be nice to implement at the jwebunit api
a clickBackButton option.  With the Jacobie integration it is possible to
issue an IE "back button" request.  And a true resulting request response
cycle is issued.  The httpunit engine should just issue the previous request
to the server and "new" response is returned.

Thoughts......

See Ya,

Nick



> -----Original Message-----
> From: Mark Church [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 07, 2005 1:35 PM
> To: [email protected]
> Subject: [Jwebunit-development] Simulating the use of the back button
> 
> 
> I would like to simulate the use of the back button by the user using 
> jWebUnit.  However, as it stands I do not see a way to do this.
> Attached is a diff that adds the ability to the the WebResponse 
> associated with the HttpUnitDialog so that I can save a WebResponse
> from earlier in the test and later set this response as if 
> the user has 
> hit the back button to this page.  The diff also includes a test to 
> demostrate
> how I would use such a feature.
> 
> Any comments and / or suggestions would be appreciated.
> 
> Thanks,
> Mark Church
> 
> -- 
> 
> **********************************************************************
> CONFIDENTIALITY NOTICE:
> This E-mail and any attachments are confidential.  If you are not the 
> intended recipient, you do not have permission to disclose, copy, 
> distribute, or open any attachments.  If you have received this E-mail
> in error, please notify us immediately by returning it to the sender 
> and delete this copy from your system.  
> 
> Thank you.
> accessIndiana, MyLocal.IN.gov, CivicNet
> 
> 


- - - - - - 
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this message and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender immediately
by reply e-mail and delete this message from your system. Thank you.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to