Managing Scripts with the Certify Utilities Interface Tool

With the Certify Utilities Interface tool, only Certify administrators can create, import, modify, test, export, and delete user scripts. This topic will show you how to do the following tasks with the Certify Utilities Interface tool:

  • Create a new script.
  • Import a script.
  • Test a script.
  • Export a script.

Worksoft provides two example scripts that can be imported from the following directory:

C:\Program Files (x86)\Worksoft\Certify\Interface Client\Worksoft\wsTest\Utilities

Supported Code Tokens

Listed below are supported Certify code tokens:

  • GetArgument(0-4) = Get one or more of the five parameters passed.
  • SetReturnValue() = Set the interface return value.
  • Quit(1) = Set the step status for FAIL.
  • Quit(0) = Set the step status for PASS.

    If the step status is PASS, the SetReturnValue() will be setting the interface return value or interface error message.

Accessing the Certify Utilities Interface Tool

Open the Certify Utilities Interface tool from Certify by selecting Configure > Interfaces > Utilities from the menu.

The Certify Utilities Interface tool opens.

To create a new script:

  1. Open the Certify Utilities Interface tool.
  2. From the File menu, select Manage Scripts.

    The Scripts dialog opens.

  3. From the File menu, select New.

    The Script Editor opens.

  4. In the Script Name field, enter a name for your new script.

  5. From the Script Type drop-down list, select one of the following types:
  6. jscript
  7. vbscript
  8. Right-click in the Editor and select Paste to paste your new script.

  1. If needed, use the right-click menu to do the following tasks:

  2. Change the reading order.
  3. Show Unicode control characters.
  4. Insert a Unicode control character.
  5. Open an Input Method Editor (IME)
  6. Click OK.

    You are now ready to test the script.

To import a script:

  1. Open the Certify Utilities Interface tool.
  2. From the File menu, select Manage Scripts.

    The Scripts dialog opens.

  3. From the File menu, select Import.

    The Import Script File dialog opens.

  4. Browse to the directory where the script you want to import is located.

  5. Click Open.

    The Script Editor opens.

  6. In the Script Name field, enter a name for your new script.

  7. From the Script Type drop-down list, select one of the following types:
  8. jscript
  9. vbscript
  1. If needed, use the right-click menu to do the following tasks:

  2. Edit the script.
  3. Change the reading order.
  4. Show Unicode control characters.
  5. Insert a Unicode control character.
  6. Open an Input Method Editor (IME)
  7. Click OK.

To test a script:

  1. Open the Certify Utilities Interface tool.
  2. From the Actions drop-down list, select the Operating System - Run Script action.
  3. Click Execute.

    The action's parameter dialog opens. The parameter dialog is unique for each action.

  4. From the Script Name drop-down list, select a script.

  5. If needed, enter values into the Argument fields.

  6. Click OK.

    The script is executed, and the status appears with the narrative. If the execution fails, a message appears in the Interface Error Message field.

  7. Click Close.

To export a script:

  1. Open the Certify Utilities Interface tool.
  2. From the File menu, select Manage Scripts.

    The Scripts dialog opens.

  3. Right-click on the script you want to export and select Export.

    The Export Script File dialog opens.

  1. Browse to the directory where you want to save the script.
  2. Click Save to export the script.
  3. Click OK to close the Scripts dialog.
  4. Click Close to close the Certify Utilities Interface tool.

 

Related Topics Link IconRelated Topics