background image
<< datapool_name Variable | operation_arglist Variable >>
<< datapool_name Variable | operation_arglist Variable >>

check_expected_result Variable

122
Appendix A - Template Replacement Variables
<check_expected_result>
The code generated here depends on the target language for generation
and the return value of the operation. If the operation return type is void,
or if VB is marked as a "Sub", then the actual code that is inserted is as
follows:
If (operation does NOT have a return value) Then
<check_expected_result> :=
`Log message indicating success.
Else
<check_expected_result> :=
`If statement to compare the expected return with the actual return for
equivalence.
`If equal, then log success, otherwise log error.
<method_declaration>
The code that is generated here depends on the target language for
generation and the operation that is selected. The result is a string that can
be used to declare a method. No newline characters are added to this
variable.
<parameter_declarations> The code that is generated here depends on the target language for
generation and the operation that is selected. The result is a string that can
be used to declare all of the variables that will be used as arguments to the
operation that has been selected for generation. Newline characters are
added to this string so that each variable is declared on a new line.
<parameter_initialization> The code that is generated here depends on the target language for
generation and the operation that is selected. The result is a string that can
be used to initialize all of the variables that are declared in
<parameter_declarations> to be values from a datapool. Each parameter
type is checked to see if it can be driven using a datapool value. If not, a
comment is inserted in place of the datapool assignment.
<return_val>
The code that is generated here depends on the target language for
generation and the operation that is selected. The result is an empty string
if the operation does NOT return a value, or "actRet = " if it does.
Variable
Description and Example