Originally posted by Ulf Dittmer:
A login page is an HTML form like any other, so you'd write a test case for it like you'd do with any HTML form page. Or does the problem have to do wtih retrieving usernames/passwords? If so, tell us in more detail what you have so far, and where you're stuck making progress.
My code is below
WebConversation wc = new WebConversation();
WebResponse wr = wc.getResponse(URL);
WebForm[] form = wr.getForms();
form[0].setParameter("userName","administartor");
form[0].setParameter("pass","password");
WebResponse rs1 = form[0].submit();
assertEquals("Page Title","Menu",rs1.getTitle());
this is static working properly. Here I checked with only one username administrator, but we are having multiple usernames , to check multiple usenames with respective passwords how do i write , please suggest me ,
Best Regards,
PP