SetValue Method

Relevant for: API testing only

Description

Sets the value of a specified item in the data source.

Notes:

  • This method must be used with the GetDataSource method.
  • This method cannot be used for XML data sources.

Class

DataSource

Syntax

GetDataSource(<data source name>).SetValue(<row index>, "<column name>");

Parameters

Parameter Description
Row index

Required. The row from which to take the value.

The row index is zero-based, meaning if you want to pull from the first row of the table, you must set the row index value to 0.

Column name Required. The name of the column from which to take the value.

Return Type

No explicit return object. Sets a value in the specified data source.

Example

GetDataSource("ConcActivity Strings").SetValue(1, "Suffix", "done.");