How i can test the background color of the records
displayed in a Table. Eg i have a .net desktop application
and there is a Table(swftable) with records displayed in
the grids. i have to validate whether the 1st record is
displayed in white background color and 2nd record in light
blue background color...But the constraints is that once
user click on the first record...the background color
changes to grey.......Plze let me now how to validate this
with QTP 9.2.

Answers were Sorted based on User's Feedback



How i can test the background color of the records displayed in a Table. Eg i have a .net desktop ..

Answer / sekhar

hai

i think it is done by discriptive programing we
can chek back ground colour, in program it self u have to
define perticular colour and its property,value.

if the back ground colour not changer then we go
for textarea, bitmap chek points.

if the colour is dynamicaly changes QTP will not
identify those all coloures then u have to be define.

****if there is any corrections plz mail me
sekharbirada@gmail.com

Is This Answer Correct ?    2 Yes 0 No

How i can test the background color of the records displayed in a Table. Eg i have a .net desktop ..

Answer / naidu

hey take GetRoProperty of the Object that gives the
Backround color and check with what ever you need.

Is This Answer Correct ?    2 Yes 1 No

How i can test the background color of the records displayed in a Table. Eg i have a .net desktop ..

Answer / niranjan123

hi naidu,

Can u tell me how to get the background colour using
Getroproperty????????

Can u plze explain a bit?

Is This Answer Correct ?    1 Yes 0 No

How i can test the background color of the records displayed in a Table. Eg i have a .net desktop ..

Answer / deepam

Hi guys please check the following link for answer

http://motevich.blogspot.in/2007/09/qtp-font-size-color-background-color.html

Is This Answer Correct ?    1 Yes 0 No

How i can test the background color of the records displayed in a Table. Eg i have a .net desktop ..

Answer / niranjan123

But what if the records are dynamically get changes..if we
used bitmap checkpoint as mark has told..then the
testscript also get failed in the next run....Because the
image checkpoint took the static capture and if the records
get changed then it get failed to recognized and hence
image checkpoint get useless here....

Is This Answer Correct ?    0 Yes 0 No

How i can test the background color of the records displayed in a Table. Eg i have a .net desktop ..

Answer / tvsramakrishnachowdary

bgcolor prop available in runtime test object properties

syn:
var=Objaectheirarchy.object.bgcolor
msgbox var

surly it can work

Is This Answer Correct ?    0 Yes 0 No

How i can test the background color of the records displayed in a Table. Eg i have a .net desktop ..

Answer / mark

Of course,we can check the colours in QTP.What for the
Check points are there ? Use bitmap check point.

Is This Answer Correct ?    0 Yes 3 No

How i can test the background color of the records displayed in a Table. Eg i have a .net desktop ..

Answer / pp

I think you can use virtual object.

Is This Answer Correct ?    0 Yes 3 No

How i can test the background color of the records displayed in a Table. Eg i have a .net desktop ..

Answer / ravi

it is not possible to test the colours wtih qtp.

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More QTP Interview Questions

Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.

2 Answers  


Explain step generator in qtp?

0 Answers  


Explain me in deatail about DATADRIVEN framework including scripts ?(realtimes plz)(Chandana)

4 Answers   Wipro,


QTP in mumbai

0 Answers  


how to export the result to notepad....for example i want to enter the user name and pass word and clicking on login button ......once you click on login button the corresponding page will open ...in that page you having one list box ...here you can get either success or failure ........friends here i want export the message what ever i got either success or failure .....how to export the result to note pad

1 Answers   Mind Tree,


How to data driven test for Win objects in QTP ?

0 Answers  


How to handle recovery scenario for a application crash.write script for this.

2 Answers   Polaris, TCS,


Mention the test steps of qtp.

0 Answers  


How u perform exception handling in QTp,what is other name for ths

1 Answers   Lehman Brothers,


During test run,How will you copy/paste from/to clipboard?

3 Answers  


the question was on what techonlogy u been working on i said VB then he asked me the addin for VB in Qtp?

4 Answers   BirlaSoft,


Brief the process of testing with UFT?

0 Answers  


Categories