際際滷

際際滷Share a Scribd company logo
How many
test cases ?
1

Khi plan s畛 l動畛ng test cases,
ch炭ng ta th動畛ng d畛a tr棚n c叩i g狸?
2
KINH NGHI畛M T畛 NH畛NG BI
TON G畉N GI畛NG
1
3
1
p d畛ng cho bi to叩n:
Ph畉i c坦 KN t畛 bi to叩n s畉n c坦 t畛ng lm
Spec kh叩 clear => c坦 th畛 ph叩n o叩n n坦 gi畛ng
hay kh担ng
4
働U I畛M
 Estimate kh叩 s叩t th畛c t畉 v狸 達 動畛c o 動畛ng
tr動畛c 坦 r畛i
NH働畛C I畛M
 R畉t 鱈t bi to叩n c坦 th畛 叩p d畛ng 動畛c
 B畛 ph畛 thu畛c vo c叩ch lm tr動畛c 坦
1
5
BASE T畛 PLAN C畛A DEV TEAM
2
6
2
CNG TH畛C:
S畛 KLOC* density ( 60~80)
ho畉c
Effort MD/PD c畛a dev *density ( , ..)
7
2
P D畛NG CHO BI TON:
M担 h狸nh waterfall
Commit r畉t cao, ch畉t ch畉 t畛 ph鱈a Dev v畛
plan v ch畉t l動畛ng
8
働U I畛M
 D畛 estimate
NH働畛C I畛M
 Ch畛 叩p d畛ng cho 1 s畛 鱈t d畛 叩n 畉c th湛
 畛 v棚nh effort kh叩 l畛n gi畛a Dev vs test team v鱈 d畛
 Dev th動畛ng d湛ng open source v ch畛nh s畛a l畉i theo bi to叩n th畛c t畉
 Test team cover all case c坦 th畛 x畉y ra
 Ch畛nh s畛a common source 動畛c d湛ng chung  test team check all
mn h狸nh 動畛c call 畉n n坦
2
9
T畛 PRODUCTIVITY/QUANTITY
C畛A KHC HNG
3
10
3
P D畛NG CHO BI TON:
Test device
Convert ng担n ng畛 m ko thay 畛i v畛 logic
…動畛c ch畛 畛nh t畛 kh叩ch v畛i nh畛ng thay
畛i so v畛i version c滴
11
働U I畛M
 T鱈nh to叩n 動畛c ngay v狸 c坦 base t畛 kh叩ch hng
NH働畛C I畛M
 B畛 辿p v畛 con s畛 ti畉n 畛
 Risk v畛 s畛 kh叩c bi畛t v畛 skill code, s畛 kh叩c bi畛t v畛
c担ng ngh畛 sau khi convert
3
12
BLACK BOX TESTING
TECHNIQUES
4
13
4
EQUIVALENCE PARTITIONING &
BOUNDARY VALUE ANALYSIS
S畛 test case = Tr畛ng s畛 xN (N= s畛 item tr棚n mn h狸nh)
 5xN
Invalid Valid
(1) (2) (3) (4) (5)
(1): gi叩 tr畛 invalid
(2): gi叩 tr畛 c畉n bi棚n
(3): gi叩 tr畛 bi棚n
(4): gi叩 tr畛 c畉n bi棚n
(5): gi叩 tr畛 valid
14
4
DECISION TABLE
S畛 test case (Rule) = 2 m滴 N (N= s畛 i畛u ki畛n/ s畛 item)
Rule 1 Rule 2 Rule 3 Rule 4
Condition 1 T T F F
Condition 2 T F T F
Action 1 X X
Action 2 X X
15
V D畛 1
Login page
5
16
5
Username v Password 炭ng
 login thnh c担ng
Username ho畉c Password sai
 login kh担ng thnh c担ng
Ph但n t鱈ch:
 Kh担ng c坦 keyword 畛 ph但n t鱈ch theo
EP v BAV
 Logic ch畛 c坦 炭ng/sai  normal flow
DECISION: S畛 test case (Rule) = 2 m滴 N = 2 m滴 2 = 4 case
Nh但n tr畛ng s畛: S畛 test case = 2 x2= 4 case
17
5
Decision table:
Rule 1 Rule 2 Rule 3 Rule 4
Username T T F F
Password T F T F
Action OK NOK NOK NOK
18
V D畛 2
Login page
6
19
6
Username v Password 炭ng
 login thnh c担ng
Username ho畉c Password sai
 login kh担ng thnh c担ng
User name: 1~10 character
Password: 8~32 character
Ph但n t鱈ch:
 C坦 keyword 畛 ph但n t鱈ch theo EP v
BAV
=> Ch畛n ph動董ng ph叩p EP v BAV
20
6
EQUIVALENCE PARTITIONING &
BOUNDARY VALUE ANALYSIS
S畛 TestCase: 7x2 = 14 case
21
1 2 5 1090 11
Username
6ID1 Username: kh担ng nh畉p
ID2 Username l畛n 10 Character
ID3 Password <8 Character
ID4 Password: kh担ng nh畉p
ID5 Password >32 Character
ID6 Username = 1 Character; Password= 8 Character & t畛n t畉i trong DB
ID7 Username = 2 Character; Password= 9 Character & t畛n t畉i trong DB
ID8 Username = 5 Character; Password= 18 Character & t畛n t畉i trong DB
ID9 Username = 9 Character; Password= 31 Character & t畛n t畉i trong DB
ID10 Username = 10 Character; Password= 32 Character & t畛n t畉i trong DB
ID11 Username = 5 Character; Password= 18 Character & kh担ng t畛n t畉i trong DB
22
V D畛 3
Login page
7
23
7Username v Password 炭ng
 login thnh c担ng
Username ho畉c Password sai
 login kh担ng thnh c担ng
User name: 1~10 character; kh担ng bao g畛m k鱈
t畛 B
Password: 8~32 character; bao g畛m 2 trong 3
lo畉i s畛, ch畛, k鱈 t畛 B
Ph但n t鱈ch: C担ng th畛c 5xN kh担ng c嘆n ch鱈nh x叩c
=> Kinh nghi畛m c畛a ng動畛i planing: 7xN or 8xN
24
7
User name
 Bi To叩n ny s畉 c坦 c叩c case= 8x2= 16 cases
25
1 2 5 1090 11
Maxlength (1~10)
T鱈nh ch畉t kh担ng bao g畛m k鱈 t畛 畉c bi畛t:
Kh担ng c坦 k鱈 t畛 畉c bi畛t C坦 k鱈 t畛 畉c bi畛t
7
26
ID1 User: kh担ng nh畉p
ID2 User l畛n 10 Character
ID3 User 1~10 Character bao g畛m c畉 k箪 t畛 c bi畛t
ID4 Password kh担ng nh畉p
ID5 Password <8 Character
ID6 Password >32 Character
ID7 Password 8~32 character bao g畛m S畛 only
ID8 Password 8~32 character bao g畛m ch畛 only
27
ID9 Password 8~32 character bao g畛m k箪 t畛 B only
ID10 User: 1 Character Password= 8 Character ( ch畛 +s畛) & t畛n t畉i trong DB
ID11 User: 2 Character Password= 9 Character (ch畛+k箪 t畛)& t畛n t畉i trong DB
ID12 User: 5 Character Password= 18 Character(k箪 t畛+s畛) & t畛n t畉i trong DB
ID13 User: 9 Character Password= 31 Character (s畛 ch畛 k箪 t畛)& t畛n t畉i trong
DB
ID14 User: 10 Character Password= 32 Character (s畛 ch畛 k箪 t畛)& t畛n t畉i
trong DB
ID15 User: 5 Character Password= 18 Character (s畛 ch畛 k箪 t畛)& kh担ng t畛n
t畉i trong DB
7
働U I畛M
Bi to叩n no c滴ng c坦 th畛 叩p d畛ng 動畛c b畉ng c叩ch l畉y s畛
l動畛ng item tr棚n mn h狸nh nh但n v畛i tr畛ng s畛 N
NH働畛C I畛M
Trong tr動畛ng h畛p spec kh担ng clear th狸 n坦 s畉 ph畛 thu畛c r畉t l畛n
畉n kinh nghi畛m c畉m quan c畛a ng動畛i th畛c hi畛n estimate 畛
bi畉t tr畛ng s畛 N=?
28
NH畛NG SAI L畉M KHI TH畛C HI畛N PLANING
1. Kh担ng x叩c 畛nh 動畛c ph畉m vi (scope)
2. p 畉t nh畛ng productivity c畛a d畛 叩n tr動畛c 坦 cho d畛 叩n m畛i
m ch動a hi畛u b畉n ch畉t
3. Mong mu畛n c叩i ch鱈nh x叩c n棚n nh畛 Plan ch畛 l 動畛c l動畛ng
4. Kh担ng th畛c hi畛n monitoring v re-plan
5. Base tr棚n resource hi畛n t畉i 畛 estimate
29
NH畛NG 畉NH H働畛NG KHI PLANING SAI
1. S畛 tin t動畛ng c畛a kh叩ch hng
2. Kh担ng qu畉n l箪 動畛c ch畉t l動畛ng, ti畉n 畛 c畛a d畛 叩n
30
THANKS!
Any questions?

You can find me at:
D動董ng Th畛 V但n
duongvank48@gmail.com
31

More Related Content

Test plan updated

  • 2. Khi plan s畛 l動畛ng test cases, ch炭ng ta th動畛ng d畛a tr棚n c叩i g狸? 2
  • 3. KINH NGHI畛M T畛 NH畛NG BI TON G畉N GI畛NG 1 3
  • 4. 1 p d畛ng cho bi to叩n: Ph畉i c坦 KN t畛 bi to叩n s畉n c坦 t畛ng lm Spec kh叩 clear => c坦 th畛 ph叩n o叩n n坦 gi畛ng hay kh担ng 4
  • 5. 働U I畛M Estimate kh叩 s叩t th畛c t畉 v狸 達 動畛c o 動畛ng tr動畛c 坦 r畛i NH働畛C I畛M R畉t 鱈t bi to叩n c坦 th畛 叩p d畛ng 動畛c B畛 ph畛 thu畛c vo c叩ch lm tr動畛c 坦 1 5
  • 6. BASE T畛 PLAN C畛A DEV TEAM 2 6
  • 7. 2 CNG TH畛C: S畛 KLOC* density ( 60~80) ho畉c Effort MD/PD c畛a dev *density ( , ..) 7
  • 8. 2 P D畛NG CHO BI TON: M担 h狸nh waterfall Commit r畉t cao, ch畉t ch畉 t畛 ph鱈a Dev v畛 plan v ch畉t l動畛ng 8
  • 9. 働U I畛M D畛 estimate NH働畛C I畛M Ch畛 叩p d畛ng cho 1 s畛 鱈t d畛 叩n 畉c th湛 畛 v棚nh effort kh叩 l畛n gi畛a Dev vs test team v鱈 d畛 Dev th動畛ng d湛ng open source v ch畛nh s畛a l畉i theo bi to叩n th畛c t畉 Test team cover all case c坦 th畛 x畉y ra Ch畛nh s畛a common source 動畛c d湛ng chung test team check all mn h狸nh 動畛c call 畉n n坦 2 9
  • 11. 3 P D畛NG CHO BI TON: Test device Convert ng担n ng畛 m ko thay 畛i v畛 logic …動畛c ch畛 畛nh t畛 kh叩ch v畛i nh畛ng thay 畛i so v畛i version c滴 11
  • 12. 働U I畛M T鱈nh to叩n 動畛c ngay v狸 c坦 base t畛 kh叩ch hng NH働畛C I畛M B畛 辿p v畛 con s畛 ti畉n 畛 Risk v畛 s畛 kh叩c bi畛t v畛 skill code, s畛 kh叩c bi畛t v畛 c担ng ngh畛 sau khi convert 3 12
  • 14. 4 EQUIVALENCE PARTITIONING & BOUNDARY VALUE ANALYSIS S畛 test case = Tr畛ng s畛 xN (N= s畛 item tr棚n mn h狸nh) 5xN Invalid Valid (1) (2) (3) (4) (5) (1): gi叩 tr畛 invalid (2): gi叩 tr畛 c畉n bi棚n (3): gi叩 tr畛 bi棚n (4): gi叩 tr畛 c畉n bi棚n (5): gi叩 tr畛 valid 14
  • 15. 4 DECISION TABLE S畛 test case (Rule) = 2 m滴 N (N= s畛 i畛u ki畛n/ s畛 item) Rule 1 Rule 2 Rule 3 Rule 4 Condition 1 T T F F Condition 2 T F T F Action 1 X X Action 2 X X 15
  • 16. V D畛 1 Login page 5 16
  • 17. 5 Username v Password 炭ng login thnh c担ng Username ho畉c Password sai login kh担ng thnh c担ng Ph但n t鱈ch: Kh担ng c坦 keyword 畛 ph但n t鱈ch theo EP v BAV Logic ch畛 c坦 炭ng/sai normal flow DECISION: S畛 test case (Rule) = 2 m滴 N = 2 m滴 2 = 4 case Nh但n tr畛ng s畛: S畛 test case = 2 x2= 4 case 17
  • 18. 5 Decision table: Rule 1 Rule 2 Rule 3 Rule 4 Username T T F F Password T F T F Action OK NOK NOK NOK 18
  • 19. V D畛 2 Login page 6 19
  • 20. 6 Username v Password 炭ng login thnh c担ng Username ho畉c Password sai login kh担ng thnh c担ng User name: 1~10 character Password: 8~32 character Ph但n t鱈ch: C坦 keyword 畛 ph但n t鱈ch theo EP v BAV => Ch畛n ph動董ng ph叩p EP v BAV 20
  • 21. 6 EQUIVALENCE PARTITIONING & BOUNDARY VALUE ANALYSIS S畛 TestCase: 7x2 = 14 case 21 1 2 5 1090 11 Username
  • 22. 6ID1 Username: kh担ng nh畉p ID2 Username l畛n 10 Character ID3 Password <8 Character ID4 Password: kh担ng nh畉p ID5 Password >32 Character ID6 Username = 1 Character; Password= 8 Character & t畛n t畉i trong DB ID7 Username = 2 Character; Password= 9 Character & t畛n t畉i trong DB ID8 Username = 5 Character; Password= 18 Character & t畛n t畉i trong DB ID9 Username = 9 Character; Password= 31 Character & t畛n t畉i trong DB ID10 Username = 10 Character; Password= 32 Character & t畛n t畉i trong DB ID11 Username = 5 Character; Password= 18 Character & kh担ng t畛n t畉i trong DB 22
  • 23. V D畛 3 Login page 7 23
  • 24. 7Username v Password 炭ng login thnh c担ng Username ho畉c Password sai login kh担ng thnh c担ng User name: 1~10 character; kh担ng bao g畛m k鱈 t畛 B Password: 8~32 character; bao g畛m 2 trong 3 lo畉i s畛, ch畛, k鱈 t畛 B Ph但n t鱈ch: C担ng th畛c 5xN kh担ng c嘆n ch鱈nh x叩c => Kinh nghi畛m c畛a ng動畛i planing: 7xN or 8xN 24
  • 25. 7 User name Bi To叩n ny s畉 c坦 c叩c case= 8x2= 16 cases 25 1 2 5 1090 11 Maxlength (1~10) T鱈nh ch畉t kh担ng bao g畛m k鱈 t畛 畉c bi畛t: Kh担ng c坦 k鱈 t畛 畉c bi畛t C坦 k鱈 t畛 畉c bi畛t
  • 26. 7 26 ID1 User: kh担ng nh畉p ID2 User l畛n 10 Character ID3 User 1~10 Character bao g畛m c畉 k箪 t畛 c bi畛t ID4 Password kh担ng nh畉p ID5 Password <8 Character ID6 Password >32 Character ID7 Password 8~32 character bao g畛m S畛 only ID8 Password 8~32 character bao g畛m ch畛 only
  • 27. 27 ID9 Password 8~32 character bao g畛m k箪 t畛 B only ID10 User: 1 Character Password= 8 Character ( ch畛 +s畛) & t畛n t畉i trong DB ID11 User: 2 Character Password= 9 Character (ch畛+k箪 t畛)& t畛n t畉i trong DB ID12 User: 5 Character Password= 18 Character(k箪 t畛+s畛) & t畛n t畉i trong DB ID13 User: 9 Character Password= 31 Character (s畛 ch畛 k箪 t畛)& t畛n t畉i trong DB ID14 User: 10 Character Password= 32 Character (s畛 ch畛 k箪 t畛)& t畛n t畉i trong DB ID15 User: 5 Character Password= 18 Character (s畛 ch畛 k箪 t畛)& kh担ng t畛n t畉i trong DB 7
  • 28. 働U I畛M Bi to叩n no c滴ng c坦 th畛 叩p d畛ng 動畛c b畉ng c叩ch l畉y s畛 l動畛ng item tr棚n mn h狸nh nh但n v畛i tr畛ng s畛 N NH働畛C I畛M Trong tr動畛ng h畛p spec kh担ng clear th狸 n坦 s畉 ph畛 thu畛c r畉t l畛n 畉n kinh nghi畛m c畉m quan c畛a ng動畛i th畛c hi畛n estimate 畛 bi畉t tr畛ng s畛 N=? 28
  • 29. NH畛NG SAI L畉M KHI TH畛C HI畛N PLANING 1. Kh担ng x叩c 畛nh 動畛c ph畉m vi (scope) 2. p 畉t nh畛ng productivity c畛a d畛 叩n tr動畛c 坦 cho d畛 叩n m畛i m ch動a hi畛u b畉n ch畉t 3. Mong mu畛n c叩i ch鱈nh x叩c n棚n nh畛 Plan ch畛 l 動畛c l動畛ng 4. Kh担ng th畛c hi畛n monitoring v re-plan 5. Base tr棚n resource hi畛n t畉i 畛 estimate 29
  • 30. NH畛NG 畉NH H働畛NG KHI PLANING SAI 1. S畛 tin t動畛ng c畛a kh叩ch hng 2. Kh担ng qu畉n l箪 動畛c ch畉t l動畛ng, ti畉n 畛 c畛a d畛 叩n 30
  • 31. THANKS! Any questions? You can find me at: D動董ng Th畛 V但n duongvank48@gmail.com 31