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

How does qtp identify gui object?

782


What is the registration process and examination fees?

777


What are the various types of Actions in UFT?

804


How will you check a web application for broken links using qtp?

784


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

853


How to find Operating system information using QTP script?

769


I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

1807


What is the difference in the global and action sheet in qtp?

782


Explain the check points in quicktest professional?

778


What is the keyword view and expert view in qtp?

745


How to use the object spy in quicktest professional 8.0 version?

763


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1508


What are the flaws in water fall model and how to overcome it?

788


How to use actions in qtp ?

779


What is the difference between qtp and selenium?

773