WebSphere MQ Workflow 3.4.0 Java Generic API Test / Prototyping Tool
[prev][next][parent][TOC]
Additional Features
Besides the API methods, the test tool offers the following additional
features:
- Tool.sleep
to sleep between 2 API calls or test tool methods Optional features:
- Tool.waitForUserInput
to wait until the user presses the key "Enter"
- Tool.loopStart
Tool.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 ...ArraySize()-API or ...Count()-API
- Via a ...ArraySize() - 1 or ...Count() - 1
- Tool.loopBreak
can be used in an IF expression to break a loop.
- Tool.if, Tool.then,
Tool.else, Tool.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 FmcException code.
- Tool.setReturnCode
sets a user defined tool return code.
- Tool.terminate
allows you to terminate a scenarioy immediately.
- Tool.showElapseTime
Various options to measure the time taken for the following:
- Complete test case
- Test case section
- Single API method
- Tool.setDateTimeOutputFormat
The tool macro formats the date and time output format according a user specification.
- Also, a TimeStamp
can be created in conjunction with the Tool.showDiffTime option Section. This timestamp is printed at the beginning of
all sections.
- Tool.commentToOutput
to write a comment to the output (result) file.
- 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)
- Tool.exec
The tool macro executes a command in a different process.
It is possible to invoke the tool itself in an other process.
- Tool.memoryJVM
The tool macro returns memory information of the JVM.
- Tool.garbageCollector
The tool macro runs the garbage collector.
- Tool.runFinalization
The tool macro runs the finalization methods of any objects pending finalization.
- Other API Macros
- Test Case Comments
to write any comments with following syntax:
/*
. ..
*/