The dollar ($) symbol is treated as a special character in a testplan. When it appears on its own it is treated as a symbol definition. Please refer to the SilkTest online help section for further details on how the symbol is used in a testplan... _________________________________________________ Symbol definition statements in the testplan editor Use symbols to define data that is shared by a group of tests in the plan. Symbol definitions follow these syntax conventions: The symbol name can be any valid 4Test identifier name, but must begin with the $ character. The symbol value can be any text. When the testplan editor encounters the symbol, it expands it (in the same sense that another language expands macros). For example, the following the testplan editor statement defines a symbol named Color and assigns it the STRING value "Red": $Color = "Red" To use a $ in a symbol value, precede it with another $. Otherwise, the compiler will interpret everything after the $ as another symbol. For example, this statement defines a symbol with the value Some$String: $MySymbol = "Some$$String" To assign a null value to a symbol, do not specify a value after the equals sign. For example: $MyNullSymbol = To indicate that a test is incomplete when generating a testplan completion report, assign the symbol the ? character. For example: $MySymbol = ? Note: If a symbol is listed in a testcases argument list, but is not assigned a value before the testcase is actually called, the testplan editor generates a runtime error that indicates that the symbol is undefined. To avoid this error, assign the symbol a value or a ? if the data is not yet finalized.
↧