If you entered into yahoo mail with your valid user name
and password , then you will get " welcome , username "
(for example you will see , “welcome, Krishna” ) text on
the top of the Inbox page , how can you test the user name
is correct or not using QTP?
Answer Posted / nanda
yeah....
you can use the getROProperty method to get that value.
later on compare that value with ur parameter.
for example:
GetAppval = Browser("XXX").Page("XXX").WebElement("html
tag:=TD","index:=3").GetROProperty("innertext")
getparam = Datatable.Value("name",dtGlobalSheet)
If GetAppval = getparam then
msgbox "pass"
Else
msgbox "fail"
End If
guys here i just given the logic to use. instead message
box use a reporter statement or if u r writing to exeternal
log use it. and i used data table for example, but many
people (including me) will use separate excel file for
parameterization. but this is the logic to check values.
Regards...
nanda.d reddy
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
explain keyword driven framework with banking domain?
How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")
Explain the checkpoint in qtp?
How to analyzing test results using quicktest professional?
Give me some real time point of way where exactly we can conduct audits?
What is the limitation to XML Checkpoints?
What is checkpoint in qtp?
What are advantages of test automation?
Can we run test with out adding object in object repository? How it is possible?
Explain different types of checkpoints?
Explain process of smart Identification in QTP?
What is the default add-ins in qtp?
write a script to verify the image path(src property) of the images which are in web pages.
how to know no.of mails in our g mail by using vb-script
what is output value in QTP and how it can be used in automation testing