TSTool / Command / Comment
Single-line comments start with
Spaces and tabs before the comment character are currently not allowed.
Comments cannot be added after commands - comments must exist on their own command line.
Commands can be converted to and from
# comments by right-clicking on a command in TSTool
and selecting Convert selected commands to # comments and
Convert selected commands from # comments from the popup menu.
See also the
comment block commands, which are used to comment multiple commands.
The following table lists annotation tags that can be placed in comments to provide additional information to software that processes the commands, using notation similar to the following:
# Comment Tags
|Annotation Tag||Command That Uses||Description|
||TSTool command processor.||Used to disable a command file. For example, use this annotation in a test command file when the test is not ready for use in the software release process.|
||Used to help the test framework know if an error or warning is expected, in which case a passing test can occur even if the command status is not “success”.|
||Used to filter out test command files that are not appropriate for the operating system. Linux is included in UNIX.|
||TSTool main interface and command editors||Indicates that the command file should not be edited. TSTool will update old command syntax to current syntax when a command file is loaded. However, this tag will cause the software to warn the user when saving the command file, so that they can cancel. This tag is often used with templates to protect the template from mistakenly being edited and saved in TSTool (TSTool does not currently allow editing templates within the interface).|
||TSTool main interface||Similar to
||Used to filter out test command files that are not appropriate for the operating system.|
The following dialog is used to edit the command and illustrates the command syntax.
# Command Editor (see also the full-size image)
The command syntax is as follows:
# A comment # Another comment
See the automated tests.