Inserting OCR Parsing Functions

  1. Using Silk Performer, record a Citrix session.
  2. Run a Try Script run, with the Animated Run with TrueLog Explorer check box selected on the Try Script dialog box. This opens TrueLog Explorer.
  3. When the Try Script run is complete, select the API node that includes the bitmap screengrab of the screen from which you want to parse text.
  4. Click and drag your cursor onscreen to select the screen region that includes the text you want to parse.
  5. Right-click in the selected area and select Parse Text.
  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 Silk Performer's 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-time measurements, these files should only be used for debugging purposes and should not be generated for full load tests.
    OCR Technique
    Specify the OCR technique that should be used to verify the text. While font-based OCR needs fewer resources, the fuzzy OCR produces better results for texts displayed with font smoothing techniques. Help the fuzzy OCR to provide better results by specifying the language of the text.
  7. Click OK.
  8. A confirmation dialog box opens. Click OK to add the OCR parsing function to your Citrix script.