How to test background color and dynamic images which are
moving during runtime?
Answers were Sorted based on User's Feedback
Answer / xyz
i am not sure about testing the back groung color but
the code below
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
(sColor&" "&sBackgrColor&" "&sFontSize&"
"&sFontStyle&" "&sFontFamily&" "&sFontWeight
)
helps us to get the color of a link or a webelement
we can do this using standard check point as well
not sure if this is the answer for ur questions
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Answer / hari prasad
Here we have to identify which test have to do first,
through Image and Bitmap check points we can test
applications .....
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / sunil reddy
May be QTP Provides the Page Checkpoint I mean By using
this we check the All the contents of a Web page
Correct me If Iam wrong
| Is This Answer Correct ? | 0 Yes | 3 No |
Answer / manu
background color you can test with bitmap checkpoints, but
moving image you gotta go for multimedia addin...
let me know if you need details..
| Is This Answer Correct ? | 0 Yes | 3 No |
what is Compile Module in QTP? what exactly it contains Functions or Actions?
HOw to add the recovery file at runtime to the test file .
My project title is "DRUG Audition and research management" it comes which domain?
can objects recogonised without repository?
what frame work you are following?
What are the methods used in UFT to handle exceptions or run-time errors?
what is the difference between QTP 8.0 & 9.0?
in how many ways you perform batchtesting?
Difference between copy to action and call to action?
WHAT IS A TEST STRATEGY & WHAT IS THE DIFFERENCE BETWEEN TEST STRATEGY & TEST PLAN?
21 Answers ABM, AZTEC, CTS, Infosys, Nihilent, Orange,
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
for example one window is there, the window contains how many edit box's i want script? i know the script but that is not exact answer.... The script is like this .......... set a=description.creation() a("Native class")="WinEdit" b=window("Flight Reservation").childobject(a).count msgbox b if u found exact answer please getback to me? raju.ippali@gmail.com 9823257761