SlideShare a Scribd company logo
SOFTWARE
TESTING & QA
Lectire7- Black Box
testing (Decision Table
Testing)
1
DECISION-TABLE-BASED
TESTING
Decision tables are a simple formalism to describe how
different combinations of inputs may generate different outputs.
Decision tables find practical us particularly in data processing
applications. Their tabular form makes them easy to
understand and supports a systematic derivation of tests
DECISION TABLE-BASED
TESTING (DTT)
Applicable to the software requirements written using “if-then”
statements
Can be automatically translated into code
Assume the independence of inputs
Example
 If c1 AND c2 OR c3 then A1
 c1, c2 and c3 are conditions while A1 is an action
CONDITIONS (CAUSES)
AND ACTIONS
(EFFECTS)
A CONDITION or CAUSE may be thought of as a distinct input
condition, or an “equivalence class” of input conditions.
An ACTON or EFFECT may be thought of as a distinct output
condition or change in program state.
DECISION-TABLE-BASED
TESTING
One can generate test cases naturally on the basis of the
decision table, trying to apply the complete coverage criteria so
that each column of the table is exercised by at least one test
This technique may be too expensive in terms of the number of
experiments to be carried out, because of the exponential
growth in the number of test cases with respect to the number
of conditions
In fact, in general, the number of columns can go up to 2n,
where n is the number of conditions
SAMPLE OF DECISION
TABLE
A decision table is consists of a
number of columns (rules) that
comprise all test situations.
C1, C2..Cn are conditions
(Causes)
A1, A2…An are actions (Effects)
R1, R2,…Rm are Rules (test
cases)
Action A1 will take place if c1 and
c2 are true (or satisfied)
1: means the condition is true.
0: means the condition is false.
x: don’t care.
R1 R2 Rm
C1 1 1 0
C2 1 0 0
x x 1
Cn 0 0 0
A1 1 0 0
A2 0 1 1
… 0 0 0
An o o 1
BANK EXAMPLE
Consider a bank software responsible for debiting from an
account. The relevant conditions and actions are:
 C1: The account number is correct
 C2: The signature matches
 C3: There is enough money in the account
 A1: Give money
 A2: Give statement indicating insufficient funds
 A3: Call vigilance to check for fraud!
BANK EXAMPLE-
CONTINUED
A1 is to be performed when C1, C2, and C3 are true.
A2 is to be performed when C1 is true and C2 and C3 are false
or when C1 and C2 are true and C3 is false.
A3 is to be performed when C2 and C3 are false.
R1 R2 R3 R4
C1 1 1 1 0
C2 1 1 0 0
C3 1 0 0 x
A1 1 0 0 0
A2 0 1 1 0
A3 0 0 0 1
DECISION TABLES FOR
BANK EXAMPLE
BANK EXAMPLE-CONT..
What are the appropriate
test cases for this
problem? Check the rules
10
EXAMPLE(2): ATM
For a simple ATM banking transaction
system
 Causes (Conditions)
 C1: Command is credit
 C2: command is debit
 C3: account number is valid
 C4: transaction amount is valid
 Effects (Actions)
 A1: Print “invalid command”
 A2: Print “ invalid account number”
 A3: Print “debit amount not valid”
 A4: debit account
 A5: Credit account
ATM CAUSE-EFFECT
DECISION TABLE
C R1 R2 R3 R4 R5
C1 0 1 x x 1
C2 0 x 1 1 x
C3 x 0 1 1 1
C4 x x 0 1 1
A1 1 0 0 0 0
A2 0 1 0 0 0
A3 0 0 1 0 0
A4 0 0 0 1 0
A5 0 0 0 0 1
ANOTHER HOMEWORK
ON DT
Consider an e-commerce application. At the user interface layer, we need to validate payment information,
specifically credit card type, card number, card security code, expiration month, expiration year, and cardholder
name. You can use boundary value analysis and equivalence partitioning to test the ability of the application to
verify the payment information, as much as possible, before sending it to the server. So, once that information goes
to the credit card processing company for validation,
how can we test that? Again, we could handle that with equivalence partitioning, but there are actually a whole set
of conditions that determine this processing: Does the named person hold the credit card entered, and is the other
information
correct?
Is it still active or has it been cancelled?
Is the person within or over their limit?
Is the transaction coming from a normal or a suspicious location?
The decision table in Table 1 shows how these four conditions interact to determine
which of the following three actions will occur:
Should we approve the transaction?
Should we call the cardholder (e.g., to warn them about a purchase from a strange place)?
Should we call the vendor (e.g., to ask them to seize the cancelled card)?
13

More Related Content

Similar to Black_Box_testing_Decision_Table (1).ppt

Fundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptxFundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptx
Eyasu46
 
Decision table
Decision tableDecision table
Decision tableDMANIMALA
 
EDA_Assignment_Sourabh S Hubballi.pdf
EDA_Assignment_Sourabh S Hubballi.pdfEDA_Assignment_Sourabh S Hubballi.pdf
EDA_Assignment_Sourabh S Hubballi.pdf
SourabhH1
 
10 ways to identify Accounts Payable fraud Pt1
10 ways to identify Accounts Payable fraud Pt110 ways to identify Accounts Payable fraud Pt1
10 ways to identify Accounts Payable fraud Pt1
Lavante, Inc.
 
Decision Table Based Testing
Decision Table Based TestingDecision Table Based Testing
Decision Table Based Testing
Himani Solanki
 
SE 09 (test design techs).pptx
SE 09 (test design techs).pptxSE 09 (test design techs).pptx
SE 09 (test design techs).pptx
ZohairMughal1
 
CIS 1403 lab 4 selection
CIS 1403 lab 4 selectionCIS 1403 lab 4 selection
CIS 1403 lab 4 selection
Hamad Odhabi
 
Project crm submission sonali
Project crm submission sonaliProject crm submission sonali
Project crm submission sonali
Sonali Gupta
 
Neural Network Model
Neural Network ModelNeural Network Model
Neural Network ModelEric Esajian
 
How to do ahp analysis in excel
How to do ahp analysis in excelHow to do ahp analysis in excel
How to do ahp analysis in excel
J.Roberto S.F
 
Detection of credit card fraud
Detection of credit card fraudDetection of credit card fraud
Detection of credit card fraud
Bastiaan Frerix
 
Supervised learning
Supervised learningSupervised learning
Supervised learning
Johnson Ubah
 
CTFL Module 04
CTFL Module 04CTFL Module 04
CTFL Module 04
Davis Thomas
 
TransactionBasedAnalytics2010
TransactionBasedAnalytics2010TransactionBasedAnalytics2010
TransactionBasedAnalytics2010Vijay Desai
 
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docxDBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
edwardmarivel
 
Lecture 3 Statistical ProcessControl (SPC).docx
Lecture 3 Statistical ProcessControl (SPC).docxLecture 3 Statistical ProcessControl (SPC).docx
Lecture 3 Statistical ProcessControl (SPC).docx
smile790243
 
Part 1 of 8 - Question 1 of 17 1.0 Points A pha.docx
Part 1 of 8 -  Question 1 of 17 1.0 Points A pha.docxPart 1 of 8 -  Question 1 of 17 1.0 Points A pha.docx
Part 1 of 8 - Question 1 of 17 1.0 Points A pha.docx
herbertwilson5999
 
Test case, test sets and test scripts
Test case, test sets and test scriptsTest case, test sets and test scripts
Test case, test sets and test scripts
Vinnie Tangsirikusolwong
 
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
MartineMccracken314
 

Similar to Black_Box_testing_Decision_Table (1).ppt (20)

Fundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptxFundamentals of Programming Lecture #1.pptx
Fundamentals of Programming Lecture #1.pptx
 
Decision table
Decision tableDecision table
Decision table
 
EDA_Assignment_Sourabh S Hubballi.pdf
EDA_Assignment_Sourabh S Hubballi.pdfEDA_Assignment_Sourabh S Hubballi.pdf
EDA_Assignment_Sourabh S Hubballi.pdf
 
10 ways to identify Accounts Payable fraud Pt1
10 ways to identify Accounts Payable fraud Pt110 ways to identify Accounts Payable fraud Pt1
10 ways to identify Accounts Payable fraud Pt1
 
Decision Table Based Testing
Decision Table Based TestingDecision Table Based Testing
Decision Table Based Testing
 
SE 09 (test design techs).pptx
SE 09 (test design techs).pptxSE 09 (test design techs).pptx
SE 09 (test design techs).pptx
 
CIS 1403 lab 4 selection
CIS 1403 lab 4 selectionCIS 1403 lab 4 selection
CIS 1403 lab 4 selection
 
Project crm submission sonali
Project crm submission sonaliProject crm submission sonali
Project crm submission sonali
 
Blackbox
BlackboxBlackbox
Blackbox
 
Neural Network Model
Neural Network ModelNeural Network Model
Neural Network Model
 
How to do ahp analysis in excel
How to do ahp analysis in excelHow to do ahp analysis in excel
How to do ahp analysis in excel
 
Detection of credit card fraud
Detection of credit card fraudDetection of credit card fraud
Detection of credit card fraud
 
Supervised learning
Supervised learningSupervised learning
Supervised learning
 
CTFL Module 04
CTFL Module 04CTFL Module 04
CTFL Module 04
 
TransactionBasedAnalytics2010
TransactionBasedAnalytics2010TransactionBasedAnalytics2010
TransactionBasedAnalytics2010
 
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docxDBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
 
Lecture 3 Statistical ProcessControl (SPC).docx
Lecture 3 Statistical ProcessControl (SPC).docxLecture 3 Statistical ProcessControl (SPC).docx
Lecture 3 Statistical ProcessControl (SPC).docx
 
Part 1 of 8 - Question 1 of 17 1.0 Points A pha.docx
Part 1 of 8 -  Question 1 of 17 1.0 Points A pha.docxPart 1 of 8 -  Question 1 of 17 1.0 Points A pha.docx
Part 1 of 8 - Question 1 of 17 1.0 Points A pha.docx
 
Test case, test sets and test scripts
Test case, test sets and test scriptsTest case, test sets and test scripts
Test case, test sets and test scripts
 
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa1-Base-CaseTool KitChapter 11112118Note Calculations are automa
1-Base-CaseTool KitChapter 11112118Note Calculations are automa
 

Recently uploaded

14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
ambekarshweta25
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 

Recently uploaded (20)

14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 

Black_Box_testing_Decision_Table (1).ppt

  • 1. SOFTWARE TESTING & QA Lectire7- Black Box testing (Decision Table Testing) 1
  • 2. DECISION-TABLE-BASED TESTING Decision tables are a simple formalism to describe how different combinations of inputs may generate different outputs. Decision tables find practical us particularly in data processing applications. Their tabular form makes them easy to understand and supports a systematic derivation of tests
  • 3. DECISION TABLE-BASED TESTING (DTT) Applicable to the software requirements written using “if-then” statements Can be automatically translated into code Assume the independence of inputs Example  If c1 AND c2 OR c3 then A1  c1, c2 and c3 are conditions while A1 is an action
  • 4. CONDITIONS (CAUSES) AND ACTIONS (EFFECTS) A CONDITION or CAUSE may be thought of as a distinct input condition, or an “equivalence class” of input conditions. An ACTON or EFFECT may be thought of as a distinct output condition or change in program state.
  • 5. DECISION-TABLE-BASED TESTING One can generate test cases naturally on the basis of the decision table, trying to apply the complete coverage criteria so that each column of the table is exercised by at least one test This technique may be too expensive in terms of the number of experiments to be carried out, because of the exponential growth in the number of test cases with respect to the number of conditions In fact, in general, the number of columns can go up to 2n, where n is the number of conditions
  • 6. SAMPLE OF DECISION TABLE A decision table is consists of a number of columns (rules) that comprise all test situations. C1, C2..Cn are conditions (Causes) A1, A2…An are actions (Effects) R1, R2,…Rm are Rules (test cases) Action A1 will take place if c1 and c2 are true (or satisfied) 1: means the condition is true. 0: means the condition is false. x: don’t care. R1 R2 Rm C1 1 1 0 C2 1 0 0 x x 1 Cn 0 0 0 A1 1 0 0 A2 0 1 1 … 0 0 0 An o o 1
  • 7. BANK EXAMPLE Consider a bank software responsible for debiting from an account. The relevant conditions and actions are:  C1: The account number is correct  C2: The signature matches  C3: There is enough money in the account  A1: Give money  A2: Give statement indicating insufficient funds  A3: Call vigilance to check for fraud!
  • 8. BANK EXAMPLE- CONTINUED A1 is to be performed when C1, C2, and C3 are true. A2 is to be performed when C1 is true and C2 and C3 are false or when C1 and C2 are true and C3 is false. A3 is to be performed when C2 and C3 are false.
  • 9. R1 R2 R3 R4 C1 1 1 1 0 C2 1 1 0 0 C3 1 0 0 x A1 1 0 0 0 A2 0 1 1 0 A3 0 0 0 1 DECISION TABLES FOR BANK EXAMPLE
  • 10. BANK EXAMPLE-CONT.. What are the appropriate test cases for this problem? Check the rules 10
  • 11. EXAMPLE(2): ATM For a simple ATM banking transaction system  Causes (Conditions)  C1: Command is credit  C2: command is debit  C3: account number is valid  C4: transaction amount is valid  Effects (Actions)  A1: Print “invalid command”  A2: Print “ invalid account number”  A3: Print “debit amount not valid”  A4: debit account  A5: Credit account
  • 12. ATM CAUSE-EFFECT DECISION TABLE C R1 R2 R3 R4 R5 C1 0 1 x x 1 C2 0 x 1 1 x C3 x 0 1 1 1 C4 x x 0 1 1 A1 1 0 0 0 0 A2 0 1 0 0 0 A3 0 0 1 0 0 A4 0 0 0 1 0 A5 0 0 0 0 1
  • 13. ANOTHER HOMEWORK ON DT Consider an e-commerce application. At the user interface layer, we need to validate payment information, specifically credit card type, card number, card security code, expiration month, expiration year, and cardholder name. You can use boundary value analysis and equivalence partitioning to test the ability of the application to verify the payment information, as much as possible, before sending it to the server. So, once that information goes to the credit card processing company for validation, how can we test that? Again, we could handle that with equivalence partitioning, but there are actually a whole set of conditions that determine this processing: Does the named person hold the credit card entered, and is the other information correct? Is it still active or has it been cancelled? Is the person within or over their limit? Is the transaction coming from a normal or a suspicious location? The decision table in Table 1 shows how these four conditions interact to determine which of the following three actions will occur: Should we approve the transaction? Should we call the cardholder (e.g., to warn them about a purchase from a strange place)? Should we call the vendor (e.g., to ask them to seize the cancelled card)? 13