SlideShare a Scribd company logo
SOFTWARE
TESTING
Name : Karuna Kak
PRN :12030121030
Course : BCA (2012-15)
TESTING
• Software testing is a process to find out
the bugs and errors from the applications.
• Dynamic Testing methodologies are of 2
types:
i) Specification based / Functional / Black
box testing
ii) Structured based / Non-functional/
White box testing
BLACK BOX TESTING
• Black Box Testing is a method in which we
focus on inputs and output of the software
system without bothering about internal
knowledge of the software program.
• 5 Types of Black box testing:
STATE TRANSITION DIAGRAM
DECISION TABLE TECHNIQUE
USE CASE TECHNIQUE
EQUIVALENCE PARTITIONING
BOUNDARY VALUE ANAYSIS
STATE TRANSITION DIAGRAM
• It is a type of black box testing
• In this technique various test cases are
designed to execute the valid as well as
invalid transactions.
• While preparing this diagram, states can
be start state, waiting state, execution
state, holding state, ending state.
STATE TRANSITION DIAGRAM
Example: ATM pin entry
Start
Wait for
pin no.
To
validate
Access
to
account
Exit
First
entry
INPUT:
• Card
•Pin no.
OUTPUT:
•Access to account
DECISION TABLE TECHNIQUE
• It is a type of black box testing which has a
tabular representations.
• We check all the permutation and
combination of input as well as
corresponding output.
• Table consists of 2 sections:
i) Stub section
ii) Entry section
DECISION TABLE TECHNIQUE
Example Discount policy
• Consider the following decision tree and make
the decision table on discount policy
Type of customer Order size Discount
Faculty 6 or more 25%
less than 6 Nil
Discount
Policy
50 or more 15%
Individual 20-49 5%
DECISION TABLE TECHNIQUE
Example Discount policy
Condition Stub
1 2 3 4
Customer is a faculty member Y Y N N
order size 6 or more Y N N N
order size < 6 N Y N N
Customer is an individual N N Y Y
order size 50 or more N N Y N
order size 20-49 N N N Y
Action Stub
25% X - - -
0% - X - -
15% - - X
5% - - - X
Condition Entry
Action Entry
USE CASE TECHNIQUE
• A use case is a description of a particular
use of the system by an actor.
• Use case describes the interaction
between the use case and the actor in
order to achieve a specific task.
• Use case testing is a black box test design
in which test cases are designed to
execute the users scenario.
Start
Wait for
pin no.
To
validate
Access
to
account
Exit
First
entry
INPUT:
• Card
•Pin no.
OUTPUT:
•Access to account
USE CASE TECHNIQUE
Example: ATM machine
Considering the state transition diagram we
prepare a use case table in the next slide
USE CASE TECHNIQUE
Example: ATM machine
Steps Description
Main success scenario
Extensions
1
2
3
4
5
2a
4a
4b
4c
A: Insert card
Validate and ask for Pin number
Enter PIN
Validate Pin
Allow access to account
Card not valid
PIN number incorrect
Pin Valid
Pin Invalid thrice, Exit
EQUIVALENCE PARTIONING
• Equivalence partitioning is a type of black
box testing.
• Divide the input data into equivalence
classes/partition.
• Partition represent Valid input values.
• Partition represent Invalid input values.
EQUIVALENCE PARTIONING
Example
• One of the fields on a form contains a text box
which accepts numeric values in the range of
18 to 25. Identify the Equivalence class?
• The text box accepts numeric values in the
range 18 to 25.So this class becomes our valid
class.
– Class I: values < 18 => invalid class
– Class II: 18 to 25 => valid class
– Class III: values > 25 => invalid class
BOUNDARY VALUE ANALYSIS
• Boundary Value Analysis is also called range
checking.
• Equivalence partitioning and boundary value
analysis are closely related and can be used
together at all levels of testing.
• Valid boundaries (in the valid partitions)
• Invalid boundaries (in the invalid partitions)
• 3 Classes:
i)On the Boundary
ii) Below the Boundary
iii) Above the Boundary
BOUNDARY VALUE ANALYSIS
Example
• A program validates a numeric field as
follows: values less than 10 are rejected,
values between 10 and 21 are accepted,
values greater than or equal to 22 are
rejected. Which of the following covers the
MOST boundary values?
– Class I: values < 10 => Above the Boundary
– Class II: 10 to 21 => On the Boundary
– Class III: values >= 22 => Below the Boundary
Black Box Testing
Advantages Disadvantages
•Well suited and efficient for large code
segments.
•Code Access not required.
•Clearly separates user's perspective
from the developer's perspective
through visibly defined roles.
•Large numbers of moderately skilled
testers can test the application with no
knowledge of implementation,
programming language or operating
systems.
•Limited Coverage since only a selected
number of test scenarios are actually
performed.
•Inefficient testing, due to the fact that
the tester only has limited knowledge
about an application.
•Blind Coverage, since the tester cannot
target specific code segments or error
prone areas.
•The test cases are difficult to design.
WHITE BOX TESTING
• White Box Testing also called as structural
testing because we check the code and
control structures used in a program.
• 4 Types of White box testing:
BASIC PATH TESTING
LOOP TESTING
CONTROL STRUCTURE TESTING
BASIC PATH TESTING
• Known as : Control flow, program graph.
• 2 symbols used: circle = node
line = flow
• We calculate the cyclomatic complexity
using the formula.
 Cc=E-N+2
Cc=P+1
Cc= no. of regions
BASIC PATH TESTING Example
Draw a flowchart and flow graph to calculate factorial of
a number and calculate its cyclomatic complexity.
FLOW CHART FLOW GRAPH
Read N
start
C=1, Fact=1
Is
C=N
Fact=Fact*C
stop
Print
false
true
2,3
1
4
5 6
7
CYCLOMATIC
COMPLEXITY
1) CC = E – N +2
=6-6+2
=2
2) CC = P+1
=1+1
=2
3) No. of region=2
WHITE BOX TESTING
Advantages Disadvantages
•As the tester has knowledge of the
source code, it becomes very easy to
find out which type of data can help in
testing the application effectively.
•It helps in optimizing the code.
•Extra lines of code can be removed
which can bring in hidden defects.
•Due to the tester's knowledge about the
code, maximum coverage is attained
during test scenario writing.
•Due to the fact that a skilled tester is
needed to perform white box testing, the
costs are increased.
•Sometimes it is impossible to look into
every nook and corner to find out hidden
errors that may create problems as many
paths will go untested.
•It is difficult to maintain white box
testing as the use of specialized tools
like code analyzers and debugging tools
are required.

More Related Content

Similar to presentation_testing_1455044600_187410.pptx

Unit 2 - Test Case Design
Unit 2 - Test Case DesignUnit 2 - Test Case Design
Unit 2 - Test Case Design
Selvi Vts
 
9 testing-seatwork-premid
9 testing-seatwork-premid9 testing-seatwork-premid
9 testing-seatwork-premid
Lafayette Kirsi Noel
 
Implementing Blackbox Testing
Implementing Blackbox TestingImplementing Blackbox Testing
Implementing Blackbox Testing
Edureka!
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
Pina Parmar
 
Unit 2 Unit level testing.ppt
Unit 2 Unit level testing.pptUnit 2 Unit level testing.ppt
Unit 2 Unit level testing.ppt
PerfectMe2
 
Software Testing - Test Design Techniques
Software Testing - Test Design TechniquesSoftware Testing - Test Design Techniques
Software Testing - Test Design Techniques
Regina Vitalicio
 
Testing Technique (Part 2)
Testing Technique (Part 2)Testing Technique (Part 2)
Testing Technique (Part 2)
Ajeng Savitri
 
Se unit 4
Se unit 4Se unit 4
Se unit 4
abdulsubhan44
 
Software Testing-Dynamic testing technique-Mazenet solution
Software Testing-Dynamic testing technique-Mazenet solutionSoftware Testing-Dynamic testing technique-Mazenet solution
Software Testing-Dynamic testing technique-Mazenet solution
Mazenetsolution
 
Chapter 14 software testing techniques
Chapter 14 software testing techniquesChapter 14 software testing techniques
Chapter 14 software testing techniques
SHREEHARI WADAWADAGI
 
Testing lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqaTesting lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqa
MuhammadAdnan845624
 
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ ykblckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
SMayankSharma
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
Hadi Fadlallah
 
Testcase design techniques final
Testcase design techniques finalTestcase design techniques final
Testcase design techniques final
shraavank
 
Test Case Design & Technique
Test Case Design & TechniqueTest Case Design & Technique
Test Case Design & Technique
Rajesh-QA
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and Technique
Sachin-QA
 
Test Case Design
Test Case DesignTest Case Design
Test Case Design
Vidya-QA
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and Technique
Fayis-QA
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and Technique
ANKUR-BA
 
Seii unit6 software-testing-techniques
Seii unit6 software-testing-techniquesSeii unit6 software-testing-techniques
Seii unit6 software-testing-techniques
Ahmad sohail Kakar
 

Similar to presentation_testing_1455044600_187410.pptx (20)

Unit 2 - Test Case Design
Unit 2 - Test Case DesignUnit 2 - Test Case Design
Unit 2 - Test Case Design
 
9 testing-seatwork-premid
9 testing-seatwork-premid9 testing-seatwork-premid
9 testing-seatwork-premid
 
Implementing Blackbox Testing
Implementing Blackbox TestingImplementing Blackbox Testing
Implementing Blackbox Testing
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 
Unit 2 Unit level testing.ppt
Unit 2 Unit level testing.pptUnit 2 Unit level testing.ppt
Unit 2 Unit level testing.ppt
 
Software Testing - Test Design Techniques
Software Testing - Test Design TechniquesSoftware Testing - Test Design Techniques
Software Testing - Test Design Techniques
 
Testing Technique (Part 2)
Testing Technique (Part 2)Testing Technique (Part 2)
Testing Technique (Part 2)
 
Se unit 4
Se unit 4Se unit 4
Se unit 4
 
Software Testing-Dynamic testing technique-Mazenet solution
Software Testing-Dynamic testing technique-Mazenet solutionSoftware Testing-Dynamic testing technique-Mazenet solution
Software Testing-Dynamic testing technique-Mazenet solution
 
Chapter 14 software testing techniques
Chapter 14 software testing techniquesChapter 14 software testing techniques
Chapter 14 software testing techniques
 
Testing lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqaTesting lab manual Testing lab manual sqa
Testing lab manual Testing lab manual sqa
 
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ ykblckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
blckboxtesting.ppt il.;io'/ ulio'[ yjko8i[0'-p/ yk
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
Testcase design techniques final
Testcase design techniques finalTestcase design techniques final
Testcase design techniques final
 
Test Case Design & Technique
Test Case Design & TechniqueTest Case Design & Technique
Test Case Design & Technique
 
Test Case Design and Technique
Test Case Design and TechniqueTest Case Design and Technique
Test Case Design and Technique
 
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
 
Seii unit6 software-testing-techniques
Seii unit6 software-testing-techniquesSeii unit6 software-testing-techniques
Seii unit6 software-testing-techniques
 

Recently uploaded

The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
zsjl4mimo
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Fernanda Palhano
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
g4dpvqap0
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
aqzctr7x
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
kuntobimo2016
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
Timothy Spann
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
manishkhaire30
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
jerlynmaetalle
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
Sachin Paul
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
74nqk8xf
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
jitskeb
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
Bill641377
 

Recently uploaded (20)

The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
 
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdfUdemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
Udemy_2024_Global_Learning_Skills_Trends_Report (1).pdf
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
06-12-2024-BudapestDataForum-BuildingReal-timePipelineswithFLaNK AIM
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
Influence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business PlanInfluence of Marketing Strategy and Market Competition on Business Plan
Influence of Marketing Strategy and Market Competition on Business Plan
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 
Experts live - Improving user adoption with AI
Experts live - Improving user adoption with AIExperts live - Improving user adoption with AI
Experts live - Improving user adoption with AI
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
 

presentation_testing_1455044600_187410.pptx

  • 1. SOFTWARE TESTING Name : Karuna Kak PRN :12030121030 Course : BCA (2012-15)
  • 2. TESTING • Software testing is a process to find out the bugs and errors from the applications. • Dynamic Testing methodologies are of 2 types: i) Specification based / Functional / Black box testing ii) Structured based / Non-functional/ White box testing
  • 3. BLACK BOX TESTING • Black Box Testing is a method in which we focus on inputs and output of the software system without bothering about internal knowledge of the software program. • 5 Types of Black box testing: STATE TRANSITION DIAGRAM DECISION TABLE TECHNIQUE USE CASE TECHNIQUE EQUIVALENCE PARTITIONING BOUNDARY VALUE ANAYSIS
  • 4. STATE TRANSITION DIAGRAM • It is a type of black box testing • In this technique various test cases are designed to execute the valid as well as invalid transactions. • While preparing this diagram, states can be start state, waiting state, execution state, holding state, ending state.
  • 5. STATE TRANSITION DIAGRAM Example: ATM pin entry Start Wait for pin no. To validate Access to account Exit First entry INPUT: • Card •Pin no. OUTPUT: •Access to account
  • 6. DECISION TABLE TECHNIQUE • It is a type of black box testing which has a tabular representations. • We check all the permutation and combination of input as well as corresponding output. • Table consists of 2 sections: i) Stub section ii) Entry section
  • 7. DECISION TABLE TECHNIQUE Example Discount policy • Consider the following decision tree and make the decision table on discount policy Type of customer Order size Discount Faculty 6 or more 25% less than 6 Nil Discount Policy 50 or more 15% Individual 20-49 5%
  • 8. DECISION TABLE TECHNIQUE Example Discount policy Condition Stub 1 2 3 4 Customer is a faculty member Y Y N N order size 6 or more Y N N N order size < 6 N Y N N Customer is an individual N N Y Y order size 50 or more N N Y N order size 20-49 N N N Y Action Stub 25% X - - - 0% - X - - 15% - - X 5% - - - X Condition Entry Action Entry
  • 9. USE CASE TECHNIQUE • A use case is a description of a particular use of the system by an actor. • Use case describes the interaction between the use case and the actor in order to achieve a specific task. • Use case testing is a black box test design in which test cases are designed to execute the users scenario.
  • 10. Start Wait for pin no. To validate Access to account Exit First entry INPUT: • Card •Pin no. OUTPUT: •Access to account USE CASE TECHNIQUE Example: ATM machine Considering the state transition diagram we prepare a use case table in the next slide
  • 11. USE CASE TECHNIQUE Example: ATM machine Steps Description Main success scenario Extensions 1 2 3 4 5 2a 4a 4b 4c A: Insert card Validate and ask for Pin number Enter PIN Validate Pin Allow access to account Card not valid PIN number incorrect Pin Valid Pin Invalid thrice, Exit
  • 12. EQUIVALENCE PARTIONING • Equivalence partitioning is a type of black box testing. • Divide the input data into equivalence classes/partition. • Partition represent Valid input values. • Partition represent Invalid input values.
  • 13. EQUIVALENCE PARTIONING Example • One of the fields on a form contains a text box which accepts numeric values in the range of 18 to 25. Identify the Equivalence class? • The text box accepts numeric values in the range 18 to 25.So this class becomes our valid class. – Class I: values < 18 => invalid class – Class II: 18 to 25 => valid class – Class III: values > 25 => invalid class
  • 14. BOUNDARY VALUE ANALYSIS • Boundary Value Analysis is also called range checking. • Equivalence partitioning and boundary value analysis are closely related and can be used together at all levels of testing. • Valid boundaries (in the valid partitions) • Invalid boundaries (in the invalid partitions) • 3 Classes: i)On the Boundary ii) Below the Boundary iii) Above the Boundary
  • 15. BOUNDARY VALUE ANALYSIS Example • A program validates a numeric field as follows: values less than 10 are rejected, values between 10 and 21 are accepted, values greater than or equal to 22 are rejected. Which of the following covers the MOST boundary values? – Class I: values < 10 => Above the Boundary – Class II: 10 to 21 => On the Boundary – Class III: values >= 22 => Below the Boundary
  • 16. Black Box Testing Advantages Disadvantages •Well suited and efficient for large code segments. •Code Access not required. •Clearly separates user's perspective from the developer's perspective through visibly defined roles. •Large numbers of moderately skilled testers can test the application with no knowledge of implementation, programming language or operating systems. •Limited Coverage since only a selected number of test scenarios are actually performed. •Inefficient testing, due to the fact that the tester only has limited knowledge about an application. •Blind Coverage, since the tester cannot target specific code segments or error prone areas. •The test cases are difficult to design.
  • 17. WHITE BOX TESTING • White Box Testing also called as structural testing because we check the code and control structures used in a program. • 4 Types of White box testing: BASIC PATH TESTING LOOP TESTING CONTROL STRUCTURE TESTING
  • 18. BASIC PATH TESTING • Known as : Control flow, program graph. • 2 symbols used: circle = node line = flow • We calculate the cyclomatic complexity using the formula.  Cc=E-N+2 Cc=P+1 Cc= no. of regions
  • 19. BASIC PATH TESTING Example Draw a flowchart and flow graph to calculate factorial of a number and calculate its cyclomatic complexity. FLOW CHART FLOW GRAPH Read N start C=1, Fact=1 Is C=N Fact=Fact*C stop Print false true 2,3 1 4 5 6 7 CYCLOMATIC COMPLEXITY 1) CC = E – N +2 =6-6+2 =2 2) CC = P+1 =1+1 =2 3) No. of region=2
  • 20. WHITE BOX TESTING Advantages Disadvantages •As the tester has knowledge of the source code, it becomes very easy to find out which type of data can help in testing the application effectively. •It helps in optimizing the code. •Extra lines of code can be removed which can bring in hidden defects. •Due to the tester's knowledge about the code, maximum coverage is attained during test scenario writing. •Due to the fact that a skilled tester is needed to perform white box testing, the costs are increased. •Sometimes it is impossible to look into every nook and corner to find out hidden errors that may create problems as many paths will go untested. •It is difficult to maintain white box testing as the use of specialized tools like code analyzers and debugging tools are required.