WebSphere MQ Workflow 3.4 Generic C API Test / Prototyping Tool
[prev][next][parent][TOC]
Additional Features
In addition to the API methods, the test tool offers the following
features:
- TestTool_Sleep
to enable a sleep command between 2 API calls or test tool methods Optional features:
- TestTool_WaitForUserInput
to wait until the user presses the key "Enter"
- TestTool_LoopStart
TestTool_JumpToLoopStart
to loop a specified number over a sequences of APIs.
The number of loops can be specified as follows:
- User defined (specified in a test case)
- Via a ...VectorSize()-API or ...Count()-API
- Via a ...VectorSize() - 1 or ...Count() - 1
- TestTool_LoopBreak
can be used in an IF expression to break a loop.
- TestTool_If, TestTool_Then,
TestTool_Else, TestTool_EndIf
allows you to specify branches via an
IF expression. An IF expression can be one or more APIs, specified between
IF and THEN statement and containing an expected value or return code.
- TestTool_SetReturnCode
sets a user defined tool return code.
- TestTool_Terminate
allows you to terminate a scenario immediately.
- TestTool_ShowElapseTime
Various options to measure the time taken for the following:
- Complete test case
- Test case section
- Single API method
- Also, a TimeStamp
can be created in conjunction with the TestTool_
ShowElapseTime option Section. This timestamp is printed at the beginning of
all sections.
- TestTool_CommentToOutput
to write a comment to the output (result) file.
- TestTool_DosExecPgm
to invoke any program with/without arguments in synchronous, asynchronous
or background mode (OS/2 only).
- TestTool_DosKillProcess
to stop a previously started asynchronous or background program in process
or process tree mode (OS/2 only).
- Create instances (multiple)
to create and start more than one process
instance within one test case section.
- Dump Container
to dump all containers (data structures):
- Name(s)
- Type(s)
- Value(s)
- Visual representation of all nesting levels
- Visual representation of the predefined data structures (option)
- Copy Container
copies the values of the input container members to the output container if
both containers are of the same type. If a data member of an input
container is not set, then the related member of output container will not
be changed.
Include predefined data structures (option)
- Dump Person Data
to dump all person attributes of the logged on user:
- Other API Macros
- Test Case Comments
to write any comments outside an API statement with following syntax:
/*
. ..
*/