How to test login page by using QTP

Answer Posted / jason

Assuming its an web based application :

1) Invoke the application thru your browser
2) Add objects to OR
3) You can next copy this current action to another one,
can do that by using " Copy the existing Action "
4) In expert view u have 2 actions
5) The first action in keyword view, should be like this :
if ( Browser(..).Page(..).exist) then
{
type ehat do u wanna do in ur login page ;
}
else
In the action column of keyword view for second action,
choose "Activate".
In your expert view , it wiill look like this.
{
Browser(..).Page(..).Activate
// rest of the statements.
}

Next u can check for Username and passwords fields,
handling the negative scenarios also.

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

1761


How to use debug tools?

2432


What is the use of Debug Viewer?

1677


What are the different types of checkpoints?

800


what is the difference between data driver & data driven and driver script?

2430


What is QTP’s model for test creation?

884


hou can we use vb script in qtp could u tell me breafly

1947


How will you handle java tree in qtp?

822


How to modify the text checkpoint?

806


What is the difference between call to existing action and copy of an action?

811


How can i initiate the objects to find uniquely in OR

1669


Hello friends..... On which areas of an application we can not test with QTP

1831


How to use transactions in qtp?

741


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1776


what you mean by artifact,milestone...

1704