Session Template Packages

A session template can be created from a message response's selected text using the Session Template wizard from within the Clip Editor. A test clip can also be selected from the Test Clips list and the string to search can then be specified from within the Session Templates wizard.

The Session Template Package wizard can be launched from the Test Clips list by selecting a test clip and then right clicking to select the Launch Session Template Package Wizard command. Existing session templates or packages can be applied here using the Apply a Session Template or Package command.

The Session Template Package Wizard can also be launched from the Convert Recording to Test Clip wizard, Next Steps page for a newly converted test clip by clicking Go to the Session Template Package Wizard. When you do so, the test clip is first opened in the Clip Editor, and then the wizard launches.

Once created, both session templates and packages can be viewed from the new Central > Session Templates node.

Additionally, the Clip Editor now includes a Session Template drop-down button that exposes both these commands, as well as the Launch Session Template Wizard. This third command can be launched with or without a selection in the lower panel of the Clip Editor.

Creating a Session Template Package

Session Template Packages can be created from either the Test Clips list or if the test clip is open, click the Session Templates button.

How to

  1. Navigate to Central > Test Clips and select the test clip to parameterize.
  2. Right-click and choose Launch Session Template Package Wizard. The Session Template Package wizard appears.The Include and Exclude sections are used to define or delimit the scan. By default, most possible nodes in the recorded responses (in the test clip) are included.Note: While this wizard runs, CloudTest maintains a draft of the original test clip. If the template is applied, the original test clip is then renamed with the date/time appended to it and the parameterized clip keeps the original name.
  3. Optionally, set custom scan options by checking or unchecking boxes in the Include or Exclude sections. The default scan covers most test clips, while in some frameworks—such as in REST APIs—custom settings may work best. In the Exclude section, enter or delete Names and Values that correspond to an option.

What you should see

Note: Session templates are created for selected XPath or SubString items, but are not created when the extraction method is changed to new script or existing script.