Micro Focus QTP (UFT) Forums
Does QTP support validation of colors - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Does QTP support validation of colors (/Thread-Does-QTP-support-validation-of-colors)



Does QTP support validation of colors - BVVPrasad - 06-09-2011

Hi All,

I have a test where in I have to validate color of status bar present in the application.

For example if one feature is enabled then color of the status bar is Green and if it is disabled then color of the status bar is red.

My understanding is that this is not possible with QTP. Can any of you help me with a way to validate this using QTP or any other tool/script.

Thanks for your help in advance
Prasad.


RE: Does QTP support validation of colors - suresh vasu - 06-09-2011

Hi Prasad,

Please check below link. It may help you to solve your problem.

http://motevich.blogspot.com/2008/06/status-bar-text-qtp.html

Suresh.


RE: Does QTP support validation of colors - BVVPrasad - 06-09-2011

Hi Suresh,

Thanks for your help. It can be used for getting the text from the status bar. I will have to validate the colour of the status bar present in my application as it changes basing on the chosen protection status (red/green).


Thanks,
Prasad.







RE: Does QTP support validation of colors - suresh vasu - 06-09-2011

Hi Prasad,
I have taken below question below and its answer from web on googling, check whether that helps you...
--------------------------------------------------------------------
Can i change properties of a run time object?

No (but Yes also). You can use GetROProperty(“outerText”) to get the outerText of a object but there is no function like SetROProperty tochange this property. But you can use WebElement().object.outerText=”Something” to change the property.
---------------------------------------------------------------------

Suresh.



RE: Does QTP support validation of colors - rajpes - 07-05-2011

It is possible only if spying on the status bar object shows some property indicating color of it