QTP Beginner - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: QTP Beginner (/Thread-QTP-Beginner--2465) |
QTP Beginner - Edi - 10-05-2009 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 RE: QTP Beginner - qtpdeepak - 10-05-2009 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 Thanks, Deepak.Bhandarkar RE: QTP Beginner - basanth27 - 10-06-2009 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 ]. |