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 Http Exception 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 "Http Exception" Watch "Http Exception" New topic
Author

Http Exception

Pen Pentela
Greenhorn

Joined: May 15, 2008
Posts: 8
Hi,
Iam writing soem HttpUnit cases for web application.

iam able to open login page n home page.I am getting some Exception when i try to click one link.

can any one help me how to do this

here is my code

WebLink[] link1=response.getLinks();
for (int j = 0; j < link1.length; j++)
{
String str2 = link1[j].getURLString();
//System.out.println(str1);
if(str2.equalsIgnoreCase(" some jsp url here"))

{
WebResponse resp1=link1[j].click();
WebForm[] Form = resp1.getForms();
System.out.println(resp1.getText());

}
}

BestRegards,
Newbie
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"pentela pp",
Please check your private messages regarding an important administrative matter.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Http Exception
 
Similar Threads
[HTTPUNIT] Read a *.jsp file
Making an instance of a class from a String?
Substring Challenge/Console input error
Could someone give this piece of code a look?
Referencing to another object