.
?
(Software Testing) - , , . [IEEE Guide to Software Engineering Body of Knowledge, SWEBOK, 2004]
, - , (Test Management), (Test Design), (Test Execution)
?
.
, , .
, .
, .
- , / .
?
(Test Plan)
(Test Case & Test suite)
/ (Bug Reports / Defects)
-?
, , , , , , , .
:
1. ( : , , )
2. ( )
3. ( )
4. ( : , , , )
5.
-?
, , -. - .
- -?
|
|
, .
-
- -:
- : !
- ,
- -,
, - , -:
: , , ( , )
- ,
,
-:
- - ,
, -
, : , , , , -. , - , !
-
:
1. ?
o : , ,
- ?
3. ?
- , :
4. ?
- : (Test Preparation), (Testing), (Test Result Analisys)
5. :
- ( )
- ...
- :
- :
Code Freeze (CF)
Zero Bug Bounce (ZBB)
- ...
:
1. (Master Plan or Master Test Plan)
2. (Test Plan), )
3. (Product Acceptance Plan) - , , (, , ..)
|
|
4. , , (High Level) , .
, , , , "" , , .
, .
-?
- . " ".
, , :
- ( )
, , , .
-?
(Test Case) - , , , .
:
> > Test
:
Test (passed/failed/blocked) | ||
"login" | Login | Passed |
?
:
- , .
- ( 1 ) ( ), , .
3 :
PreConditions | , . , , . |
Test Case Description | , , , , |
PostConditions | , ( - initial state) |
Test Case PostConditions
: Post Conditions . - : " - ". , .
:
do A1, verify B1
do A2, verify B2
do A3, verify B3
- 3. , . , A1 2 - . 1 2 - , . :
Action | Expected Result | Test Result (passed/failed/blocked) |
PreConditions | ||
do A1 | verify B1 | |
do A2 | verify B2 | |
Test Case Description | ||
do A3 | verify B3 | |
PostConditions |
PostConditions , , . (, , )
|
|
-?
. , (test failed) . 1 / 2, (test blocked), - , ( ), , .
Action | Expected Result | Test Result (passed/failed/blocked) |
PreConditions | ||
do A1 | verify B1 | passed |
do A2 | verify B2 | failed |
Test Case Description: | ||
do A3 | verify B3 | blocked |
PostConditions |
Test Case Specification
-. , . . , , . .. , .
1:
" " | - " " - - - - 2 - - - " " - | ... |
2:
:
: " "
: , ( " ")
1 2 , , , . , .
, ,
: | |||
: | - | ||
: | |||
: | |||
: http://www.protesting.ru | |||
" " | ", " | ||
: | |||
: " ": " ": "E-mail": [email protected] "": , ""! . -, - -. , ? . | |||
"" | " !" | ||
: | |||
" " | ", " | ||
, - , , .
|
|
?
. -- PreConditions, Test Case Description, PostConditions, - "".
. , .
, . , .
(, ) , , .
, . .
. , , . , , .
, , , , , .. , , .
, , . , , .
Traceability Matrix?
Traceability matrix ( Requirement Traceability Matrix - RTM) - -.
? , :
- , ;
- , - .
(, TestLink) , -, .
?
, ( ), .
: (, , ), , ..
(Test Design Specification)
(Test Cases)
- - " ?"
- - " ?"
(Equivalence Partitioning - EP). , 1 10, , , 5, - 0.
(Boundary Value Analysis - BVA). , (1 10), (0 11). , , , .
/ (Cause/Effect - CE). , , (), (). , , . , "", "", " " , "" - "". "", - "".
|
|
(Error Guessing - EG). , "" . , : " ". , : ", ?", ", ? ", . .
(Exhaustive Testing - ET) - . , , . , - .
?
, ( ).
, , .
100% .
?
, . 2 :
(Requirements Coverage) - (traceability matrix).
(Code Coverage) - , .
:
, - , ( ).
:
, , .
, .
?
(Requirements Coverage)
:
Tcov = (Lcov/Ltotal) * 100%
:
Tcov -
Lcov - ,
Ltotal -
, . , . - . , .
. , - " ", .. , .
(Code Coverage)
:
Tcov = (Ltc/Lcode) * 100%
:
Tcov -
Ltc - - ,
Lcode - - .
(: Clover), , , , .
(white-box testing), , .
(black-box testing) , , , , .
, .
:
- (Equivalence Partitioning), - EP
- (Boundary Value Analysis), - BVA
- (Error Guessing), - EG
- / (Cause/Effect), CE
1. .
- EP, BVA, EG.
- CE.
- , .
, :
combobox | :
| |
editbox | 1. 2. 25 3. | |
editbox |
| |
text area | 1. 2. 1024 | |
button | : 1. - (Disabled) 2. (Enabled) 1. - 2. - |
( ):
, :
- ?
- ()?
- ?