This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Testing and the fly likes Problem  of testing jsp using Jwebunit Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Problem  of testing jsp using Jwebunit" Watch "Problem  of testing jsp using Jwebunit" New topic
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
    
  66

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem of testing jsp using Jwebunit
 
Similar Threads
how to redirect servlet to jsp on weblogic
passing parameters to jsp page
Problem in JSP compilation with Weblogic 6.1
Passing Parameters to JSP page from HTML page
Regarding Thread Dump command