Generating an OCR Parsing Function

  1. From Silk Performer record a Citrix session
  2. Run a TryScript run with the Animation checkbox selected on the TryScript dialog box. This opens TrueLog Explorer.
  3. When the TryScript run is complete, select a CitrixSynchronization API node (or child node) that includes a bitmap screengrab of a page from which you want to parse text.
  4. Click and drag your cursor to select the page region that includes the text you want to parse.
  5. Right-click in the selected region and select Parse Selected Text into a Variable.
  6. The Insert Parsing Function dialog box offers parameters by which the parsing function can be configured. Though the default settings will likely be correct, you can adjust: Parameter name - Enter the name of the parameter that is to receive the result of the parsing function. Informational statement insertion - Select Print statement to insert an informational Print statement into the script after the Web page call. This writes the result of the parsing function to the Silk Performer Virtual User Output window.

    Select Writeln statement (“write line” statement) to write the parsed value to an output file to facilitate debugging (in addition to writing the value to the Virtual User Output window as a Print statement does). Because generating output files alters test measurements, these files should only be used for debugging purposes and should not be generated for full tests.

  7. Click OK.
  8. A confirmation dialog box appears. Click OK to add the OCR parsing function to your Citrix test script.