TextStream modules
The technology-specific modules for TextStream can open, modify, save and close a TextStream.
TextStream Open/Load
Opens a TextStream. A TextStream is an object which represents a stream of text from a text source in a file system. Additionally, you can load content from an external source into the TextStream that you specify.
Value |
Description |
---|---|
Stream Name |
The name of the TextStream you want to open or load content into. |
Load Source Type |
Optionally, you can load content from an external source into the specified TextStream. To do so, choose one of the following sources as a value:
|
Load Source Identifier |
If you specified the value File or Buffer for Load Source Type, use this to specify the complete path to the file or the buffer name. |
Load Operation Type |
Type of operation you want to perform when you load content into the TextStream. You can specify the following operation types:
|
Line Separator |
Line separator setting for the TextStream. You can specify the following line separators, which depend on the Operating System (OS) under test:
|
Encoding |
Specify the character encoding to use when you load a file. If you don't specify any value, Tosca Cloud uses UTF-8 as the default encoding. |
TextStream Save/Close
Closes a TextStream and optionally, saves its content to an external destination.
Value |
Description |
---|---|
Stream Name |
The name of the TextStream you want to close or save. |
Destination Type |
Destination where you want to save your TextStream. You can specify the following destinations:
|
Destination Identifier |
If you specified the value File or Buffer for Load Source Type, use this to specify the complete path to the file or the buffer name. |
Encoding |
Choose a text encoding option from the dropdown menu. The default value is UTF-8. |
Keep Stream Open |
Tosca Cloud closes the TextStream by default. If you want to leave it open after saving, set this value to True. |
TextStream Block Text Manipulation
Manipulates the content of a TextStream as a single block of text.
Value |
Description |
---|---|
Stream Name |
The name of the TextStream you want to manipulate. |
Target Line |
Specifies which line of text to load from the TextStream. You can specify one of the following values:
If you don't specify a Target Line value, Tosca Cloud uses one of the following defaults based on the Input Operation Type:
|
Input Operation Type |
If you use action mode Verify for Content, leave the value empty. If you use action mode Input for Content, choose an operation to perform when you insert the specified content into the TextStream. You can specify the following operation types:
|
Field Separator |
Optionally, specify the character that separates your values in your Target Line. For instance, a semicolon (;) is the separator of the following example: <Name>;<Age>;<Country>. |
Line Length |
Optionally, specify the maximum number or characters of the Target Line. |
Total Field Count |
Optionally, specify the number of fields in your TextStream, based on Field Separator. |
Content |
Text content you want to steer. Note the following when you specify the content of your TextStream:
Optionally, you can add the following configuration parameters:
|
TextStream Table Text Manipulation
Manipulates the content of a TextStream which is formatted as a table.
Value |
Description |
---|---|
Stream Name |
Name of the TextStream you want to manipulate. |
Start Line |
Optionally, specify the line number of the first line of text that you want to load from the TextStream. |
End Line |
Optionally, specify the line number of the last line of text that you want to load from the TextStream. |
Input Operation Type |
If you use action mode Verify for Content, leave the value empty. If you use action mode Input for Content, choose an operation to perform when you insert the specified content into the TextStream. You can specify the following operation types:
|
Column Definition Value |
Value that specifies the columns of the tabulated text content. You can specify the following column separators:
|
Content |
The table content that you want to steer. |