SlideShare ist ein Scribd-Unternehmen logo
1 von 35
Program Testing +
Integration Testing
Zeeshan Rana
 Types of faults and how to clasify them
 The purpose of testing
 Unit testing
 Integration testing strategies
 Test planning
 When to stop testing
 Wrong requirement: not what the customer
wants
 Missing requirement
 Requirement impossible to implement
 Faulty design
 Faulty code
 Improperly implemented design
 Objective of testing: discover faults
 A test is successful only when a fault is
discovered
◦ Fault identification is the process of determining
what fault caused the failure
◦ Fault correction is the process of making changes
to the system so that the faults are removed
 Purpose
 Input
 Expected Output
 Actual Output
 Sample Format:
 Algorithmic fault
 Computation and precision fault
◦ a formula’s implementation is wrong
 Documentation fault
◦ Documentation doesn’t match what program does
 Capacity or boundary faults
◦ System’s performance not acceptable when certain limits
are reached
 Timing or coordination faults
 Performance faults
◦ System does not perform at the speed prescribed
 An algorithmic fault occurs when a
component’s algorithm or logic does not
produce proper output
◦ Branching too soon
◦ Branching too late
◦ Forgetting to initialize variable or set loop
invariants
◦ Comparing variables of inappropriate data types
 Module testing, component testing, or unit
testing
 Integration testing
 System Testing
◦ Function testing
◦ Performance testing
 Acceptance testing
 Installation testing
 Egoless programming: programs are viewed
as components of a larger system, not as the
property of those who wrote them
 Independent test team
◦ avoid conflict
◦ improve objectivity
◦ allow testing and coding concurrently
 Closed box or black box: functionality of the
test objects
◦ Equivalence Class, Boundary Value Analysis,
Scenario-based, Decision Table based, State
Machine based…
 Clear box or white box: structure of the test
objects
◦ Control Flow
 Basis Path, Branch, Statement, Decision…
◦ Data Flow
 Du Path, All-uses Path
 Black box: external behavior description
 State box: black box with state information
 White box: state box with a procedure
 Code walkthrough
 Code inspection
 Testing the unit for correct functionality
 Testing the unit for correct execution
 Determining test objectives
 Selecting test cases
 Executing test cases
 Statement testing
 Branch testing
 Path testing
 …
Cyclomatic Complexity = E – N + 2 = 9 – 9 + 2 = 2
• Effectiveness of fault-discovery techniques
Requirements
Faults Design Faults Code Faults
Documentation
Faults
Reviews Fair Excellent Excellent Good
Prototypes Good Fair Fair Not applicable
Testing Poor Poor Good Fair
Correctness Proofs Poor Poor Fair Fair
 Big-bang
 Bottom-up
 Top-down
 Sandwich testing
 Component Driver: a routine that calls a
particular component and passes a test case
to it
 Stub: a special-purpose program to simulate
the activity of the missing component
 System viewed as a hierarchy of components
 All components integrated at once
 Locating faults?
 Only A is tested by itself
 Stubs of B, C and D are used at first level
 N-1 stubs required (N=Number of nodes)
 Locating faults?
 Drivers are used to call the child functions
 Drivers are relatively intelligent
 N-leaves drivers
 Locating faults?
 Viewed system as three layers
 Employ BU where
writing drivers is
not costly
 Employ TD where
stubs are easier to
Write
 Locating faults?
• Adjacency Matrix
• NxN matrix that tells which components call
the other components
• Pairwise Integration
• Test each pair (i.e. each edge)
• E testing sessions
• Neighborhood based Integration
• Integrate each neighborhood
• The nodes at one edge distance from the
node to be integrated
• N-sink nodes sessions
 Establish test objectives
 Design and Write test cases
 Test test cases
 Execute tests
 Evaluate test results
 Test plan explains
◦ who does the testing
◦ why the tests are performed
◦ how tests are conducted
◦ when the tests are scheduled
 What the test objectives are
 How the test will be run
 What criteria will be used to determine when
the testing is complete
 Automated Testing Tools
 Testing Management Tools
 Bug Tracking/Configuration Management
Tools
 No time left
 No money left
 Statistical Criteria
◦ Number of defects found per week becomes
lower than a set threshold
 The Ariane-5’s flight control system was
tested in four ways
◦ equipment testing
◦ on-board computer software testing
◦ staged integration
◦ system validation tests
 The Ariane-5 developers relied on insufficient
reviews and test coverage
 It is important to understand the difference
between faults and failures
 The goal of testing is to find faults, not to
prove correctness
 UCF Slides
 Software Testing, A Craftsman’s Approach by
Jorgensen
 Software Testing Tools by Prasad

Weitere ähnliche Inhalte

Was ist angesagt?

Test Case Design
Test Case DesignTest Case Design
Test Case Design
acatalin
 
Mt s3 methodoligies&principles
Mt s3 methodoligies&principlesMt s3 methodoligies&principles
Mt s3 methodoligies&principles
TestingGeeks
 
Black box testing lecture 11
Black box testing lecture 11Black box testing lecture 11
Black box testing lecture 11
Abdul Basit
 
Software Testing Foundations Part 6 - Intuitive and Experience-based testing
Software Testing Foundations Part 6 - Intuitive and Experience-based testingSoftware Testing Foundations Part 6 - Intuitive and Experience-based testing
Software Testing Foundations Part 6 - Intuitive and Experience-based testing
Nikita Knysh
 

Was ist angesagt? (19)

Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and Technique
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and Technique
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and Technique
 
Test case design techniques
Test case design techniquesTest case design techniques
Test case design techniques
 
Whitepaper Test Case Design and Testing Techniques- Factors to Consider
Whitepaper Test Case Design and Testing Techniques- Factors to ConsiderWhitepaper Test Case Design and Testing Techniques- Factors to Consider
Whitepaper Test Case Design and Testing Techniques- Factors to Consider
 
Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)Se (techniques for black box testing ppt)
Se (techniques for black box testing ppt)
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
 
Tlc
TlcTlc
Tlc
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
 
Mt s3 methodoligies&principles
Mt s3 methodoligies&principlesMt s3 methodoligies&principles
Mt s3 methodoligies&principles
 
Software Engineering Lec 10 -software testing--
Software Engineering Lec 10 -software testing--Software Engineering Lec 10 -software testing--
Software Engineering Lec 10 -software testing--
 
Dynamic analysis in Software Testing
Dynamic analysis in Software TestingDynamic analysis in Software Testing
Dynamic analysis in Software Testing
 
Python: Object-Oriented Testing (Unit Testing)
Python: Object-Oriented Testing (Unit Testing)Python: Object-Oriented Testing (Unit Testing)
Python: Object-Oriented Testing (Unit Testing)
 
Black box testing lecture 11
Black box testing lecture 11Black box testing lecture 11
Black box testing lecture 11
 
Black box testing
Black box testingBlack box testing
Black box testing
 
Software Testing Foundations Part 6 - Intuitive and Experience-based testing
Software Testing Foundations Part 6 - Intuitive and Experience-based testingSoftware Testing Foundations Part 6 - Intuitive and Experience-based testing
Software Testing Foundations Part 6 - Intuitive and Experience-based testing
 
An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing An Insight into the Black Box and White Box Software Testing
An Insight into the Black Box and White Box Software Testing
 
Blackbox
BlackboxBlackbox
Blackbox
 

Andere mochten auch

Frekuensi ultra tinggi
Frekuensi ultra tinggiFrekuensi ultra tinggi
Frekuensi ultra tinggi
Gani Strum
 
практика интернет маркетинга 26 light
практика интернет маркетинга 26 lightпрактика интернет маркетинга 26 light
практика интернет маркетинга 26 light
CoMUU
 

Andere mochten auch (20)

Comercio internacional
Comercio internacionalComercio internacional
Comercio internacional
 
Trabajo final lucy
Trabajo final lucy Trabajo final lucy
Trabajo final lucy
 
Presentation colman
Presentation colmanPresentation colman
Presentation colman
 
BSITF (English)_BSITF Certificate
BSITF (English)_BSITF CertificateBSITF (English)_BSITF Certificate
BSITF (English)_BSITF Certificate
 
Agile metrics at-pmi bangalore
Agile metrics at-pmi bangaloreAgile metrics at-pmi bangalore
Agile metrics at-pmi bangalore
 
Frekuensi ultra tinggi
Frekuensi ultra tinggiFrekuensi ultra tinggi
Frekuensi ultra tinggi
 
Informatica(power point)
Informatica(power point)Informatica(power point)
Informatica(power point)
 
Mision y vision
Mision y visionMision y vision
Mision y vision
 
Ppt cpd
Ppt cpdPpt cpd
Ppt cpd
 
Diana beltran
Diana beltranDiana beltran
Diana beltran
 
практика интернет маркетинга 26 light
практика интернет маркетинга 26 lightпрактика интернет маркетинга 26 light
практика интернет маркетинга 26 light
 
Telomerasa
TelomerasaTelomerasa
Telomerasa
 
Certificate_MCP
Certificate_MCPCertificate_MCP
Certificate_MCP
 
MV-10
MV-10MV-10
MV-10
 
Building structures report [individual]
Building structures report [individual]Building structures report [individual]
Building structures report [individual]
 
Une approche design thinking pour les victimes d'infractions pénales
Une approche design thinking pour les victimes d'infractions pénalesUne approche design thinking pour les victimes d'infractions pénales
Une approche design thinking pour les victimes d'infractions pénales
 
La démarche créative : laisser le temps au temps...
La démarche créative : laisser le temps au temps...La démarche créative : laisser le temps au temps...
La démarche créative : laisser le temps au temps...
 
Horario 1
Horario 1Horario 1
Horario 1
 
servicios
servicios servicios
servicios
 
SISTEM REPRODUKSI MANUSIA
SISTEM REPRODUKSI MANUSIASISTEM REPRODUKSI MANUSIA
SISTEM REPRODUKSI MANUSIA
 

Ähnlich wie Pa chapter08-testing integrating-the_programs-cs_390

Quality Analyst Training - Gain America
Quality Analyst Training - Gain AmericaQuality Analyst Training - Gain America
Quality Analyst Training - Gain America
GainAmerica
 

Ähnlich wie Pa chapter08-testing integrating-the_programs-cs_390 (20)

Verifcation &validation
Verifcation &validationVerifcation &validation
Verifcation &validation
 
Testing
TestingTesting
Testing
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
 
Test Case Design & Technique
Test Case Design & TechniqueTest Case Design & Technique
Test Case Design & Technique
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing Strategies
 
Quality Analyst Training - Gain America
Quality Analyst Training - Gain AmericaQuality Analyst Training - Gain America
Quality Analyst Training - Gain America
 
Software testing-and-analysis
Software testing-and-analysisSoftware testing-and-analysis
Software testing-and-analysis
 
testing
testingtesting
testing
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Ch23
Ch23Ch23
Ch23
 
c
cc
c
 
Class9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdfClass9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdf
 
Software testing
Software testingSoftware testing
Software testing
 
Testing
TestingTesting
Testing
 
Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)
 
prova4
prova4prova4
prova4
 
provalast
provalastprovalast
provalast
 
test3
test3test3
test3
 
test2
test2test2
test2
 
domenica3
domenica3domenica3
domenica3
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Kürzlich hochgeladen (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Pa chapter08-testing integrating-the_programs-cs_390

  • 1. Program Testing + Integration Testing Zeeshan Rana
  • 2.  Types of faults and how to clasify them  The purpose of testing  Unit testing  Integration testing strategies  Test planning  When to stop testing
  • 3.  Wrong requirement: not what the customer wants  Missing requirement  Requirement impossible to implement  Faulty design  Faulty code  Improperly implemented design
  • 4.  Objective of testing: discover faults  A test is successful only when a fault is discovered ◦ Fault identification is the process of determining what fault caused the failure ◦ Fault correction is the process of making changes to the system so that the faults are removed
  • 5.  Purpose  Input  Expected Output  Actual Output  Sample Format:
  • 6.  Algorithmic fault  Computation and precision fault ◦ a formula’s implementation is wrong  Documentation fault ◦ Documentation doesn’t match what program does  Capacity or boundary faults ◦ System’s performance not acceptable when certain limits are reached  Timing or coordination faults  Performance faults ◦ System does not perform at the speed prescribed
  • 7.  An algorithmic fault occurs when a component’s algorithm or logic does not produce proper output ◦ Branching too soon ◦ Branching too late ◦ Forgetting to initialize variable or set loop invariants ◦ Comparing variables of inappropriate data types
  • 8.  Module testing, component testing, or unit testing  Integration testing  System Testing ◦ Function testing ◦ Performance testing  Acceptance testing  Installation testing
  • 9.
  • 10.  Egoless programming: programs are viewed as components of a larger system, not as the property of those who wrote them
  • 11.  Independent test team ◦ avoid conflict ◦ improve objectivity ◦ allow testing and coding concurrently
  • 12.  Closed box or black box: functionality of the test objects ◦ Equivalence Class, Boundary Value Analysis, Scenario-based, Decision Table based, State Machine based…  Clear box or white box: structure of the test objects ◦ Control Flow  Basis Path, Branch, Statement, Decision… ◦ Data Flow  Du Path, All-uses Path
  • 13.  Black box: external behavior description  State box: black box with state information  White box: state box with a procedure
  • 14.  Code walkthrough  Code inspection
  • 15.  Testing the unit for correct functionality  Testing the unit for correct execution
  • 16.  Determining test objectives  Selecting test cases  Executing test cases
  • 17.  Statement testing  Branch testing  Path testing  …
  • 18. Cyclomatic Complexity = E – N + 2 = 9 – 9 + 2 = 2
  • 19. • Effectiveness of fault-discovery techniques Requirements Faults Design Faults Code Faults Documentation Faults Reviews Fair Excellent Excellent Good Prototypes Good Fair Fair Not applicable Testing Poor Poor Good Fair Correctness Proofs Poor Poor Fair Fair
  • 20.  Big-bang  Bottom-up  Top-down  Sandwich testing
  • 21.  Component Driver: a routine that calls a particular component and passes a test case to it  Stub: a special-purpose program to simulate the activity of the missing component
  • 22.  System viewed as a hierarchy of components
  • 23.  All components integrated at once  Locating faults?
  • 24.  Only A is tested by itself  Stubs of B, C and D are used at first level  N-1 stubs required (N=Number of nodes)  Locating faults?
  • 25.  Drivers are used to call the child functions  Drivers are relatively intelligent  N-leaves drivers  Locating faults?
  • 26.  Viewed system as three layers  Employ BU where writing drivers is not costly  Employ TD where stubs are easier to Write  Locating faults?
  • 27. • Adjacency Matrix • NxN matrix that tells which components call the other components • Pairwise Integration • Test each pair (i.e. each edge) • E testing sessions • Neighborhood based Integration • Integrate each neighborhood • The nodes at one edge distance from the node to be integrated • N-sink nodes sessions
  • 28.  Establish test objectives  Design and Write test cases  Test test cases  Execute tests  Evaluate test results
  • 29.  Test plan explains ◦ who does the testing ◦ why the tests are performed ◦ how tests are conducted ◦ when the tests are scheduled
  • 30.  What the test objectives are  How the test will be run  What criteria will be used to determine when the testing is complete
  • 31.  Automated Testing Tools  Testing Management Tools  Bug Tracking/Configuration Management Tools
  • 32.  No time left  No money left  Statistical Criteria ◦ Number of defects found per week becomes lower than a set threshold
  • 33.  The Ariane-5’s flight control system was tested in four ways ◦ equipment testing ◦ on-board computer software testing ◦ staged integration ◦ system validation tests  The Ariane-5 developers relied on insufficient reviews and test coverage
  • 34.  It is important to understand the difference between faults and failures  The goal of testing is to find faults, not to prove correctness
  • 35.  UCF Slides  Software Testing, A Craftsman’s Approach by Jorgensen  Software Testing Tools by Prasad