Micro Focus QTP (UFT) Forums

Full Version: Color testing useing QTP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
as per the requirement i need to test the colour of the Bacground and the text in it of the windows application based exe.
plz help....thanks in advance
Hi Amit,
This can be done using:
Code:
testObject.Object.currentStyle.backgroundcolor
Thanks for ur reply i tried this but getting error as "object doesnt supprot this property" is there any orther way.
I have applied another logic like I first change the background color by setting the RGB values in the color pallete in the user setting menu and apply it,then i again open the window of the color palete from user settings menu and check the runtime value of RGB useing getroproperty.do u think this will it fulfill my testing requirement.
plz reply.
Hi Pankaj,
As u have mentioned above can u suggest me some ways to to do it.???

Regards,
Amit
9773539313