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

Which functionalities of QTP used in banking project? pls any say answer?

1664


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

1911


How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?

4089


What is the default object synchronization timeout in qtp?

924


Can we Test Welcome Screens and Process Images with QTP

1702


How to get the particular property value?

819


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

835


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1797


What is the Difference between test object and run time object?

851


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

1843


How to handle the exceptions using recovery secnario manager in quicktest professional?

904


Explain the types of object repository?

765


What contains Data Driven Framework document in qtp?

1687


Explain how you can delete excel file in qtp?

832


What is the meaning Work bench?

1984