Test a Computation Script

Often, as you write calculations or scripts, you want to make sure they produce the desired result. You can test computations and scripts as you write them. When you do this, HotDocs displays a test dialog in an interview where you can enter the information that is needed to produce a result.

To test a script

  1. At the Computation Editor, enter your computation or script.
  2. When finished, click Test. HotDocs displays a test assembly window.
  3. Enter any required information and click the Result tab. HotDocs displays the computed answer.
  4. (Optional) To further edit the variable, leave the test assembly window open and return to the Computation Editor to make the changes. Click Update at the Computation Editor to update the test assembly window. To permanently save the changes, click OK at the Computation Editor.
  5. Click File, then Close to close the test assembly window.

You can save your test answers in a test answer file.

When you test a computation script, if HotDocs finds any syntax errors in the script, it displays a warning message and then places your cursor as close to the error as possible in the Script box. You must fix the error before HotDocs allows you to save the script.

You can have HotDocs arrange the test assembly window with other open windows. Adjust the height of the test assembly window and then click the Arrange button.