Multiple Rulesheets and Ruleflows can be tested in an integrated scenario by linking them together in a single Ruletest. This simulates a complex series of decisions or a part of a business process. Assume we want to test a Rulesheet, a Ruleflow, and another Rulesheet in sequence as Cargo 1, Cargo 2 and Cargo 3.

  1. Create a Ruletest in the project, name it cargo.ert, and choose Cargo.ers as the test subject.
  2. Add data, and then execute the Ruletest to generate data in the Output panel.
  3. Add a new Testsheet by choosing Ruletest > Testsheet > Add Testsheet, choose the file cargo2.erf, and then name it Cargo 2.
  4. Add another new Testsheet by choosing Ruletest > Testsheet > Add Testsheet, choose the file flightPlan.ers, and then name it Cargo 3.
  5. Click on the Cargo 3 tab, and then choose Ruletest > Testsheet > Link to previous testsheet . The tab is decorated with a red square and the adjacent tab is decorated with a blue arrow. The data from the Output panel of the previous Testsheet displays in the Input panel of the new Testsheet.
  6. Click on the Cargo 2 tab, and then choose Ruletest > Testsheet > Link to previous testsheet . The tab's blue arrow is now decorated with a split, and the adjacent tab is decorated with a green arrow. The data from the Output panel of the previous Testsheet displays in the Input panel of the new Testsheet. Here is how the tabs will look:
    Repeat for as many new Testsheets as needed to model the sequence. You can execute one sheet at a time by selecting from the toolbar, or execute all at once by selecting Ruletest > Run All Tests.