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
Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points
What is Unicode Compatibility?
supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?
Why is action split used by qtp?
What is a reusable action?
How will you check that your test cases covered all the requirements?
What is different command used in command Prompt while using QTP?
how can we compare descriptive programing with a regular expression
Explain different types of action in qtp?
How to find array size in qtp?
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
how to test Web application using QTP software
i have asked earlier only one question how to test web application using QTp plz send me the answer quickly
In qtp is it possible to check broken links of a page?
How can I use Call dlls in QTP ?