Test runtime script events

Use the procedure in this topic to test your runtime script events.

You can test application and batch related script events using the Testing Runtime Script Event window to simulate runtime and the events that are performed during processing. For more information about the events that are fired and the event sequence, see the Tungsten TotalAgility Scripting Help.

Procedure
  1. Open the Documents window if it is not already open.
  2. Select the test subset you want to use to test your script.
  3. Select Hierarchy View to show the hierarchical structure of your test documents that represents the batch.
  4. If needed, select Runtime Script Events > Configure to select the module and event you want to test.
    1. On the Module list, select the module that runs the script event.
    2. On the Event list, select the event you want to test.
    3. If you have selected the Batch_Close event you can distinguish the processing for various closing modes by selecting the corresponding mode from the Close Mode list.
    4. Select OK to store the configuration and close the window.

    The Configure window is displayed.

  5. In the Configure window, configure the following settings.

    Setting

    Description

    Module

    This is the name of the module that runs the script event. This list depends on how your project is configured. Select one of the following:

    • Transformation Server Step 1

    • Document Review

    • Transformation Server Step 2

    Event

    Select one of the following events:

    • Application_InitializeScript

    • Application_InitializeBatch

    • Batch_Open

    • Batch_Close

    • Application_DeinitializeScript

    See the Tungsten TotalAgility Scripting Help for more information about these script events.

    Close Mode

    Available when you are testing the Batch_Close event only. If you are testing the Batch_Close event, you need to choose one of the following values:

    Final:

    Select if you have configured the Batch_Close event to run when processing of the batch is finished.

    Suspend:

    Select if you have configured the Batch_Close event to run when a batch is suspended.

    Error:

    Select if you have configured the Batch_Close event to run when a batch has an error.

    Child:

    Select if you have configured the Batch_Close event to route documents to a child batch.

    Parent:

    Select if you have configured the Batch_Close event to route documents to a parent batch.

  6. Select OK to perform the script code for the configured event.