Hi Bernard,

Thanks for this feedback. I totally agree with you, both kind of methods can be 
usefull.

assertFormElement[Not]Present(String formElementName)
assertFormElementEquals(String formElementName, String expectedValue)
assertFormElementEmpty(String formElementName)
...

were deprecated to help users migrating from JWebUnit 1.2 (with HttpUnit) to 
JWebUnit 1.3+ (with HtmlUnit). HttpUnit doesn't care about widget type, because 
it only works on HTTP request. With HtmlUnit, we should use the right method 
(in order to fire all the associated JavaScript events).

Perhaps can I reintroduce the deprecated methods in a next release, but it will 
not be as simple as it was with HttpUnit.

++

Julien

----- Message d'origine ----
De : "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Mercredi, 13 Décembre 2006, 9h17mn 29s
Objet : [Jwebunit-users] Testing jWebUnit 1.4 CR2



Hi,



I started testing the latest release.
I could validate that the bugs/feature requests I reported in 1.3 are perfectly
fixed. Great.



On the other hand I sometimes had to
change my test case to fit the new release. This is problematic as the
number of test cases becomes important.



I realized one big difference is that
1.4 introduce more strongly typed methods. This is indeed important to
be able to validate the type of widget (radio, checkboxes, list boxes,
etc) simultaneously with the value it contains.



I find it a bad idea to deprecate the
lazily typed methods. When writing a test you may well want to check that
a form element contains a given value regardless of the nture of the widget.
It should be possible to write a test so that refactoring the application
turning a text field into a select or a radio button group without changing
the functionality does not break the test.



I think both the lazily typed and the
strongly typed test methods are interesting. Using one or the other depends
on the requirements of your test case. In my opinion, the test framework
should allow both approaches



Thanks for all.



Bernard-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to