How to test login page by using QTP

Answers were Sorted based on User's Feedback



How to test login page by using QTP..

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

How to test login page by using QTP..

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

How to test login page by using QTP..

Answer / sreenivas

Invoke Login application through URL by using
System.url "URL"

Capture userid,password,login object properties in to the
Object Repositiry.

Design the test script to enter values in to object Objects.

Wirte a condition for dipslaying successfull message or
Error message and capture that message dispaly it in Test
results window.

Is This Answer Correct ?    3 Yes 3 No

How to test login page by using QTP..

Answer / sbbceo

In this case above if I have 3 surveys that are different
but they all require the same username and password to log
on how do I automate the username and password for all of
them using QTP? They all require the username and password
at the same point and the username and password are the
exact same for each web-based survey.

Is This Answer Correct ?    4 Yes 4 No

How to test login page by using QTP..

Answer / bala

To test the login page, User need to consider the following
factors

1. What are the field data needs to be given like User id,
password etc.
2. Do we need to do positive or negative testing or both
3. Preparing the list of different combination of test data


After that the below step will do to test the login page

1. Open the browser or Windows application
2. Apply the chckpoint to verify the correct page is loaded.
3. Enter the User id, password and other field values
4. Click the login button
5. Home page is opened
6. Apply the chckpoint to verify the correct page is loaded.
7. Click log out

Step 3 - 7 needs to be parametrized to test with different
combination of data.

Hope this helps to understand the login test

Is This Answer Correct ?    4 Yes 4 No

How to test login page by using QTP..

Answer / adlajaipal

'for example:
systemutil.run "Path of u r login page URL"
than check for username and password
like:
Browser("micclass:=Browser").page("micclass:=Page).webedit("name:=txtusername).set
xxxxxx
Browser("micclass:=Browser").page("micclass:=Page).webedit("name:=password).setsecure
xxxxxx
Browser("micclass:=Browser").page("micclass:=Page).webutton("name:=Button).click

Is This Answer Correct ?    2 Yes 10 No

Post New Answer

More QTP Interview Questions

hi. I Am working in Small IT company as Test Engineer. But am looking for change. I have 2+yrs experience, but my problem is MCA 72%, remaining all are Second Division. plz give solution for my problem.am elgible for MNC's or not. if not plz give suggestion............ already i forwarded my resume to lot of MNC's but. I didn,t get CAL............ plz give any suggestion.

3 Answers  


Describe the process for writing text check point for a web application?

2 Answers   ssinformatics,


What do you do if QTP doesn't recognize object ,what action should be taken

11 Answers   Lehman Brothers,


Do we get any issues if we run the test script on differentbrowsers?what are the options we need to set in QTP?

3 Answers   CTS,


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

0 Answers  






Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

0 Answers  


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?

0 Answers  


how do u handle an object without name using QTP 9.2?

0 Answers   CTS,


Pls Solve Error(SAP-CRM):- Cannot identify the specified item of the SAPNavigationBar object.Canfirm that the specified item is included in the object's item collection.

1 Answers  


How to get popup error message.

0 Answers   Tech Mahindra,


How to use QTP for Regration testing, plz tell as with short Example of login window? plz tell as....

2 Answers  


What is the extension of script and object repository files?

4 Answers   Crea,


Categories