How to test background color and dynamic images which are
moving during runtime?

Answer Posted / suguruchandrashaker rao

Dim ctrlWebEl, objWebEl
Set ctrlWebEl =Browser("Google").Page("Google").Link("Go to
Google.com")
Set objWebEl = ctrlWebEl.Object

sColor = objWebEl.currentStyle.color
sBackgrColor = objWebEl.currentStyle.backgroundColor
sFontSize = objWebEl.currentStyle.fontSize
sFontStyle = objWebEl.currentStyle.fontStyle
sFontFamily = objWebEl.currentStyle.fontFamily
sFontWeight = objWebEl.currentStyle.fontWeight
msgbox
store this code in actualresult as a variable
and in runtime get the property value using GetRoproperty
and store it in expectedresult
then compare both the result like
if actualresult=expectedresult
then
repoter.report......
else
mismatch

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does quicktest professional (qtp) is unicode compatible?

809


What is the difference between local and shared object repository in qtp?

812


explain keyword driven framework with banking domain?

1796


How many types of actions are there in quicktest professional?

770


How to check feasibility of the appliction?in automation testing?

1753


Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1917


Can we use index on view?

1862


What is an object repository?

843


If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?

4985


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1715


How you will rate urself in QTP in the range of 0 to 5

1989


What are the different attribute used with regular expression?

753


how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief

1856


Explain in brief about the quicktest professional automation object model?

762


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

1811