+

Search Tips   |   Advanced Search


User Interface


Edit a request in text mode

An XML module editing screen makes it possible to edit, and define variables for, the request XML content. This XML content is displayed in an enhanced text field with syntax highlighting.

The text field provides a number of features and keyboard shortcuts:

When the request XML content has been modified, the changes can be saved by clicking on the Apply button. If a problem is detected, an error message notifies of the problem and the changes are ignored. When no problem is detected, the changes are applied.

The text field features an auto-complete function that makes entering variable names easier.


Edit a request in advanced mode

To access the advanced XML editor, it is necessary to select a request, and click on the Advanced XML editor button.

The editor is made of the following tabs:

The Apply button must be clicked to save any changes made to the request.


Rules for using variables

You may use NeoLoad variables in a request XML content. To do this, you need to use the expression ${VariableName}, which NeoLoad will replace with the value during the test. All the elements in the XML request may be variabilized.


Validate an XML response

Validating a response in XML format is almost identical to the standard procedure. For more information about validating an HTTP request, see Validation.

You may define validations on the XML response using XPath. To recap, XPath is a syntax that points to a portion of an XML document.

For an XML request, response validators may be created:

  1. Create a validator.
  2. Select the option On a particular node.
  3. Click on the magnifying glass next to the text field below and select the XML node to be validated.
  4. Click OK. The XPath expression for the selected node is displayed in the text field.
  5. Select the text to be validated by clicking on the magnifying glass next to the text field below.


Extract variables in an XML response

The procedure for extracting variables in XML-format response is almost identical to the standard procedure. For more information about extracting variables in a standard HTTP request, see Variable extractors.

Variable extractors may be defined on an XML node.

  1. Create an extractor.
  2. Check the XPath expression box.
  3. Click on the magnifying glass next to the text field, and select the XML node to be extracted.
  4. Click OK. The XPath expression for the selected node appears in the text field.
  5. Define your extractor on the XML node text.

The following screenshots show the normal and advanced variable extraction modes. The red frames highlight the parts that change in the case of an XML request.


Home