Share via


Test Cases for the Parallel Port Test (Windows Embedded CE 6.0)

1/6/2010

The following table shows the test cases for the Parallel Port Test.

Test case Description

1000

Open/Close Port

Verifies that the CreateFile function call succeeds on the specified device attached to the parallel port. This test case fails if the parallel port driver is unable to communicate with the attached printer.

1001

Read/Set Timeouts (IOCTL)

Verifies that the IOCTL_PARALLEL_SET_TIMEOUTS and IOCTL_PARALLEL_GET_TIMEOUTS I/O control codes (IOCTLs) successfully set and retrieve timeout values for the parallel port. This test fails if the parallel port driver does not support the tested IOCTLs. The test also fails if the parallel port driver is unable to communicate with the attached printer.

1002

Read/Set Timeouts (Win32)

Verifies that the SetCommTimeouts function call and the GetCommTimeouts function call successfully set and retrieve timeout values for the parallel port. This test fails if the parallel port driver does not support timeouts. The test also fails if the parallel port driver is unable to communicate with the attached printer.

1003

Get Device Status

Verifies that the IOCTL_PARALLEL_STATUS IOCTL behaves properly. This test fails if the parallel port driver does not support the tested IOCTL. The test also fails if the parallel port driver is unable to communicate with the attached printer.

1004

Write Bytes (IOCTL)

Verifies that the IOCTL_PARALLEL_WRITE IOCTL behaves properly. This test fails if the parallel port driver does not support the tested IOCTL. The test also fails if the parallel port driver is unable to communicate with the attached printer.

1005

Write Bytes (Win32)

Verifies that the WriteFile function behaves properly on an open parallel port handle. This test fails if the parallel port driver does not export a function for writing. This test also fails if the parallel port driver is unable to communicate with the attached printer.

1006

Get Device ID

Verifies that the IOCTL_PARALLEL_GETDEVICEID IOCTL behaves properly. This test fails if the parallel port driver does not support the tested IOCTL. This test also fails if the parallel port driver is unable to communicate with the attached printer.

See Also

Other Resources

Parallel Port Test