Let's test the code you've just created.
Double-click the JavaScript step.
Click on the Test script button.
A window appears to create a set of rows for testing. Fill it like here:
Click on Preview the transformation. A window appears showing five identical rows with the provided sample values. Close the preview window.
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.
You tested the code of the JavaScript step.
You clicked on the Test script button, and created a dataset that served as the basis for testing the script. You previewed the test dataset.
After that, you did the test itself. A window appeared showing you how the created dataset looks like after the execution of the script—the totalScore
and wAverage
fields were added, and the skill
field was converted to uppercase.