Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does QTP support validation of colors
#1
Solved: 11 Years, 4 Months ago
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.
Reply
#2
Solved: 11 Years, 4 Months ago
Hi Prasad,

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

http://motevich.blogspot.com/2008/06/sta...t-qtp.html

Suresh.
Reply
#3
Solved: 11 Years, 4 Months ago
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.




Reply
#4
Solved: 11 Years, 4 Months ago
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.
Reply
#5
Solved: 11 Years, 4 Months ago
It is possible only if spying on the status bar object shows some property indicating color of it
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,295 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  SwfTree View Validation in UFT YogeshCallappa 0 2,140 10-28-2016, 01:26 PM
Last Post: YogeshCallappa
  code for validation to create a sub folder smiley 0 1,547 10-19-2016, 10:08 PM
Last Post: smiley
  Does QTP / UFT Support Business Intelligence (qlikview). If Yes to what extent?? Kalyan1984 0 3,118 05-14-2015, 06:59 PM
Last Post: Kalyan1984
  Mandatory field validation in QTP Yog 0 3,432 03-05-2015, 01:48 PM
Last Post: Yog

Forum Jump:


Users browsing this thread: 1 Guest(s)