## Input/Output Device Driver Reference

[prev][next][parent][TOC]

### Description of Test Cases

Each of the parallel port test cases can be executed individually as previously described. The corresponding test scripts are described below. The user can create additional tests or combine tests into multi-threaded test cases after becoming familiar with the DDTT and the parallel grammar file.

All of the parallel port test cases use the DDTT @IMPORT command to include one script file:

SYSINFO.TXT
The content of the SYSINFO.TXT files is set by the SETINFO.CMD command file . SETINFO.CMD should be executed once to establish values for the following DDTT parameter keywords:

DEVICENAME - drive name of the parallel port device under test, such as LPT1.

All test scripts open and close the parallel port device and verify successful status return from every exercised API. All test scripts log information to a log file with the same file name and a file name extension .LOG. When current status is queried (for example, the font, timeout, or port), this data is written to DDTT's output windows and to the log file. Log files can be examined after the test case has completed.

ACTFONT.SCR Activates and logs the font identified by the CODEPAGE and FONTID.

FRAMES.SCR Sets and queries the frame controls for four combinations of characters-per-line and lines-per-inch.

INITPAR.SCR Initializes the parallel port.

QFONT.SCR Queries the activefont, logging, CODEPAGE, and FONTID.

QFRAME.SCR Queries frame control, logging characters-per-line, and lines- per-inch settings.

QPARPORT.SCR Queries the parallel port and logs the value in the data field .

QPPWTOUT.SCR Queries write time out and logs time, in seconds.

QRETRY.SCR Queries to determine if infinite retry is enabled.

REQEX.SCR Requests exclusive access of LPT1 and displays Have exclusive access, pauses for two minutes, and then releases exclusive access. This process requires installation of the generic device driver, GENDRV.SYS.

RETRY.SCR Enables infinite retry, queries retry, disables infinite retry, and queries retry, again.

SETFRAME.SCR Sets frame control of 80 characters-per-line and 6 lines-per- inch.

SPPWTOUT.SCR Sets parallel port write time out value to 10 seconds.

SRETRY.SCR Sets infinite retry enabled.

TITLERD.SCR Sets jobtitle to BIDI TEST JOB-TITLE, reads file READ.SCR, and writes file.

VFONT.SCR Verifies font with CODEPAGE=34000 and FONTID=34000.