Hi Denali,

HtmlUnit is now the default testing engine. Concerning refresh, HtmlUnit can be 
configured by different RefreshHandler. JWebUnit uses the 
ImmediateRefreshHandler, that ignores refresh delay and follows immediatly 
redirections.

The only problem you may have is with page containing self redirection (auto 
refresh). To prevent infinite loop, the ImmediateRefreshHandler throw an 
exception when the source and target URL are the same. The message of the 
exception is not very clear (something about OutOfMemoryError).
In the latest release of JWebUnit, the behavior is a bit different. Only self 
redirections with a delay of 0 ms will throw an Exception (because it is a no 
sense). Self redirections with a delay > 0 will be simply ignored.

Hope I was clear enought :)

++

Julien

----- Message d'origine ----
De : Denali Lumma <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Vendredi, 9 Février 2007, 22h35mn 17s
Objet : [JWebUnit-users] migrating jwebunit from 1.0 to 1.4

Hi,
  I am upgrading out unit tests to use jwebunit 1.4.   We are
currently using version 1.0.  I have one lingering problem.

  When extend WebTestCase to a child class and use this as a parent
for all our black box automated tests.  When initiating this base
class we had the following code:

        // set the follow refresh option to true so we can follow
jredirect pages
        
getDialog().getWebConversation().getClientProperties().setAutoRefresh(true);

  This functionality is necissary because the web app has tons of
redirects.  The unit tests are failing without it.

  However, I am unclear how to reproduce this with the new version.
getDialog() is deprecated.  getWebConversation() no longer exists.

  I spent significant time looking for documentation, comments, and at
the source code and am having trouble grasping where this is
controlled currently.

  Any suggestions much appreciated.

Thank you!

-- 
Denali Lumma

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users







        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to