Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best method to test Login validation
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi

I'm working on a log-in functionality for a webpage where the same object (dialog box) is displayed to the user but displays different message depending on if the correct password/invalid/blank/not enough characters is entered by the user.

I'm looking for a solution from a formal test perspective i.e. I need test evidence for each log-in data. Currently I'm using CaptureBitMap to save images of every dialog box displayed but I'm testing with lots of different data and don't want to save images for that much data. There must be a way of getting the dialog box properties (hopefully unique for each message) from the box, best would be to read the text directly off the box and save to excel/text file. Can anyone suggest the best method to use, should I use the dialog box properties method or should I try and create checkpoints? I tried using a simple text checkpoint but I can't highlight the text on the dialog box so QTP can't read it.

Any ideas would be much appreciated.
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
hi,
my advice is dont go with check point or bitmap concepts. instead of that try to get the text in the message box using innertext property or label property and compare the label values using INSTR.
try and let me know. meanwhile ill try to do the same for qtp forum login.
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Sathiya - thanks for your reply.

I have solved my issue using your idea of getting the property of the dialog box, the box displays the different messages at runtime so I used the GetRoProperty method to pull the "attached text" property which contained the text on the box.

Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,290 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  SwfTree View Validation in UFT YogeshCallappa 0 2,131 10-28-2016, 01:26 PM
Last Post: YogeshCallappa
  code for validation to create a sub folder smiley 0 1,540 10-19-2016, 10:08 PM
Last Post: smiley
  Mandatory field validation in QTP Yog 0 3,426 03-05-2015, 01:48 PM
Last Post: Yog
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 11,335 07-09-2014, 10:43 PM
Last Post: hhamilton

Forum Jump:


Users browsing this thread: 1 Guest(s)