This toolbar enables you to manipulate Test Flow variables by concatenating (combining) strings and parsing (extracting) specific portions of strings. To add one of these operations to the Sequence, drag it from the String toolbar to the Sequence Workspace.
To create a variable, click the "Create Variable" button from the Variables toolbar and enter the desired variable name. Once you have created a variable block, it is added to the list of available variables in the Variables toolbar. To add a variable block to the Sequence inside a String block, drag it from the Variables toolbar to the Sequence Workspace.
Settings Menu: The following parameters are available in the Settings menu for this block type.
Comments | Add comments to the block. | |
Save Data | Save data generated by this block and display the data in the Results table. |
This block in the String toolbar enables you to concatenate (combine) strings from two or more Test Flow variables into a single string.
In this example, two strings are concatenated to form a single string.
This example shows how to add a newline character (ASCII 10) between two concatenated strings.
This example shows how to add a space between two concatenated strings.
These blocks in the String toolbar enable you to parse (extract) specific portions of a Test Flow variable string. For example, you can parse characters from the left/right side of a string or characters from the middle of a string.
Use the Parse Left block to parse the specified number of characters starting from the left side of the string. The example below shows the three leftmost characters parsed from the string assigned to variable a. When you execute the Sequence, the resulting parsed characters ("abc") are assigned to variable b.
Use the Parse Right block to parse the specified number of characters starting from the right side of the string. The example below shows the four rightmost characters parsed from the string assigned to variable a. When you execute the Sequence, the resulting parsed characters ("cdef") are assigned to variable b.
Use the Parse Middle block to parse the specified number of characters beginning at the specified start index location. The default start index is "1" (Option Base 1), which is the leftmost character in the string. The example below shows two characters parsed from variable a beginning with the third character from the left (Start Index 3). When you execute the Sequence, the resulting parsed characters ("cd") are assigned to variable b.