WR Testing Tutorial

WR History
WR Integrations

WR Testing

WR Testing Process
WR Recording
WR CheckPoints
WR FunctionGen
WRGUI Spy
WR GUI Map
WR GUI Configuration
WR V User Object
WR Data Driven Test
WR Parameterization
WR TSL
Learn More...

WR Examples(Script)

WR Script1
WR Script2
WR Script3
WR Script4
WR Script5
WR Script6
WR Script7
WR Script8
WR Script9
WR Script10
WR Examples More...

WR Interview Q&As
WR Q&As1
WR Q&As2
WR Q&As3
WR Q&As4
WR Q&As5
WR Q&As6
WR Q&As7
WR Q&As8
WR Q&As9
WR Q&As10
WR Q&As11
WR Q&As12
WR Q&As13
WR Q&As14
WR Q&As15
WR Q&As16
WR Q&As17
WR Q&As18
WR Q&As19
WR Q&As20
WR Q&As More...

WR FAQ(mp3)
Listen WR FAQ1
Listen WR FAQ2
Listen WR FAQ3
Listen WR FAQ4
Listen WR FAQ5
Listen WR FAQ6
Listen WR FAQ7
Listen WR FAQ8
Listen WR FAQ9
Listen WR FAQ10
Listern More on WR
pixels

THE LARGEST SOFTWARE TESTING SITE ON THE NET

KabInfo.Net  - Full Testing Tutorials - All Free

At KabInfo.Net you will find all the Manual and Automation Testing tutorials,
from basic Testing Definition and Testing Types,Testing Methodologies to advanced  Automation Tools like, WinRunner, LoadRunner and a Test Management Tool like TestDirector.

KabInfo.Net - The Largest Enterprise Application Testers site on the Net

Best Tester:- who gets the most bugs fixed :: Smart Tester:- Balances between listening and implementing

:::                                                       

10. Write a test script to select 5 different fly to, fly and customer name and book a ticket under each. Use data driver wizard.
Sol:

Table = “default.xls”;
rc = ddt_open(table, DDT_MODE_READ);
if (rc! = E_OK && rc ! = E_FILE_OPEN)
pause(“Cannot open table.”);
ddt_get_row_count(table,table_RowCount);
for(table_Roaw = 1; table_Row < = table_RowCount; table_Row ++)
{
ddt_set_row(table,table_Row);

win_activate (“Flight Reservation”);
set_window (“Flight Reservation”, 5);
edit_set (“Date of Flight:”, ddt_val(table,”date”));
list_select_item (“Fly From:”, ddt_val(table,”Fly_From”)); # Item Number 0;
list_select_item (“Fly To:”, ddt_val(table,”Fly_To”)); # Item Number 0;
obj_mouse_click (“FLIGHT”, 32, 25, LEFT);

# Flight Table
set_window (“Flight Table”, 1);
button_press (“OK”);

# Flight Reservation
set_window (“Flight Reservation”, 5);
edit_set (“name:”, ddt_val(table,”name”));
button_set (“ddt_val(table,”class”),ON);
button_set (“Insert Order”);
set_window (“Flight Reservation”, 7);
menu_select_item (“File;New Order”);
}
ddt_close(table);


NOTE______

Explain the following TSL functions:


a. ddt_open
i. Creates or opens a data table file so that Winrunner can access it.

Syntax: ddt_open ( data_table_name, mode );

Data_table_name:
The name of the data table. The name may be the table variable name,
the Microsoft Excel file or a tabbed text file name, or the full path
and file name of the table. The first row in the contains the names of
the parameters. This row is labeled row 0.

Mode:
The mode for opening the data table: DDT_MODE_MODE (read-only) or
DDT_MODE_READWRITE (read or write).

b. ddt_save
i. Saves the information into a data file.

Syntax: dt_save ( data_table_name );

Data_table_name:
The name of the data table. The name may be the table variable name,
the Microsoft Excel file or a tabbed text file name, or the path and file
name of the table.

c. Ddt_close
i. Close a data table file

Syntax: Ddt_save ( data_table_name );

Data_table_name:
The name of the data table. The data table is a Microsoft Excel file or
a tabbed text file. The first row in the file contains the names of the parameters.

d. Ddt_export
i. Exports the information of one table file into a different data table file.

Syntax: ddt_export (data_table_namename1, data_table_namename2);

Data_table_namename1: The source data table file name.
Data_table_namename2: The destination data table filename.

e. Ddt_show
i. shows or hides the editor of a specified data table.

Syntax: ddt_show (data_table_name [, show_flag]);

Data_table_name: The name of the data table. The name may be the table variable name ,
the Microsoft Excel or a tabbed text file name , or the full path and name of the table.

Show_flag: The value indicating whether the editor should be shown (default = 1) or hidden (0).

f. Dbt_get_row_count
i. Retrives the no. of rows in a data tables

Syntax: dbt_get_row_count ( data_table_name, out_rows_count);

Data_table_name: The name of the data table . The name may be the table variable name ,
the Microsoft Excel file or a tabbed text file name , or the full path and file name of
the table. The first row in the file contains the names of the parameters.

Out_rows_count: The output variable that stores the total number of rows in the data table.

g. dbt_next_row:
i. changes the active row in a database to the next row

syntax: dbt_next_row (data_table_name);

data_table_name: The name of the data table. The name may be the table variable name,
the Microsoft Excel file name , or the full path and file name of the table. The first
row in the file contains names of the parameters.

h. dbt_set_row
i. sets the active row in a data table.
Syntax: dbt_set_row (data_table_name, row);

data_table_name: The name of the data table. The name may be the table variable name,
the Microsoft Excel file name , or the full path and file name of the table. The first
row in the file contains names of the parameters. This row is labeled row 0.

Row: The new active row in the data table.

i. dbt_set_val
j. sets a value in the current row of the data table

syntax: dbe_set_val (data_table_name, parameter, value);

data_table_name: The name of the data table. The name may be the table variable name,
the Microsoft Excel file name , or the full path and file name of the table. The first
row in the file contains names of the parameters. This row is labeled row 0.

Parameter: The name of the column into which the value will be inserted.
Value : The value to be written into the table.

j. dbt_set_val_by_row
i. sets a value in a specified row of the data table.
Syntax: dbt_set_val_by_row (data_table_name , row, parameter, value);

data_table_name: The name of the data table. The name may be the table variable name,
the Microsoft Excel file name , or the full path and file name of the table. The first
row in the file contains names of the parameters. This row is labeled row 0.

Row: The row number in the table . It can be any existing row or the current row number
plus 1, which will add a new row to the data table.

Parameter: The name of the column into which the value will be inserted.

Value: The value to be written into the table.

k. dbt_get_current_row
i. Retrieves the active row of a data table.

Syntax: dbt_get_current_row (data_table_name, out_row);

data_table__name: The name of the data table. The name may be the table variable name,
the Microsoft Excel file or a tabbed text file name, or the full path and file name of the table.
The first row in the file contains the names of the parameters. This row is labeled row 0.

out_row: The output variable that stores the active row in the data table.

l. ddt_is_parameter
i. Returns whether a parameter in a datatable is valid

Syntax: ddt_is_parameter (data_table_name, parameter);

data_tabfe_name: The name of the data table. The name may be the tabfe variable name,
the Microsoft Excel file or a tabbed text file name, or the full path and file name of the table.
The first*row in the file contains the names of the parameters.

parameter:The parameter name to check in the data table.

m. ddt_get_parameters
i. Returns a list of all parameters in a data table.

Syntax: ddt_get_parameters (table, paramsjist, params_num );
table : The pathname of the data table.
paramsjist: This out parameter returns the list of all parameters in the data table, separated by tabs.
params_num: This out parameter returns the number of parameters in paramsjist.

n. ddt_val
i. Returns the value of a parameter in the active roe in a data table.

Syntax: ddt_val (datajable_name, parameter);
data_table_name: The name of the data table. The name may be the table variable name,
the Microsoft Excel file or a tabbed text file name, or the full path and file name of
the table. The first row in the file contains the names of the parameters.

parameter:The name of the parameter in the data table.

0. ddt_vaLby_row 1;;
i. Returns the value of a parameter in the specified row in a data table.

Syntax: ddt_valj3y_row ( data_table_name, row_number, parameter);

data Jable_name: The name of the data table. The name may be the table variable name,
the Microsoft Excel file or a tabbed text file name, or the full path and file name of the table.
The first row in the file contains the names of the parameters. This row is labeled row 0.

row_number The number of the row in the data table.
parameter The name of the parameter in the data table.

p. ddt_report_row
i. Reports the active row in a data table to the test results

Syntax: ddt_report_row (datajable_name);

data_table_name: The name of the data table. The name may be the table variable name,
the Microsoft Excel file or a tabbed text file name, or the full path and file name of the table.
The first row in the file contains the names of the parameters. This row is labeled row 0.

q. ddt_updatejron\_db
i. imports data from a database into a data table. It is inserted into your test script when you select the Import
data from a database option in the DataDriver Wizard. When you run your test, this function updates the data
table with data from the database.
 

:::

Where to Start

What does a Software Test Engineer have to know? What will the future bring?

KabInfo.Net will try to answer this, and help you become a professional Software Test Engineer, well prepared for the future.

Before you study the tutorials, Read this introduction.

:::

Quick and Easy Learning

Because time is valuable, we deliver quick and easy learning. At KabInfo.Net, you can study everything you need to learn, in an accessible and handy format.

                        "No One Is Great, And Every One Is GREAT"

K.A.Babu (2004)

:::

Testing Joke

Tester : "I Delivered a 100% Bug Free Product!"

:::

KabInfo.Net - Testing School is for self training only. We do not warrant the correctness of the content. The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.

Copyright 2004 . All Rights Reserved.

Logo Courtesy - Venkat Battu

KAB SEARCH

                     About KabInfo.Net
KabInfo downloads

REFERENCES
Test Case Doc
Test Plan Doc
B.R.S/B.R.D
Fun.Spec/Fun.Doc
System Req. Spec. Design Doc
Bug Report
Check List
Test Discussions Doc
.....Other Docs

Listen Testing


After A Bug Is Found
Integreation Testing
Quality
Software Life Cycle
Test Engineer
Types Of Testing
Unit Testing
Testing Concepts
WinRunner
QTP
More MP3s soon...
Q & A Section

Teting
Manual Testing
Automation
WinRunner
LoadRunner
TestDirector
Q.T.P
SQL
CERTIFICATION(S)

CSQA Certification
CSTE Certification
CSPM Certification
VALIDATION
Validate Date
Validate ComboBox
Validate Traingle
Validate Login   Validate E-Mail
Freshers
Seeking S/W Testing Job?

 
 

pixels  

Best Tester???