SlideShare a Scribd company logo
STRUCTURE
TESTING
http://appium-selenium.com/
STRUCTURE TESTING
• Also called as white box, glass box, clear box and transparent testing
• It test the structure of system i.e. code
• Tester needs knowledge for software code
• Identifies unreachable code
• In-depth knowledge about the programming language is necessary
to perform white box testing
• White-box testing can be applied at the unit, integration and system
levels of the software testing process
• We test code for Product/Software i.e. code coverage
http://appium-selenium.com/
STRUCTURE TESTING CONTD.
• Code coverage includes by 3 coverages:
• Statement Coverage
• Branch/Decision Coverage
• Path Coverage
http://appium-selenium.com/
STATEMENT COVERAGE
• This technique is aimed at exercising all programming statements
with minimal tests
• Covers only true conditions
• Verify what code is expected to do
• It doesn't verify every condition, we need branch and path
coverage
• Test case is executed in such a way that every node is traversed
at-least once
• Find shortest path such that all the Edges are covered at-least
once
http://appium-selenium.com/
STATEMENT COVERAGE
Example:
Read x
Read y
if x>y then
print "hello"
End if
x=2, y=1
Number of statements exercised
statement coverage = ------------------------------------------------ * 100
Total number of statements
Read x
Read y
If
x>y Print hello
False True
http://appium-selenium.com/
BRANCH/DECISION COVERAGE
• This technique is running a series of tests to ensure that all
branches are tested at least once
• If checks all scenarios of True/False i.e. IF,WHILE etc conditions
• It validated all the branches of code
• To calculate Branch Coverage, one has to find out the minimum
number of paths which will ensure that all the edges are traversed
• 100% decision coverage guarantees 100% statement coverage
• 100% statement coverage does not guarantee 100% decision
coverage
http://appium-selenium.com/
BRANCH COVERAGE
Example:
Read x
Read y
if x>y then
print "hello"
End if
X=10, Y=5
X=2, Y=10
Number of decision outcomes executed
Branch coverage = ------------------------------------------------------------ * 100
Total number of decision outcomes
Read x
Read y
If
x>y Print hello
False True
http://appium-selenium.com/
PATH COVERAGE
• This technique corresponds to testing all possible paths which
means that each statement and branch are covered
• Find all the paths from source to destination
• 100% Path coverage will imply 100% Statement coverage
• 100% Path coverage will imply 100% Branch/Decision coverage
http://appium-selenium.com/
BRANCH COVERAGE
Example:
Read x
Read y
if x>y then
print "hello"
End if
if x==1 then
print “hi”
End if
SC=1, BC=2 and PC=4
Number of decision outcomes executed
Branch coverage = ------------------------------------------------------------ * 100
Total number of decision outcomes
Read x
Read y
If
x<y Print hello
False True
If
x==1 Print hello
TrueFalse
http://appium-selenium.com/
THANKS
http://appium-selenium.com/

More Related Content

What's hot

Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
Hadi Fadlallah
 
Test cases
Test casesTest cases
Test cases
Chandra Maddigapu
 
Importance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and AgileImportance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and Agile
Chandan Mishra
 
Software testing Report
Software testing ReportSoftware testing Report
Test case techniques
Test case techniquesTest case techniques
Test case techniques
Pina Parmar
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
Alisha Roy
 
Boundary value analysis
Boundary value analysisBoundary value analysis
Boundary value analysis
Vadym Muliavka
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testing
Yisal Khan
 
Integration testing
Integration testingIntegration testing
Integration testing
Vaibhav Dash
 
scenario testing in software testing
 scenario testing in software testing scenario testing in software testing
scenario testing in software testing
durgaaarthi
 
Black box and white box testing
Black box and white box testingBlack box and white box testing
Black box and white box testing
AWADHESH PRATAP SINGH UNIVERSITY, REWA (M.P.)
 
What Is Functional Testing?
What Is Functional Testing?What Is Functional Testing?
What Is Functional Testing?
QA InfoTech
 
Unit 3 Control Flow Testing
Unit 3   Control Flow TestingUnit 3   Control Flow Testing
Unit 3 Control Flow Testing
ravikhimani
 
What are Software Testing Methodologies | Software Testing Techniques | Edureka
What are Software Testing Methodologies | Software Testing Techniques | EdurekaWhat are Software Testing Methodologies | Software Testing Techniques | Edureka
What are Software Testing Methodologies | Software Testing Techniques | Edureka
Edureka!
 
Intermediate code generator
Intermediate code generatorIntermediate code generator
Intermediate code generator
sanchi29
 
Software testing life cycle
Software testing life cycleSoftware testing life cycle
Software testing life cycle
Garuda Trainings
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
Confiz
 
Software Testing
Software TestingSoftware Testing
Software Testing
Vishal Singh
 
Generic Programming
Generic ProgrammingGeneric Programming
Generic Programming
Muhammad Alhalaby
 
Software testing
Software testingSoftware testing

What's hot (20)

Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
Test cases
Test casesTest cases
Test cases
 
Importance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and AgileImportance of Software testing in SDLC and Agile
Importance of Software testing in SDLC and Agile
 
Software testing Report
Software testing ReportSoftware testing Report
Software testing Report
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
 
Boundary value analysis
Boundary value analysisBoundary value analysis
Boundary value analysis
 
5 black box and grey box testing
5   black box and grey box testing5   black box and grey box testing
5 black box and grey box testing
 
Integration testing
Integration testingIntegration testing
Integration testing
 
scenario testing in software testing
 scenario testing in software testing scenario testing in software testing
scenario testing in software testing
 
Black box and white box testing
Black box and white box testingBlack box and white box testing
Black box and white box testing
 
What Is Functional Testing?
What Is Functional Testing?What Is Functional Testing?
What Is Functional Testing?
 
Unit 3 Control Flow Testing
Unit 3   Control Flow TestingUnit 3   Control Flow Testing
Unit 3 Control Flow Testing
 
What are Software Testing Methodologies | Software Testing Techniques | Edureka
What are Software Testing Methodologies | Software Testing Techniques | EdurekaWhat are Software Testing Methodologies | Software Testing Techniques | Edureka
What are Software Testing Methodologies | Software Testing Techniques | Edureka
 
Intermediate code generator
Intermediate code generatorIntermediate code generator
Intermediate code generator
 
Software testing life cycle
Software testing life cycleSoftware testing life cycle
Software testing life cycle
 
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
Software TestingSoftware Testing
Software Testing
 
Generic Programming
Generic ProgrammingGeneric Programming
Generic Programming
 
Software testing
Software testingSoftware testing
Software testing
 

Similar to Structure testing

White Box Testing
White Box Testing White Box Testing
White Box Testing
MariamKhan120
 
ScioTalks | Coverage Based Testing
ScioTalks | Coverage Based TestingScioTalks | Coverage Based Testing
ScioTalks | Coverage Based Testing
Scio Consulting
 
Unit 2 Unit level testing.ppt
Unit 2 Unit level testing.pptUnit 2 Unit level testing.ppt
Unit 2 Unit level testing.ppt
PerfectMe2
 
White-box testing.pptx
White-box testing.pptxWhite-box testing.pptx
White-box testing.pptx
halaalz3by
 
Class9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdfClass9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdf
FarjanaParvin5
 
Sva.pdf
Sva.pdfSva.pdf
Sva.pdf
SamHoney6
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
Jimi Patel
 
11 whiteboxtesting
11 whiteboxtesting11 whiteboxtesting
11 whiteboxtesting
asifusman1998
 
Mt s8 wbt_test_designtechniques
Mt s8 wbt_test_designtechniquesMt s8 wbt_test_designtechniques
Mt s8 wbt_test_designtechniques
TestingGeeks
 
Code coverage
Code coverageCode coverage
Code coverage
Return on Intelligence
 
Test Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTest Coverage: An Art and a Science
Test Coverage: An Art and a Science
TeamQualityPro
 
Finding Bugs Faster with Assertion Based Verification (ABV)
Finding Bugs Faster with Assertion Based Verification (ABV)Finding Bugs Faster with Assertion Based Verification (ABV)
Finding Bugs Faster with Assertion Based Verification (ABV)
DVClub
 
Application Security
Application SecurityApplication Security
Application Security
UTD Computer Security Group
 
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
 
Smart Testing-Test Less, Cover More, Benefit Manifold- STeP-IN Summit 2014 Sp...
Smart Testing-Test Less, Cover More, Benefit Manifold- STeP-IN Summit 2014 Sp...Smart Testing-Test Less, Cover More, Benefit Manifold- STeP-IN Summit 2014 Sp...
Smart Testing-Test Less, Cover More, Benefit Manifold- STeP-IN Summit 2014 Sp...
Harbinger Systems - HRTech Builder of Choice
 
CodeChecker Overview Nov 2019
CodeChecker Overview Nov 2019CodeChecker Overview Nov 2019
CodeChecker Overview Nov 2019
Olivera Milenkovic
 
Java Exception Handling
Java Exception HandlingJava Exception Handling
Java Exception Handling
DeeptiJava
 
Test Levels & Techniques
Test Levels & TechniquesTest Levels & Techniques
Test Levels & Techniques
Dhanasekaran Nagarajan
 
Unit Testng with PHP Unit - A Step by Step Training
Unit Testng with PHP Unit - A Step by Step TrainingUnit Testng with PHP Unit - A Step by Step Training
Unit Testng with PHP Unit - A Step by Step Training
Ram Awadh Prasad, PMP
 

Similar to Structure testing (20)

White Box Testing
White Box Testing White Box Testing
White Box Testing
 
ScioTalks | Coverage Based Testing
ScioTalks | Coverage Based TestingScioTalks | Coverage Based Testing
ScioTalks | Coverage Based Testing
 
Unit 2 Unit level testing.ppt
Unit 2 Unit level testing.pptUnit 2 Unit level testing.ppt
Unit 2 Unit level testing.ppt
 
White-box testing.pptx
White-box testing.pptxWhite-box testing.pptx
White-box testing.pptx
 
Class9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdfClass9_SW_Testing_Strategies.pdf
Class9_SW_Testing_Strategies.pdf
 
Sva.pdf
Sva.pdfSva.pdf
Sva.pdf
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
 
11 whiteboxtesting
11 whiteboxtesting11 whiteboxtesting
11 whiteboxtesting
 
Mt s8 wbt_test_designtechniques
Mt s8 wbt_test_designtechniquesMt s8 wbt_test_designtechniques
Mt s8 wbt_test_designtechniques
 
Code coverage
Code coverageCode coverage
Code coverage
 
Test Coverage: An Art and a Science
Test Coverage: An Art and a ScienceTest Coverage: An Art and a Science
Test Coverage: An Art and a Science
 
Finding Bugs Faster with Assertion Based Verification (ABV)
Finding Bugs Faster with Assertion Based Verification (ABV)Finding Bugs Faster with Assertion Based Verification (ABV)
Finding Bugs Faster with Assertion Based Verification (ABV)
 
Application Security
Application SecurityApplication Security
Application Security
 
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)
 
Smart Testing-Test Less, Cover More, Benefit Manifold- STeP-IN Summit 2014 Sp...
Smart Testing-Test Less, Cover More, Benefit Manifold- STeP-IN Summit 2014 Sp...Smart Testing-Test Less, Cover More, Benefit Manifold- STeP-IN Summit 2014 Sp...
Smart Testing-Test Less, Cover More, Benefit Manifold- STeP-IN Summit 2014 Sp...
 
CodeChecker Overview Nov 2019
CodeChecker Overview Nov 2019CodeChecker Overview Nov 2019
CodeChecker Overview Nov 2019
 
Java Exception Handling
Java Exception HandlingJava Exception Handling
Java Exception Handling
 
Test Levels & Techniques
Test Levels & TechniquesTest Levels & Techniques
Test Levels & Techniques
 
Unit Testng with PHP Unit - A Step by Step Training
Unit Testng with PHP Unit - A Step by Step TrainingUnit Testng with PHP Unit - A Step by Step Training
Unit Testng with PHP Unit - A Step by Step Training
 

More from Vaibhav Dash

Why need software testing
Why need software testingWhy need software testing
Why need software testing
Vaibhav Dash
 
What is testing
What is testingWhat is testing
What is testing
Vaibhav Dash
 
Waterfall model
Waterfall modelWaterfall model
Waterfall model
Vaibhav Dash
 
V model
V modelV model
V model
Vaibhav Dash
 
Types of test tools
Types of test toolsTypes of test tools
Types of test tools
Vaibhav Dash
 
Types of reviews
Types of reviewsTypes of reviews
Types of reviews
Vaibhav Dash
 
The psychology of testing
The psychology of testingThe psychology of testing
The psychology of testing
Vaibhav Dash
 
Test progress, monitoring and control
Test progress, monitoring and controlTest progress, monitoring and control
Test progress, monitoring and control
Vaibhav Dash
 
Test organization
Test organizationTest organization
Test organization
Vaibhav Dash
 
System testing
System testingSystem testing
System testing
Vaibhav Dash
 
Static testing
Static testingStatic testing
Static testing
Vaibhav Dash
 
Static analysis by tools
Static analysis by toolsStatic analysis by tools
Static analysis by tools
Vaibhav Dash
 
Specification based (black-box) testing techniques
Specification based (black-box) testing techniquesSpecification based (black-box) testing techniques
Specification based (black-box) testing techniques
Vaibhav Dash
 
Seven testing principles
Seven testing principlesSeven testing principles
Seven testing principles
Vaibhav Dash
 
Roles and responsibilties in reviews
Roles and responsibilties in reviewsRoles and responsibilties in reviews
Roles and responsibilties in reviews
Vaibhav Dash
 
Risk & testing
Risk & testingRisk & testing
Risk & testing
Vaibhav Dash
 
Rapid application development model
Rapid application development modelRapid application development model
Rapid application development model
Vaibhav Dash
 
Phases of review
Phases of reviewPhases of review
Phases of review
Vaibhav Dash
 
Non functional testing
Non functional testingNon functional testing
Non functional testing
Vaibhav Dash
 
Maintenance testing
Maintenance testingMaintenance testing
Maintenance testing
Vaibhav Dash
 

More from Vaibhav Dash (20)

Why need software testing
Why need software testingWhy need software testing
Why need software testing
 
What is testing
What is testingWhat is testing
What is testing
 
Waterfall model
Waterfall modelWaterfall model
Waterfall model
 
V model
V modelV model
V model
 
Types of test tools
Types of test toolsTypes of test tools
Types of test tools
 
Types of reviews
Types of reviewsTypes of reviews
Types of reviews
 
The psychology of testing
The psychology of testingThe psychology of testing
The psychology of testing
 
Test progress, monitoring and control
Test progress, monitoring and controlTest progress, monitoring and control
Test progress, monitoring and control
 
Test organization
Test organizationTest organization
Test organization
 
System testing
System testingSystem testing
System testing
 
Static testing
Static testingStatic testing
Static testing
 
Static analysis by tools
Static analysis by toolsStatic analysis by tools
Static analysis by tools
 
Specification based (black-box) testing techniques
Specification based (black-box) testing techniquesSpecification based (black-box) testing techniques
Specification based (black-box) testing techniques
 
Seven testing principles
Seven testing principlesSeven testing principles
Seven testing principles
 
Roles and responsibilties in reviews
Roles and responsibilties in reviewsRoles and responsibilties in reviews
Roles and responsibilties in reviews
 
Risk & testing
Risk & testingRisk & testing
Risk & testing
 
Rapid application development model
Rapid application development modelRapid application development model
Rapid application development model
 
Phases of review
Phases of reviewPhases of review
Phases of review
 
Non functional testing
Non functional testingNon functional testing
Non functional testing
 
Maintenance testing
Maintenance testingMaintenance testing
Maintenance testing
 

Recently uploaded

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 

Structure testing

  • 2. STRUCTURE TESTING • Also called as white box, glass box, clear box and transparent testing • It test the structure of system i.e. code • Tester needs knowledge for software code • Identifies unreachable code • In-depth knowledge about the programming language is necessary to perform white box testing • White-box testing can be applied at the unit, integration and system levels of the software testing process • We test code for Product/Software i.e. code coverage http://appium-selenium.com/
  • 3. STRUCTURE TESTING CONTD. • Code coverage includes by 3 coverages: • Statement Coverage • Branch/Decision Coverage • Path Coverage http://appium-selenium.com/
  • 4. STATEMENT COVERAGE • This technique is aimed at exercising all programming statements with minimal tests • Covers only true conditions • Verify what code is expected to do • It doesn't verify every condition, we need branch and path coverage • Test case is executed in such a way that every node is traversed at-least once • Find shortest path such that all the Edges are covered at-least once http://appium-selenium.com/
  • 5. STATEMENT COVERAGE Example: Read x Read y if x>y then print "hello" End if x=2, y=1 Number of statements exercised statement coverage = ------------------------------------------------ * 100 Total number of statements Read x Read y If x>y Print hello False True http://appium-selenium.com/
  • 6. BRANCH/DECISION COVERAGE • This technique is running a series of tests to ensure that all branches are tested at least once • If checks all scenarios of True/False i.e. IF,WHILE etc conditions • It validated all the branches of code • To calculate Branch Coverage, one has to find out the minimum number of paths which will ensure that all the edges are traversed • 100% decision coverage guarantees 100% statement coverage • 100% statement coverage does not guarantee 100% decision coverage http://appium-selenium.com/
  • 7. BRANCH COVERAGE Example: Read x Read y if x>y then print "hello" End if X=10, Y=5 X=2, Y=10 Number of decision outcomes executed Branch coverage = ------------------------------------------------------------ * 100 Total number of decision outcomes Read x Read y If x>y Print hello False True http://appium-selenium.com/
  • 8. PATH COVERAGE • This technique corresponds to testing all possible paths which means that each statement and branch are covered • Find all the paths from source to destination • 100% Path coverage will imply 100% Statement coverage • 100% Path coverage will imply 100% Branch/Decision coverage http://appium-selenium.com/
  • 9. BRANCH COVERAGE Example: Read x Read y if x>y then print "hello" End if if x==1 then print “hi” End if SC=1, BC=2 and PC=4 Number of decision outcomes executed Branch coverage = ------------------------------------------------------------ * 100 Total number of decision outcomes Read x Read y If x<y Print hello False True If x==1 Print hello TrueFalse http://appium-selenium.com/