Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Beginner
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

starting with investgation of QTP and reading documents I've not found any indication if QTP recognizes colours. (for icon tests)
Does it?


Looking forward to read your answers.

Bye Edi
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Edi,

Are you looking for color of an Object ? If that is the case, you would get the Format of color stored.

Code to check the color of the Link in Gmail :

Code:
a = Browser("Gmail: Email from Google").Page("Gmail: Email from Google").Link("Can't access your account?").Object.currentStyle.Color
msgbox a


Thanks,
Deepak.Bhandarkar
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Nope. QTP does not recognize colors displayed. It can only retrieve the color set for a static text (like forecolor,backcolor etc).

If you want to perform icon test the closet would be the bitmap checkpoint. [ However it is not a guaranteed one and has several dependencies on the Machine you record due to pixel variations. If you want to work through, from QTP 9.2 to QTP 9.5 you will need to modify the tolerance level of RGB through the Registry settings. For QTP 10.0 you can do that on the test settings->Bitmap checkpoint and increase the tolerance level ].
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Please help -Beginner for QTP suchi_data@yahoo.co.in 3 2,760 01-04-2011, 09:50 PM
Last Post: Zelfiris

Forum Jump:


Users browsing this thread: 1 Guest(s)