| Author |
Problem of testing jsp using Jwebunit
|
dipika roy
Greenhorn
Joined: Sep 02, 2003
Posts: 1
|
|
Hi! I am trying to test a JSP page which having a link and on click i am getting a form for submission. public void setUp() { getTestContext().setBaseUrl("http://localhost:7001/admin"); } public void testMainPageLinks() { beginAt("/displayOperations.jsp"); assertLinkPresent("dispose");egards clickLink("dispose"); assertTitleEquals("Dispose Form"); } But here i am getting error java.lang.RuntimeException: com.meterware.httpunit.HttpInternalErrorException: Error on HTTP request: 500 Internal Error [http://localhost:7001/admin/displayOperations.jsp] Please tell me if any one have idea. Regards
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26184
|
|
|
Does the URL for that JSP work if you type it into a browser directly? Does the page expect any parameters or session data to be setup?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: Problem of testing jsp using Jwebunit
|
|
|