/* $XConsortium: README /main/4 1996/07/15 14:12:36 drk $ */ README for Automation libCommon.a --------------------------------- The following is information about what is contained in the Automated version of libCommon. Basically libCommon is a library which will contain functions that are commonly called with test programs contained in the Motif test suite. It also contains a new mechanism that will read user instructions from a separate ascii file on test startup time instead of reading the instructions from a header file at compile time. The difference between this version on libCommon and the version in tests/Manual/lib/Common is that when this library creates the applicationShell it is for Automation. It also initializes structures for Automation and reads in special flags for Automation. For more information on the Automation commands, see the man pages for Automation. Command Line Options: -------------------- /* Common Flags - Automation and non-Automation */ -l : Disable displaying of the MessageBox for user instructions (Ignore CommonPause()) -w # : Specify width of MessageBox for user instructions. Default is 60. -u : Specify a string which will be available to the test writer as the global variable UserData. -I : Read an alternative instruction file. The default is .dat. -f : Use as the font that will be used when your requested font is not available. Default is fixed. -p : Specify the font to be used in the MessageBox for user instructions. Default is fixed. -h : Print the usage message. /* Automation only Flags */ -a : Dump to the report file (.prt) information on all the specific pixel failures. When run without this flag, the message on a CompareVisual failure will be a one line message that the CompareVisual failed. Only useful when running in comparison mode. -r : Record mode. In this mode, Automation will record and save the image currently on the screen and place it in .vis. -b : Batch mode. In this mode visuals on the screen will be compared against the visuals stored in This is the default mode. -m : Interactive comparison mode. In this mode, a CompareVisual command when run in compare mode (default), will do the following. It will bring up a another window located at (500,500) which will be a BulletinBoardDialog with a Drawing Area as its only child. What will be contained in the DrawingArea after a CompareVisual will be any pixels that failed between the comparison of the image on the screen and the saved image in the . a black pixel signifies failure, a white pixel signifies a pass. When you want to dismiss this window, simply click on the interactive window and the Automation process will continue. -c : Ignore comparisons. In this mode all calls to CompareVisual will be ignored. -D