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

Generic function to search for the unique link in webtable and click on it

2594


How will you declare a variable in qtp?

638


How is UFT 11.5 version different from UFT 12.0?

686


What is action?

652


how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?

1506






What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

788


In qtp, how you can exit for loop?

616


What is throw object?

1829


Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?

1499


write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))

1597


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2023


what is the diff b/w assistive and mandatary rules of object repository in QTP???

1748


What is active screen?

642


Why qtp always start action1 and does not start action?

705


What are the Disadvantages of shared object repository?

668