Hi All,
I tried submitting a form using the following code
String url = protocol + "://" + hostname + ":" + port + path;
WebRequest webRequest = new GetMethodWebRequest(url);
WebResponse webResponse = webConversation.getResponse(webRequest);
webResponse = webConversation.getCurrentPage();
WebForm form = webResponse.getFormWithName("logonForm");
form.setParameter("password", password);
form.setParameter("username", username);
form.submit();
where "logonForm" id the form's name in the
JSP.
Now i expect that the browser should go to Inbox Jsp. Thew title of that JSp is "Inbox" only. When i say assertEquals("Inbox",webResponse.getTitle)());
The
test fails.
So any one knows what could be the problem.
Pls help
Shrikant