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

Discuss QTP Environment.

1 Answers  


We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?

10 Answers  


what is Synchronization point in QTP?Can anybody give a perfect example on it Thanks in advance

5 Answers  


I have the script like this: Browser("Login").Page ("Application").Frame("ScopeFrame").Link("DC3701737 (Active)").Click in which the value "DC3701737" will get changed and i have to use the same value in so many places. I got the value "DC3701737" in to a variable(Say x). Now if i want to pass the variable in to link object .. how? Browser("Login").Page("Application").Frame ("ScopeFrame").Link(x).Click Is it possible to pass any variable into a link object .. so, that the application will select that link automatically? If ur not able to understand, pls let me know.

2 Answers   ABC,


I want to clear the webedit field without using set"" in qtp script

1 Answers  






I want to export the datasheet to excel.Instead of total file it exports only data without headers.How to solve this problem?

1 Answers   FAI,


What VBScript operators, functions, and statements do you use in QuickTest Professional?

0 Answers  


How many types of actions are there in quicktest professional?

0 Answers  


What are different versions in Win Runner ,QTP ,Load Runner and Test Director till now and atleast please let me know new features for each version. Ex QTP8.2,QTP 8.5.QTP9.2 supports Mozilla 2.0

1 Answers   DELL,


How to call a function in QTP?

4 Answers  


Hi, My application is a web application which was developed by Java. In that application we have applets to do some operations. Is it possible to recognize applets using QTP? If yes, how? pls, help me this

1 Answers  


Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

0 Answers  


Categories