Test Cases for the Serial Port Driver Test (Windows Embedded CE 6.0)

1/6/2010

The following table shows the test cases for the Serial Port Driver Test.

Test case Description

11

Configures the port and writes data to the port at all possible baud rates, data bits, parities, and stop bits. This test fails if it cannot send data on the port with a particular configuration. The output log shows details of a failure.

12

Tests the SetCommEvent and GetCommEvent functions. This test fails if the driver does not properly support the SetCommEvent or GetCommEvent functions. The output log shows details of a failure.

13

Tests the EscapeCommFunction function. This test fails if the driver does not support one of the Microsoft® Win32® EscapeCommFunction functions. The output log shows details of a failure.

14

Tests the WaitCommEvent function on the EV_TXEMPTY event. The test creates a thread to send data and waits for the EV_TXEMPTY event to occur when the thread finishes sending data. This test fails if the WaitCommEvent function behaves improperly or if the EV_TXEMPTY event does not signal appropriately. The output log shows details of a failure.

15

Tests the SetCommBreak and ClearCommBreak functions. This test fails if the driver does not properly support the SetCommBreak or ClearCommBreak functions. The output log shows details of a failure.

16

Makes the WaitCommEvent function return a value when the handle for the current COM port is cleared. This test fails if the WaitCommEvent function behaves improperly. The output log shows details of a failure.

17

Makes the WaitCommEvent function return a value when the handle for the current COM port is closed. This test fails if the WaitCommEvent function behaves improperly. The output log shows details of a failure.

18

Tests the SetCommTimeouts function and verifies that the ReadFile function properly times out when no data is received. This test fails if the COM timeouts do not function correctly. The output log shows details of a failure.

19

Verifies that previous Device Control Block (DCB) settings are preserved when the SetCommState function call fails with DCB settings that are not valid. This test fails if the serial port driver does not keep previous DCB settings when DCB settings that are not valid are passed to the driver.

20

Tests Open/Close on port share. Calls the createfile fo rthe COMX: port with sharedmode set to FILE_SHARE_READ and FILE_SHARE_WRITE.

21

Tests the power management abilities of a serial port. Verifies if the power management IOCTLs and function calls are supported.

See Also

Other Resources

Serial Port Driver Test