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
how to find that tools work well with ur existing system?
how many maximum number of virtual users we can create?
How does you test a weblink which is changing dynamically?
What are the trigger events in qtp?
What is post recovery scenario?
What are output values and why they are used ?
What is expert view in qtp?
Your roles and responsibilities and daily tasks? (As automation tester)
What is QTP scenario.
What is the parameterization? Give one example?
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints
How to explain a banking project in interview as a test engineer???
how interviews will be on QTP?
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
Can we run test with out adding object in object repository? How it is possible?