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 |
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, and also tell me the best institute and the estimate cost for joining the institute ib delhi NCR. Hence, if possible, kinldy mail PDF file to my mail-ID: kumar123.pathak@gmail.com , Regards, kumar pathak
suppose take one row in a row 16 columns is there.in 16 columns 16 numbers is there.but i want to get each 3 column number.o/p :5 columns get in 16 columns means. so can anybody write this function? plz send if u know the answer.
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
How to test menu options using qtp
How to execute a VBS file without using Execute File statement?
what is actually contain test report? can anybody post the test report
I have thousands of links are there, i want check each and every funtionality of link by using descriptive programme, retrive link name from excelsheet then operate in application. Please anybody send me model script
What is smart identification?
what frame work you are following?
What is iteration? How it is related to Test Results in QTP?
Key word driven framework