Beruflich Dokumente
Kultur Dokumente
Record of change
Effective Date Version Change Item *A,D,M Change description Reference
<Date when these <List of documents which are refered
changes are effective> in this version.>
Module
Code
Test Step Motor Control
requiremen
t Test all function for control step motor. Get input data, process and make pulse for step motor.
Tester
Pass Fail N/A Number of Test cases
Result
21 0 0 21
Test Case
ID Test Case Procedure Expected Output Result
Description
Function void delay(double time)
1 Test case: long time 1. input delay time is 5000. Delay 5s of step motor Pass
is 5000 with unit is 2. run delay function.
minisecond
Function int hexbase(char ch)
2 Test case: input char 1. enter ch = '1'. Return 1 Pass
ch is characters from 0 2. run hexbase function.
to 9. input ch = '1'.
Test case: input 1. enter degree 125. Return step = 17. Pass
degree is a number 2. run degreeToStep funtion.
which is not multiple
of 7.5 step.
Test case: 1. input step = 9 (degree = step = 9 and motor move Pass
Test with case in put 70). backward.
is a random degree 2. pulse = array_backward.
>0 and <=180 3. index = 0.
degrees.
Test case: 1. input step = 30 (degree = step = 30 and motor move Pass
Test with case input is 225). forward.
a degree > 180. 2. pulse = array_forward.
3. index = 0.
Test case: 1. input step = 9 (degree = step = 9 and motor move Pass
Test with case in put 70). backward.
is a random degree 2. pulse = array_backward.
>0 and <=180 3. index = 0.
degrees.
Test case: 1. input step = 30 (degree = step = 30 and motor move Pass
Test with case input is 225). forward.
a degree > 180. 2. pulse = array_forward.
3. index = 0.
Module
Code
Test ImageProcessingPC
Test all function for
requiremen part image processing
t in PC
Tester
Pass Fail N/A Number of Test cases
22 0 6 28
Test Case
ID Test Case Procedure Expected Output Result
Description
Function On_Stop
Test case: Click Stop Click stop button on main 1. Enable start button. Pass
button screen 2. Disable buttons: stop, redball,
mode
Test case: Click Stop Click stop button 2 times on 1. Enable start button. Pass
button 2 times main screen 2. Disable buttons: stop, redball,
mode
Test case: Click Stop Click stop button 15 times on 1. Enable start button. Pass
button many times main screen 2. Disable buttons: stop, redball,
mode
Functon On_Redball
Test case: Click Click Redball button in screen 1. Redball mode = 1. Pass
Redball button in case 2. track_object = 0.
have red object in 3. Follow red object.
camera area.
Test case: Click Click Redball button in screen 1. Redball mode = 1. Pass
Redball button when 2. track_object = 0.
do not have object red 3. Do not follow any object without
ball. red color in camera area.
Function On_Mode
Test case: Click Mode Click Mode button in screen Change mode view to HSV color in Pass
button when have hsv screen.
chosen object.
Test case: Click Mode Click Mode button in screen Change mode view to HSV color in Pass
button when do not hsv screen.
have chosen object or
redball status.
Function calcDegreeVerti
Test case: Click Click on Button Start and then The result will be display on main Pass
Mouse to select object mouse click to select object Log
Test case: Click on Click on button Red ball The result will be display on main Pass
button Red ball Log
Function On_Start
Test case: Click on Click on button Start in Screen Display capture Image, HSV image Pass
button Start and Laplace Image
Test case: Click on Click on button Start in Screen - Draw eclipse surround object Pass
button Start and and then mouse click on - Draw rectangle surround eclipse
mouse click to choose image - Send command to main Log
Object - Display Histogram
Test case: Click on Click on button Start in Screen - Draw circle surround red ball
button Start choose and click button Red Ball - Send command to main Log
button Red Ball Pass
Function calDegreeHorti
Test case: Click Click on Button Start and then The result will be display on main Pass
Mouse to select object mouse click to select object Log
Test case: Click on Click on button Red ball The result will be display on main Pass
button Red ball Log
Function WindowProc
Test case: when Click on Button Start and then - sendActivate = true Pass
message = WM_APP mouse click to select object - out_xy[0] = lParam
Test case: when Click on Button Start and then - sendActivate = true Pass
message = WM_APP mouse click to select object - out_xy[1] = lParam
Test case: when Click on Button Start and then - sendActivate = true Pass
message = WM_APP mouse click to select object - out_xy[2] = lParam
Test case: when Click on Button Start and then - sendActivate = true Pass
message = WM_APP mouse click to select object - out_xy[3] = lParam
Test case: when Click on Button Start and click - sendActivate = true Pass
message = WM_APP on Button Red Ball - out_xy[0] = lParam
Test case: when Click on Button Start and click - sendActivate = true Pass
message = WM_APP on Button Red Ball - out_xy[1] = lParam
Test case: when Click on Button Start and click - sendActivate = true Pass
message = WM_APP on Button Red Ball - out_xy[2] = lParam
Test case: when Click on Button Start and click - sendActivate = true Pass
message = WM_APP on Button Red Ball - out_xy[3] = lParam
Test Case
ID Test Case Procedure Expected Output
Description
Cuircuit microprocessor
Circuit unl2803
Circuit RS232
Circuit ..
Circuit…
Result
TEST REPORT
Project Name <Project Name> Creator
Project Code <Project Code> Reviewer/Approver
Document Cod <Project Code>_Test Report_vx.x Issue Date <Date when this test report is created>
Notes <List modules included in this release> ex: Release 1 includes 2 modules: Module1 and Module2
dfsdfsdf
50% 50%
Step Motor
Control
0% 50% ImageProcessing
PC
Module3