Sending Test Data to Your StreamBase Application

Purpose

We can now enqueue some generated test data to the running application using our feed simulation, and view its output in Studio.

Test Your Application with Simulated Data

  1. If your app is not now running, click the Run button to start it.

    If Studio prompts for permission to switch from the Authoring perspective to the SB Test/Debug perspective, click Yes.

  2. In the Application Output view, make sure that the Stream option is set to (All Output Streams).

  3. In the Feed Simulations view, select firstapp-enum.sbfs and click Run.

    Notice that the Application Input view displays generated tuples enqueued from your Feed Simulation. At the same time, the Application Output view begins displaying tuples on the two output streams.

  4. Let the feed simulation run for five or ten seconds, then click Stop.

    Note that stopping the Feed Simulation does not stop the application.

  5. Observe the results in the Application Input and Application Output views. (If necessary, resize the views so that you can see their contents clearly.)

    • In the Application Input view, notice that the list of trades value has entries that are both above and below the threshold of 10000 that was set in your Filter operator. For example:

    • In the Application Output View, select BigTrades from the Stream drop-down. Verify that the quantity value is always above 10000 for entries in the list.

      Tip

      Click to select a row to display its field summary in the table below the list, as shown in the next figure.

    • In the Application Output View, select AllTheRest from the Stream drop-down. Verify that the quantity value is always below 10000 for entries in the list.

  6. Click the Stop Running Application button in the StreamBase toolbar, or press F9.

    When the application stops, Studio switches back to the SB Authoring perspective.

Summary and Next Steps

Click Next to go to review and finish the tutorial.

Back to Top ^