10-13-2009, 12:15 AM
Good Afternoon,
This is my first post here on this Forum. So please excuse me if i have not posted in the correct area.
I am fairly new to the functionality of QTP. I went thru the tutorial. I am able to perform various tests in our application, that is only when the behavior is as expected. How do i handle unexpected behavior.
Simple Scenario:
Expected:
1. url
2. enter username, password
3. Login
4. Logout
If i disable to user:
1. url
2. enter username, password
3. after clicking the Login button, it routes me to a different page saying "user has been disabled" - at this point the script just hangs and there is an exception to stop, debug or skip.
How do I handle this, so the script can complete as failed instead of throwing an exception. I understand the basics of checkpoints, but how to set a checkpoint to continue a certain way if the login button routes me to a different page.
Please advise.
Thanks,
rd
This is my first post here on this Forum. So please excuse me if i have not posted in the correct area.
I am fairly new to the functionality of QTP. I went thru the tutorial. I am able to perform various tests in our application, that is only when the behavior is as expected. How do i handle unexpected behavior.
Simple Scenario:
Expected:
1. url
2. enter username, password
3. Login
4. Logout
If i disable to user:
1. url
2. enter username, password
3. after clicking the Login button, it routes me to a different page saying "user has been disabled" - at this point the script just hangs and there is an exception to stop, debug or skip.
How do I handle this, so the script can complete as failed instead of throwing an exception. I understand the basics of checkpoints, but how to set a checkpoint to continue a certain way if the login button routes me to a different page.
Please advise.
Thanks,
rd