Toggle TrueLog at Runtime Using a Script

This functionality is supported only if you are using the Classic Agent. For additional information, refer to the Silk Test Classic Classic Agent Help.

Toggle the TrueLog Explorer at runtime to analyze test results, capture screen-shots before and after each action, and capture screen-shots when an error occurs.

Use the test script to toggle TrueLog Explorer multiple times during the execution of a test case. For example, if you run a single test case to test multiple user interface menus, you can turn TrueLog on and off several times during the script to capture bitmaps for only a portion of the menus.

  1. Set the TrueLog Explorer options to define what you want the TrueLog Explorer to capture.
  2. Create or open the script that you want to modify.
  3. Navigate to the portion of the script that you want to turn on or off.
  4. To turn TrueLog off, type: SetOption(OPT_PAUSE_TRUELOG, TRUE).
  5. To turn TrueLog on, type: SetOption(OPT_PAUSE_TRUELOG, FALSE).
  6. Click File > Save to save the script.