Académique Documents
Professionnel Documents
Culture Documents
Data Table has two types of data sheets— Global and Action. You can access the different sheets by
clicking the appropriate tabs below the Data Table. You store data in the Global tab when you want it to
be available to all actions in your test and you want the data to control the number of test iterations. You
store data in the action’s tab when you want to use the data in Data Table parameters for that action only
and you want the data to control the number of action iterations.
The Data Table has the characteristics of a Microsoft Excel spreadsheet, meaning that you can store and
use data in its cells and you can also execute mathematical formulas within the cells. You can use the
DataTable, DTSheet and DTParameter utility objects to manipulate the data in any cell in the Data Table.
The use of complex and/or nested formulas in the Data Table is not supported.
You can insert Data Table parameters and output values into your test. Using Data Table parameters
and/or output values in a test enables you to create a data-driven test or action that runs several times
using the data you supply. In each repetition, or iteration, QuickTest uses a different value from the Data
Table.
During the run session, QuickTest creates a run-time Data Table—a live version of the Data Table
associated with your test. During the run session, QuickTest displays the run-time data in the Data Table
pane so that you can see any changes to the Data Table as they occur. When the run session ends, the
run-time Data Table closes, and the Data Table pane again displays the stored design-time Data Table.
Data entered in the run-time Data Table during the run session is not saved with the test. The final data
from the run-time Data Table is displayed in the Run-Time Data Table in the Test Results window.
We can use this method to “add” one new sheet to the run time data
table.
We can use this method to “delete” one specified sheet from the Run
(3) GetSheetCount
We can use this method to count number of sheets in the run time data
table.
Syntax:
datatable.GetSheetCount
msgbox datatable.GetSheetCount
(4) GetRowCount
We can use this method to count number of rows in the 1st sheet
Syntax: datatable.GetRowCount
(5) GetSheet
We can use this method to return a specified sheet from the Run Time
data table.
Syntax: datatable.GetSheet(SheetID)
(6) Value
We can use this method to set or get value of cell in the specified
parameter and the current row of the Rum time data table.
To set data
variable Or
To get data
Ex:
datatable.Value (3,1) = c
(7) SetCurrentRow
We can use this method to take a specified row as current row in the Run
Syntax: datatable.SetCurrentRow(Row_Number)
g="gcreddy"
(8) SetNextRow
We can use this method to take the row after the current Row as New
Syntax: datatable.SetNextRow
Ex: g="gcreddy"
=g
(9) SetPrevRow
We can use this method to take the row before the current Row as New
Syntax: datatable.SetPrevRow
Ex: g="gcreddy"
=s
(10) Import
We can use this method to import Microsoft Excel File to the Runtime
11) ImportSheet
We can use this method to import a specified sheet of Microsoft Excel
“Destination Sheet”
(12) Export
We can use this method to export a copy of Run Time Data table to
13) ExportSheet
We can use this method to export a copy specified sheet of Run Time
Sheet”