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
What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?
descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button
How to customize qtp?
how to do the batch testing in test director using manual testing procedure?
desribe a situation where u faced a stressful situation and how did u cope with it
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
Explain xml checkpoints.
How will you find the current time of the remote machine using QTP script?
What is an object repository?
How QTP support all types of applications (platforms)?
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.
Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.
What is use of object spy?
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
can i compare two databases using QTP ?