In this section:
The Literal and Literal XML input mode is a text field for directly specifying a message or request body. This enables you to work with an existing message, such as a sample from developers, a message traced from the server, etc. Once a message is copied into the field, you can switch to a Form input mode, which will be populated using schema-aware and schema-constrained heuristics.
Use this option if you want to type or copy a message into the UI. Select the appropriate MIME type, then enter the message in the text field below the Text radio button.
You can parameterize attributes and simple elements that contain text content by accessing data source values (from data sources or data banks) by using the {$}
syntax. If parameterizing with a column from a repository data source, be sure to reference a primitive column or a primitive list column, not a record list column. For example, use ${books:publisher}
to reference the publisher column from the books sheet of an Excel data source. Use ${title}
to reference the title column from a data source or the data bank tool.
If you use ${}
format variables such as ${value}
, those variables will be resolved before processing. To prevent variables from being processed, escape ${}
variables using a backslash. For example, the value \${HOST}
will be interpreted as ${HOST};
the variable will not be resolved.
Data source settings from Form views will be carried over into Literal view (and from Literal view to Form views).
All changes must be saved to be implemented during test execution.
You can parameterize complex XML and JSON elements from a Parasoft Data Repository data source column, which may reference zero, one, or multiple hierarchical record values.
Add a Parasoft Repository Data source. See Creating a Repository Data Source.
Use "ParasoftColumn" to specify which Data Repository column should be used to parameterize that level in the hierarchy of the message. See Hierarchical Parameterization with Literal View.
If you already have a file that specifies the message, use this option to indicate the location of that file.
If you already have a file containing the various messages you want to use:
Setup a File data source for that file (as described in Adding a Data Source at the Test Suite, Project, or Global Level andAdding a Data Source at the Suite, Project, or Global Level).