Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to handle bad login
#1
Solved: 10 Years, 10 Months ago
Hi,

I try to test a login page.

I've a Login action, filling username and password using global datatable
It is followed by a logout action (just a logout click)

I'm able to check good login/pwd pairs but how to manage bad login/pwd?

I mean when bad username/password pair is provided an error message is provided (this is normal) so test for this pair should stop. So how can i stop it without rrying to call logout action ?

thanks,
Reply
#2
Solved: 10 Years, 10 Months ago
Hi Gerfred,

Use "Utility statements" such as ExitTest Statement.
Reply
#3
Solved: 10 Years, 10 Months ago
Hi,

you mean you want to end the test iteration and go to the next row of the data table, if so you can use
If Pass then
exitTestIteration

Or can also use

DataTable.SetNextRow
Reply
#4
Solved: 10 Years, 10 Months ago
thanks for your help
Reply
#5
Solved: 10 Years, 10 Months ago
Hi gerfred ,

After entering user id and password we need to check the existance of the home page.If it is not navigated log the result as fail.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can UFT Handle Detecting Redirects? zunebuggy 0 792 05-28-2020, 06:50 PM
Last Post: zunebuggy
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 10,758 07-09-2014, 10:43 PM
Last Post: hhamilton
  Unable to Click on Login Button Paurav 1 3,177 07-03-2014, 05:27 AM
Last Post: supputuri
  for help.Run a test to login,and then it didn't jump to another page maosilu 0 2,593 11-01-2013, 01:27 PM
Last Post: maosilu
  How to handle pop up blocker. chetan-24 4 8,402 06-08-2012, 09:10 PM
Last Post: nilanjans

Forum Jump:


Users browsing this thread: 1 Guest(s)