Galaxy Communicator Documentation:

Unit Tester Reference

License / Documentation home / Help and feedback

Unit tester

Command line

<GC_HOME>/contrib/MITRE/tools/bin/unit_tester --as_hub [--retry] [--frames file] host port [welcome_frame]
<GC_HOME>/contrib/MITRE/tools/bin/unit_tester --as_server [--retry] [--frames file] [--ignore_reinitialize] [--service_type t]+ host port

This utility, implemented in Python (and only available if <GC_HOME>/templates/config.make has enabled Python at compilation time), provides a graphical "fake" Hub or server which connects to a server or Hub listener, respectively, located at host and port.

As a Hub, the unit tester accepts an optional welcome_frame which should be the contents of a reinitialize message to be sent to the server. The name of the welcome frame will be changed to reinitialize if necessary.

As a server, the unit tester must provide at least one value for --service_type which corresponds to a listener for that service type which the Hub has set up. If --ignore_reinitialize is present, the unit tester will not pop up a response dialogue for the reinitialize message, but rather provide an automatic dummy reply.

For both, the --retry flag instructs the unit tester to keep trying to contact the listener if it's not initially available; the default behavior is to exit if the listener is not found. The --frames argument is a file which contains the printed representation of a single list of frames, such as:

( {c frame1 } {c frame2 } )
These frames are used as "seeds" for the frame history, which is mouseable and allows you to select frames to use as new messages.
License / Documentation home / Help and feedback
Last updated September 14, 2001