Componennt Based Testing
Componennt Based Testing
Componennt Based Testing
Software Testing
I.T.S
Ghaziabad
Presented By Shreesh Tiwari
Outline
Introduction to CBST
Advantages of CBST
Conclusions
Introduction
Introduction
select
Component
2
Component
n
Software
system
assemble
Advantages of CBST
Developer
Tests
Component
Final Software
Product
Component Repository
with adequately tested
components
Component User
uses the components
One of the reasons for the failure of the first Ariane 5 was that a
conversion to integer its software failed (overflow)
That code was taken from Ariane 4, and had been successfully
tested for Ariane 4.
But Ariane 5 had a higher initial velocity and was heavier than
Ariane 4.
The story learnt: Even adequately tested components can fail when
the context in which it is used changes.
Testing Components:
Challenges
Unpredictable Environment.
Input Interface
CBST
Output Interface
Interface 2
Interface 1
Interface 2
Interface 1
Component 1
Interface 2
Component 2
Interface 1
Interface 2
Component 3
Interface 1
Interface 2
Component 1
Interface 1
Interface 2
Component 2
Interface 1
Component 3
Interface 2
Built In tests
Interface Probing
Traceable Components
Self testing components
State Machine Models.
All these techniques involve the efforts of both the
Component developer and Component User
Built In tests
Interface Probing
Traceable Components
Normal mode
Maintenance mode
Developer
Tests
Components
Component Repository
with adequately tested
components
Component User
validates the
components
Regression Testing of
Component Systems
New challenges:
System components might evolve while CBST
components remain static.
CBST components might evolve while the system
components remain static.
Both CBST and system components can evolve.
Conclusions