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 does ".mst" stands for? (abc.mst)
What is qtpro? What is quick test pro? What is a quick test professional?
Can we install QTP on remote server and access it as a web application on other system (client place)? If so please let me know. Thanks in advance, Ravi
While scripting do we use any reference. may be we have 2 0r more same objects that time how do we write scripts
There is a name "AJAY" how do u count no.of. "A" in that name ?
In QTP can we feed the out of one browser(internet explorer) as an input to the another browser(mozilla firefox)? If yes explain how to do it with an example.
How many ways we can parameterize data in quicktest professional (qtp)?
Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.
How can we test existence of a particular word in scentence using QTP tool. Thanks in Advance!!!!!
what are the parameters you are considering for object identification?
Can you list some technologies that support qtp?
why we use check points , In qtp we use the any check points , what r they , when and why