SlideShare uma empresa Scribd logo
1 de 18
Black Box Testing or Behavioral
            Testing
                                         Saranya.V
                                           AP/CSE,
    Sri Vidya College of Engineering & Technology,
                                     Virudhunagar
• Only input & output functionality are visible.
• Inputs are given and outputs are compared
  against specification.
Features:
 Correct outputs from inputs properly.
 Test cases are designed from user requirements.
 Test planning can begin early in the software
  process.
 Looking at the program from an external point
  of view.
Black Box Testing
                          Inputs causing
 Input Test Data      I   anomalous
                          behavior


      System



                            Outputs which
output Test Results   O     reveal the
                            presence of
                            defects
Black Box Testing is a “Expert” in
                 Finding
•   Incorrect or missing functions.
•   Interface errors
•   Behavior or performance errors.
•   Initialization and termination errors.
•   Errors in data structures
•   External database errors.
Graph Based Testing Methods
• First step in Black Box Testing to understand the
  objects
• Used to connect the objects.
• Next step is to define a series of tests that verify all
  the objects.
“To accomplish these steps, the software engineer
  begins by creating”
• Graph: collection of nodes that represent objects.
• Links: Relationship between objects.
• Node Weights: Properties of nodes
• Link Weights: Characteristics of a link.
Sample Graph Notation
                         Directed Link
         Object 1                                      Object 2




                                  Object 3


•Nodes are represented as circles.
•Links between nodes are categorized as:
     •Directed Link (one direction)
     •Bidirectional or Undirected or Symmetric Link: both directions.
     •Parceled links: different relationships established between nodes.
1. Equivalence Partitioning
• One of the black box testing method that
  divides the input domain of a program into
  classes
• Define a test case that uncovers classes of
  errors.
• Equivalence class represents a set of valid or
  invalid states for input conditions.
2. Boundary Value Analysis (BVA)
• Errors tend to occur at the boundaries of the input
  domain rather than in center.
• So we need boundary value analysis (testing
  technique)
• BVA derived test cases from the output domain.
3. Comparison Testing
• If the output from the each version is same,
  assume all implementations are correct.
• If the output is different, each of the
  applications is investigated to determine if a
  defect in one or more versions is responsible
  for the difference.
• We have to provide same input and check the
  output.
4. Orthogonal Array Testing
• Used to finding errors associated with region
  faults.
• number of inputs to the system is relatively
  small, but too large to allow for exhaustive
  testing of every possible input to
  the systems.
• It provides good test coverage with test
  cases.
5. Syntax Driven Testing
• Very good methodology for compliers and
   parsers.
• Use BNF notation.
• Described by grammar.
• Grammar for simple arithmetic:
(exp)::=(exp)+(term)|(exp)-(term)|(term)
(term)::=(term)*(factor)|(term)-(factor)|(factor)
(factor)::=(identifier)|(<expression>)
(id)::=|a|b|c|d|e………|z
6. Decision Table-Based Testing
                 •   Ex: Toy Text Editor
                 •   Here n=4;
                 •   1. Copy
                 •   2. Paste
                 •   3. Underline
                 •   4. Boldface
Ex:2 Liquid Level
            • Sensor 1 : used to
              check upper level
            • Sensor 2: used to
 Sensor 1     check Lower level

             • Sensor 1 is active :
               open output valve
             • Sensor 2 is active
Sensor 2       open input valve.
7. Cause and Effect Graphs in
          Functional Testing
• Represents relationship between input and
  output
• Input  cause
• Output  effect.
Ex: ATM Banking Transaction System
Causes:
C1: Command is credit
C2: Command is Debit
C3: Account Number is valid.
C4: Transaction amount is Valid.
Effects:
E1: Print “Invalid command”
E2: Print “invalid account number”
E3: Print “debit amount not valid”
E4: debit account
E5: credit account.
Types processing modes
• And  effect occurs of all the inputs are true.
• Or  Effect occurs if at least one input is true
• Negation : effect occurs if input are false.
C2
                         and


                                                        E3
C3


C4                     Used to reduce the test case count




     C1           C2                   C3                     C4



     Don’t care
     condition          True                                 false

Mais conteúdo relacionado

Mais procurados

Structural testing
Structural testingStructural testing
Structural testing
Slideshare
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
Chankey Pathak
 
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.ppt
Software testing.pptSoftware testing.ppt
Software testing.ppt
Komal Garg
 

Mais procurados (20)

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
Software testingSoftware testing
Software testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Structural testing
Structural testingStructural testing
Structural testing
 
White Box Testing
White Box TestingWhite Box Testing
White Box Testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
 
Slice Based testing and Object Oriented Testing
Slice Based testing and Object Oriented TestingSlice Based testing and Object Oriented Testing
Slice Based testing and Object Oriented Testing
 
White Box Testing
White Box Testing White Box Testing
White Box Testing
 
Black box testing
Black box testingBlack box testing
Black box testing
 
White box black box & gray box testing
White box black box & gray box testingWhite box black box & gray box testing
White box black box & gray box testing
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 
Software coding &amp; testing, software engineering
Software coding &amp; testing, software engineeringSoftware coding &amp; testing, software engineering
Software coding &amp; testing, software engineering
 
Unit testing
Unit testing Unit testing
Unit testing
 
Test case techniques
Test case techniquesTest case techniques
Test case techniques
 
7 testing principles
7 testing principles7 testing principles
7 testing principles
 
Software Measurement and Metrics.pptx
Software Measurement and Metrics.pptxSoftware Measurement and Metrics.pptx
Software Measurement and Metrics.pptx
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.ppt
 

Destaque

Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life Cycle
Udayakumar Sree
 
Testing documents
Testing documentsTesting documents
Testing documents
suhasreddy1
 
Requirement specification
Requirement specificationRequirement specification
Requirement specification
Abdul Basit
 

Destaque (20)

Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Blackbox
BlackboxBlackbox
Blackbox
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life Cycle
 
Black Box: Creation and Computation Arduino Project 1
Black Box: Creation and Computation Arduino Project 1Black Box: Creation and Computation Arduino Project 1
Black Box: Creation and Computation Arduino Project 1
 
Producing Quality Software
Producing Quality SoftwareProducing Quality Software
Producing Quality Software
 
Building the "right" regression suite using Behavior Driven Testing (BDT)
Building the "right" regression suite using Behavior Driven Testing (BDT)Building the "right" regression suite using Behavior Driven Testing (BDT)
Building the "right" regression suite using Behavior Driven Testing (BDT)
 
Creating A Leadership Culture
Creating A Leadership CultureCreating A Leadership Culture
Creating A Leadership Culture
 
Build the "right" regression suite using Behavior Driven Testing (BDT)
Build the "right" regression suite using Behavior Driven Testing (BDT)Build the "right" regression suite using Behavior Driven Testing (BDT)
Build the "right" regression suite using Behavior Driven Testing (BDT)
 
Manual testing
Manual testingManual testing
Manual testing
 
An introduction to Google test framework
An introduction to Google test frameworkAn introduction to Google test framework
An introduction to Google test framework
 
Implementing Blackbox Testing
Implementing Blackbox TestingImplementing Blackbox Testing
Implementing Blackbox Testing
 
Behavior Driven Development with AngularJS & Jasmine
Behavior Driven Development with AngularJS & JasmineBehavior Driven Development with AngularJS & Jasmine
Behavior Driven Development with AngularJS & Jasmine
 
Testing documents
Testing documentsTesting documents
Testing documents
 
Strategies for Distributed Agile Testing
Strategies for Distributed Agile TestingStrategies for Distributed Agile Testing
Strategies for Distributed Agile Testing
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runner
 
Build the "right" regression suite using Behavior Driven Testing (BDT)
Build the "right" regression suite using Behavior Driven Testing (BDT)Build the "right" regression suite using Behavior Driven Testing (BDT)
Build the "right" regression suite using Behavior Driven Testing (BDT)
 
Cause effect graphing technique
Cause effect graphing techniqueCause effect graphing technique
Cause effect graphing technique
 
Quality Assurance
Quality AssuranceQuality Assurance
Quality Assurance
 
Software Verification, Validation and Testing
Software Verification, Validation and TestingSoftware Verification, Validation and Testing
Software Verification, Validation and Testing
 
Requirement specification
Requirement specificationRequirement specification
Requirement specification
 

Semelhante a Black box testing or behavioral testing

Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
Nikita Knysh
 
&lt;p>Software Testing&lt;/p>
&lt;p>Software Testing&lt;/p>&lt;p>Software Testing&lt;/p>
&lt;p>Software Testing&lt;/p>
Atul Mishra
 
An overview to Software Testing
An overview to Software TestingAn overview to Software Testing
An overview to Software Testing
Atul Mishra
 

Semelhante a Black box testing or behavioral testing (20)

Testing
TestingTesting
Testing
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
 
CPP09 - Testing
CPP09 - TestingCPP09 - Testing
CPP09 - Testing
 
Unit Testing a Primer
Unit Testing a PrimerUnit Testing a Primer
Unit Testing a Primer
 
Blackbox
BlackboxBlackbox
Blackbox
 
Unit 2 - Test Case Design
Unit 2 - Test Case DesignUnit 2 - Test Case Design
Unit 2 - Test Case Design
 
Software Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box TestingSoftware Testing Foundations Part 4 - Black Box Testing
Software Testing Foundations Part 4 - Black Box Testing
 
Unit 6
Unit 6Unit 6
Unit 6
 
&lt;p>Software Testing&lt;/p>
&lt;p>Software Testing&lt;/p>&lt;p>Software Testing&lt;/p>
&lt;p>Software Testing&lt;/p>
 
An overview to Software Testing
An overview to Software TestingAn overview to Software Testing
An overview to Software Testing
 
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
 
Test Case Design & Technique
Test Case Design & TechniqueTest Case Design & Technique
Test Case Design & Technique
 
Unit 4 testing
Unit 4 testingUnit 4 testing
Unit 4 testing
 
Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)Sorfware engineering presentation (software testing)
Sorfware engineering presentation (software testing)
 
Testing strategies -2
Testing strategies -2Testing strategies -2
Testing strategies -2
 
Black box testing
Black box testingBlack box testing
Black box testing
 
SE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptxSE%200-Testing%20(2).pptx
SE%200-Testing%20(2).pptx
 

Mais de Slideshare

Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010
Slideshare
 
Report generation
Report generationReport generation
Report generation
Slideshare
 
Security in Relational model
Security in Relational modelSecurity in Relational model
Security in Relational model
Slideshare
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
Slideshare
 
Major issues in data mining
Major issues in data miningMajor issues in data mining
Major issues in data mining
Slideshare
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
Slideshare
 
What is in you
What is in youWhat is in you
What is in you
Slideshare
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
Slideshare
 
Logical reasoning 21.1.13
Logical reasoning 21.1.13Logical reasoning 21.1.13
Logical reasoning 21.1.13
Slideshare
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
Slideshare
 
Resolution(decision)
Resolution(decision)Resolution(decision)
Resolution(decision)
Slideshare
 
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313
Slideshare
 
Neural networks
Neural networksNeural networks
Neural networks
Slideshare
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
Slideshare
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
Slideshare
 
Neural networks
Neural networksNeural networks
Neural networks
Slideshare
 
Logical reasoning
Logical reasoning Logical reasoning
Logical reasoning
Slideshare
 

Mais de Slideshare (20)

Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010
 
Report generation
Report generationReport generation
Report generation
 
Trigger
TriggerTrigger
Trigger
 
Security in Relational model
Security in Relational modelSecurity in Relational model
Security in Relational model
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
OLAP
OLAPOLAP
OLAP
 
Major issues in data mining
Major issues in data miningMajor issues in data mining
Major issues in data mining
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
 
What is in you
What is in youWhat is in you
What is in you
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
 
Logical reasoning 21.1.13
Logical reasoning 21.1.13Logical reasoning 21.1.13
Logical reasoning 21.1.13
 
Logic agent
Logic agentLogic agent
Logic agent
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
 
Resolution(decision)
Resolution(decision)Resolution(decision)
Resolution(decision)
 
Reinforcement learning 7313
Reinforcement learning 7313Reinforcement learning 7313
Reinforcement learning 7313
 
Neural networks
Neural networksNeural networks
Neural networks
 
Instance based learning
Instance based learningInstance based learning
Instance based learning
 
Statistical learning
Statistical learningStatistical learning
Statistical learning
 
Neural networks
Neural networksNeural networks
Neural networks
 
Logical reasoning
Logical reasoning Logical reasoning
Logical reasoning
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Black box testing or behavioral testing

  • 1. Black Box Testing or Behavioral Testing Saranya.V AP/CSE, Sri Vidya College of Engineering & Technology, Virudhunagar
  • 2. • Only input & output functionality are visible. • Inputs are given and outputs are compared against specification. Features:  Correct outputs from inputs properly.  Test cases are designed from user requirements.  Test planning can begin early in the software process.  Looking at the program from an external point of view.
  • 3.
  • 4. Black Box Testing Inputs causing Input Test Data I anomalous behavior System Outputs which output Test Results O reveal the presence of defects
  • 5. Black Box Testing is a “Expert” in Finding • Incorrect or missing functions. • Interface errors • Behavior or performance errors. • Initialization and termination errors. • Errors in data structures • External database errors.
  • 6. Graph Based Testing Methods • First step in Black Box Testing to understand the objects • Used to connect the objects. • Next step is to define a series of tests that verify all the objects. “To accomplish these steps, the software engineer begins by creating” • Graph: collection of nodes that represent objects. • Links: Relationship between objects. • Node Weights: Properties of nodes • Link Weights: Characteristics of a link.
  • 7. Sample Graph Notation Directed Link Object 1 Object 2 Object 3 •Nodes are represented as circles. •Links between nodes are categorized as: •Directed Link (one direction) •Bidirectional or Undirected or Symmetric Link: both directions. •Parceled links: different relationships established between nodes.
  • 8. 1. Equivalence Partitioning • One of the black box testing method that divides the input domain of a program into classes • Define a test case that uncovers classes of errors. • Equivalence class represents a set of valid or invalid states for input conditions.
  • 9. 2. Boundary Value Analysis (BVA) • Errors tend to occur at the boundaries of the input domain rather than in center. • So we need boundary value analysis (testing technique) • BVA derived test cases from the output domain.
  • 10. 3. Comparison Testing • If the output from the each version is same, assume all implementations are correct. • If the output is different, each of the applications is investigated to determine if a defect in one or more versions is responsible for the difference. • We have to provide same input and check the output.
  • 11. 4. Orthogonal Array Testing • Used to finding errors associated with region faults. • number of inputs to the system is relatively small, but too large to allow for exhaustive testing of every possible input to the systems. • It provides good test coverage with test cases.
  • 12. 5. Syntax Driven Testing • Very good methodology for compliers and parsers. • Use BNF notation. • Described by grammar. • Grammar for simple arithmetic: (exp)::=(exp)+(term)|(exp)-(term)|(term) (term)::=(term)*(factor)|(term)-(factor)|(factor) (factor)::=(identifier)|(<expression>) (id)::=|a|b|c|d|e………|z
  • 13. 6. Decision Table-Based Testing • Ex: Toy Text Editor • Here n=4; • 1. Copy • 2. Paste • 3. Underline • 4. Boldface
  • 14. Ex:2 Liquid Level • Sensor 1 : used to check upper level • Sensor 2: used to Sensor 1 check Lower level • Sensor 1 is active : open output valve • Sensor 2 is active Sensor 2 open input valve.
  • 15. 7. Cause and Effect Graphs in Functional Testing • Represents relationship between input and output • Input  cause • Output  effect. Ex: ATM Banking Transaction System
  • 16. Causes: C1: Command is credit C2: Command is Debit C3: Account Number is valid. C4: Transaction amount is Valid. Effects: E1: Print “Invalid command” E2: Print “invalid account number” E3: Print “debit amount not valid” E4: debit account E5: credit account.
  • 17. Types processing modes • And  effect occurs of all the inputs are true. • Or  Effect occurs if at least one input is true • Negation : effect occurs if input are false.
  • 18. C2 and E3 C3 C4 Used to reduce the test case count C1 C2 C3 C4 Don’t care condition True false