














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















Software Statistical Testing
Wei-Tek Tsai
Department of Computer Science and
Engineering
Arizona State University
Tempe, AZ 85287
Statistical Testing (Black Box)
been reahed
determine reliability, not to identify failures
Example (1/3)
( 0 1 : 0 ))
( 0 1 : ( )/ |
( 0 1 , : 5 , 0 )|
(( 0 1 , : 5 , / )|
= ∧ ≤ → =
= ∧ > → = −
≠ ∧ ≤ → =
≠ ∧ > → =
x z z
x z z z x x
x z y z
x z y z z x
Example (2/3)
four cases can be distinguished
T F 1
TF1,1 TF1,2 TF1,3 TF1,
P1=. P2=.10 P3=.^
P4=0.
Advantages of Statistical Testing
[Poore et al.] for example tools)
development of the unit requirements
without knowledge of the actual test (I.e.,
developers can’t use a knowledge of
specific tests)
Denifitions (1/4)
yield the correct result for a randomly select
usage
number of uses between two failures
ex Xi
Definitions (2/4)
(tie is defined as the number of usages or test)
− reliabilit y
⇒ = 1
1 MTTF
… …
100 99/
10 9/
0 1
MTTF Reliability
Definitions (3/4)
Where: r: desired reliability
c: significance (I.e., the probability
with which a certain reliability is
to be expected)
ln( )
ln( 1 )
r
− c ⇒ =
Software Reliability
a specified time, in a specified environment
(Musa).
[S/W reliability: freedom from failures]
Understanding Software reliability (1)
property of a static piece of code.
depends on the environment, that is, the
operational conditions under which the
program executes.
Understanding Software
reliability (2)
sense that neither the values not time
instants of input signals can be predicted
deterministically (they occur randomly).
Understanding Software
reliability (3)
reliability assessment is thus justified by the
stochastic nature of program’s execution
(Assuming probability distribution for
inputs).
( ) ( )^
( ) t
n e n
t P nt μ − μ = !
Software Failure Modeling (2)
have occurred depends on the cumulative
number of failures, , expected to
occur in t units of time
( ) n ( ) t e n
t P n μ
!
[]
μ ( t )
Software Failure Modeling (3)
t is software reliability (n = 0)
( )
( t ) R t e
Static Model Formulas
μ ( t ) = λ 0 ∗ t
λ ( t ) = λ 0
R ( t ) = e − λ^0 t
Basic Model Formulas
infinite amount of execution time
( ) (^)
t = − − t 0
0 0 1 exp ν
λ μ ν
( ) (^)
t (^) = − t 0
0 (^0) exp ν
λ λ λ
λ^0
ν^0
Logarithmic Poisson Model
Formulas
as faults are corrected
( ) ln( 1 )
μt = (^) θ λ 0 θt +
( ) 0 1
0
t
t λθ
λ λ
θ
Static Model
t
μ ( t )
t
λ ( t )
l 0
Characterization of basic Model
and Log-Poisson Model (1)
t
λ ( t )
Basic Model
λ ( t )
Log-Poisson Model
A λ 0
A B λ 0 (^) > λ 0
t
B λ 0
A λ 0
B λ 0
Characterization of basic Model
and Log-Poisson Model (2)
t
λ ( t )
Basic Model
λ ( t )
Log-Poisson Model
q (^) A > q B
t
λ 0
A B ν 0 (^) > ν 0
B ν 0
A ν 0
λ 0
θ B
θ A
Other Models (1)
μ ( ∞) <∞
Other Models (2)
λ ( t ) = αβtβ −^1
λ ( t ) = αβt exp( − βt )
2
( ) t
t β
αβ λ
= 21
( )
[ ( )]
t
in t t
=
−
1
1
β 1 αβ λ
Rayleigh Software Reliability
Model (2)
distribution (m=2)
( )
=− −
m
c
t μt 1 exp
( )
−
m m
c
t
c
t
t
m λt exp
Derivation of the Basic Model (1)
is proportional to the number of
remaining faults:
( ) ( ) c [ ( ) t ] t
t t t ν μ
ϖ μ = − ∆
[ t , t +∆ t ]
Derivation of the Basic Model (2)
Which has a solution
Where
∆ t → 0
μ^ & ( t ) = const [ ν 0 − μ ( t )]
μ ( t ) = ν 0 [ 1 −exp( const * t )]
0
0 ν
λ const =
Categories of Reliability Models