Вы находитесь на странице: 1из 22

....................................................................................................................................

1
.........................................................................................................................................2
1. ...........................................................................3
1. -..................................................................................................3
2. .........................................................................4
3. ..........................................................................................................5
3.1. ...........................................5
3.2. ..........................................................................6
3.3. , , .......................................7
3.4. ...............................................................7
4. ...........................................................................................................8
2. (Black-Box)............................................10
1. .........................................................................................................................10
2. Black-box, white-box, grey-box ....................................................................10
3. Black-box .........................................................11
3.1. - - (use-cases).............................11
3.2. .....................................................................11
3.3. ................................................................................................12
4. Gray-Box ........................15
4.1. .........................................................................................15
4.2. ..................................................................16
4.3. ...................................................................................16
5. White-Box ........................................................16
3.
...................................................................17
1. .............................................................................18
2. ................................................................................18
3. ......................................................................................19
4. .................................................................................................................19
5. ..................................................................19
6. .....................................................................................20
7. ....................................................................................20
8. ( )..............................................20


, .
.
" dot com" -
"A Practitioner's Guide to Software Test Design" - Lee Copeland
"Introducing Software Testing" - Louise Tamres
1.
, -.
1. -
2.
3.
4.
2. (black-box testing)
?
1.
2. Black-box, white-box, grey-box
3. Black-Box
4. Grey-Box
3.

,
.
:
"Black-Box Testing", Boris Beizer
http://ru.wikipedia.org/wiki/___
http://en.wikipedia.org/wiki/Create,_read,_update_and_delete
http://download.microsoft.com/download/f/5/5/f55484df-8494-48fa-8dbd8c6f76cc014b/pict33.msi - PICT

1.
1. -
2.
3.
4.

1. -.
, - .
- ( ) .
? , ,
.
, :
1.
2.
3.
, . ,
. ,
, .
: , , .
, (
- ), , :
1.
2.
3.
4.
- - .
1. ( ).
(),
, .
(use-cases) ,
, " ".
, ,
.
.
, .
2. , ,
. , :
2.1. ( - ,
)
2.2. (, , RFC, -,
, , )
2.3.
2.4.
2.5.

- ( ):
3. , ,
.
4.
.
, .
1. , ? - .
2. ? , ,
.
3. ?
.
4. . -
, ?
. , :
) . - . ""?
? ,
.
, , .
) 99 . .
, , , .
- , ,
.
, (severity). ,
. , " "
, " ", -
, - . Bugzilla
severity 6 - blocker, critical, major, normal, minor enhancement.

.

2. .
, (
),
- .
- .
, -, ,
.
-
(, ).
,
- ,
. -,
, .
,
- .
:

1. , ,
2.
3. ,
.

3. .
,
- -.
:
.

3.1. .
, : ,
, ,
.
- (, ,
, ). , "
BMP".
.
, , . ,
, ,
, .
, , ,
.
- .
.
: " , BMP"
1. " "
2. BMP
3. ""
: ,
.
,
. :
: " ActiveDirectory"
1. " "
2. , .
3. OK
4. , .
5. ""
6. " "
7.
: ActiveDirectory.


: ActiveDirectory, .
. , 8,
:
8. AciveDirectory
9. dsa.msc
10.
11. Home phone
: "
"
, , .
.
- (Knowledge Base, KB),
.
, ,
, .
,
" ":
: ActiveDirectory ( )

3.2.
.
.
- , ,
.
"Setup", :
Setup:
.
1. .
2. , .
3. ""
4. " "
5.
: ActiveDirectory.
Setup, ,
. ,
,
- . ,

.
.

.
, BMP, JPG GIF,
,
.
- .
data-driven - .
,
!
,
, .
( )
, .
( , ),
.
,
( ). ,
, , -, ,
-,
, .

3.3. , ,
,
.
- . , ,
, - ..,
.
. .
(
) - .
. ,
10 , 30 ,
,
3 , .

3.4.
,
, , , .
, CVS
SVN, ,
.
,
, TestRail Testlink.
, :
1.

2. ( ,
)

4. .
, , .
, (bug tracking
system), Bugzilla,
1) ,
2) ,
3) ( - ).
, -, . ,
, , .
, , Bugzilla
, (,
).
, . ,
, .
.
, ()
, .
, .
( )
, :
NEW -
ASSIGNED -
RESOLVED - ( ),

FIXED -
DUPLICATE - ,
INVALID -
WORKSFORME -
WONTFIX - , . , ,
, ,

(/). , ,
.
, FIXED WONTFIX, ,
, . ,
, .
, ,
.
WORKSFORME, ,
, .. ,
. (, 3 )
-.

, , ,
( - - INVALID).
, , ,
, ,
() : , ,
.
,
. , ,
, ( -
). ,
, .
, , , , ,
( - ).

RESOLVED VERIFIED ( ,
) REOPENED ( ).
,
-: , . ,
, :
. ,
- , .

, , ,
( ),
( ).
" !" - , .
" !" - ...

( ).
:
- ,
.
, . ,
, , . ,
, ,
, ""
"" .

2. (BlackBox)
1.
2. Black-box, white-box, grey-box
3. Black-Box
4. Gray-Box

1.
-
, ,
( ), , ( ).
,
. ,
. .
, .
,
, .
, -
black-box ( ).

2. Black-box, white-box, grey-box .


: "
" (black box), - , "
" (white box), - .
" " ,
, .

.
, , (. 1).
" " ,
( ).
black-box , ,
" " (grey box).
, ,
black-box (
).
A Practitioner's guide to Sofware Test Design (Lee
Copeland).

3. Black-box
,
, .
,

. -
. ,
.

3.1. - - (use-cases)

,
( , ,
)
, ,
. Use-case -
. , Notepad - use-case,
" " Notepad - use-case, - "
".
.
, .
, - .

(.. )

3.2. .

,
. ( )
, , "
".
A Practitioner's guide to Sofware Test Design (Lee Copeland).
:
0-13 -
14-17 -
18-54 -
55-99 -
( !)
0 99. (
.) 0 99? ,
c , , , :
...
if (age == 13) hireStatus="NO";
if (age == 14) hireStatus="PART";
if (age == 15) hireStatus="PART";
if (age == 16) hireStatus="PART";

if (age == 17) hireStatus="PART";


if (age == 18) hireStatus="FULL";
...
, -:
if (age >= 0 && age <=13)
hireStatus="NO";
if (age >= 14 && age <=17)
hireStatus="PART";
if (age >= 18 && age <=54)
hireStatus="FULL";
if (age >= 55 && age <=99)
hireStatus="NO";
, .
: 5, 15, 20, 60. (
): 0, 13, 14, 17, 18, 54, 55, 99.
,
) (
),
) .
.
, ,
. ,
, .
12 ( 8
).
,
12 .
-
" 0 99", " ", " 99", " ",
" " ..
, :
1.
2.
3.
,
.

3.3. .

.
. ,
, . ,

, - (
).
,
, .. ,
- .
,
.
(pairwise testing).
. 3 (3 ).
- 2 3 = 8 , , 8 .
, .
:
1- 2-
0 0
0 1
1 0
1 1
, 4
. , (
):
1- 2- 3-
0 0 0
0 1 0
1 0 1
1 1 1
, ( )
: .
" ".
1 3 :
1-
0
0
1
1

3-
0
0
1
1

, . "01"
"10" , "00" "11" . ,
2 ( )
1- 3-
0
0

0
1
1
0
1

0
1
1
1
0

:
1- 2- 3-
0 0 0
0 1 0
1 0 1
1 1 1
0
1
1
0
,
. :
1- 2- 3-
0 0 0
0 1 0
1 0 1
1 1 1
0 0 1
1 0 0
6 8 .
? , .
1 :
1- 2-
0 0
0 1
1 0
1 1
, :
1- 2- 3-
0 0 1
0 1 0
1 0 0
1 1 1
1 2, 2 3 . .
1 3
1- 3-
0
1
0
0
1
0
1
1

! ? ,
: 2- 3-, 1- 3- .
4 , 4 , :
1- 2- 3-
0 0 1
0 1 0
1 0 0
1 1 1

. , ,
, -
. ,
, , PICT Microsoft.
http://www.pairwise.org/tools.asp -
http://download.microsoft.com/download/f/5/5/f55484df-8494-48fa-8dbd8c6f76cc014b/pict33.msi - PICT
:
OA(N,k,s,t) - N () k
() S (.. s ),
:
t (0<=t<=k) s
t ( .
, = 1, .. ).
t .
2 -
, 2
() , .

4. Gray-Box

Black-box , ,
. (
, ), .

.

4.1.
- ,
, .
, .
, ""
128 , :

1) , 128 -
, -
.
2) , ,
128 - (
)

4.2.
, ,
. ,
IMAP-, ,
( , 255 )

4.3.
,
) ,
,
) , - .

5. White-Box
White-box , -
. , , .
,
, - ,
, .
:
5.1. (control-flow testing)
5.2. (data-flow testing)
A Practitioner's guide to Sofware Test Design (Lee
Copeland). ,
.

3.

.
:
1.
2. .
3.
:
1. ()
2. ( )
3.

1. (, , ,
)
2.
3.
(
)
- , .
,
,
, .
,
.
( ' ),
(
),
. .
,
( , 2 ,
).
.
.
.
"
". ,

:
1.
2. .

3.
4.
5. (
)
6. (
)
7.
8.
, , .
,
.
, ,
.
, , .

1.
- .
, .
http://ru.wikipedia.org/wiki/___.
, QA
1.
2.
3. (testability)
4. (CRUD).
CRUD - 4 : create, read, update, delete.
, .
http://en.wikipedia.org/wiki/Create,_read,_update_and_delete

.
.
,
-, - .

,
, .

2. .
-
. . ,
- .
, , -
.
, :
2.1. (, )
2.2. ( , , )
2.3. ( ),

(, )
.
2.4. . , ,
:
GUI -
CLI -
API - API
, ,
, .
2.5. Ad-hoc . Ad hoc " ", .
-
, .

3.
, ,
.
, . . Boris Beizer,
Black-Box Testing.
, CRUD
( , ),
.

4.
.
.

.

, ,
(
, ),
(,
)

5.
5.1. ( )
5.2. , ,
.
5.3. ,
.
,
.
, - 5
. , .. 10
.
.

. ,
,
. ,
. , ,
.
,
.
.

6. .

.
,
.
( -
), .
,
(pairwise testing, . 2)
,
.

7. .
2
( - )
2 :
7.1.
7.2. ( )

8. ( )
8.1.
8.2. (., ,
)
8.3. (, )
8.4. ( ,
)
8.5. ( ,
)
. -
.
1. , .
2. ,
, : e-mail, ,
Submit.
3. ( CRUD)

Create. Read, Update and Delete


( , ).
.
, .
4. - , .
.
5.
5.1.
5.2. :
E-mail :
1. /
2. , /
4 . E-mail
, .. E-mail RFC.
.

1. - 2
(,
), -
/ , ..
:
1. /
2. /
4 .
( ),

10 .
6. .
Email: free, busy, our domain, external domain
Password: safe, not safe
Size: less than limit, more than limit, integer, fractional
4*2*4 = 32
PICT, 17 .
7.
Email: -
- 1 , - 64
()
: 0, 1, 64, 65
- 254 ( 254 255)
: .
:
: 0, 0.0000001 ( ), .
( 100), . + 0.000001
:
8.

Email - , RFC ( , ,
)
- , -
- , . , .

Вам также может понравиться