Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Testing and the fly likes JWebUnit: Assertionfailed (missing form) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "JWebUnit: Assertionfailed (missing form)" Watch "JWebUnit: Assertionfailed (missing form)" New topic
Author

JWebUnit: Assertionfailed (missing form)

Matt Jonzon
Greenhorn

Joined: May 22, 2007
Posts: 1
Hello everyone, i am using JWebUnit for testing of JSP-pages.

I get an the following error when trying to click a button:

junit.framework.AssertionFailedError: No form present

But the button is no submit button, but rather a button with the onclick attribute.

Do I really have to use a form? This is the test method:

Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
It would help if you'd post the HTML for the FORM element within which the onclick-wired "button" is.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JWebUnit: Assertionfailed (missing form)