How to test login page by using QTP

Answer Posted / ramani

Call Login( x, y)

Function Login(strUserName, strPassword)
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury
Tours").WebEdit("userName").Set strUserName
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury
Tours").WebEdit("password").SetSecure strPassword
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury
Tours").Image("Sign-In").Click


End Function

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the check points in quicktest professional (qtp)?

667


QTP script is not working on other's machine..

1628


How to find a window is minimized or not

1527


your coming from electrical backgroung..but y ur coming to software side?

1471


What is Unicode Compatibility?

1543






What are the main differences of qtp and win runner?

673


How to remove associated function library?

648


if our qtp vb Script may be Currepted then What we want do?

1578


What is the difference in the global and action sheet in qtp?

658


What is data driver in qtp? Where we use it?

655


how to post xml data from QTP scripts to any application?

1588


Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.

2198


After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans

1757


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1536


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1792