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.

Back to top

Class

DataSource

Back to top

Syntax

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

Back to top

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.

Back to top

Return Type

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

Back to top

Example

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

Back to top