Using Play Options
You can change the way a test composition will play by accessing Maestro locations and servers using the Play Option button in the Composition Editor toolbar.
The Play Options dialog can be used in the Composition Editor to specify certain settings before playing a Composition. These are temporary settings that are not saved within the Composition itself – they are in effect only as long as the Composition Editor is open, and take effect only for the current play(s) of the Composition. As soon as the Composition Editor tab is closed, these settings are discarded.
Play Options come in two types—override settings including Preview Mode and Save Result, and those that are set only through the Play Options dialog box.
- Maestro drop down (Location)
Select the Maestro location or server from the list of configured locations and servers. Location is chosen from a list of servers and locations similar to what is seen when defining a “Distribution” for a Track in the Composition Editor.
When a Composition is played, CloudTest picks the appropriate server(s) on which to play the Composition. It searches all of the available servers, in no particular order, looking for servers that satisfy the requirements of the Distributions of the Tracks.
Choosing a server or location in Play Options specifies where CloudTest is to start that search. This may or may not affect where the Composition is actually played. For example, if none of the Distributions within the Composition can be played on the specified server or in the specified location, then CloudTest will move on to other servers and the setting will not have had any net effect.
However, if some or all of the Composition can be played on the specified server or in the specified location, then it will be. This may cause a different server allocation pattern than the unordered search that is normally done.
In the case where the Composition itself has no requirements for the play location, the Composition will play on the server or in the location specified in Play Options. This can be used to direct a Composition with no preferences to play on a specific server, on a particular type of server, or in a specific location.
For another example, consider a Composition that has its Distributions set to play in a certain location. CloudTest is free to pick any suitable server in that location. However, Play Options could be used to specify a particular server in that location to start the search with. If that server is suitable and available, the Composition will play there.
- Repeat play
Selecting this option causes the Composition to be played multiple times (to "iterate"). When one play is completed, the Composition will be started playing again.
You may select the number of times to play, or an amount of time that the Composition is to iterate. The latter does not ever cause a Composition to be stopped in the middle—after each play CloudTest checks whether the specified amount of time has passed, and if not, plays the Composition again.
If the "Continue on error" option is selected, iteration will continue even if play fails. If it is not selected, then a play that fails will cause iteration to stop, whether or not the specified play count or duration has been reached.
- Preview mode
Check Preview Mode if you’d like to stage server instances and run through the test without any messages being sent. Preview mode is useful in staging large load tests that may involve multiple resources.
This setting overrides the setting within the Composition itself.
If Play Options is used, then the “Save result” setting in the Play Options dialog will be used instead of the setting within the Composition itself. This setting controls whether or not a Result object is created when the Composition is played.
- Save Result
This setting overrides the setting within the Composition itself. If Play Options is used, then the “Save result” setting in the Play Options dialog will be used instead of the setting within the Composition itself.
This setting controls whether or not a Result object is created when the Composition is played.
- Play speed
This setting only affects Timed Clips. It has no effect on Sequenced Clips.
This setting causes the timing of Timed Clips be compressed by an integer multiplication factor. For example, suppose the Composition contained a Timed Clip that sent Messages at 10, 20, and 30 seconds. If Play Options was used to set the play speed at 2 times normal, then the Messages would be sent at 5, 10, and 15 seconds.