次の方法で共有


Test Cases for the Serial Communications Test (Windows Embedded CE 6.0)

1/6/2010

The following table shows the test cases for the Serial Communications test.

Test case Description

10

Establishes communication between Windows Embedded CE-based devices and synchronizes the devices.

11

Determines the set of serial port properties that the server and client have in common

12

Does a configuration test of the rates, data bits, parity, and stop bit, by using GetCommState to get the current DCB.

13

Checks WaitCommEvent on EV_CTS and EV_DSR by using EscapeComm function for RTS and DTR.

14

Checks WaitCommEvents for BREAK by using EscapeCommFunction.

15

Checks WaitCommEvents for EV_RXCHAR and EV_RXFLAG by using

TransmitCommChar.

16

Tests the GetCommModemStatus function.

17

Tests the data read time-outs by using SetCommTimeouts to set the desired time-outs.

18

Tests the data write time-outs by using SetCommTimeouts to set the desired time-outs.

19

Checks if PurgeComm stops a write operation.

20

Evaluates XON/XOFF performance.

21

Evaluates the reliability of the XON/XOFF protocol.

22

Evaluates the opening and closing of ports.

23

Tests WaitCommEvents with TX empty.

41

Tests the transmission speed of a 1-byte buffer with a fixed time-out value.

42

Tests the transmission speed of a 2-byte buffer with a fixed time-out value.

43

Tests the transmission speed of an 8-byte buffer with a fixed time-out value.

44

Tests the transmission speed of a 32-byte buffer with a fixed time-out value.

45

Tests the transmission speed of a 64-byte buffer with a fixed time-out value.

46

Tests the transmission speed of a 128-byte buffer with a fixed time-out value.

47

Tests the transmission speed of a 512-byte buffer with a fixed time-out value.

48

Tests the transmission speed of a 1024-byte buffer with a fixed time-out value.

51

Tests the reception speed of a 1-byte buffer with a fixed time-out value. If the ReadFile function times out before the read operation completes, the function returns the bytes that had been read when the function timed out.

52

Tests the reception speed of a 2-byte buffer with a fixed time-out value. If the ReadFile function times out before the read operation completes, the function returns the bytes that had been read when the function timed out.

53

Tests the reception speed of an 8-byte buffer with a fixed time-out value. If the ReadFile function times out before the read operation completes, the function returns the bytes that had been read when the function timed out.

54

Tests the reception speed of a 32-byte buffer with a fixed time-out value. If the ReadFile function times out before the read operation completes, the function returns the bytes that had been read when the function timed out.

55

Tests the reception speed of a 64-byte buffer with a fixed time-out value. If the ReadFile function times out before the read operation completes, the function returns the bytes that had been read when the function timed out.

56

Tests the reception speed of a 128-byte buffer with a fixed time-out value. If the ReadFile function times out before the read operation completes, the function returns the bytes that had been read when the function timed out.

57

Tests the reception speed of a 512-byte buffer with a fixed time-out value. If the ReadFile function times out before the read operation completes, the function returns the bytes that had been read when the function timed out.

58

Tests the reception speed of a 1024-byte buffer with a fixed time-out value. If the ReadFile function times out before the read operation completes, the function returns the bytes that had been read when the function timed out.

1000

Stress test at baud 9600 for 100 iterations.

1001

Stress test at baud 19,200 for 100 iterations.

1002

Stress test at baud 38,400 for 100 iterations.

1003

Stress test at baud 57,600 for 100 iterations.

2000

Performance test at baud 9600.

2001

Performance test at baud 19,200.

2002

Performance test at baud 38,400.

2003

Performance test at baud 57,600.

Remarks

Stress tests perform round trip transfers of a fixed data block, verifying the integrity at various bauds for 100 iterations. Performance tests measure the time taken to transfer data blocks of various sizes; the measured baud is compared with the theoretical limit, giving the performance for that configuration. Command-line options -e and -t are required to run performance and stress tests. Specifying test case number by using the –x option without including –e and –t skips these tests.

See Also

Other Resources

Serial Communications Test