Cache Dynamic Resources (Clip, Track, or Composition)

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

CloudTest includes caching for dynamic pages at the clip, track, and composition levels. Settings are clip-wide, track-wide, or composition-wide.

 

Cache Dynamic Resources (Clip Level)

CloudTest caching checks whether a given resource has been retrieved before in the current clip repeat and then proceeds accordingly. If the resource has already been retrieved it is not retrieved a second time. An individual repeat of a clip starts with its own individual cache, since in CloudTest a clip-repeat is also used to represent a “user scenario”.

Note:  CloudTest does not attempt to re-create the use of HTML “pragmas” and other headers that comprise server and client negotiation for browser caching. Instead, caching is applied across the entire clip (repeat), since CloudTest simulates a user scenario with the entire clip (repeat).

 

Enable or Disable Dynamic Caching at the Clip Level

To enable or disable dynamic caching at the clip level:

  1. Select the Clip Editor > Properties tab.
  2. Select the Page Resource Settings node in the Property Type list. The Cache Dynamic Resources drop-down appears on the far right of the pane.

Note:  As with other Page Resource Settings, cache settings can be overridden at the track or composition level in the Composition Editor.

  1. Click the Cache Dynamic Resources drop-down to choose from among:
    • Enabled
    • Disabled

The following cache behavior applies when enabled:

  • If a page retrieves a particular resource statically a later page does not retrieve it dynamically.
  • If a script attempts to get the response for a message that was suppressed (for validation or extraction purposes or for whatever reason), it will see the cached response instead.
  • If a resource is not retrieved because it was suppressed due to caching, this is indicated in test results via the Events Log. Any Property Sets or validations set for the item not retrieved are suppressed. It is as if the message never got executed in all respects.
  • If a statistic is not retrieved it is also not counted. For example, a suppressed resource is not included in statistics such as those found in the Bytes Received, Duration, or other widgets.

Cache Dynamic Resources (Track or Composition)

CloudTest includes caching for dynamic pages at the track and composition levels via the Composition Editor. Settings are track-wide or composition-wide. Cache settings at either of these levels override those found at lower levels (e.g. the clips in a track or the clips in all of a composition).

 

Enable or Disable Dynamic Caching at the Track Level

  1. Select and double-click the track in the Composition Editor. The Properties tab opens below with the given track selected.
  2. Select the Page Resource Settings tab on the right.

The Cache Dynamic Resources drop-down appears on the far right of the pane.

 

  1. Click the Cache Dynamic Resources drop-down to choose from among:
    • Use Individual Clip Settings (default)
    • Override to Enabled
    • Override to Disabled

The following cache behavior applies when enabled:

  • If a Page retrieves a particular resource statically, that resource is not dynamically retrieved later.
  • If a script attempts to get the response for a message that was suppressed (for validation or extraction purposes or for whatever reason), it will see the cached response instead.
  • If a resource is not retrieved because it was suppressed due to caching, this is indicated in test results via the Events Log. Any property sets or validations set for the item not retrieved are suppressed. It is as if the message never got executed, in all respects.
  • If a statistic is not retrieved it is also not counted. For example, a suppressed resource is not included in statistics such as those found in the Bytes Received, Duration, or other widgets.

Enable or Disable Dynamic Caching at the Composition Level

  1. With the test composition open in the Composition Editor, click the Properties tab and in the Properties list click Composition.
  2. Select the Page Resource Settings tab on the right.

 

The Cache Dynamic Resources drop-down appears on the far right of the pane.

 

    • Use Individual Clip Settings (default)
    • Override to Enabled
    • Override to Disabled

The following cache behavior applies when enabled:

  • If a Page retrieves a particular resource statically, that resource is not dynamically retrieved later.
  • If a script attempts to get the response for a message that was suppressed (for validation or extraction purposes or for whatever reason), it will see the cached response instead.
  • If a resource is not retrieved because it was suppressed due to caching, this is indicated in test results via the Events Log. Any property sets or validations set for the item not retrieved are suppressed. It is as if the message never got executed, in all respects.
  • If a statistic is not retrieved it is also not counted. For example, a suppressed resource is not included in statistics such as those found in the Bytes Received, Duration, or other widgets.

Attachments

    Outcomes