Getting Started with Streaming Analytics
Also available as:
loading table of contents...

Chapter 8. SAM Test Mode

In a typical SDLC (Software development lifecycle), you want to test the streaming analytics app locally before deploying the SAM app to a cluster. SAM’s “Test Mode” allows you to test the app locally using test data for the sources. SAM’s Test Mode allows you to do the following:

  • Create a Named Test Case

  • Mock out the sources of the app and configure test data for each test source. SAM validates the test data using the configured Schema in the Schema Registry for each source

  • Execute the Test Case and visually see how the data looks like at each component/processor in the app as flows across your application.

  • Download the output of the test which represents the state of the data at each processor and sink.

In the following sections, we will walk through creating Test Cases for different test scenarios for the reference app. If you ran the test utility, these 4 test cases will already be created for you.