Skip to content

ddCreateDatasetFromJSONObject (Array Creation & Manipulation)

Compatible with:
  • Purpose
  • This command is used to create a DataSet from a JSON Object that is given at the target field and the DataSet name is declared in the value field. This DataSet is created using ddCreateDataSet command which has to be executed before ddCreateDatasetFromJSONObject command anywhere in run time.

    All the Keys present in the JSON Object have to be present as a Data Definition attributes and then only you can execute the test run by calling it into the DataSet.

    When the Dataset used in value field is not created anywhere during the run time before this command gets executed, 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.

    This DataSet can be persisted by using ddPersistDatasetToDataFile command. 
  • Syntax
  • ddCreateDatasetFromJSONObject(JSON Object,dataSetName)
  • Target (Mandatory)
  • JSON Object
  • Value (Mandatory)
  • dataSetName  
  • Return Value
  • N/A

Feedback and Knowledge Base