[UBET Installation
& Setup][MSE User Guide][UCE User Guide]
Mktm reads a set of use case graph (UCG) files and generates a script that can be used to create a model inside of TestMaster. Mktm expects to be handed the top file in the use case and recursively reads all of the subordinate UCG files. The output is a TestMaster Import (TMI) file. When the user starts TestMaster, it knows that files named with the ".tmi" suffix are import files, opens them and builds a model. Mktm can be called directly from the command line in Windows and Solaris. This note tells how to do that.
These notes are for the command line version of mktm.
During installation, mktm is placed in the bin directory under the UBET installation. On UNIX, the command is named "mktm" and on Windows, it is named "mktm.exe". These notes assume you have placed the ubet bin in your path so you can easily call mktm directly from the command line. In order to run this script you need to install JRE 1.2.2 (see UBET installation instructions for JRE)
mktm [options] modelName ucgfile [outputfile]
where:
| modelName | the name for the TestMaster project. this is the name that will be passed to TestMaster as the TestMaster project name. It is a required argument. | ||||||||||||
| ucgFile | the top level UCG input file. The ucgFile is a top level model in the UBET use case. Depending on the -s flag, this either becomes the top level model in the new project or it is placed directly under top level model. This is a required argument. | ||||||||||||
| outputFile | the file holding the script. The output file contains the resulting script. If it is not supplied, the program writes the script to standard out. TestMaster expects this to have a suffix of ".tmi". If it's not correctly suffixed, the import results are not correct. | ||||||||||||
| options |
|
If you had a UBET model that looked like this:
calling mktm thus "mktm Fred top.ucg Fred.tmi", results in a
TestMaster model that looks like this (assuming lower level
stay the same:
If mktm is call this way: "mktm -s Joe Fred top.ucg Fred.tmi", the resulting TestMaster model looks like this:
The TestSetup model, can then be used in TestMaster to set up initialization operations.
The Mktm script enforces several restrictions that are not in UBET. The following conditions are not allowed in TestMaster and will result in errors.
No different references to the same file
No same named nodes referencing different files