Test output
As a test is configured, a command-line command and requisite parameters are generated in Preview Command to Issue. This is for display only. A command cannot be manually specified. Click to run the test. The results are shown in the Result pane.
Using Grep
The Testing Tool can display much information. When there is much output, it can be difficult to locate the cause of errors or a particular field.
The Grep function is a way to filter the output from the testing tools.
Select
to enable this feature. (By default, this is disabled.) Specify grep content in the text field. The search expression can be a search string or a wildcard. Selecting the check box and having no content results in an error message when is clicked.Grep keeps recently entered content history for all of the testing tools. This history is removed when the Testing Tool is closed.
When -w search
expression
command parameter is appended to the command
line. For example:
hcihl7test -w "ADT_*" -d 2 -a test.dat
The Testing Tool command line filters output going to StdOut to show only those lines containing the search string or matching the wildcard. Output directed to StdErr continues to go to StdErr and is not affected.
Grep supported special characters
- [ (single bracket)
- & (ampersand)
- ’’ (two single quotes)
- Chinese punctuation mark
- Chinese dash
- Chinese ellipsis
Searching the results
Use the Search text field to search the results for a specific string or wildcard.
To begin a search, specify a string and click
. The search expression can be a search string or a wildcard.The first matching string is highlighted. Clicking
again searches for and highlights the next matching string.If no match is found, then No lines found to match search expression displays in the results.
Output options
Select
to remove the previous test’s output before running a test.Select
to automatically show the test results before the last test’s output. When this option is disabled, each test’s output is added to the bottom of the list. This option is unavailable when is selected.