SlideShare a Scribd company logo
1 of 38
MEETING 7
TESTING TECHNIQUES
SOFTWARE TESTING
By : Ajeng Savitri Puspaningrum, M.Kom
OBJECTIVE
• Learning Testing Techniques
Blackbox
Testing
4
BLACK BOX
• Also known as behavioral testing or functional testing.
• Focus on the functional requirements of the software
• As a complement to white box testing (not as an alternative)
• Type :
• Equivalence Class Testing
• Limit Testing
• Robustness Testing
• Requirements Testing
5
TESTING ASPECT
• Found errors in categories:
• Incorrect or missing functions
• Interface error
• Error in data structure or external database
access
• Performance error
• Initialization and termination error
6
EQUIVALENCE CLASS TESTING
• Also known as Equivalence partitioning testing
• Black box testing that divides the input domain of
a program into data classes from which test cases
will be derived
• One test case covers one error class
• The data set of each data class has the same
effect on the program
• Reducing the number of test cases: efficiency
• An equivalence class represents an input
condition that represents a valid or invalid state
7
LIMIT TESTING
• Also known as boundary value analysis
testing (BVA)
• Black box test that tests the
values ​​contained in the limit (limit)
• General guideline - if an input condition is a
range between a and b then the test cases
(2 valid cases and 2 invalid cases)
8
ROBUSTNESS TESTING
• Done by entering values ​​that are outside the specified requirements
(requirements)
• Purpose : to prove that there are no garbled events (catastrophic :
hang, shutdown, etc.) in the software by inserting abnormal values
9
REQUIREMENTS TESTING
• Black box testing is carried out to test
whether the specified requirements
(functional, performance, security, etc.)
during the needs analysis process are met or
not.
• Each requirement must be traceable to a test
case using a traceability matrix
10
BLACK BOX TESTING
EXAMPLE
11
EQUIVALENCE CLASS
TESTING EXAMPLE
12
13
Whitebox
Testing
15
WHITE BOX
• A test case design method that uses a procedural design control
structure to obtain test cases.
• Also known as structural testing or glass box testing.
• Type :
• Basis path testing
• Control Structure Testing
16
TESTING ASPECT
• Ensures that all independent paths in the
module have been executed at least once
• Carry out all logical decisions on the right and
wrong sides
• Execute all loops at their limits and within their
operational limits
• Conduct internal data structures to ensure their
validity
17
TESTING FUNCTION
• Testing the software in terms of design and program code whether it
is able to produce functions, inputs and outputs that are in
accordance with the required specifications.
• White box testing examines the logic of the program code.
• The goal is to test all program statements (debug).
18
BASIS PATH TESTING
• A white box test that was first proposed by Tom
McCabe.
• Allows testers to measure the logical complexity
of a procedural design and use it as a guide to
establish the basis set of all execution paths.
• It is used to measure the logical complexity of a
procedural design and use it as a guide to
establish the basis set of all execution paths.
• The test cases obtained are used to work on the
basis set which guarantees execution of each
command min 1x during the test.
19
STEPS
• Define a flow graph based on the mapping
of the flow chart or the structure of the
algorithm
• Determine the size of the complexity
(cyclomatic complexity)
• Defining test cases
20
TRANSFORMATION
FLOW CHART → FLOW GRAPH
21
FLOW GRAPH SYMBOL
• Circle (node) : describes one/more procedural
commands and which contains a condition marked
by two/more links derived from it (predicate). The
sequence of processes and decisions can be
mapped in a single node.
• The arrows (edges/links) : represent the flow of
control. Each node must have a destination node.
• Region : an area bounded by edges and nodes.
Including areas outside the flow chart.
• Predicate node : a node that is a condition (2 or
more edges will out from here)
22
BASIS PATH TESTING NOTATION
The notation used to describe the path of execution is the flowchart
notation (or program graph), which uses the notation of circles (nodes)
and arrows (links or edges).
23
CYCLOMATIC COMPLEXITY
• Number stating the number of independent paths
/base paths of a program (representation of
program complexity)
• Indicates the number of tests (test cases) to be
executed
• An independent path is a path that traverses or
through a program where it was executed at least
once. The independent path is equal to the sum
of its Cyclomatic Complexity.
24
CALCULATION
• Cyclomatic Complexity can be obtained by
calculating the area that can be formed by the
graph (region)
• Cyclomatic Complexity V(G) can be calculated by
• V (G) = E – N + 2
• E = number of edges in flowgraph
• N = number of Nodes in the flowgraph
• Cyclomatic Complexity can also be calculated by
the formula:
• V (G) = P + 1
• P = number of Node predicates in flow graph
25
Var
A, B, C : integer
Begin
1. A := 10;
2. B :=5;
3. C:= 6;
4. If A>B then
5. C:=A+B
6. Else if A>C then
7. C=A
8. Else C:=B;
9. Endif
10. Endif
11. Writeln(‘Nilai C = ‘,C);
12. End
V(G) = Jumlah Region
V(G) = 3
Atau
V(G) = E – N + 2
V (G) = 11 – 10 + 2 = 3
Atau
V (G) = P + 1
V (G) = 2 + 1 = 3
Jadi cyclomatic complexity
untuk flowgraph adalah 3
1,2,3
4
5 6
7 8
9
10
11
12
R1
R2
R3
26
BASIS PATH TESTING
EXAMPLE
27
8
9
4
Turn the PDL to
flowgraph
28
Calculate the Cyclomatic Complexity
• V(G) = 6 R
• V(G) = 18 E – 14 N + 2 = 6
• V(G) = 5 P + 1 = 6
Path testing
• Path 1 : 1-2-10-11-13
• Path 2 : 1-2-10-12-13
• Path 3 : 1-2-3-10-11-13
• Path 4 : 1-2-3-4-5-8-9-2- ....
• Path 5 : 1-2-3-4-5-6-8-9-2-....
• Path 6 : 1-2-3-4-5-6-7-8-9-2-.........
R1
R2
R3
R4
R5
R6
29
TEST CASE
• Test case path 1: 1-2-10-11-13
• Price (k) = valid input, where k < i which is set below
Price (i) = -999 where 2 ≤ 2i ≤ 100
• Expected result: correct average based on the value of k and total appropriate.
• Note: Path 1 cannot be tested alone because it must be tested as part of testing
Paths 4, 5 and 6
• Test case Path 2: 1-2-10-12-13
• Price (i) = -999
• Expected result : mean -999, other totals at baseline
• Test case path 3: 1-2-3-10-11-13
• Try to process 101 values ​​or more.
• The first 100 values ​​must be valid
• Expected results: the same as test case 1
30
TEST CASE(CONT…)
• Test case path 4: 1-2-3-4-5-8-9-2- ....
• Value (i) = valid input where
i < 100 Value (k) < minimum, where k < i
• Expected result : true mean based on n values ​​and correct total
• Test case path 5: 1-2-3-4-5-6-8-9-2-....
• Value (i) = valid input where
I < 100 Value (k) > maximum, where k ≤ i
• Expected result : correct mean based on n values ​​and correct
total
• Test case path 6: 1-2-3-4-5-6-7-8-9-2-.........
• Value (i) = valid input where i < 100
• Expected result : correct mean based on n.i values ​​and
correct total.
31
EXPLANATION
• Each test case is executed and compared to get the
expected results.
• Once all the tests have been completed, the examiner
can be sure that all statements in the program have
been executed at least once.
• It is important to note that some independent paths
(eg path 1 in the example above) cannot be tested
separately because the data combinations required to
traverse those paths cannot be achieved in the normal
flow of the program.
• In such a case, paths are tested as part of another path
test.
32
CONTROL STRUCTURE TESTING
• Control structure testing is done as a
complement to base path testing
• Type :
• Conditional Testing
• Loop Testing
33
CONDITIONAL TESTING
• A white box test created to test logical
conditions in a program
• Types of conditions:
• Simple Conditional
• Compound Conditional
34
LOOP TESTING
• White box testing is
performed to test the
validity of the loop structure
• Types of loops:
• Simple
• Nesting
• Concatenate
• Unstructured
35
CLASS LEVEL TESTING
• Focuses on a single class and the
methods encapsulated by the class
• Test method:
• Random test
• Partition testing
36
INTERCLASS TESTING
• Started at the time of system
integration OO
• Can be done by applying random and
partition methods, scenario-based and
behavioral testing
• Method :
• Multiple Class
• Behavior Model
References
Lewis, W. E. (2009). Software Testing And Continuous Quality
Improvement ed. 3rd. Auerbach publications.
02
Majchrzak, T. A. (2012). Improving Software Testing: Technical And
Organizational Developments. Springer Science & Business Media.
03
Myers, G. J., Sandler, C., & Badgett, T. (2012). The Art Of Software
Testing. John Wiley & Sons.
04
Roger, S. P., & Bruce, R. M. (2019). Software Engineering: A
Practitioner’s Approach Ed.9th. McGraw-Hill Education.
01
THANK YOU
Insert the Subtitle of Your Presentation

More Related Content

What's hot

Software Testing Introduction
Software Testing IntroductionSoftware Testing Introduction
Software Testing IntroductionArunKumar5524
 
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Ankit Prajapati
 
Software Testing - Introduction
Software Testing - IntroductionSoftware Testing - Introduction
Software Testing - IntroductionAjeng Savitri
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing StrategiesAdeel Rasheed
 
Software Testing - Software Quality
Software Testing - Software QualitySoftware Testing - Software Quality
Software Testing - Software QualityAjeng Savitri
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testingHadi Fadlallah
 
Software Testing Basics
Software Testing BasicsSoftware Testing Basics
Software Testing BasicsBelal Raslan
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and typesConfiz
 
Software Testing Techniques: An Overview
Software Testing Techniques: An Overview Software Testing Techniques: An Overview
Software Testing Techniques: An Overview QA InfoTech
 
What is Integration Testing? | Edureka
What is Integration Testing? | EdurekaWhat is Integration Testing? | Edureka
What is Integration Testing? | EdurekaEdureka!
 
INTEGRATION TESTING
INTEGRATION TESTINGINTEGRATION TESTING
INTEGRATION TESTINGRohitK71
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-conceptsmedsherb
 
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
 

What's hot (20)

Types of testing
Types of testingTypes of testing
Types of testing
 
Software Testing Introduction
Software Testing IntroductionSoftware Testing Introduction
Software Testing Introduction
 
Gray box testing
Gray box testingGray box testing
Gray box testing
 
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
Software Testing - Part 1 (Techniques, Types, Levels, Methods, STLC, Bug Life...
 
Software Testing - Introduction
Software Testing - IntroductionSoftware Testing - Introduction
Software Testing - Introduction
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing Strategies
 
Black box & white-box testing technique
Black box & white-box testing techniqueBlack box & white-box testing technique
Black box & white-box testing technique
 
Software Testing - Software Quality
Software Testing - Software QualitySoftware Testing - Software Quality
Software Testing - Software Quality
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
 
WHITE BOX TESTING ashu.pptx
WHITE BOX TESTING ashu.pptxWHITE BOX TESTING ashu.pptx
WHITE BOX TESTING ashu.pptx
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
Software Testing Basics
Software Testing BasicsSoftware Testing Basics
Software Testing Basics
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
 
Software Testing Techniques: An Overview
Software Testing Techniques: An Overview Software Testing Techniques: An Overview
Software Testing Techniques: An Overview
 
Software testing
Software testing Software testing
Software testing
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
What is Integration Testing? | Edureka
What is Integration Testing? | EdurekaWhat is Integration Testing? | Edureka
What is Integration Testing? | Edureka
 
INTEGRATION TESTING
INTEGRATION TESTINGINTEGRATION TESTING
INTEGRATION TESTING
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
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)
 

Similar to Testing Technique (Part 2)

Chapter 14 software testing techniques
Chapter 14 software testing techniquesChapter 14 software testing techniques
Chapter 14 software testing techniquesSHREEHARI WADAWADAGI
 
Newsoftware testing-techniques-141114004511-conversion-gate01
Newsoftware testing-techniques-141114004511-conversion-gate01Newsoftware testing-techniques-141114004511-conversion-gate01
Newsoftware testing-techniques-141114004511-conversion-gate01Mr. Jhon
 
Software Engineering (Testing techniques)
Software Engineering (Testing techniques)Software Engineering (Testing techniques)
Software Engineering (Testing techniques)ShudipPal
 
Software Engineering (Testing techniques)
Software Engineering (Testing techniques)Software Engineering (Testing techniques)
Software Engineering (Testing techniques)ShudipPal
 
Seii unit6 software-testing-techniques
Seii unit6 software-testing-techniquesSeii unit6 software-testing-techniques
Seii unit6 software-testing-techniquesAhmad sohail Kakar
 
1414_lecturueueueueuueueeueueueuusuee_7.ppt
1414_lecturueueueueuueueeueueueuusuee_7.ppt1414_lecturueueueueuueueeueueueuusuee_7.ppt
1414_lecturueueueueuueueeueueueuusuee_7.pptabdulbasetalselwi
 
Class9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdfClass9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdfFarjanaParvin5
 
Path testing, data flow testing
Path testing, data flow testingPath testing, data flow testing
Path testing, data flow testingpriyasoundar
 
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 : Software testing
Software Engineering : Software testingSoftware Engineering : Software testing
Software Engineering : Software testingAjit Nayak
 
CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4SIMONTHOMAS S
 
Test Case Design
Test Case DesignTest Case Design
Test Case DesignVidya-QA
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and TechniqueFayis-QA
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and TechniqueANKUR-BA
 
Test Case Design & Technique
Test Case Design & TechniqueTest Case Design & Technique
Test Case Design & TechniqueRajesh-QA
 

Similar to Testing Technique (Part 2) (20)

Chapter 14 software testing techniques
Chapter 14 software testing techniquesChapter 14 software testing techniques
Chapter 14 software testing techniques
 
Newsoftware testing-techniques-141114004511-conversion-gate01
Newsoftware testing-techniques-141114004511-conversion-gate01Newsoftware testing-techniques-141114004511-conversion-gate01
Newsoftware testing-techniques-141114004511-conversion-gate01
 
Software Engineering (Testing techniques)
Software Engineering (Testing techniques)Software Engineering (Testing techniques)
Software Engineering (Testing techniques)
 
Software Engineering (Testing techniques)
Software Engineering (Testing techniques)Software Engineering (Testing techniques)
Software Engineering (Testing techniques)
 
Seii unit6 software-testing-techniques
Seii unit6 software-testing-techniquesSeii unit6 software-testing-techniques
Seii unit6 software-testing-techniques
 
Se unit 4
Se unit 4Se unit 4
Se unit 4
 
Unit 6
Unit 6Unit 6
Unit 6
 
1414_lecturueueueueuueueeueueueuusuee_7.ppt
1414_lecturueueueueuueueeueueueuusuee_7.ppt1414_lecturueueueueuueueeueueueuusuee_7.ppt
1414_lecturueueueueuueueeueueueuusuee_7.ppt
 
Class9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdfClass9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdf
 
11 whiteboxtesting
11 whiteboxtesting11 whiteboxtesting
11 whiteboxtesting
 
Testing part 2 bb
Testing part 2 bbTesting part 2 bb
Testing part 2 bb
 
Path testing, data flow testing
Path testing, data flow testingPath testing, data flow testing
Path testing, data flow testing
 
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
 
Software Engineering : Software testing
Software Engineering : Software testingSoftware Engineering : Software testing
Software Engineering : Software testing
 
CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4CS8494 SOFTWARE ENGINEERING Unit-4
CS8494 SOFTWARE ENGINEERING Unit-4
 
Unit 4 testing
Unit 4 testingUnit 4 testing
Unit 4 testing
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
 
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 & Technique
Test Case Design & TechniqueTest Case Design & Technique
Test Case Design & Technique
 

More from Ajeng Savitri

Software Testing Documentation
Software Testing DocumentationSoftware Testing Documentation
Software Testing DocumentationAjeng Savitri
 
Software Productivity Measurement
Software Productivity MeasurementSoftware Productivity Measurement
Software Productivity MeasurementAjeng Savitri
 
Software Testing Strategy (Part 2)
Software Testing Strategy (Part 2)Software Testing Strategy (Part 2)
Software Testing Strategy (Part 2)Ajeng Savitri
 
Methodology Selection Strategy
Methodology Selection Strategy Methodology Selection Strategy
Methodology Selection Strategy Ajeng Savitri
 
Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)Ajeng Savitri
 
Computer Evolution and Performance
Computer Evolution and PerformanceComputer Evolution and Performance
Computer Evolution and PerformanceAjeng Savitri
 
Requirement Gathering
Requirement GatheringRequirement Gathering
Requirement GatheringAjeng Savitri
 
Introduction to SDLC
Introduction to SDLC Introduction to SDLC
Introduction to SDLC Ajeng Savitri
 
Systems Analyst and Its Roles (2)
Systems Analyst and Its Roles (2)Systems Analyst and Its Roles (2)
Systems Analyst and Its Roles (2)Ajeng Savitri
 
Systems Analyst and Its Roles
Systems Analyst and Its RolesSystems Analyst and Its Roles
Systems Analyst and Its RolesAjeng Savitri
 
Algoritma Branch and Bound
Algoritma Branch and BoundAlgoritma Branch and Bound
Algoritma Branch and BoundAjeng Savitri
 
Algoritma Backtracking
Algoritma BacktrackingAlgoritma Backtracking
Algoritma BacktrackingAjeng Savitri
 
Algoritma Traversal dalam Graf
Algoritma Traversal dalam GrafAlgoritma Traversal dalam Graf
Algoritma Traversal dalam GrafAjeng Savitri
 

More from Ajeng Savitri (20)

Software Testing Documentation
Software Testing DocumentationSoftware Testing Documentation
Software Testing Documentation
 
Software Productivity Measurement
Software Productivity MeasurementSoftware Productivity Measurement
Software Productivity Measurement
 
Software Testing Strategy (Part 2)
Software Testing Strategy (Part 2)Software Testing Strategy (Part 2)
Software Testing Strategy (Part 2)
 
Testing Technique
Testing TechniqueTesting Technique
Testing Technique
 
Methodology Selection Strategy
Methodology Selection Strategy Methodology Selection Strategy
Methodology Selection Strategy
 
Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)Software Testing - Software Quality (Part 2)
Software Testing - Software Quality (Part 2)
 
Computer Evolution and Performance
Computer Evolution and PerformanceComputer Evolution and Performance
Computer Evolution and Performance
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
Activity Diagram
Activity DiagramActivity Diagram
Activity Diagram
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Requirement Gathering
Requirement GatheringRequirement Gathering
Requirement Gathering
 
Business Value
Business ValueBusiness Value
Business Value
 
Agile Development
Agile DevelopmentAgile Development
Agile Development
 
Structured Design
Structured DesignStructured Design
Structured Design
 
Introduction to SDLC
Introduction to SDLC Introduction to SDLC
Introduction to SDLC
 
Systems Analyst and Its Roles (2)
Systems Analyst and Its Roles (2)Systems Analyst and Its Roles (2)
Systems Analyst and Its Roles (2)
 
Systems Analyst and Its Roles
Systems Analyst and Its RolesSystems Analyst and Its Roles
Systems Analyst and Its Roles
 
Algoritma Branch and Bound
Algoritma Branch and BoundAlgoritma Branch and Bound
Algoritma Branch and Bound
 
Algoritma Backtracking
Algoritma BacktrackingAlgoritma Backtracking
Algoritma Backtracking
 
Algoritma Traversal dalam Graf
Algoritma Traversal dalam GrafAlgoritma Traversal dalam Graf
Algoritma Traversal dalam Graf
 

Recently uploaded

Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfPower Karaoke
 
buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutionsmonugehlot87
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number SystemsJheuzeDellosa
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 

Recently uploaded (20)

Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
The Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdfThe Evolution of Karaoke From Analog to App.pdf
The Evolution of Karaoke From Analog to App.pdf
 
buds n tech IT solutions
buds n  tech IT                solutionsbuds n  tech IT                solutions
buds n tech IT solutions
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
What is Binary Language? Computer Number Systems
What is Binary Language?  Computer Number SystemsWhat is Binary Language?  Computer Number Systems
What is Binary Language? Computer Number Systems
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 

Testing Technique (Part 2)

  • 1. MEETING 7 TESTING TECHNIQUES SOFTWARE TESTING By : Ajeng Savitri Puspaningrum, M.Kom
  • 4. 4 BLACK BOX • Also known as behavioral testing or functional testing. • Focus on the functional requirements of the software • As a complement to white box testing (not as an alternative) • Type : • Equivalence Class Testing • Limit Testing • Robustness Testing • Requirements Testing
  • 5. 5 TESTING ASPECT • Found errors in categories: • Incorrect or missing functions • Interface error • Error in data structure or external database access • Performance error • Initialization and termination error
  • 6. 6 EQUIVALENCE CLASS TESTING • Also known as Equivalence partitioning testing • Black box testing that divides the input domain of a program into data classes from which test cases will be derived • One test case covers one error class • The data set of each data class has the same effect on the program • Reducing the number of test cases: efficiency • An equivalence class represents an input condition that represents a valid or invalid state
  • 7. 7 LIMIT TESTING • Also known as boundary value analysis testing (BVA) • Black box test that tests the values ​​contained in the limit (limit) • General guideline - if an input condition is a range between a and b then the test cases (2 valid cases and 2 invalid cases)
  • 8. 8 ROBUSTNESS TESTING • Done by entering values ​​that are outside the specified requirements (requirements) • Purpose : to prove that there are no garbled events (catastrophic : hang, shutdown, etc.) in the software by inserting abnormal values
  • 9. 9 REQUIREMENTS TESTING • Black box testing is carried out to test whether the specified requirements (functional, performance, security, etc.) during the needs analysis process are met or not. • Each requirement must be traceable to a test case using a traceability matrix
  • 12. 12
  • 13. 13
  • 15. 15 WHITE BOX • A test case design method that uses a procedural design control structure to obtain test cases. • Also known as structural testing or glass box testing. • Type : • Basis path testing • Control Structure Testing
  • 16. 16 TESTING ASPECT • Ensures that all independent paths in the module have been executed at least once • Carry out all logical decisions on the right and wrong sides • Execute all loops at their limits and within their operational limits • Conduct internal data structures to ensure their validity
  • 17. 17 TESTING FUNCTION • Testing the software in terms of design and program code whether it is able to produce functions, inputs and outputs that are in accordance with the required specifications. • White box testing examines the logic of the program code. • The goal is to test all program statements (debug).
  • 18. 18 BASIS PATH TESTING • A white box test that was first proposed by Tom McCabe. • Allows testers to measure the logical complexity of a procedural design and use it as a guide to establish the basis set of all execution paths. • It is used to measure the logical complexity of a procedural design and use it as a guide to establish the basis set of all execution paths. • The test cases obtained are used to work on the basis set which guarantees execution of each command min 1x during the test.
  • 19. 19 STEPS • Define a flow graph based on the mapping of the flow chart or the structure of the algorithm • Determine the size of the complexity (cyclomatic complexity) • Defining test cases
  • 21. 21 FLOW GRAPH SYMBOL • Circle (node) : describes one/more procedural commands and which contains a condition marked by two/more links derived from it (predicate). The sequence of processes and decisions can be mapped in a single node. • The arrows (edges/links) : represent the flow of control. Each node must have a destination node. • Region : an area bounded by edges and nodes. Including areas outside the flow chart. • Predicate node : a node that is a condition (2 or more edges will out from here)
  • 22. 22 BASIS PATH TESTING NOTATION The notation used to describe the path of execution is the flowchart notation (or program graph), which uses the notation of circles (nodes) and arrows (links or edges).
  • 23. 23 CYCLOMATIC COMPLEXITY • Number stating the number of independent paths /base paths of a program (representation of program complexity) • Indicates the number of tests (test cases) to be executed • An independent path is a path that traverses or through a program where it was executed at least once. The independent path is equal to the sum of its Cyclomatic Complexity.
  • 24. 24 CALCULATION • Cyclomatic Complexity can be obtained by calculating the area that can be formed by the graph (region) • Cyclomatic Complexity V(G) can be calculated by • V (G) = E – N + 2 • E = number of edges in flowgraph • N = number of Nodes in the flowgraph • Cyclomatic Complexity can also be calculated by the formula: • V (G) = P + 1 • P = number of Node predicates in flow graph
  • 25. 25 Var A, B, C : integer Begin 1. A := 10; 2. B :=5; 3. C:= 6; 4. If A>B then 5. C:=A+B 6. Else if A>C then 7. C=A 8. Else C:=B; 9. Endif 10. Endif 11. Writeln(‘Nilai C = ‘,C); 12. End V(G) = Jumlah Region V(G) = 3 Atau V(G) = E – N + 2 V (G) = 11 – 10 + 2 = 3 Atau V (G) = P + 1 V (G) = 2 + 1 = 3 Jadi cyclomatic complexity untuk flowgraph adalah 3 1,2,3 4 5 6 7 8 9 10 11 12 R1 R2 R3
  • 27. 27 8 9 4 Turn the PDL to flowgraph
  • 28. 28 Calculate the Cyclomatic Complexity • V(G) = 6 R • V(G) = 18 E – 14 N + 2 = 6 • V(G) = 5 P + 1 = 6 Path testing • Path 1 : 1-2-10-11-13 • Path 2 : 1-2-10-12-13 • Path 3 : 1-2-3-10-11-13 • Path 4 : 1-2-3-4-5-8-9-2- .... • Path 5 : 1-2-3-4-5-6-8-9-2-.... • Path 6 : 1-2-3-4-5-6-7-8-9-2-......... R1 R2 R3 R4 R5 R6
  • 29. 29 TEST CASE • Test case path 1: 1-2-10-11-13 • Price (k) = valid input, where k < i which is set below Price (i) = -999 where 2 ≤ 2i ≤ 100 • Expected result: correct average based on the value of k and total appropriate. • Note: Path 1 cannot be tested alone because it must be tested as part of testing Paths 4, 5 and 6 • Test case Path 2: 1-2-10-12-13 • Price (i) = -999 • Expected result : mean -999, other totals at baseline • Test case path 3: 1-2-3-10-11-13 • Try to process 101 values ​​or more. • The first 100 values ​​must be valid • Expected results: the same as test case 1
  • 30. 30 TEST CASE(CONT…) • Test case path 4: 1-2-3-4-5-8-9-2- .... • Value (i) = valid input where i < 100 Value (k) < minimum, where k < i • Expected result : true mean based on n values ​​and correct total • Test case path 5: 1-2-3-4-5-6-8-9-2-.... • Value (i) = valid input where I < 100 Value (k) > maximum, where k ≤ i • Expected result : correct mean based on n values ​​and correct total • Test case path 6: 1-2-3-4-5-6-7-8-9-2-......... • Value (i) = valid input where i < 100 • Expected result : correct mean based on n.i values ​​and correct total.
  • 31. 31 EXPLANATION • Each test case is executed and compared to get the expected results. • Once all the tests have been completed, the examiner can be sure that all statements in the program have been executed at least once. • It is important to note that some independent paths (eg path 1 in the example above) cannot be tested separately because the data combinations required to traverse those paths cannot be achieved in the normal flow of the program. • In such a case, paths are tested as part of another path test.
  • 32. 32 CONTROL STRUCTURE TESTING • Control structure testing is done as a complement to base path testing • Type : • Conditional Testing • Loop Testing
  • 33. 33 CONDITIONAL TESTING • A white box test created to test logical conditions in a program • Types of conditions: • Simple Conditional • Compound Conditional
  • 34. 34 LOOP TESTING • White box testing is performed to test the validity of the loop structure • Types of loops: • Simple • Nesting • Concatenate • Unstructured
  • 35. 35 CLASS LEVEL TESTING • Focuses on a single class and the methods encapsulated by the class • Test method: • Random test • Partition testing
  • 36. 36 INTERCLASS TESTING • Started at the time of system integration OO • Can be done by applying random and partition methods, scenario-based and behavioral testing • Method : • Multiple Class • Behavior Model
  • 37. References Lewis, W. E. (2009). Software Testing And Continuous Quality Improvement ed. 3rd. Auerbach publications. 02 Majchrzak, T. A. (2012). Improving Software Testing: Technical And Organizational Developments. Springer Science & Business Media. 03 Myers, G. J., Sandler, C., & Badgett, T. (2012). The Art Of Software Testing. John Wiley & Sons. 04 Roger, S. P., & Bruce, R. M. (2019). Software Engineering: A Practitioner’s Approach Ed.9th. McGraw-Hill Education. 01
  • 38. THANK YOU Insert the Subtitle of Your Presentation