Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2026.1

...

  • [parasoft_exclude]
  • [exclude]

The null and exclude values are used to shape the response payload. For example, say you have a payload that is parameterized that looks like this:

Code Block
{
  "book" : {
    "title" : "${title}",
    "isbn" : "${isbn}"
  }
}

Normally it would get the title and isbn values from the data repository and create a payload like this:

Code Block
{
  "book" : {
    "title" : "Best Homemade Cookbook",
    "isbn" : "1234-abfh-9876"
  }
}

However, if the isbn value is set to [null] or [parasoft_null] in the data repository, the payload would be:

Code Block
{
  "book" : {
    "title" : "Best Homemade Cookbook",
    "isbn" : null
  }
}

And if the isbn value is set to [exclude] or For details on how [parasoft_exclude] works with URL parameter data source correlations, see Matching on Absent/Empty Fields and Parameters. in the data repository, the payload would be:

Code Block
languagexml
{
  "book" : {
    "title" : "Best Homemade Cookbook"
  }
}

Adding the Data Repository Tool

  1. Ensure that the Data Repository Server you want to import data into is running.
  2. Create a new .tst or provisioning action file with an empty test or action suite in a new project or existing project. See Adding Projects tst files and Test Suites or Adding Projects Virtual Assets and Responder Suites.

  3. Add a new Repository Data Source to the suite. See Creating a Repository Data Source
  4. Open the data source and specify the target data set for importing the data. You can browse existing repositories on the server in the Repository view (see Views in Virtualize and Views in SOAtest). If the specified repository name or data set does not exist, it will be created at runtime.

  5. Right-click the Test or Action Suite node and choose Add New > Test or Test or Action. 

  6. Choose Data Repository Tool and click Next. Configure the data and structure initialization options. See Configuring Initialization Options.
  7. Click Finish and configure the Data Repository Tool.

...

Initialize data from
Initialize structure from
  • Choose None to manually structure the data.
  • Choose Excel to use the structure from an Excel file to structure the data. Refer to the Preparing to Import from Excel section for information about preparing the data.
  • Choose WSDL to use the structure from a WSDL definition file to structure the data. 
  • Choose Schema to use the structure from a schema file to structure the data.

When specifying WSDLs and schemas, specify the definition file and choose the data type definition from the Type menu.

Join columnIf initializing from an Excel file, specify the name of the column that indicates relationships across Excel sheets in the Join column field. By default, the Join column is the ParentIndex column, but you can also point to another column that contains values for referencing the parent row. See Defining the Structureadditional for additional information.

Configuring the Data Repository Tool

...

Select the Data Repository tool that and click Run in the toolbar.

Details on the import will be reported in the Console view.

...

Any problems with the import will be reported in the progress view. For instance, the following message might occur if you try to import data into a Repository Server that is not currently running.