SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and TechniqueANKUR-BA
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and TechniqueSachin-QA
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and TechniqueFayis-QA
 
Test case design techniques
Test case design techniquesTest case design techniques
Test case design techniquesAshutosh Garg
 
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 ConsiderRapidValue
 
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)Mani Kanth
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic TestingJimi Patel
 
Test Case Design
Test Case DesignTest Case Design
Test Case Designacatalin
 
Mt s3 methodoligies&principles
Mt s3 methodoligies&principlesMt s3 methodoligies&principles
Mt s3 methodoligies&principlesTestingGeeks
 
Software Engineering Lec 10 -software testing--
Software Engineering Lec 10 -software testing--Software Engineering Lec 10 -software testing--
Software Engineering Lec 10 -software testing--Taymoor Nazmy
 
Dynamic analysis in Software Testing
Dynamic analysis in Software TestingDynamic analysis in Software Testing
Dynamic analysis in Software TestingSagar Pednekar
 
Python: Object-Oriented Testing (Unit Testing)
Python: Object-Oriented Testing (Unit Testing)Python: Object-Oriented Testing (Unit Testing)
Python: Object-Oriented Testing (Unit Testing)Damian T. Gordon
 
Black box testing lecture 11
Black box testing lecture 11Black box testing lecture 11
Black box testing lecture 11Abdul Basit
 
Black box testing
Black box testingBlack box testing
Black box testingAbdul 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 testingNikita Knysh
 
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 BugRaptors
 

Mais procurados (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
 

Destaque

Frekuensi ultra tinggi
Frekuensi ultra tinggiFrekuensi ultra tinggi
Frekuensi ultra tinggiGani Strum
 
Informatica(power point)
Informatica(power point)Informatica(power point)
Informatica(power point)nenafeno
 
практика интернет маркетинга 26 light
практика интернет маркетинга 26 lightпрактика интернет маркетинга 26 light
практика интернет маркетинга 26 lightCoMUU
 
Building structures report [individual]
Building structures report [individual]Building structures report [individual]
Building structures report [individual]Jannah Jailani
 
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énalesNicolas Minv
 
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...Agnès-Alexandra Quillet
 
SISTEM REPRODUKSI MANUSIA
SISTEM REPRODUKSI MANUSIASISTEM REPRODUKSI MANUSIA
SISTEM REPRODUKSI MANUSIARosdianasella
 

Destaque (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
 

Semelhante a Pa chapter08-testing integrating-the_programs-cs_390

Semelhante a 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
 

Último

Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
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 WorkerThousandEyes
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 

Último (20)

Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
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
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 

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