Multiple options are available for defining the behavior of code when working with .NET Explorer. These settings are available on the Options dialog box, Code tab.
.NET Code Generation
These project-level options define the behavior of .NET code generation in .NET Explorer:
- Try-Catch block in every method - A try-catch block is scripted in each test method. Caught exceptions are forwarded to Silk Performer .NET Framework. It is recommended that you select this option.
- Verifications - Verifications will be scripted in test methods. It is recommended that you select this option to make use of verification
settings.
- Test logic in BDL - Each test method call becomes a TestMethod in the Silk Performer .NET Framework and therefore becomes a separate method call in the resulting BDL script. It is recommended that you not select
this option because test logic should remain in test case methods in the .NET Code.
- Language - Select your preferred .NET language for code generation.
Source View
These user-level options define the behavior of the .NET Explorer source tree menu:
- Show primitive types as objects - Primitive (simple) types that are stored in global variables are normally displayed as variables, not as objects. When
this option is selected, types such as int and string are displayed as objects and you are able to call the methods that are
defined for those types, for example String.Compare.
- Show base type information - When this option is selected, members of the base types of displayed objects are displayed. Otherwise only the members
that are declared by the object types themselves are displayed.
- Use namespaces - When selected, the full namespace names of loaded classes are displayed in the class tree.
-
Switch to object view when storing a variable