Skip to content

ddSetCellValueByName (Array Creation & Manipulation)

Compatible with:
  • Purpose
  • This command can be used to copy a specific cell's value from a Variable in memory that is provided in the 'Value' field to one Dataset in memory as represented by the rowNumber and attribute name from the Datafile from the source Dataset as specified in the 'Target' field.The 'Variable' must exist in the scope of the current Test Run (of a Run Definition or a Scenario Validation).

    The Dataset used in target field has to be created anywhere in run time before this command gets executed. Else, the test run gets aborted saying "For one or more Instructions within the Test Script "<Test Script name>" that use the "<Array Creation & Manipulation Command>" command, the Dataset name provided in the 'Target' field does NOT exist in the scope of the Test Scenario" message.
  • Syntax
  • ddSetCellValueByName(datasetName(RowNumber,AttributeName), VariableName)
  • Target
  • datasetName(RowNumber, AttributeName) -
    Name of the Dataset with row number and attribute name .
  • Value
  • VariableName
  • Return Value
  • VariableName which contains Data to be copied to the target.

Example(s):

Click here to see the example


 

Feedback and Knowledge Base