File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
jQuery in Action, 2nd edition
 
subject: Problem when submit a form with HTTPUnit
 
Similar Threads
problem in using Ajax calls
spaces while populating using s:iterator
No scrolling in text input after uppercase ?
Creating-deleting rows in HTML(URGENT)
Fieldset is not working