Play Modes and Results Logging
- In the Composition Editor, click the Play Mode drop-down to select between General and Load settings.
The General play mode provides the following settings:
- Save Results checked with Force Garbage Collection unchecked and no Event Count Limit. Both Save Clip Element Details and Save Composition Element Details are checked, as is Track Garbage Collection.
Track Garbage Collection determines whether the Java “Garbage Collection” histogram is computed during Composition play and displayed in the Result Details, Events List, once composition play completes. This feature attempts to detect when garbage collections might have occurred and how much memory was freed.
- For all logging objects, Verbose.
The Load play mode provides the following settings:
- Save Results and Force Garbage Collection checked and no Event Count Limit. Both Save Clip Element Details and Save Composition Element Details are unchecked.
- For Test Composition, Verbose.
- For all logging objects, None.
Specifying a Custom Play Mode
- With your test open in the Composition Editor, click the Properties tab in the lower toolbar. The General tab displays in the sub-pane on the right. Click the Play Settings tab.
On the left of the tab are the Preview mode box, Prompt for Result Name and Description box, Play mode and Failure Action drop-downs.
Optionally, perform any of the optional steps:
- Check Preview mode to to stage the test, but not send any messages.
- Check Prompt for result name and description to receive a prompt each time the composition is played to enter the name and description for the Result for that play. Naming results can make them easier to identifier at a later time.
- Select a Play Mode other than the one current set (e.g. choose from among General, Load or Custom). Note that it is not necessary to set "Custom" mode as the Play Mode will automatically be set to Custom if a non-standard setting is chosen in the Play Settings tab.
Select a Failure action from the drop-down. The default is to honor component settings.
- If the failure action is set to Honor the individual settings for the components in the Composition, all current component settings are honored.
- If the failure action is set to Never halt on error, regardless of component settings, the composition will not stop if errors occur (overriding failure settings in components).
- If the failure action is set to Never halt on errors at the Clip level and above the current repeat of a container only will fail. This value can be used in cases where clips, bands, or tracks have repeats that should be able to play even if one repeat fails. Using this setting means that each repeat of a clip-level container or above (e.g. a band, track, or test clip can pass or fail separately from other repeats of the same object. When this option is set each individual repeat for a clip-level or higher item behaves as if “be recorded only” was set on it (regardless of the actual component-level settings). This option is the default setting for Load mode.
- If the failure action is set to Always halt on error, regardless of component settings, the composition will stop if errors occur (overriding failure settings in components).
What you should see
Both Composition Element and Clip Element results can be separately logged in the Play Settings tab. This ability to customize component-level results logging leads to significant CloudTest performance improvements on both the server and client side, while preserving access to crucial analysis data that you want.
- Uncheck either Save Composition Element Details to turn off logging details for bands, tracks, and other composition elements; or uncheck Save Clip Element Details to turn off logging details for chains, delays, and other clip elements. Once a setting is changed, Play Mode switches to Custom.
With Edit Advanced Settings checked, you can revise any of the Logging settings in the right portion of the tab. CloudTest's General play mode provides default verbose logging of all its activities that is quite detailed, and in most cases, provides valuable information for little cost.
These component-level settings control how much information is logged to the result object for each category of information presented. Use the Change All button to change all logging settings to the specified drop-down setting.
Like other test clip elements, collection containers (e.g. Chain, Page, Group, Transaction, If-Then-Else and Switch) have their own per Composition logging settings in the Composition Editor > Properties > General tab, Container Analytics section.
Container analytics are set to On while in General play mode (shown below).
When play mode is set to Load, then logging on containers if set to Off for Chains, If-Then-Else, and Switch containers.
Setting the script level to Info means that, for scripts, all logging of type Info and above (Error, Statistics and Info) is enabled, while all logging of type Verbose is disabled.