Skip to content

ddCreateDatasetFromXMLDocument (Array Creation & Manipulation)

Compatible with:
  • Purpose
  • This command is used to create a DataSet from an XML Document 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 ddCreateDatasetFromXMLDocument command anywhere in run time.

    All the XML tags present in the XML Document 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
  • ddCreateDatasetFromXMLDocument(XML Document,dataSetName)
  • Target (Mandatory)
  • XML Document
  • Value (Mandatory)
  • dataSetName  
  • Return Value
  • N/A

 

Feedback and Knowledge Base