Hi I am new to webUnit but I would try somthing like this: getDialog().getResponse().getForms() that should return an array of WebForms I am trying to find the best suiteable testing tool for web apps if you know htmlUnit would you please send me your own opinion on comparing those two.
Thanx Radek >hi all! >i'm not sure if jWebUnit is the best framework for what i'm trying to >do... >i'm trying to write a small "testing tool", that takes a URL, gets the >HTML >page, fills in all form elements in a form with "pseudo random" (or >some >kind of fuzzy logic) values, and submits the form. i know this is not >the >usual way of testing, but it should work for many or almost any form >from >different usecases. >this is similar to: "form flooder" -- http://formflood.sourceforge.net/ >my question: if there are multiple forms on a page, can i get a list >of >their names? e.g. there are 3 forms on every page, and i know >which two i >don't want to submit, but don't know the name of the one to fill out >(different name depending on usecase). then i would also need to >get the >list of elements (and input types) of this form, to fill out. is this >possible somehow? >i know jWebUnit is made for test cases, where you know exactly >what's on the >page to test, and not have to discover it first. >would HtmlUnit be better for this? >thanks for any response. >cheers, >Tom U. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Jwebunit-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
