How to Test Your Logic

About Logic Testing

Testing your logic requires the Recorder component.

The Recorder  component lets you capture and store data that passes through it.

  • This component is very useful for development and testing purposes.
  • When you make a change to your crawl logic, you can rerun your pipeline and the recorder captures the resulting new data, revealing how your logic change impacts your crawl.
  • The stored location of the recorded data depends on the configuration and custom script.

Note the Recorder in the following screenshot, a capture of the default Online pipeline.

  • The Recorder (Rec) is set in the 1st place in order (Status: Disabled), and therefore runs first.
  • All data that is captured by the components in the pipeline are captured by the recorder and stored in a location on the filesystem.
  • This enables you to examine the contents of the data captured by the recorder to see the effect of a change in crawl logic.

Using Multiple Recorder Components

You can insert multiple Recorder components into your pipeline.

When to Use Multiple Recorder Components

If you a specific component in your pipeline is not behaving as you expect, and/or is not collecting the right data, use an additional Recorder component to capture the issue:

  1. Insert a Recorder component immediately after the suspected problem component in your pipeline order
  2. This captures the behavior of the suspected component by examining the output created by the suspected component (configured to be deposited in your file system).

Note: You can also place a Recorder component at the very end of your pipeline to complete the beginning-middle-end model of data capture.

How to Configure the Recorder Component

To configure the Recorder component, use the following steps.

Note: If you choose to add the Content Enrichment web service, you must specify the Recorder Path location.

  1. Make sure that you have specified the URL.
  2. Add the Component.
  3. Existing Components: Click the named link for this component to see the Configuration section:

    See the Existing Components section of the UI.
  4. To use the scripting pane:

    • See the Question mark icon.: Click to show scripting help

    • See the gear icon.: Click to open the script settings window.
    • See the maximize icon.: Click to maximize the script editor.
  5. Compile: Click to compile your script.
  6. To configure:

    1. C#/VB: Use the default C# or select VB scripting.

    2. Change default script to generate a relative path and file name

      • This step is optional.

  • Input Properties: Based on configuration.

  • Output Properties: Based on configuration.