Testing Equations

This section discusses how to:

  • Define equation test data.

  • View equation test run details.

To test the equation, you may need to set up test data. In an equation for which the sole function is to add a few numbers together, no test data is needed because all the data elements are provided. However, to test an equation that references keys in the table or passes global variables, the equation must have test data present.

Page Name

Definition Name

Navigation

Usage

Equation Test Data

EQTN_TEST_DATA

Set Up SACR > Common Definitions > Equation Engine > Equation Test Data > Equation Test Data

Define equation test data.

Equation Test Results - Process Messages

EQTN_PRCS_MSGS

Click the Test button on the Equation Test Data page.

View the equation test run details.

Access the Equation Test Data page (Set Up SACR > Common Definitions > Equation Engine > Equation Test Data).

This example illustrates the fields and controls on the Equation Test Data page. You can find definitions for the fields and controls later on this page.

Equation Test Data page

Use this page to define the name of the global variable, type, and operand.

After you have defined all the necessary variables and entered data on the Equation Test Data page, click the Test button.

The system displays the Equation Test Results - Process Messages page.

Note: You can also run this process as a batch process rather than initiating it by the Test button.

To test the equation in batch, select the Run Equation option (Set Up SACR > Common Definitions > Equation Engine > Run Equation > Run an Equation).

You can also print the equation that has been established in batch by selecting the Print Equation option (Set Up SACR > Common Definitions > Equation Engine > Print Equations > Print an Equation).

Access the Equation Test Results page: Process Messages tab (click the Test button on the Equation Test Data page).

This example illustrates the fields and controls on the Equation Test Results page: Process Messages tab. You can find definitions for the fields and controls later on this page.

Equation Test Results page: Process Messages tab

The page displays the messages associated with the equation test run.

Select the Global Variables tab.

This example illustrates the fields and controls on the Equation Test Results page: Global Variables tab. You can find definitions for the fields and controls later on this page.

Equation Test Results page: Global Variables tab

The Global Variable page displays the global variables used within the current equation run.