Viewing Session Templates and Packages

Document created by Chris Sommerstad Employee on Jul 21, 2017
Version 1Show Document
  • View in full screen mode

Session templates and packages that have been applied to a test clip show within that clip in the Clip Editor > Properties tab on the lower panel.

  1. Open the test clip in the Clip Editor.
  2. Click the Properties tab in the lower panel.
  3. Click the Applied Session Templates and Packages node. The Session Templates and Session Template Packages that have been applied to this clip are shown in the middle panel by name.

  1. Select a package or session template in the list to view its summary details in the rightmost column.

Clip-Level Custom Properties

    1. Click the Properties tab in the lower panel.

All of the properties created by the Session Template Package wizard are shown. The values are blank so that the extracted values can be inserted at runtime.

Message-Level Property Paths and Property Sets

  1. To review messages, click the Icon drop-down on the toolbar to switch to List view. Inserted property paths are displayed in the right column.

  1. To see a message’s detail, double-click to display it in the Message Editor.

    1. For regular expressions, string parsing, and XPath items, a Property Set is created at the message level.

Session templates use Property Sets to store values for use in a subsequent message. Depending on the test clip these values can be inputs such as the text inside of a table cell, regular expressions, or even complex values such as the result of a JavaScript expression.

Whenever the lower panel “Selected: MessageName” tab is active, Property Sets can be viewed via the Property list, Property Sets node ().

When the top Property Sets node is selected, all of its children are displayed in the panel on the right.

Use the scroll bars to view the entire set, or select any item under Property Sets to view it. In the example above an Output Field was retrieved from an HTML (HTTP) response using XPath and then stored in a custom property by name with the test clip as Owner.

Testing the Property Set

CloudTest now includes the ability to test out XPaths and SubStrings for a property set on both the recorded response and on the played response. For example, this feature provides the ability to change an XPath or SubString if the page changes so that the original XPath or Substring continues to return the proper variable.

Testing the Recorded Response for a Property Set

  1. To test an item’s the recorded response, first select the message in the Clip Editor and double-click to open it in the Message Editor in the lower panel.

 

    1. Select an item in the Property Sets list.

In the shot on the right, Show xpath has been clicked to display the XPath for the selection.

The operation section for the given item displays on the right.

  1. Click the Test on Recorded Response button. The recorded response for the given message displays.

Testing the Played Response for a Property Set

  1. To test an item’s the played response, first select the message in the Clip Editor and double-click to open it in the Message Editor in the lower panel.

 

  1. Select the item to test in the Property Sets list.

The operation section for the given item displays on the right.

  1. Click the Test on Played Response button. The response is returned if the message has been played. If the message has not been played, or if there is no match, then the response field indicates so.

  1. Play the message using the player control at the top of the Message Editor panel, if necessary.

When you do so, the Message Editor switches to the results tab and the message response is displayed once it is received.

  1. Once the message has been played, switch back to the Property Set item and click Test on Played Response a second time.

Attachments

    Outcomes