Micro Focus QTP (UFT) Forums
Color testing useing QTP - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Color testing useing QTP (/Thread-Color-testing-useing-QTP)



Color testing useing QTP - amitspandey - 01-10-2011

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


RE: Color testing useing QTP - manishbhalshankar - 01-11-2011

Hi Amit,
This can be done using:
Code:
testObject.Object.currentStyle.backgroundcolor



RE: Color testing useing QTP - amitspandey - 01-11-2011

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.


RE: Color testing useing QTP - amitspandey - 01-14-2011

Hi Pankaj,
As u have mentioned above can u suggest me some ways to to do it.???

Regards,
Amit
9773539313