WebConversation wc = new WebConversation();
WebRequest req =
new GetMethodWebRequest("http://localhost:8080/easyuploader/login.jsp");
System.out.println("afterweb request");
WebResponse resp = wc.getResponse(req);
System.out.println("after web response");
WebForm form = resp.getFormWithName("LoginForm");
resp = wc.getCurrentPage();
assertEquals("User Name", resp.getTitle());
For this code I am getting exception as
afterweb request
java.lang.reflect.InvocationTargetException
Is this the right code to get the details abt Login page?
I am running this program as run->Junit Test in Eclipse
Can u explaing why I am getting like this?