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?

Answers were Sorted based on User's Feedback



If you entered into yahoo mail with your valid user name and password , then you will get " w..

Answer / krshna

By using test area check point.

Is This Answer Correct ?    3 Yes 1 No

If you entered into yahoo mail with your valid user name and password , then you will get " w..

Answer / 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

If you entered into yahoo mail with your valid user name and password , then you will get " w..

Answer / sandipgami84

index is not a reliable way......if have entered valid
username & Password then u can check URL...or check Inbox
link is exist or not.....


Sandip
9714177088

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

can any one tel ,using simple string a[0]=I a[1]=N a[2]=D like that it go's . . out put i need INDIA help me it's really need full ..

3 Answers   Mind Tree,


Among all the check points what is the most important checkpoint?

1 Answers  


Explain the differences between table and db checkpoints?

0 Answers  


how do you do database testing in qtp

5 Answers   NIIT,


pls tell me how will you write the vb script in QTP for DataDriven test from Excel sheet for multiple userid and password explain with example

6 Answers   Ordain Solutions,






Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

0 Answers  


It is regarding VBScript, how to export our function results to ExcelSheet through VBscripting. Ex: I have written add function, that result should export to Excel.

3 Answers  


How can we change(increase or decrease)the size of a array variable with out loosing the previous values

1 Answers   DST Global Solutions,


How do client side image and server side image work?

0 Answers  


With what extension you can save the list of tests in a file to run in test batch runner?

0 Answers  


how to get the object property

4 Answers   Covansys,


Explain the Load testing process?

1 Answers   Crea,


Categories