CloudTest supports two Repeat Types:
- Parallel repeating – All of the repeats play simultaneously in parallel.
- Serial repeating – The repeats play serially, one at a time, one after the other.
Serial repeating is allowed for any item type, however some types (such as Checkpoints) only permit the repeat count to be either zero or one.
Parallel repeating is allowed only for:
- All Tracks.
- Clips in a Timed Band.
- Any item inside a Timed Clip that is not inside a Chain or Page.
The following Repeat Methods available in the Repeat tab control how many times the repeat occurs:
- Repeat By – A constant is given at definition time, and the repeat occurs that many times.
- Repeat By Property (count from constant) – A Custom or Global Property is specified, and the repeat occurs as many times as specified by the value of the property at runtime.
- For Each – A Custom or Global Property is specified, and the repeat occurs as many times as there are array values in the property at runtime, if the property value is an array. If the property value is a single value, the repeat occurs once. The items inside each repeat have access to the individual value for which the repeat was initiated.
- While – A Custom or Global Property is specified, and the repeat continues as long as the property value evaluates to “true”. Permitted for serial repeating only.
- Infinite: The repeating occurs forever, until explicitly stopped by a Script or there is an error, or until the Composition is stopped. Permitted for serial repeating only.
The Repeat form (located in the General tab for tracks and in the Repeat tab for clips and containers) also includes two Advanced Options sections—Paced and Inter-repeat delay. Both pacing and inter-repeat delay settings provide additional control of the execution of repeats within a test composition. Both can be applied to containers, clips, and tracks.
The Paced section provides settings that allow the user to define delays to be automatically inserted between repeats in order to cause the repeats to occur at a certain rate. The rate is specified in milliseconds, as in “every n milliseconds”.
Pacing can be specified for serial repeats and parallel repeat renewal only.
There are two basic types of pacing: Constant rate and Random rate pacing.
At a constant rate of– The repeats are to occur at a regular, constant (e.g. even) rate.
At a random rate between [range] – The repeats are to occur at a random rate between a range bounded by a user set minimum and maximum.
The pacing rate information can be specified via constant(s) at definition time, or by clicking the Property Chooser icon for any field and then specifying a Custom or Global Property value that will insert the value at runtime. Therefore, the possible combinations are:
- Even, constant – Even pacing with a constant rate specified at definition time.
- Even, property – Even pacing with the rate coming from the value of a property at runtime.
- Random, constant – Random pacing with the minimum and maximum rates specified as constants at definition time.
Random, property – Random pacing with the minimum and maximum rates coming from Custom or Global Properties at runtime. The values are taken from the properties when repeat first starts; they are not re-evaluated for each delay.
An Inter-repeat delay specifies that there is to be a delay (or gap) between the end of one repeat and the start of the next repeat. Inter-repeat delays apply only to serial repeats and to parallel repeat renewal (via the Renew Parallel Repeats checkbox).
In the case of serial repeats, the delay occurs between the end of each serial repeat and the start of the next one.
Since parallel repeating is allowed only for tracks, for clips in a timed band, or for any item inside a timed clip that is not inside a chain or a page, Repeat Type: Parallel is only active for those objects.
When Repeat Type Parallel is applicable, the Renew checkbox is also active. As in prior releases, setting parallel repeat on a track is tallied as a virtual user. For parallel repeat renewal, the gap occurs between the end of each parallel repeat and the (“renewal”) repeat that replaces it.
The length of an inter-repeat delay can be specified either by entering a constant, or by clicking the Property Chooser icon for a given field, and then using the Property Chooser dialog box wither to specify a Custom or Global Property value that will insert the value at runtime.
Select an existing property for the container, clip, or track, or, define a new custom property using the Type and Starting Element drop-downs and entering a property name.
At a constant delay of – A constant number of milliseconds is given at definition time.
From a property – A Custom or Global Property is specified, and the duration of the delay comes from the value of the property at runtime. The value is taken from the property when repeating first starts; it is not re-evaluated for each delay.
At a random delay between x and y (e.g. random length between two constants) – A constant minimum and maximum length is specified at definition time, and each delay will be a random value selected within that range.
Random length between two property values – Custom or Global Properties are specified for the minimum and maximum lengths. Each delay will be a random value selected within the range specified by the property values. The values are taken from the properties when the repeat first starts; they are not re-evaluated for each delay.