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

describe some problems that u had with automating testing tool?

1407


Which functionalities of QTP used in banking project?

1911


Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

863


How does you pass optional arguments in qtp?

559


How to customize qtp?

606






When to use descriptive programming?

584


HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com

1528


Define object spy ?

557


I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2250


How to use Environment parameterization? Explain with an example.

1476


What is regular expression?

575


With what extension you can save the list of tests in a file to run in test batch runner?

559


How can get count of list box?

631


terminal services client

1786


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

1533