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
describe some problems that u had with automating testing tool?
Which functionalities of QTP used in banking project?
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
How does you pass optional arguments in qtp?
How to customize qtp?
When to use descriptive programming?
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
Define object spy ?
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
How to use Environment parameterization? Explain with an example.
What is regular expression?
With what extension you can save the list of tests in a file to run in test batch runner?
How can get count of list box?
terminal services client
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief