Steer TextStreams

To steer TextStreams, you must create TextStream Engine 3.0 TestCases.

The Standard subset contains all Modules that you need to create a TextStream TestCase. You find these Modules under Standard modules->TBox XEngines->TextStream.

For information on how to create TestSteps from Modules, see chapter "Create TestSteps from Modules".

Structure of TextStream TestCases

To create a TextStream Engine 3.0 TestCase follow the steps below:

  1. Open or create a TextStream with the Module TextStream Open/Load.

    When you do so, you can simultaneously load contents from a specified external source.

  2. Run your TextStream operation(s):

  3. Close or save the TextStream with the Module TextStream Save/Close.

In this example, you perform the following actions:

  • The TestStep TextStream Open/Load opens a TextStream called TestStream.

  • The TestStep TextStream Table Text Manipulation verifies the content of the TextStream TestStream which is formatted as a table and uses spaces as a column separator.

    It verifies if the text in the first row and second column is equal to City.

  • The second TestStep TextStream Table Text Manipulation replaces the text in the second row and second column with Boston.

  • The TestStep TextStream Save/Close saves the TextStream TestStream to an external file encoded with Unicode UTF-8 and closes it.

Steer a TextStream