RE: How to test error messages in JSF with HttpUnit
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <652366DEEF97A3438EC2F4669BD66BA58A792D@msgswbmnmsp31.wellsfargo.com> |
If you want to test the javascript validation, you might try jsunit. I would recommend using HttpUnit to test the application as if used by a browser with javascript turned off. If you really need to test how a real browser interacts with the site, then watir might be your best bet. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Chen, Wei Sent: Friday, March 24, 2006 2:58 AM To: [email protected] Subject: [Httpunit-develop] How to test error messages in JSF with HttpUnit Hi, I am going to use httpunit to test my web application written in JSF. If you've used JSF you know you normally use some validator in the JSP. If there is a validationerror, you can catch it by using <h:messages.../> etc. What I what is: How can I catch or test such error message? Regards