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>", "<value>");
Parameters
Parameter | Description |
---|---|
Row index |
Required. The row of the cell to which a value is assigned. The row index is zero-based, meaning if you want to set the value of a cell in the first row of the table, you must set the row index value to 0. |
Column name | Required. The column of the cell to which a value is assigned. |
Value | Required. The value you want to assign to a cell. |
Return Type
No explicit return object. Sets a value in the specified data source.
Example
GetDataSource("ConcActivity Strings").SetValue(1, "Suffix", "done.");