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


Please Help Members By Posting Answers For Below Questions

Without using gui map editor we can recognize the application in winrunner ?

850


what is the structure for the data driven framework

1755


what is review

1887


What ate the Technologies supported by QTP?

929


i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

1794


images are dynamically changes how to compare two images with out using the bitmap

2225


How to customize checkpoints with parameters?

3261


how do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer

1714


How do I get the QTP scripts result in xml format by using vb script function?

2042


How to use conditional loops in qtp ?

814


How to creating an output value using quicktest professional (qtp)?

804


what kind of frame work you used in your last project?

2113


Define object spy ?

786


What are table and db checkpoints?

842


Do you know how to connect database? Can you tell me the procedures?

783