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

What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

544


descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

1784


How to customize qtp?

592


how to do the batch testing in test director using manual testing procedure?

1753


desribe a situation where u faced a stressful situation and how did u cope with it

1383






How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)

1711


Explain xml checkpoints.

581


How will you find the current time of the remote machine using QTP script?

571


What is an object repository?

572


How QTP support all types of applications (platforms)?

4043


In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.

1503


Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.

1678


What is use of object spy?

586


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1410


can i compare two databases using QTP ?

1861