Scope – Source Reference
The purpose of the Scope <Scope> element is to create structure in a large test scenario. It is a Composite type that has a description and can contain other elements. The Scope element is only used to group elements. Variables in a scope can also be accessed from outside the scope.
Syntax
The syntax of the Scope element is:
<Scope name="<name to be displayed" disabled="<true|false>">
<!-- Other elements -->
</Scope>
<!-- Other elements -->
</Scope>
- The name is only used for displaying the scope in the editor – and for writing log messages.
- The disabled attribute can be used to disable the execution of the scope which can be a handy feature during the development of the test scenario.
Example
Below is an example of a Scope element containing a Log element:
<Scope name="Scope" disabled="false">
<Log>
<data:String>Hello World</data:String>
</Log>
</Scope>
<Log>
<data:String>Hello World</data:String>
</Log>
</Scope>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*