SlideShare ist ein Scribd-Unternehmen logo
1 von 17
White Box Testing
David Woo (dxw07u)
 What is “White Box Testing”
 Data Processing and Calculation Correctness Tests
 Correctness Tests:
Path Coverage
Line Coverage
 McCabe’s Cyclomatic complexity Metrics
 Software Qualification and Reusability Testing
 Advantages and Disadvantages
Contents:
 IEEE Definition “Testing that takes into account the internal
mechanism of a system component”.
 Examines internal Calculation paths in order identify bugs.
 Software Quality Assurance tool used to enforce the Quality of
the software.
 Enables Performance:
◦ Data Processing
◦ Calculation correctness tests.
◦ Software Qualification Tests
◦ Maintainability Tests
◦ Re-usability Tests
White Box Testing
 Is a procedure based on checking the data processing for each test case.
 An Immediate Issue becomes apparent:
●
Coverage
◦ Number of possible processing paths
◦ Multitude of lines of code
Two possible solutions
“Path Coverage” to plan our test to cover all the possible paths, where coverage is
measured by a percentage of paths covered.
“Line Coverage” to plan our tests to cover all the program code lines, where coverage
is measured by percentage of lines covered
Data Processing
 Path Testing when used is based upon achieving
“complete” path coverage.
 This involves following all of the possible paths in a
module.
 Different paths in a software module are created by the
choice in conditional statements.
 The main reason for working as a percentage to find
out how much of the testing has been completed.
 However when looking at the amount of resources
needed it becomes very “impractical”.
Path Testing
 Another major problem that is addresses is “the cost” an example of this can
be shown below.
 Modules = 5 conditional statements
◦ Each with only 2 options (IF-THEN-ELSE)
 EQUALS = 512 different paths (25 – 50 lines of code)
 Achieve “Complete Path Coverage”
●
512 test cases should be prepared
 Modules = 50 conditional statements
 Equals = 51,200 different paths (25 – 50 lines of code)
 Achieve “Complete Path Coverage”
●
51,200 test cases should be prepared
 Realistic?!?!?
Path Testing Cont.
 Far fewer tests cases – resulting in a great of paths
untested.
 To achieve full line coverage, every line of code is to be
executed at least once during the testing process.
 Car Insurance Scenario
 In the flow diagram:
◦ Diamonds Represent: a logical condition or predicate.
◦ Rectantgle Represents: a sequence of processing steps that are
executed unconditionally.
◦ Head of Arrow: Indicates the flow of control
◦ Circ le – End of transition.
Line Coverage – Correctness
Tests
Line Coverage – Correctness
Tests Cont.
 Complete Full Path Coverage
 1= 1-2-3-5-6-8-9-11-12-17
 2= 1-2-3-5-6-8-9-13-14-15-17
 3= 1-2-3-5-6-8-9-11-13-14-16
 4= 1-2-3-5-6-8-10-11-17
 …
 13= 1-2-4-5-6-8-9-11-12-17
 14= 1-2-4-5-6-8-9-13-14-15-17
 …
 23= 1-2-4-5-7-8-10-11-13-14-15-17
 24= 1-2-4-5-7-8-10-11-13-14-16-17
Line Coverage – Correctness
Tests Cont.
 Measures the complexity of a program or module.
 Addition to this it also measures the “maximum
number of independent paths needed to successfully
achieve full line coverage”
 Calculates this through a formulae to work out the
independent paths needed.
 This type of method works off the characteristics of a
flow graph. Our example will give us a better
understanding of how McCabes theories work!
McCabes Cyclomatic Complexity
Metrics
 The formulae:
 V(G) = R
 V (G) = E –N + 2
 V(G) = P + 1
 R = The number of regions that is involved in the
program flow graph. (Any enclosed area)
 E = The number of edges
 N = The number of nodes
 P = The number of decisions
McCabes Cyclomatic Complexity
Metrics Cont.
Flow Graph
 The formulae:
 V(G) = R
 V (G) = E –N + 2
 V(G) = P + 1
 Our Example
 V(G) = 6
 V(G) = 21 -17 + 2 = 6
 V(G) = 5 + 1 = 6
 Resulting metrics calculations indicate that the maximum number of independent paths is 6.
 Summary
 Programs with cyclomatic complexities of less then 5 are simple and easy to understand
 20+ The complexity is perceived as high.
 50+ the software for practical purposes becomes unpractical.
Conclude McCabes Theory
This type of procedure is very crucial and is just important as the rest.
Main objective is to check whether the software program qualifies (coding
and documentation) to the correct standards.
This will lead to a more efficient program when:
Team leaders check the software,
Replacement programmers proceed with existing programmers tasks.
Maintenance programmer to fix and update the system.
Software Qualification tests first takes into account whether the software
development responded positively.
Example:
Does the coding style fulfil coding style procedures.
Does the code fulfil the correct standards and structure of the code.
Is the Documentation to the correct standard.
Software Qualification Testing
 Main procedure is to determine whether the packaging
and documentation of the programs listed for reuse
confirm to the correct standards.
 Reduces the project resources requirements and
improves the quality of the new software systems.
 This shortens the development period.
 Benefits the whole organisation.
 Supporting the of growth of software reuse.
Software Reusability Testing
 Advantages
 Enforces the determination of software correctness as explained in the processing paths.
 Allows performance of line coverage, it allows the tester to identify the code that has not
yet been executed and test cases can be applied to these lines of code.
 It ensures quality of coding work and apply to coding standards.
 Disadvantages
 As knowledge of code and internal structure is a prerequisite, a skilled tester is needed to
carry out this type of testing, which increases the cost.
And it is nearly impossible to look into every bit of code to find out hidden errors, which
may create problems, resulting in failure of the application
Adv and Disadv – White Box
Testing
Question Time?

Weitere ähnliche Inhalte

Was ist angesagt?

Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing TechniquesKiran Kumar
 
Unit 3 Control Flow Testing
Unit 3   Control Flow TestingUnit 3   Control Flow Testing
Unit 3 Control Flow Testingravikhimani
 
Testing Fundamentals
Testing FundamentalsTesting Fundamentals
Testing FundamentalsKiran Kumar
 
Control Flow Testing
Control Flow TestingControl Flow Testing
Control Flow TestingHirra Sultan
 
Introduction to formal methods
Introduction to formal methodsIntroduction to formal methods
Introduction to formal methodsInzemamul Haque
 
The Road Not Taken: Estimating Path Execution Frequency Statically
The Road Not Taken: Estimating Path Execution Frequency StaticallyThe Road Not Taken: Estimating Path Execution Frequency Statically
The Road Not Taken: Estimating Path Execution Frequency StaticallyRay Buse
 
White Box Testing And Control Flow & Loop Testing
White Box Testing And Control Flow & Loop TestingWhite Box Testing And Control Flow & Loop Testing
White Box Testing And Control Flow & Loop TestingAnkit Mulani
 
White Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR ChandigarhWhite Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR ChandigarhPankaj Thakur
 
Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...
Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...
Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...Agile Testing alliance
 
Mca se chapter_9_formal_methods
Mca se chapter_9_formal_methodsMca se chapter_9_formal_methods
Mca se chapter_9_formal_methodsAman Adhikari
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testingOana Feidi
 
Equivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysisEquivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysisniharika5412
 
States, state graphs and transition testing
States, state graphs and transition testingStates, state graphs and transition testing
States, state graphs and transition testinggeethawilliam
 
Dynamic analysis in Software Testing
Dynamic analysis in Software TestingDynamic analysis in Software Testing
Dynamic analysis in Software TestingSagar Pednekar
 
Boundary and equivalnce systematic test design
Boundary and equivalnce   systematic test designBoundary and equivalnce   systematic test design
Boundary and equivalnce systematic test designIan McDonald
 

Was ist angesagt? (20)

Software Testing Techniques
Software Testing TechniquesSoftware Testing Techniques
Software Testing Techniques
 
Unit 3 Control Flow Testing
Unit 3   Control Flow TestingUnit 3   Control Flow Testing
Unit 3 Control Flow Testing
 
Testing Fundamentals
Testing FundamentalsTesting Fundamentals
Testing Fundamentals
 
Control Flow Testing
Control Flow TestingControl Flow Testing
Control Flow Testing
 
10 software testing_technique
10 software testing_technique10 software testing_technique
10 software testing_technique
 
Introduction to formal methods
Introduction to formal methodsIntroduction to formal methods
Introduction to formal methods
 
The Road Not Taken: Estimating Path Execution Frequency Statically
The Road Not Taken: Estimating Path Execution Frequency StaticallyThe Road Not Taken: Estimating Path Execution Frequency Statically
The Road Not Taken: Estimating Path Execution Frequency Statically
 
White box testing
White box testingWhite box testing
White box testing
 
White Box Testing And Control Flow & Loop Testing
White Box Testing And Control Flow & Loop TestingWhite Box Testing And Control Flow & Loop Testing
White Box Testing And Control Flow & Loop Testing
 
White Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR ChandigarhWhite Box testing by Pankaj Thakur, NITTTR Chandigarh
White Box testing by Pankaj Thakur, NITTTR Chandigarh
 
Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...
Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...
Agile Testing Alliance Chapter presentation - Equivalence Partition and Bound...
 
Mca se chapter_9_formal_methods
Mca se chapter_9_formal_methodsMca se chapter_9_formal_methods
Mca se chapter_9_formal_methods
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testing
 
Formal Methods
Formal MethodsFormal Methods
Formal Methods
 
Equivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysisEquivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysis
 
11 whiteboxtesting
11 whiteboxtesting11 whiteboxtesting
11 whiteboxtesting
 
States, state graphs and transition testing
States, state graphs and transition testingStates, state graphs and transition testing
States, state graphs and transition testing
 
Dynamic analysis in Software Testing
Dynamic analysis in Software TestingDynamic analysis in Software Testing
Dynamic analysis in Software Testing
 
Boundary and equivalnce systematic test design
Boundary and equivalnce   systematic test designBoundary and equivalnce   systematic test design
Boundary and equivalnce systematic test design
 
Whitebox
WhiteboxWhitebox
Whitebox
 

Andere mochten auch

DML (Data Manipulation Language).Sqlserver
DML (Data Manipulation Language).SqlserverDML (Data Manipulation Language).Sqlserver
DML (Data Manipulation Language).SqlserverLauris R Severino
 
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)Miguel Andrade
 
凱絡媒體週報 2011 11 25
凱絡媒體週報 2011 11 25凱絡媒體週報 2011 11 25
凱絡媒體週報 2011 11 25Eson Chih
 
Cs221 lecture7-fall11
Cs221 lecture7-fall11Cs221 lecture7-fall11
Cs221 lecture7-fall11darwinrlo
 
Marketing artikel factomagazine 1107 en 1108 (white space conflict)
Marketing artikel factomagazine 1107 en 1108 (white space conflict)Marketing artikel factomagazine 1107 en 1108 (white space conflict)
Marketing artikel factomagazine 1107 en 1108 (white space conflict)Mobiliteitsscan.com
 
Wil Group, Development Solutions in Africa
Wil Group, Development Solutions in AfricaWil Group, Development Solutions in Africa
Wil Group, Development Solutions in AfricaRicky L. Stewart
 
Lutz Ribbe Societal Benefits of Renewables 4/12
Lutz Ribbe Societal Benefits of Renewables 4/12Lutz Ribbe Societal Benefits of Renewables 4/12
Lutz Ribbe Societal Benefits of Renewables 4/12Shweta Koshy
 
BioengineeredTumorModel_DrJonasMoses_r2015
BioengineeredTumorModel_DrJonasMoses_r2015BioengineeredTumorModel_DrJonasMoses_r2015
BioengineeredTumorModel_DrJonasMoses_r2015Dr. Jonas Moses
 
La computadora
La computadoraLa computadora
La computadoraRay Osorio
 
.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. PortfolioPrabanjan TR
 
Recommendations for Custom Calibration Solutions DBA Custom-Cal by Randy Yousey
Recommendations for Custom Calibration Solutions DBA Custom-Cal by Randy YouseyRecommendations for Custom Calibration Solutions DBA Custom-Cal by Randy Yousey
Recommendations for Custom Calibration Solutions DBA Custom-Cal by Randy Youseyrjyousey
 
Wil Group global survey 2015 16
Wil Group global survey 2015 16Wil Group global survey 2015 16
Wil Group global survey 2015 16Ricky L. Stewart
 
Final portfolio michael voit 140130
Final portfolio michael voit 140130Final portfolio michael voit 140130
Final portfolio michael voit 140130voit1
 

Andere mochten auch (20)

DML (Data Manipulation Language).Sqlserver
DML (Data Manipulation Language).SqlserverDML (Data Manipulation Language).Sqlserver
DML (Data Manipulation Language).Sqlserver
 
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
 
凱絡媒體週報 2011 11 25
凱絡媒體週報 2011 11 25凱絡媒體週報 2011 11 25
凱絡媒體週報 2011 11 25
 
Cs221 lecture7-fall11
Cs221 lecture7-fall11Cs221 lecture7-fall11
Cs221 lecture7-fall11
 
Marketing artikel factomagazine 1107 en 1108 (white space conflict)
Marketing artikel factomagazine 1107 en 1108 (white space conflict)Marketing artikel factomagazine 1107 en 1108 (white space conflict)
Marketing artikel factomagazine 1107 en 1108 (white space conflict)
 
Wil Group, Development Solutions in Africa
Wil Group, Development Solutions in AfricaWil Group, Development Solutions in Africa
Wil Group, Development Solutions in Africa
 
Antissemitismo na europa hoje
Antissemitismo na europa hojeAntissemitismo na europa hoje
Antissemitismo na europa hoje
 
Lutz Ribbe Societal Benefits of Renewables 4/12
Lutz Ribbe Societal Benefits of Renewables 4/12Lutz Ribbe Societal Benefits of Renewables 4/12
Lutz Ribbe Societal Benefits of Renewables 4/12
 
BioengineeredTumorModel_DrJonasMoses_r2015
BioengineeredTumorModel_DrJonasMoses_r2015BioengineeredTumorModel_DrJonasMoses_r2015
BioengineeredTumorModel_DrJonasMoses_r2015
 
World Cup
World CupWorld Cup
World Cup
 
Congresmap VSG congres 2011
Congresmap VSG congres 2011Congresmap VSG congres 2011
Congresmap VSG congres 2011
 
La computadora
La computadoraLa computadora
La computadora
 
Treball 11111
Treball 11111Treball 11111
Treball 11111
 
.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio
 
Research
ResearchResearch
Research
 
Recommendations for Custom Calibration Solutions DBA Custom-Cal by Randy Yousey
Recommendations for Custom Calibration Solutions DBA Custom-Cal by Randy YouseyRecommendations for Custom Calibration Solutions DBA Custom-Cal by Randy Yousey
Recommendations for Custom Calibration Solutions DBA Custom-Cal by Randy Yousey
 
Wil Group global survey 2015 16
Wil Group global survey 2015 16Wil Group global survey 2015 16
Wil Group global survey 2015 16
 
About WIL group
About WIL groupAbout WIL group
About WIL group
 
Daily mail
Daily mailDaily mail
Daily mail
 
Final portfolio michael voit 140130
Final portfolio michael voit 140130Final portfolio michael voit 140130
Final portfolio michael voit 140130
 

Ähnlich wie Qat09 presentations dxw07u

SE UNIT 5 part 2 (1).pptx
SE UNIT 5 part 2 (1).pptxSE UNIT 5 part 2 (1).pptx
SE UNIT 5 part 2 (1).pptxPraneethBhai1
 
Software Engineering (Testing techniques)
Software Engineering (Testing techniques)Software Engineering (Testing techniques)
Software Engineering (Testing techniques)ShudipPal
 
1414_lecturueueueueuueueeueueueuusuee_7.ppt
1414_lecturueueueueuueueeueueueuusuee_7.ppt1414_lecturueueueueuueueeueueueuusuee_7.ppt
1414_lecturueueueueuueueeueueueuusuee_7.pptabdulbasetalselwi
 
Chapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineeringChapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineeringAnasHassan52
 
Chapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docxChapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docxketurahhazelhurst
 
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTINGA WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTINGJournal For Research
 
Quality Assurance
Quality AssuranceQuality Assurance
Quality AssuranceKiran Kumar
 
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Parasoft .TEST, Write better C# Code Using  Data Flow Analysis Parasoft .TEST, Write better C# Code Using  Data Flow Analysis
Parasoft .TEST, Write better C# Code Using Data Flow Analysis Engineering Software Lab
 
Improving Code Quality Through Effective Review Process
Improving Code Quality Through Effective  Review ProcessImproving Code Quality Through Effective  Review Process
Improving Code Quality Through Effective Review ProcessDr. Syed Hassan Amin
 
7-White Box Testing.ppt
7-White Box Testing.ppt7-White Box Testing.ppt
7-White Box Testing.pptHirenderPal
 
CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4SIMONTHOMAS S
 
How to calculte Cyclomatic Complexity through various methods
How to calculte Cyclomatic Complexity through various methodsHow to calculte Cyclomatic Complexity through various methods
How to calculte Cyclomatic Complexity through various methodsharsimratDeo
 
New software testing-techniques
New software testing-techniquesNew software testing-techniques
New software testing-techniquesFincy V.J
 
Software Testing Tecniques
Software Testing TecniquesSoftware Testing Tecniques
Software Testing Tecniquesersanbilik
 

Ähnlich wie Qat09 presentations dxw07u (20)

SE UNIT 5 part 2 (1).pptx
SE UNIT 5 part 2 (1).pptxSE UNIT 5 part 2 (1).pptx
SE UNIT 5 part 2 (1).pptx
 
Chapter 8 Testing Tactics.ppt
Chapter 8 Testing Tactics.pptChapter 8 Testing Tactics.ppt
Chapter 8 Testing Tactics.ppt
 
Software Engineering (Testing techniques)
Software Engineering (Testing techniques)Software Engineering (Testing techniques)
Software Engineering (Testing techniques)
 
1414_lecturueueueueuueueeueueueuusuee_7.ppt
1414_lecturueueueueuueueeueueueuusuee_7.ppt1414_lecturueueueueuueueeueueueuusuee_7.ppt
1414_lecturueueueueuueueeueueueuusuee_7.ppt
 
Chapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineeringChapter 8 Testing Tactics.ppt Software engineering
Chapter 8 Testing Tactics.ppt Software engineering
 
Test Techniques
Test TechniquesTest Techniques
Test Techniques
 
Chapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docxChapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docx
 
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTINGA WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
A WHITE BOX TESTING TECHNIQUE IN SOFTWARE TESTING : BASIS PATH TESTING
 
Quality Assurance
Quality AssuranceQuality Assurance
Quality Assurance
 
Testing
TestingTesting
Testing
 
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
Parasoft .TEST, Write better C# Code Using  Data Flow Analysis Parasoft .TEST, Write better C# Code Using  Data Flow Analysis
Parasoft .TEST, Write better C# Code Using Data Flow Analysis
 
Introduction to White box testing
Introduction to White box testingIntroduction to White box testing
Introduction to White box testing
 
Improving Code Quality Through Effective Review Process
Improving Code Quality Through Effective  Review ProcessImproving Code Quality Through Effective  Review Process
Improving Code Quality Through Effective Review Process
 
SWE-6 TESTING.pptx
SWE-6 TESTING.pptxSWE-6 TESTING.pptx
SWE-6 TESTING.pptx
 
7-White Box Testing.ppt
7-White Box Testing.ppt7-White Box Testing.ppt
7-White Box Testing.ppt
 
CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4
 
20100309 02 - Software testing (McCabe)
20100309 02 - Software testing (McCabe)20100309 02 - Software testing (McCabe)
20100309 02 - Software testing (McCabe)
 
How to calculte Cyclomatic Complexity through various methods
How to calculte Cyclomatic Complexity through various methodsHow to calculte Cyclomatic Complexity through various methods
How to calculte Cyclomatic Complexity through various methods
 
New software testing-techniques
New software testing-techniquesNew software testing-techniques
New software testing-techniques
 
Software Testing Tecniques
Software Testing TecniquesSoftware Testing Tecniques
Software Testing Tecniques
 

Kürzlich hochgeladen

Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 

Kürzlich hochgeladen (20)

Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 

Qat09 presentations dxw07u

  • 1. White Box Testing David Woo (dxw07u)
  • 2.  What is “White Box Testing”  Data Processing and Calculation Correctness Tests  Correctness Tests: Path Coverage Line Coverage  McCabe’s Cyclomatic complexity Metrics  Software Qualification and Reusability Testing  Advantages and Disadvantages Contents:
  • 3.  IEEE Definition “Testing that takes into account the internal mechanism of a system component”.  Examines internal Calculation paths in order identify bugs.  Software Quality Assurance tool used to enforce the Quality of the software.  Enables Performance: ◦ Data Processing ◦ Calculation correctness tests. ◦ Software Qualification Tests ◦ Maintainability Tests ◦ Re-usability Tests White Box Testing
  • 4.  Is a procedure based on checking the data processing for each test case.  An Immediate Issue becomes apparent: ● Coverage ◦ Number of possible processing paths ◦ Multitude of lines of code Two possible solutions “Path Coverage” to plan our test to cover all the possible paths, where coverage is measured by a percentage of paths covered. “Line Coverage” to plan our tests to cover all the program code lines, where coverage is measured by percentage of lines covered Data Processing
  • 5.  Path Testing when used is based upon achieving “complete” path coverage.  This involves following all of the possible paths in a module.  Different paths in a software module are created by the choice in conditional statements.  The main reason for working as a percentage to find out how much of the testing has been completed.  However when looking at the amount of resources needed it becomes very “impractical”. Path Testing
  • 6.  Another major problem that is addresses is “the cost” an example of this can be shown below.  Modules = 5 conditional statements ◦ Each with only 2 options (IF-THEN-ELSE)  EQUALS = 512 different paths (25 – 50 lines of code)  Achieve “Complete Path Coverage” ● 512 test cases should be prepared  Modules = 50 conditional statements  Equals = 51,200 different paths (25 – 50 lines of code)  Achieve “Complete Path Coverage” ● 51,200 test cases should be prepared  Realistic?!?!? Path Testing Cont.
  • 7.  Far fewer tests cases – resulting in a great of paths untested.  To achieve full line coverage, every line of code is to be executed at least once during the testing process.  Car Insurance Scenario  In the flow diagram: ◦ Diamonds Represent: a logical condition or predicate. ◦ Rectantgle Represents: a sequence of processing steps that are executed unconditionally. ◦ Head of Arrow: Indicates the flow of control ◦ Circ le – End of transition. Line Coverage – Correctness Tests
  • 8. Line Coverage – Correctness Tests Cont.
  • 9.  Complete Full Path Coverage  1= 1-2-3-5-6-8-9-11-12-17  2= 1-2-3-5-6-8-9-13-14-15-17  3= 1-2-3-5-6-8-9-11-13-14-16  4= 1-2-3-5-6-8-10-11-17  …  13= 1-2-4-5-6-8-9-11-12-17  14= 1-2-4-5-6-8-9-13-14-15-17  …  23= 1-2-4-5-7-8-10-11-13-14-15-17  24= 1-2-4-5-7-8-10-11-13-14-16-17 Line Coverage – Correctness Tests Cont.
  • 10.  Measures the complexity of a program or module.  Addition to this it also measures the “maximum number of independent paths needed to successfully achieve full line coverage”  Calculates this through a formulae to work out the independent paths needed.  This type of method works off the characteristics of a flow graph. Our example will give us a better understanding of how McCabes theories work! McCabes Cyclomatic Complexity Metrics
  • 11.  The formulae:  V(G) = R  V (G) = E –N + 2  V(G) = P + 1  R = The number of regions that is involved in the program flow graph. (Any enclosed area)  E = The number of edges  N = The number of nodes  P = The number of decisions McCabes Cyclomatic Complexity Metrics Cont.
  • 13.  The formulae:  V(G) = R  V (G) = E –N + 2  V(G) = P + 1  Our Example  V(G) = 6  V(G) = 21 -17 + 2 = 6  V(G) = 5 + 1 = 6  Resulting metrics calculations indicate that the maximum number of independent paths is 6.  Summary  Programs with cyclomatic complexities of less then 5 are simple and easy to understand  20+ The complexity is perceived as high.  50+ the software for practical purposes becomes unpractical. Conclude McCabes Theory
  • 14. This type of procedure is very crucial and is just important as the rest. Main objective is to check whether the software program qualifies (coding and documentation) to the correct standards. This will lead to a more efficient program when: Team leaders check the software, Replacement programmers proceed with existing programmers tasks. Maintenance programmer to fix and update the system. Software Qualification tests first takes into account whether the software development responded positively. Example: Does the coding style fulfil coding style procedures. Does the code fulfil the correct standards and structure of the code. Is the Documentation to the correct standard. Software Qualification Testing
  • 15.  Main procedure is to determine whether the packaging and documentation of the programs listed for reuse confirm to the correct standards.  Reduces the project resources requirements and improves the quality of the new software systems.  This shortens the development period.  Benefits the whole organisation.  Supporting the of growth of software reuse. Software Reusability Testing
  • 16.  Advantages  Enforces the determination of software correctness as explained in the processing paths.  Allows performance of line coverage, it allows the tester to identify the code that has not yet been executed and test cases can be applied to these lines of code.  It ensures quality of coding work and apply to coding standards.  Disadvantages  As knowledge of code and internal structure is a prerequisite, a skilled tester is needed to carry out this type of testing, which increases the cost. And it is nearly impossible to look into every bit of code to find out hidden errors, which may create problems, resulting in failure of the application Adv and Disadv – White Box Testing

Hinweis der Redaktion

  1. Data Processing Calculation correctness tests. (Requires every computational operation in the sequence of operations by each test case must be examined) This is a type of verification that allows whether the processing operations and sequences have been programmed correctly. Software Qualification Tests Focuses on the examination of the software code including comments – Coding standards, work instructions Maintainability Tests Special features installed for detection of causes of failures, modules structures and support software adaptations and software improvements Re-usability Tests Examine the extent of reused software is incorporated, and adaptations performed in order to make the software reusable.