View
8
Download
0
Category
Preview:
Citation preview
Team Presentation #5 - Reflecting Testing #2
Team 7 [T7] Yeongsik Kim Yeonghun Kim Jeongil Won
‘Mihael’ Myungjae Lee Yonggyeom Jeong
2012-11-15 T7 Presentation #5
☆ Introduction (DWS Ver.6.2.0)
- Development Environment
OS
IDE
Compiler
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
2 / 30
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
☆ Introduction (DWS Ver.6.2.0)
- Reference
2012-11-15 T7 Presentation #5
SRS Ver.DS
-2012.DWS.SRS-2.3
SRA Ver.T7
-2012.DWS.SRA-6.5
SDS Ver.T7
-2012.DWS.SDS-2.5
3 / 30
☆ Document - SRA
2012-11-15 T7 Presentation #5
A Button Signal
B Button Signal
C Button Signal
D Button Signal
1.5
1.1
1.2
1.3
1.4
A Button Input
B Button Input
C Button Input
D Button Input
2.3
2.4
Display
Light
Time & Button & State Data
Button2.1.2
2.1.4
2.1.9
2.1.6
2.1.8
2.1.7
2.1.5
Disable
Tick
Tick
Tick
Enable
Disable
Trigger
Tick
Trigger
Trigger
Trigger
Enable
PM Command
Back Light Command
LED Monitor Command
LED Monitor Command
LED Monitor Command
LED Monitor Command
2.1.3Tick
2.1.1
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Tick
Tick
Time & Button & State Data
2.2
Tick
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Tick
Tick
Tick
Tick
Tick
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
※ 수정 이전 DFD (Ver.T7-2012.DWS.SRA-6.5)
4 / 30
☆ Document - SDS
2012-11-15 T7 Presentation #5
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
※ 수정 이전 SC (Ver.T7-2012.DWS.SDS-2.5)
5 / 30
Test Case # User Actions Result Expected Output Pass / Fail
1.0 #1 Open the "DWS" program su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
1.1 #1 시 * 11 su 2012 01 01 11 00 00 su 2012 01 01 11 00 00 Pass
1.1 #2 시 * 12 su 2012 01 01 PM 12 00 00 su 2012 01 01 PM 12 00 00 Pass
1.1 #3 시 * 13 su 2012 01 01 PM 13 00 00 su 2012 01 01 PM 13 00 00 Pass
3.0 #1 Open the "DWS" program su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
4.0 #1 Open the "DWS" program su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
4.1 #1 Open the "DWS" program 2012 2012 Pass
4.2 #1 연도 * 89 2012 2012 Pass
5.1 #1 A A A Pass
5.1 #2 B B B Pass
5.1 #3 C C C Pass
5.1 #4 D D D Pass
5.1 #5 E 반응 없음 반응 없음 Pass
5.1 #6 마우스 입력 반응 없음 반응 없음 Pass
5.2 #1 D and C D D Pass
5.2 #2 C and B C C Pass
☆ Testing Results - System Test
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
6 / 30
Test Case # User Actions Result Expected Output Pass / Fail
5.2 #3 B and A B B Pass
5.2 #4 A and C C C Pass
5.3 #1 C su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
5.4 #1 Open the "DWS" program 2012 2012 Pass
6.0 #1 C su 2012 00 00 00 00 00 su 2012 00 00 00 00 00 Pass
6.0 #2 C * 2 su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
7.0 #1 A su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
7.1 #1 C * 2 su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
7.2 #1 분 * 59 su 2012 01 01 00 59 00 su 2012 01 01 00 59 00 Pass
7.2 #2 분 * 60 su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
7.2 #3 분 * 61 su 2012 01 01 00 01 00 su 2012 01 01 00 01 00 Pass
7.2 #4 월 * 31 tu 2012 01 31 00 00 00 tu 2012 01 31 00 00 00 Pass
7.2 #5 월 * 32 su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
7.3 #1 월 * 3 we 2012 01 04 00 00 00 we 2012 01 04 00 00 00 Pass
8.0 #1 C, B su 2012 00 00 00 00 00 su 2012 00 00 00 00 00 Pass
8.1 #1 B, B su 2012 00 00 00 15 20 su 2012 00 00 00 15 20 Pass
☆ Testing Results - System Test
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
7 / 30
Test Case # User Actions Result Expected Output Pass / Fail
8.2 #1 B, A su 2012 00 00 01 12 10 su 2012 00 00 01 12 10 Pass
8.3 #1 B su 2012 00 00 02 10 10 su 2012 00 00 02 10 10 Pass
8.4 #1 A su 2012 00 00 00 00 00 su 2012 00 00 00 00 00 Pass
9.0 #1 D su 2012 01 01 00 00 00 su 2012 01 01 00 00 00 Pass
☆ Testing Results - System Test
2012-11-15 T7 Presentation #5
• 총 37개의 테스트 케이스 결과 » Pass : 37 » Fail : 0
• 문제점을 발견하지 못하였음.
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
8 / 30
Test Case #
Function Name Return Value input Expected Output
1.1 #1 a_button_interface(char) BOOLEAN A TRUE
1.1 #2 a_button_interface(char) BOOLEAN a TRUE
1.2 #1 b_button_interface(char) BOOLEAN B TRUE
1.2 #2 b_button_interface(char) BOOLEAN b TRUE
1.3 #1 c_button_interface(char) BOOLEAN C TRUE
1.3 #2 c_button_interface(char) BOOLEAN c TRUE
1.4 #1 d_button_interface(char) BOOLEAN D TRUE
1.4 #2 d_button_interface(char) BOOLEAN d TRUE
1.5 #1 determine_button() Button A, B, C, D D>C>B>A
2.3 #1 led_monitor_interface (PM_COMMAND, LED_MONITOR_COMMAND,)
void PM Command, LED Monitor Command
Display
2.4 #1 back_light_interface(BACK_LIGHT_COMMAND) void Back Light Command Light
2.1.1 #1 pm_controller(*TIME_BUTTON_STATE) PM_COMMA ND
hour=11 TURN_ON= FALSE
2.1.1 #2 pm_controller(*TIME_BUTTON_STATE) PM_COMMAND hour=12 TURN_ON=TRUE
2.1.2 #1 led_controller(*TIME_BUTTON_STATE) LED_MONITOR_COMMAND button=A_BUTTON, tk=TRUE
Tc=TRUE
☆ Testing Results - Unit Test
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
9 / 30
Test Case #
Function Name Return Value input Expected Output
2.1.2 #2 led_controller(*TIME_BUTTON_STATE) LED_MONITOR_COMMAND button=B_BUTTON, lt=TRUE
stw=TRUE
2.1.2 #3 led_controller(*TIME_BUTTON_STATE) LED_MONITOR_COMMAND button=C_BUTTON, tk=TRUE, SW_ON=TRUE
tk=FALSE
2.1.3 #1 light_controller(*TIME_BUTTON_STATE) BACK_LIGHT_COMMAND Time&Button&StateData BACK_LIGHT_COM MAND
2.1.3 #2 light_controller(*TIM E_BUTTON_STATE)
BACK_LIGHT_COMMAND button=D_BUTTON TURN_ON=TRUE
2.1.4 #1 pm_indicator(TIME_BUTTON_STATE) TIME_BUTTON_STATE Time&Button&StateData TIME_BUTTON_STATE
2.1.5 #1 lap_time(TIME_BUTT ON_STATE)
TIME_BUTTON _STATE
Time&Button&StateData, T rigger, Tick
TIME_BUTTON_ST ATE
2.1.6 #1 time_keeping(TIME_B UTTON_STATE)
TIME_BUTTON _STATE
Time&Button&StateData, T rigger, Tick
TIME_BUTTON_ST ATE
2.1.7 #1 time_changing(TIME_BUTTON_STATE) TIME_BUTTON_STATE button=B_BUTTON SETTING_TIME, FALSE
2.1.7 #2 time_changing(TIME_ BUTTON_STATE)
TIME_BUTTON _STATE
tc=TRUE, SELECTING_SECTION=TRUE
SELECTING_SECTION=FALSE
2.1.8 #1 stop_watch(TIME_BUTTON_STATE) TIME_BUTTON_STATE stw=TRUE, SW_OFF=TRUE, STOP_WATCH_RESET=TRUE
STOP_WATCH_RESET=FALSE
☆ Testing Results - Unit Test
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
10 / 30
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
Test Case #
Function Name Return Value input Expected Output
2.1.8 #2 stop_watch(TIME_BUTTON_STATE) TIME_BUTTON_STATE button=B_BUTTON, stw=TRUE, SW_OFF=TRUE, STOP_WATCH_RESET=TRUE
SW_OFF=FALSE
2.1.9 #1 back_light(TIME_BUTTON_STATE) TIME_BUTTON_STATE TURN_ON=TRUE, RESET=TRUE
TIME_EXIST=TRUE
2.1.9 #2 back_light(TIME_BUTTON_STATE) TIME_BUTTON_STATE TURN_ON=TRUE, NEW_SET=TRUE
TIME_EXIST=TRUE
2.2.1 #1 time_controller(*TIME_BUTTON_STATE) Void Tick Trigger
2.2.2 #1 time_flowing(*TIME_BUTTON_STATE) Void milisecond=1001 second=1
2.2.2 #2 time_flowing(*TIME_BUTTON_STATE) Void second=61 minute=1
2.2.2 #3 time_flowing(*TIME_BUTTON_STATE) Void minute=61 hour=1
2.2.2 #4 time_flowing(*TIME_BUTTON_STATE) Void hour=25 day=2
2.2.2 #5 time_flowing(*TIME_BUTTON_STATE) Void month=13 year, 2013
☆ Testing Results - Unit Test
2012-11-15 T7 Presentation #5
• 총 37개의 테스트 케이스 결과 » Pass : 34 » Fail : 0
• 문제점을 발견하지 못하였음.
11 / 30
☆ Problem
• ‘State transition diagram의 내용을 코드상에 적절히 반영하지 않았습니다.’
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
12 / 30
☆ Problem 1
2012-11-15 T7 Presentation #5
상태 버튼
Sta
te T
ransition D
iagra
m
led_co
ntro
ller C
ode
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
13 / 30
☆ Modification
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
14 / 30
☆ Problem 2
2012-11-15 T7 Presentation #5
Time Flow
Tick/Trigger “Time Flowing”
Time Flow Interval
Tick/Return
Tick/Trigger “Time Flowing”
• Time Flow • Time Flow Interval • ???
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
15 / 30
☆ Modification
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
16 / 30
☆ Problem 3
2012-11-15 T7 Presentation #5
Back Light Off
Back Light On
[D]/Enable “Back Light”
[TIME_END]/Disable “Back Light”
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
17 / 30
☆ Modification
2012-11-15 T7 Presentation #5
Back Light Off
Back Light On
[D]/Enable “Back Light”
[TIME_END]/Disable “Back Light”
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
18 / 30
☆ Problem 4
2012-11-15 T7 Presentation #5
PM Indicator Off
PM Indicator On
[PM_STATE && TK]/Enable “PM Indicator”
[!PM_STATE || !TK]/Disable “PM Indicator”
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
19 / 30
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
☆ Modification
2012-11-15 T7 Presentation #5 20 / 30
☆ Problem 5
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
Backlight lasts for
→∞
21 / 30
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
☆ Modification
2012-11-15 T7 Presentation #5 22 / 30
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
☆ Modification Reference No. 2.1.4
Name PM Indicator
Input Enable, Disable, Time & Button & State Data
Output PM Command, Time & Button & State Data
Process Description After receiving Enable/Disable value from PM Controller , it sends PM Command to LED
Monitor Interface in order to show or hide ‘PM’ character.
if a boolean data 'pm state' which indicates whether current hour is in 12~23h or not has
true value, it means that current time is in PM, the pm indicator process set another value
whose name is 'pm visible' to true.
As a result, the led monitor interface whose role is display current information by using
saved data in data repository uses 'pm visible' data in order to indicate that current time is
in PM on the monitor. if 'pm visible' has true value, it show 'PM' string on the monitor. if
not, it will don't show that.
23 / 30
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
☆ Modification Reference No. 2.1.9
Name Back Light
Input Enable, Disable, Time & Button & State Data
Output Back Light Command, Time & Button & State Data
Process Description After receiving Enable/Disable value from Light Controller, It sends Back Light Command to Back Light Interface in order to turning on/off Back Light. when light controller's state is BACK LIGHT ON, if a boolean data 'RESET' has true value and 'NEW SET' has false value, the back light process reset new record in order to restart the back light function. And 'TIME EXIST' data is set to TRUE, which means that there is recorded data of back-light's start time. On the other hand, if a boolean data 'NEW SET' has true value and 'RESET' has false value, the back light process saves the record to turn back light on for 2 seconds. thus for, it operates back light function according to saved record of start time for 2 seconds
24 / 30
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
☆ Modification DWS
CONTROL
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time & Button & State Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time & Button & State Data
Time & Button & State Data
Time & Button& State
Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data Time & Button
& State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
25 / 30
☆ DWS (Ver.6.3.0)
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
SRS SRS-2.3
SRA SRA-6.6
SDS SDS-2.6
26 / 30
☆ DWS (Ver.6.3.0)
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
Time Keeping Stop Watch
Back Light Time Change
27 / 30
☆ Summary & Assessment
• System Test와 Unit Test 모두에서 이상이 없었음.
» 그러나 DWS 코드에서 STD와 일치하지 않는 부분 발생.
Controller의 Code를 STD와 일치하도록 변경.
» Test Case에 존재하지 않는 문제점 발생
Code를 적절히 변경
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
28 / 30
☆ Q / A
2012-11-15 T7 Presentation #5
Introduction Document Testing
Results
Problem &
Modification DWS
Summary &
Assessment Q/A
29 / 30
끝
2012-11-15 T7 Presentation #5 30 / 30
Recommended