Time for action—testing the calculation of averages

Let's test the code you've just created.

  1. Double-click the JavaScript step.
  2. Click on the Test script button.
  3. A window appears to create a set of rows for testing. Fill it like here:
    Time for action—testing the calculation of averages
  4. Click on Preview the transformation. A window appears showing five identical rows with the provided sample values. Close the preview window.
  5. Click on OK to test the code.

    A window appears with the result that will appear when we execute the script with the test data.

    Time for action—testing the calculation of averages

What just happened?

You tested the code of the JavaScript

Get Pentaho 3.2 Data Integration Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.