QTP - DTParameter Object Properties

Advertisements


DTParameter Object Properties:

Method NameDescriptionSyntax
NameReturns the name of the parameter in the run-time data table.DTParameter.Name
RawValueReturns the raw value of the cell in the current row of the run-time data table.DTParameter.RawValue
ValueRetrieves or sets the value of the cell in the Active row of the parameter in the run-time data table.DTParameter.Value
ValueByRowRetrieves the value of the cell in the specified row of the parameter in the run-time data table.DTParameter.ValueByRow(RowNum)

Example:

Consider the below Data Table:

Get RowCount and Column Count
 Val = DataTable.GetSheet("Global").GetParameter("Principal").ValueByRow(2) 
 print Val	' Val Displays 2556
 
 DataTable.SetCurrentRow(1) 
 Val1 = DataTable.GetSheet("Global").GetParameter("Principal").Value
 print Val1	' Val1 displays 232


Advertisements
Advertisements