Skip to content

ddPersistDatasetToDataFile (Array Creation & Manipulation)

Compatible with:
  • Purpose
  • This command can be used to persist a Dataset in memory into a Data File. If the Data File does NOT currently exist in the scope of the Project, a new Data File will be created in 'Active' status with the name provided. If a Data File exists with the name provided, the entire content of that Data File will be replaced with the data from the Dataset. <Status> of the Data File can be optionally passed along with the name of the Data File. Allowed values for <Status> are 'W' and 'A'.

    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
  • ddPersistDatasetToDataFile(datasetName, dataFileName(status))
  • Target
  • datasetName - Name of the Dataset
  • Value
  • dataFile name(status)
  • Return Value
  • Name of the Data File with status

Example(s):

Click here to see the example


 

Feedback and Knowledge Base