Welcome to pickSourcecode.com Login | Register    
pickZy.com
 Home  | search  | games  | General  | C  | C++  | Java  | Php  | Networking  | Visual Basic  | VC++  | Win32  | MFC  | JavaScript  | Jobs  | JavaScript  | Post jobs
QTP Data tables       Share
2010-03-11 |  MalathiVanaraj  | Viewed: 3710  |    0

QTP Data tables:

There are two types of data tables : Design time and Runtime.

Design time data table is what you see in the main QTP window and run time data table you can see only in the test results window. Design time data table is always created before running the test while run time data table is generated after execution of the test.


1) Open new test (Ctrl+N)

2) We will click on record toolbar button ( or Automation menu --> record or press F3). when we click on record, "Record and Run Settings" window opens up. Go to "Windows Applications" tab and choose first option "Record and run test on any open windows based application." and click on ok.

3) Open Flight application (Start-->All programs-->QuickTest Professional->Sample Applications-->Flight)

4) Type Agent name as "Niyati" (you can enter any, but must be 4 characters or more) and enter password as "mercury".

5) In the flight reservation window that opens up:

6) Click on File-->exit. Click Stop to stop the recording.

7) In the keyword view you will see four headings- Item, Operation, Value, Documentation. Under Value click on Kumar and on the right hand side of Kumar you will see a small icon, just click on that (or press ctrl + F11), The "Value Configuration Options" dialog box opens. In that dialog box click on parameter radio button and select Data Table from there. In Name field enter any variable name (I entered 'username'). Let all other be the default options in this dialog box and click on ok.

8) QTP will add username column in the data table (bottom, left hand side) with 'Niyati' as the first value.

9) Now enter more values in the username column, manually. I entered 'Varun' and 'Tanya' in 2nd and 3rd column respectively.

10) Save the test. (File-->Save).

11) Now run the test. (follow same steps as we did earlier).

12) If the test ran successfully, in the Results summary window on the left hand side you will see three iterations (because we added 3 variables in the 3 rows of a data table). Expand 1st iteration, it will show action summary for that iteration, expand the action summary, it will show Login, Expand the login. Click on the first option under it "Agent Name: SetText". On the right hand side it will show 1st variable name under details.

13) Similarly you can look for 2nd and 3rd.


Comments:





Submit comment's

Type:

User Comment's:

Submitted By:
Name: sudha
Prof: Software
Tech: Php ,C
Send Mail: mail2sudha2



Related topics
There is a 50m long army platoon marching ahead. .? - Puzzle
Mr. Bajaj's mother is an Engineer and another is a Doctor. - puzzle
Three men - Sam, Cam and Laurie - are married to Carrie, Billy and Tina? - Puzzle
There are 3 persons X, Y and Z. On some day, X lent tractors to Y and Z as many as they had. .? - Puzzle
A certain street has 1000 buildings. A sign-maker is contracted to number the houses from 1 to 1000..? - Puzzle
DON T EAT TOO MUCH RICE
List of Different Types of Doctors
How to write cover letters
Great Tips for Great Resume
Old carpenter -Story
COIMBATORE ENGINEERING COLLEGES LIST AND ITS SITES
Job Openings in HAL (Especially disabled people.. there is special quota...)
To Reduce Tension in Our Life
Healthy tips
Keep Walking.....-Health tips

Related References
how to draw hexagon diagram? - objective c
to return the key board
recursively delete subdirectories

Web site contents © Copyright 2007, All rights reserved.
Help | Terms and Conditions | Privacy Policy | About Us