Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need QTP to catch a specific error
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi

I have a login script, where I have a data table to feed the user Id and the password. What I would like to be able to do is on the table to include the combination of incorrect information (user id and/or password) and want the QTP to check if an expected result for incorrect information is feed in, it will pass the test and go on to next row of data. How can I achieve this?


Cheers
Kathy
Reply
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
You need to apply conditional statements over the correct/incorrect values. if correct values are passed (that means no pop up OR error message would be displayed) then go ahead with that row in datatable otherwise select the next row of datatable.

For selecting rows you have different functions available. You can have a look at my QTP blog --> "QTP and Excel" series posts to find the functions.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to open IE/Chrome/Firefox with a specific size? DarkestAmadeus 0 1,930 07-19-2018, 05:38 AM
Last Post: DarkestAmadeus
  Check specific links of a webpage rocky9 1 2,554 06-11-2015, 06:23 PM
Last Post: venkatesh9032
  Pass specific design steps in QC through QTP TurtleRock 0 1,655 09-06-2012, 01:23 PM
Last Post: TurtleRock
  Count number of webelement with specific names kalaivanan123 2 4,446 07-31-2012, 11:52 AM
Last Post: Ankesh
  how to save a report from a browser in a specific folder with specific name? avanthika 0 2,416 12-23-2011, 12:17 AM
Last Post: avanthika

Forum Jump:


Users browsing this thread: 1 Guest(s)