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

Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT

0 Answers   Cognizant,


How can we change(increase or decrease)the size of a array variable with out loosing the previous values

1 Answers   DST Global Solutions,


What are the common defects found in your project? (in qtp interview)

0 Answers   TCS,


Describe the process for writing text check point for a web application?

2 Answers   ssinformatics,


How we can do Batch testing in QTP?

6 Answers   Kanbay,






IF THE GUI OF APPLICATION IS CHANGED THEN IS THERE ANY NECISSITY TO CHANGE OR UPDATE OUR TEST SCRIPTS

2 Answers  


WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

9 Answers   CTS,


Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?

1 Answers   Crea,


Explain the QTP Tool interface.

2 Answers   Crea,


QTP identified the object but not performing the desired action???what could be the reason?????

1 Answers   Mphasis,


If our application contain one image while executing script application failed to show that image but you have to check that image by importing dynamically from other location... Can we use Check Points here on dynamically imported image?

2 Answers   ADP,


Can anybody give the code for ALL DATATABLE METHODS)(ex: datatable.getrowcount, datatable.getsheet etc....) and ALL DATABASE COMMANDS (like .getcelldata, which are used to retrieve data from a database and from a webtable)with examples.

1 Answers   Accenture,


Categories