Setting and Using Message Scope
CloudTest provides the ability to set scope on objects in the repository that will define whether an item is private, public, or local.
By default, a message's scope is 'private' (as shown on the right) and its response cannot be accessed by another item in the composition, such as a script. Using private scope as a default permits CloudTest to throw away the response as soon as it's received in order to save memory.
- Private means the item’s information cannot be accessed from the outside
- Local means that an
item’s information can be accessed only by other items within the same parent
For example, making a Message local means that the Message can only be accessed by other items within the same Clip
- Public means the item’s information can be accessed from anywhere.
In cases where a message response needs to be accessed, its scope can be set to 'public' or 'local' (depending on its location) in order to make its response information available for access. For any parent item in the path, its scope must also be set for access.