A run method table calls a particular decision table or method table multiple times and provides input values for each individual call. Therefore, run method tables are similar to test tables, except they do not perform a check of values returned by the called method.
Note: Run method tables can be used to execute any Java method but in that case a method table must be used as a proxy.
The following is an example of a run method table:
Figure 29: Run method table
This example assumes there is a method append
defined with two input parameters, firstWord
and secondWord
. The run method table calls this method three times with three
different sets of input
values.
A run method table has the following structure:
The first row is a table header, which has the following format:
Runmethod <method to call> <run method table name>
The second row contains cells with method input parameter names.
Starting with the third row, each row is a set of input parameters to be passed to the called method.