Meaningless Drivel is fun!*
The moose likes Testing and the fly likes Problem when submit a form with HTTPUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Problem when submit a form with HTTPUnit" Watch "Problem when submit a form with HTTPUnit" New topic
Author

Problem when submit a form with HTTPUnit

Trung NguyenTuan
Greenhorn

Joined: Mar 14, 2006
Posts: 2
Hi all,
I'm using HttpUnit (version 1.6 and 1.7) to automatically submit a form.
Here is the html code:

And my Java code:

After running the code, I get exactly the same page before submitting (The correct expected value is the "uiButtonMarkeraIntresse" button change its value to something else). Does anyone have the same problem? I guess it happens because the action string "Lagenhet.aspx?Diarienr=2090536" is the same with the url before submitting - the page submits to itself. Any help is really appreciated.

Thanks,
Trung
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem when submit a form with HTTPUnit
 
Similar Threads
No scrolling in text input after uppercase ?
Fieldset is not working
problem in using Ajax calls
Creating-deleting rows in HTML(URGENT)
spaces while populating using s:iterator