Testing Basics
Testing Basics
Testing Basics
CUHK Shenzhen
Pinjia He
1. What is Software Testing
2. Why Software Testing
3. Stages and Categories of Testing
4. Coverage Metrics
Logbook page of the Mark II Aiken Relay Calculator with the first bug (1947)
Recorded by Grace Hopper
Pinjia He @ CUHK Shenzhen
The Patriot Accident
• The Patriot missile air defense system
tracks and intercepts incoming
missiles
https://www.youtube.com/watch?v=yeUyxjLhAxU
https://www.youtube.com/watch?v=4QRWa68MtLc
https://andrewbegel.com/info461/readings/verification.html
• Test driver
üApply tests to UUT, including setup & clean-up
• Test stub
üPartial, temporary implementation of a component
used by UUT
üMock a missing component back fake data
https://andrewbegel.com/info461/readings/index.html
• Alpha test
p Client uses the software at the developer’s site
p Software used in controlled setting --- developers ready to fix
bugs
l Beta test
p Conducted at client’s site (developer not present)
p Software gets a realistic workout in target environments