SlideShare a Scribd company logo
1 of 33
1
Testing
1. Static Testing
2. Dynamic Testing
2
Dynamic Testing: Black Box
Testing Techniques
Objectives
• Black box testing ignores the structural details of the software.
• Test case designing using black box techniques.
• Boundary value analysis method
• Equivalence class testing method
• State table based testing method
• Decision table based testing method
• Cause-effect graphing method
Evolution of Software Testing
Black Box Testing
Evolution of Software Testing
• To test the modules independently.
• To test the functional validity of the software
• Interface errors are detected.
• To test the system behavior and check its performance.
• To test the maximum load or stress on the system.
• Customer accepts the system within defined acceptable limits.
Black Box Testing
• Test cases are designed by holding one variable at its extreme
value and other variables at their nominal values in the input
domain. The variable at its extreme value can be selected at:
– Minimum value (Min)
– Value just above the minimum value (Min+ )
– Maximum value (Max)
– Value just below the maximum value (Max-)
– Nominal or Average Value
Boundary Value Checking
Software Testing
Consider a program for determining the Previous date. Its input is a triple of
day, month and year with the values in the range
1 ≤ month ≤ 12
1 ≤ day ≤ 31
1900 ≤ year ≤ 2025
The possible outputs would be Previous date or invalid input date. Design the
boundary value test cases.
Software Testing
Solution
The Previous date program takes a date as input and checks it for validity.
If valid, it returns the previous date as its output.
With single fault assumption theory, 4n+1 test cases can be designed and
which are equal to 13.
Software Testing
The boundary value test cases are:
Test Case Month Day Year Expected output
1 6 15 1900 14 June, 1900
2 6 15 1901 14 June, 1901
3 6 15 1962 14 June, 1962
4 6 15 2024 14 June, 2024
5 6 15 2025 14 June, 2025
6 6 1 1962 31 May, 1962
7 6 2 1962 1 June, 1962
8 6 30 1962 29 June, 1962
9 6 31 1962 Invalid date
10 1 15 1962 14 January, 1962
11 2 15 1962 14 February, 1962
12 11 15 1962 14 November, 1962
13 12 15 1962 14 December, 1962
A value just greater than the Maximum value (Max+)
A value just less than Minimum value (Min-)
• When test cases are designed considering above points in
addition to BVC, it is called Robustness testing.
• Min.Value -1, Min. Value, Min. Value+1, Nominal or Average
Value, Max. Value-1, Max. Value, Max. Value +1
• It can be generalized that for n input variables in a module, 6n+1
test cases are designed with Robustness testing.
Robustness Testing Method
Software Testing
Consider a program for determining the Previous date. Its input is a triple of
day, month and year with the values in the range
1 ≤ month ≤ 12
1 ≤ day ≤ 31
1900 ≤ year ≤ 2025
The possible outputs would be Previous date or invalid input date. Design the
Robustness test cases.
Software Testing
Solution
Robust test cases are 6n+1. Hence total 19 robust test cases are designed
and are given on next slide.
Software Testing
Test case Month Day Year Expected Output
1 6 15 1899 Invalid date (outside range)
2 6 15 1900 14 June, 1900
3 6 15 1901 14 June, 1901
4 6 15 1962 14 June, 1962
5 6 15 2024 14 June, 2024
6 6 15 2025 14 June, 2025
7 6 15 2026 Invalid date (outside range)
8 6 0 1962 Invalid date
9 6 1 1962 31 May, 1962
10 6 2 1962 1 June, 1962
11 6 30 1962 29 June, 1962
12 6 31 1962 Invalid date
13 6 32 1962 Invalid date
14 0 15 1962 Invalid date
15 1 15 1962 14 January, 1962
16 2 15 1962 14 February, 1962
17 11 15 1962 14 November, 1962
18 12 15 1962 14 December, 1962
19 13 15 1962 Invalid date
Software Testing Myths
• When more than one variable are in extreme values, i.e. when more
than one variable are on the boundary. It is called Worst case
testing method.
• It can be generalized that for n input variables in a module, 5n test
cases are designed with worst case testing.
• Preferably Robustness testing ranges could be considered for
assigning values for the variables, so that more test cases could be
designed for invalid inputs
Worst Case Testing Method
Software Testing
In case of worst test case total test cases are 5n. Hence, 125 test cases will be
generated in worst test cases. The worst test cases are given below:
Test Case Month Day Year Expected output
1 1 1 1900 31 December, 1899
2 1 1 1901 31 December, 1900
3 1 1 1962 31 December, 1961
4 1 1 2024 31 December, 2023
5 1 1 2025 31 December, 2024
6 1 2 1900 1 January, 1900
7 1 2 1901 1 January, 1901
8 1 2 1962 1 January, 1962
9 1 2 2024 1 January, 2024
10 1 2 2025 1 January, 2025
11 1 15 1900 14 January, 1900
12 1 15 1901 14 January, 1901
13 1 15 1962 14 January, 1962
14 1 15 2024 14 January, 2024
Software Testing
Test Case A b c Expected output
15 1 15 2025 14 January, 2025
16 1 30 1900 29 January, 1900
17 1 30 1901 29 January, 1901
18 1 30 1962 29 January, 1962
19 1 30 2024 29 January, 2024
20 1 30 2025 29 January, 2025
21 1 31 1900 30 January, 1900
22 1 31 1901 30 January, 1901
23 1 31 1962 30 January, 1962
24 1 31 2024 30 January, 2024
25 1 31 2025 30 January, 2025
26 2 1 1900 31 January, 1900
27 2 1 1901 31 January, 1901
28 2 1 1962 31 January, 1962
29 2 1 2024 31 January, 2024
30 2 1 2025 31 January, 2025
31 2 2 1900 1 February, 1900
Software Testing
Test Case Month Day Year Expected output
32 2 2 1901 1 February, 1901
33 2 2 1962 1 February, 1962
34 2 2 2024 1 February, 2024
35 2 2 2025 1 February, 2025
36 2 15 1900 14 February, 1900
37 2 15 1901 14 February, 1901
38 2 15 1962 14 February, 1962
39 2 15 2024 14 February, 2024
40 2 15 2025 14 February, 2025
41 2 30 1900 Invalid date
42 2 30 1901 Invalid date
43 2 30 1962 Invalid date
44 2 30 2024 Invalid date
45 2 30 2025 Invalid date
46 2 31 1900 Invalid date
47 2 31 1901 Invalid date
48 2 31 1962 Invalid date
Software Testing
Test Case Month Day Year Expected output
49 2 31 2024 Invalid date
50 2 31 2025 Invalid date
51 6 1 1900 31 May, 1900
52 6 1 1901 31 May, 1901
53 6 1 1962 31 May, 1962
54 6 1 2024 31 May, 2024
55 6 1 2025 31 May, 2025
56 6 2 1900 1 June, 1900
57 6 2 1901 1 June, 1901
58 6 2 1962 1 June, 1962
59 6 2 2024 1 June, 2024
60 6 2 2025 1 June, 2025
61 6 15 1900 14 June, 1900
62 6 15 1901 14 June, 1901
63 6 15 1962 14 June, 1962
64 6 15 2024 14 June, 2024
65 6 15 2025 14 June, 2025
Software Testing
Test Case Month Day Year Expected output
66 6 30 1900 29 June, 1900
67 6 30 1901 29 June, 1901
68 6 30 1962 29 June, 1962
69 6 30 2024 29 June, 2024
70 6 30 2025 29 June, 2025
71 6 31 1900 Invalid date
72 6 31 1901 Invalid date
73 6 31 1962 Invalid date
74 6 31 2024 Invalid date
75 6 31 2025 Invalid date
76 11 1 1900 31 October, 1900
77 11 1 1901 31 October, 1901
78 11 1 1962 31 October, 1962
79 11 1 2024 31 October, 2024
80 11 1 2025 31 October, 2025
81 11 2 1900 1 November, 1900
82 11 2 1901 1 November, 1901
Software Testing
Test Case Month Day Year Expected output
83 11 2 1962 1 November, 1962
84 11 2 2024 1 November, 2024
85 11 2 2025 1 November, 2025
86 11 15 1900 14 November, 1900
87 11 15 1901 14 November, 1901
88 11 15 1962 14 November, 1962
89 11 15 2024 14 November, 2024
90 11 15 2025 14 November, 2025
91 11 30 1900 29 November, 1900
92 11 30 1901 29 November, 1901
93 11 30 1962 29 November, 1962
94 11 30 2024 29 November, 2024
95 11 30 2025 29 November, 2025
96 11 31 1900 Invalid date
97 11 31 1901 Invalid date
98 11 31 1962 Invalid date
99 11 31 2024 Invalid date
100 11 31 2025 Invalid date
Software Testing
Test Case Month Day Year Expected output
101 12 1 1900 30 November, 1900
102 12 1 1901 30 November, 1901
103 12 1 1962 30 November, 1962
104 12 1 2024 30 November, 2024
105 12 1 2025 30 November, 2025
106 12 2 1900 1 December, 1900
107 12 2 1901 1 December, 1901
108 12 2 1962 1 December, 1962
109 12 2 2024 1 December, 2024
110 12 2 2025 1 December, 2025
111 12 15 1900 14 December, 1900
112 12 15 1901 14 December, 1901
113 12 15 1962 14 December, 1962
114 12 15 2024 14 December, 2024
115 12 15 2025 14 December, 2025
116 12 30 1900 29 December, 1900
117 12 30 1901 29 December, 1901
118 12 30 1962 29 December, 1962
Software Testing
Test Case Month Day Year Expected output
119 12 30 2024 29 December, 2024
120 12 30 2025 29 December, 2025
121 12 31 1900 30 December, 1900
122 12 31 1901 30 December, 1901
123 12 31 1962 30 December, 1962
124 12 31 2024 30 December, 2024
125 12 31 2025 30 December, 2025
Note:
1. The author has used BVA ranges for designing the test cases but
you can use Robustness Ranges also designing the test cases.
2. Carefully design the test cases without redundancy
3. Don’t take random values
Example
• A program reads an integer number within the range [1,100] and
determines whether the number is a prime number or not. Design all
test cases for this program using BVC, Robust testing and worst-
case testing methods.
• 1) Test cases using BVC
Example
• Test Cases Using Robust Testing
Equivalence Class Testing
Software Testing
Equivalence Class Testing
In this method, input domain of a program is partitioned into a finite number of
equivalence classes such that one can reasonably assume, but not be
absolutely sure, that the test of a representative value of each class is
equivalent to a test of any other value.
Two steps are required to implementing this method:
1. The equivalence classes are identified by taking each input condition and
partitioning it into valid and invalid classes. For example, if an input
condition specifies a range of values from 1 to 999, we identify one valid
equivalence class[1<item<999]; and two invalid equivalence classes
[item<1] and [item>999].
2. Generate the test cases using the equivalence classes identified in the
previous step. This is performed by writing test cases covering all the valid
equivalence classes. Then a test case is written for each invalid equivalence
class so that no test contains more than one invalid class. This is to ensure
that no two invalid classes mask each other.
Example
• A program reads three numbers A, B and C with range [1,50] and
prints largest number. Design all test cases for this program using
equivalence class testing technique.
I1 = {<A,B,C> : 1 ≤ A ≤ 50}
I2 = {<A,B,C> : 1 ≤ B ≤ 50}
I3 = {<A,B,C> : 1 ≤ C ≤ 50}
I4 = {<A,B,C> : A < 1}
I5 = {<A,B,C> : A > 50}
I6 = {<A,B,C> : B < 1}
I7 = {<A,B,C> : B > 50}
I8 = {<A,B,C> : C < 1}
I9 = {<A,B,C> : C > 50}
• I1 = {<A,B,C> : A > B, A > C}
• I2 = {<A,B,C> : B > A, B > C}
• I3 = {<A,B,C> : C > A, C > B}
• I4 = {<A,B,C> : A = B, A ≠ C}
• I5 = {<A,B,C> : B = C, A ≠ B}
• I6 = {<A,B,C> : A = C, C ≠ B }
• I7 = {<A,B,C> : A = B = C}
Example
Decision Table Based Testing
Decision Table Based Testing
• It is another useful method to represent the
information in a tabular method
• It has the specialty to consider complex combinations
of input conditions and resulting actions.
• Decision tables obtain their power from logical
expressions
• Each operant or variable in a logical expression takes
on the value, TRUE or FALSE
• Condition Stub  it is a list of input conditions for which the complex
combination is made
• Action Stub it is a list of resulting actions which will be performed if
a combination of input condition is satisfied
• Condition entry it is a specific entry in the table corresponding to
input onditions mentioned in the condition stub. When we enter T or
F for all input conditions for a particular combination, then it is called
a Rule and it defines which combination of conditions produces the
resulting action.
• Action Entry it is the entry in the table for the resulting action to be
performed when one rule is satisfied, ‘X’ denotes the action entry in
the table.
Decision Table Based Testing
Example
• A program calculates the total salary of an employee with the conditions
that if the working hours are less than or equal to 48, then give normal
salary. The hours over 48 on normal working days are calculated at the rate
of 1.25 of the salary. However, on holidays or Sundays, the hours are
calculated at the rate of 2.00 times of the salary. Design the test cases
using decision table testing.
Decision Table Based Testing
Test case id Working Hour Day Expected
Result
1 48 Monday Normal
Salary(Rule2)
2 45 Tuesday Normal
Salary(Rule 2)
3 50 Tuesday 1.25 of
salary(Rule 3)
4 55 Wednesday 1.25 of salary
(Rule 3)
5 52 Sunday 2.00 of
Salary(Rule 1)
6 60 Holiday 2.00 of
Salary(Rule1)

More Related Content

What's hot

Unified process model
Unified process modelUnified process model
Unified process modelRyndaMaala
 
Software Requirements in Software Engineering SE5
Software Requirements in Software Engineering SE5Software Requirements in Software Engineering SE5
Software Requirements in Software Engineering SE5koolkampus
 
REQUIREMENT ENGINEERING
REQUIREMENT ENGINEERINGREQUIREMENT ENGINEERING
REQUIREMENT ENGINEERINGSaqib Raza
 
Unit 1 importance ofsoftengg_b.tech iii year
Unit 1  importance ofsoftengg_b.tech iii yearUnit 1  importance ofsoftengg_b.tech iii year
Unit 1 importance ofsoftengg_b.tech iii yearPreeti Mishra
 
Android Based Application Project Report.
Android Based Application Project Report. Android Based Application Project Report.
Android Based Application Project Report. Abu Kaisar
 
Software engineering rogers pressman chapter 7
Software engineering rogers pressman chapter 7Software engineering rogers pressman chapter 7
Software engineering rogers pressman chapter 7mohammad hossein Jalili
 
Rational Unified Process(Rup)
Rational Unified Process(Rup)Rational Unified Process(Rup)
Rational Unified Process(Rup)pawanonline83
 
Planning for software quality assurance lecture 6
Planning for software quality assurance lecture 6Planning for software quality assurance lecture 6
Planning for software quality assurance lecture 6Abdul Basit
 
Software Engineering Unit 1
Software Engineering Unit 1Software Engineering Unit 1
Software Engineering Unit 1Abhimanyu Mishra
 
Requirements analysis and modeling
Requirements analysis and modelingRequirements analysis and modeling
Requirements analysis and modelingSyed Zaid Irshad
 
SDLC RAD model
SDLC RAD modelSDLC RAD model
SDLC RAD modelJay Sharma
 
Evolving role of Software,Legacy software,CASE tools,Process Models,CMMI
Evolving role of Software,Legacy software,CASE tools,Process Models,CMMIEvolving role of Software,Legacy software,CASE tools,Process Models,CMMI
Evolving role of Software,Legacy software,CASE tools,Process Models,CMMInimmik4u
 
Software development life cycle
Software development life cycleSoftware development life cycle
Software development life cycleA Subbiah
 
CS8662 Mobile Application Development Lab Manual
CS8662 Mobile Application Development Lab ManualCS8662 Mobile Application Development Lab Manual
CS8662 Mobile Application Development Lab Manualpkaviya
 
Software Development Life Cycle (SDLC )
Software Development Life Cycle (SDLC )Software Development Life Cycle (SDLC )
Software Development Life Cycle (SDLC )eshtiyak
 

What's hot (20)

Unified process model
Unified process modelUnified process model
Unified process model
 
SQA-Plan.ppt
SQA-Plan.pptSQA-Plan.ppt
SQA-Plan.ppt
 
Software Requirements in Software Engineering SE5
Software Requirements in Software Engineering SE5Software Requirements in Software Engineering SE5
Software Requirements in Software Engineering SE5
 
Waterfall model
Waterfall modelWaterfall model
Waterfall model
 
REQUIREMENT ENGINEERING
REQUIREMENT ENGINEERINGREQUIREMENT ENGINEERING
REQUIREMENT ENGINEERING
 
Unit 1 importance ofsoftengg_b.tech iii year
Unit 1  importance ofsoftengg_b.tech iii yearUnit 1  importance ofsoftengg_b.tech iii year
Unit 1 importance ofsoftengg_b.tech iii year
 
Android Based Application Project Report.
Android Based Application Project Report. Android Based Application Project Report.
Android Based Application Project Report.
 
SDLC
SDLCSDLC
SDLC
 
Software engineering rogers pressman chapter 7
Software engineering rogers pressman chapter 7Software engineering rogers pressman chapter 7
Software engineering rogers pressman chapter 7
 
Rational Unified Process(Rup)
Rational Unified Process(Rup)Rational Unified Process(Rup)
Rational Unified Process(Rup)
 
Planning for software quality assurance lecture 6
Planning for software quality assurance lecture 6Planning for software quality assurance lecture 6
Planning for software quality assurance lecture 6
 
Software Engineering Unit 1
Software Engineering Unit 1Software Engineering Unit 1
Software Engineering Unit 1
 
Requirements analysis and modeling
Requirements analysis and modelingRequirements analysis and modeling
Requirements analysis and modeling
 
SDLC RAD model
SDLC RAD modelSDLC RAD model
SDLC RAD model
 
Evolving role of Software,Legacy software,CASE tools,Process Models,CMMI
Evolving role of Software,Legacy software,CASE tools,Process Models,CMMIEvolving role of Software,Legacy software,CASE tools,Process Models,CMMI
Evolving role of Software,Legacy software,CASE tools,Process Models,CMMI
 
Software development life cycle
Software development life cycleSoftware development life cycle
Software development life cycle
 
CS8662 Mobile Application Development Lab Manual
CS8662 Mobile Application Development Lab ManualCS8662 Mobile Application Development Lab Manual
CS8662 Mobile Application Development Lab Manual
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Software Development Life Cycle (SDLC )
Software Development Life Cycle (SDLC )Software Development Life Cycle (SDLC )
Software Development Life Cycle (SDLC )
 
Checkpoints of the Process
Checkpoints of the ProcessCheckpoints of the Process
Checkpoints of the Process
 

Recently uploaded

Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...Health
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksMagic Marks
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfsmsksolar
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 

Recently uploaded (20)

Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 

WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_17-01-2022_black_box_testing.ppt

  • 2. 2 Dynamic Testing: Black Box Testing Techniques
  • 3. Objectives • Black box testing ignores the structural details of the software. • Test case designing using black box techniques. • Boundary value analysis method • Equivalence class testing method • State table based testing method • Decision table based testing method • Cause-effect graphing method
  • 4. Evolution of Software Testing Black Box Testing
  • 5. Evolution of Software Testing • To test the modules independently. • To test the functional validity of the software • Interface errors are detected. • To test the system behavior and check its performance. • To test the maximum load or stress on the system. • Customer accepts the system within defined acceptable limits. Black Box Testing
  • 6. • Test cases are designed by holding one variable at its extreme value and other variables at their nominal values in the input domain. The variable at its extreme value can be selected at: – Minimum value (Min) – Value just above the minimum value (Min+ ) – Maximum value (Max) – Value just below the maximum value (Max-) – Nominal or Average Value Boundary Value Checking
  • 7. Software Testing Consider a program for determining the Previous date. Its input is a triple of day, month and year with the values in the range 1 ≤ month ≤ 12 1 ≤ day ≤ 31 1900 ≤ year ≤ 2025 The possible outputs would be Previous date or invalid input date. Design the boundary value test cases.
  • 8. Software Testing Solution The Previous date program takes a date as input and checks it for validity. If valid, it returns the previous date as its output. With single fault assumption theory, 4n+1 test cases can be designed and which are equal to 13.
  • 9. Software Testing The boundary value test cases are: Test Case Month Day Year Expected output 1 6 15 1900 14 June, 1900 2 6 15 1901 14 June, 1901 3 6 15 1962 14 June, 1962 4 6 15 2024 14 June, 2024 5 6 15 2025 14 June, 2025 6 6 1 1962 31 May, 1962 7 6 2 1962 1 June, 1962 8 6 30 1962 29 June, 1962 9 6 31 1962 Invalid date 10 1 15 1962 14 January, 1962 11 2 15 1962 14 February, 1962 12 11 15 1962 14 November, 1962 13 12 15 1962 14 December, 1962
  • 10. A value just greater than the Maximum value (Max+) A value just less than Minimum value (Min-) • When test cases are designed considering above points in addition to BVC, it is called Robustness testing. • Min.Value -1, Min. Value, Min. Value+1, Nominal or Average Value, Max. Value-1, Max. Value, Max. Value +1 • It can be generalized that for n input variables in a module, 6n+1 test cases are designed with Robustness testing. Robustness Testing Method
  • 11. Software Testing Consider a program for determining the Previous date. Its input is a triple of day, month and year with the values in the range 1 ≤ month ≤ 12 1 ≤ day ≤ 31 1900 ≤ year ≤ 2025 The possible outputs would be Previous date or invalid input date. Design the Robustness test cases.
  • 12. Software Testing Solution Robust test cases are 6n+1. Hence total 19 robust test cases are designed and are given on next slide.
  • 13. Software Testing Test case Month Day Year Expected Output 1 6 15 1899 Invalid date (outside range) 2 6 15 1900 14 June, 1900 3 6 15 1901 14 June, 1901 4 6 15 1962 14 June, 1962 5 6 15 2024 14 June, 2024 6 6 15 2025 14 June, 2025 7 6 15 2026 Invalid date (outside range) 8 6 0 1962 Invalid date 9 6 1 1962 31 May, 1962 10 6 2 1962 1 June, 1962 11 6 30 1962 29 June, 1962 12 6 31 1962 Invalid date 13 6 32 1962 Invalid date 14 0 15 1962 Invalid date 15 1 15 1962 14 January, 1962 16 2 15 1962 14 February, 1962 17 11 15 1962 14 November, 1962 18 12 15 1962 14 December, 1962 19 13 15 1962 Invalid date
  • 14. Software Testing Myths • When more than one variable are in extreme values, i.e. when more than one variable are on the boundary. It is called Worst case testing method. • It can be generalized that for n input variables in a module, 5n test cases are designed with worst case testing. • Preferably Robustness testing ranges could be considered for assigning values for the variables, so that more test cases could be designed for invalid inputs Worst Case Testing Method
  • 15. Software Testing In case of worst test case total test cases are 5n. Hence, 125 test cases will be generated in worst test cases. The worst test cases are given below: Test Case Month Day Year Expected output 1 1 1 1900 31 December, 1899 2 1 1 1901 31 December, 1900 3 1 1 1962 31 December, 1961 4 1 1 2024 31 December, 2023 5 1 1 2025 31 December, 2024 6 1 2 1900 1 January, 1900 7 1 2 1901 1 January, 1901 8 1 2 1962 1 January, 1962 9 1 2 2024 1 January, 2024 10 1 2 2025 1 January, 2025 11 1 15 1900 14 January, 1900 12 1 15 1901 14 January, 1901 13 1 15 1962 14 January, 1962 14 1 15 2024 14 January, 2024
  • 16. Software Testing Test Case A b c Expected output 15 1 15 2025 14 January, 2025 16 1 30 1900 29 January, 1900 17 1 30 1901 29 January, 1901 18 1 30 1962 29 January, 1962 19 1 30 2024 29 January, 2024 20 1 30 2025 29 January, 2025 21 1 31 1900 30 January, 1900 22 1 31 1901 30 January, 1901 23 1 31 1962 30 January, 1962 24 1 31 2024 30 January, 2024 25 1 31 2025 30 January, 2025 26 2 1 1900 31 January, 1900 27 2 1 1901 31 January, 1901 28 2 1 1962 31 January, 1962 29 2 1 2024 31 January, 2024 30 2 1 2025 31 January, 2025 31 2 2 1900 1 February, 1900
  • 17. Software Testing Test Case Month Day Year Expected output 32 2 2 1901 1 February, 1901 33 2 2 1962 1 February, 1962 34 2 2 2024 1 February, 2024 35 2 2 2025 1 February, 2025 36 2 15 1900 14 February, 1900 37 2 15 1901 14 February, 1901 38 2 15 1962 14 February, 1962 39 2 15 2024 14 February, 2024 40 2 15 2025 14 February, 2025 41 2 30 1900 Invalid date 42 2 30 1901 Invalid date 43 2 30 1962 Invalid date 44 2 30 2024 Invalid date 45 2 30 2025 Invalid date 46 2 31 1900 Invalid date 47 2 31 1901 Invalid date 48 2 31 1962 Invalid date
  • 18. Software Testing Test Case Month Day Year Expected output 49 2 31 2024 Invalid date 50 2 31 2025 Invalid date 51 6 1 1900 31 May, 1900 52 6 1 1901 31 May, 1901 53 6 1 1962 31 May, 1962 54 6 1 2024 31 May, 2024 55 6 1 2025 31 May, 2025 56 6 2 1900 1 June, 1900 57 6 2 1901 1 June, 1901 58 6 2 1962 1 June, 1962 59 6 2 2024 1 June, 2024 60 6 2 2025 1 June, 2025 61 6 15 1900 14 June, 1900 62 6 15 1901 14 June, 1901 63 6 15 1962 14 June, 1962 64 6 15 2024 14 June, 2024 65 6 15 2025 14 June, 2025
  • 19. Software Testing Test Case Month Day Year Expected output 66 6 30 1900 29 June, 1900 67 6 30 1901 29 June, 1901 68 6 30 1962 29 June, 1962 69 6 30 2024 29 June, 2024 70 6 30 2025 29 June, 2025 71 6 31 1900 Invalid date 72 6 31 1901 Invalid date 73 6 31 1962 Invalid date 74 6 31 2024 Invalid date 75 6 31 2025 Invalid date 76 11 1 1900 31 October, 1900 77 11 1 1901 31 October, 1901 78 11 1 1962 31 October, 1962 79 11 1 2024 31 October, 2024 80 11 1 2025 31 October, 2025 81 11 2 1900 1 November, 1900 82 11 2 1901 1 November, 1901
  • 20. Software Testing Test Case Month Day Year Expected output 83 11 2 1962 1 November, 1962 84 11 2 2024 1 November, 2024 85 11 2 2025 1 November, 2025 86 11 15 1900 14 November, 1900 87 11 15 1901 14 November, 1901 88 11 15 1962 14 November, 1962 89 11 15 2024 14 November, 2024 90 11 15 2025 14 November, 2025 91 11 30 1900 29 November, 1900 92 11 30 1901 29 November, 1901 93 11 30 1962 29 November, 1962 94 11 30 2024 29 November, 2024 95 11 30 2025 29 November, 2025 96 11 31 1900 Invalid date 97 11 31 1901 Invalid date 98 11 31 1962 Invalid date 99 11 31 2024 Invalid date 100 11 31 2025 Invalid date
  • 21. Software Testing Test Case Month Day Year Expected output 101 12 1 1900 30 November, 1900 102 12 1 1901 30 November, 1901 103 12 1 1962 30 November, 1962 104 12 1 2024 30 November, 2024 105 12 1 2025 30 November, 2025 106 12 2 1900 1 December, 1900 107 12 2 1901 1 December, 1901 108 12 2 1962 1 December, 1962 109 12 2 2024 1 December, 2024 110 12 2 2025 1 December, 2025 111 12 15 1900 14 December, 1900 112 12 15 1901 14 December, 1901 113 12 15 1962 14 December, 1962 114 12 15 2024 14 December, 2024 115 12 15 2025 14 December, 2025 116 12 30 1900 29 December, 1900 117 12 30 1901 29 December, 1901 118 12 30 1962 29 December, 1962
  • 22. Software Testing Test Case Month Day Year Expected output 119 12 30 2024 29 December, 2024 120 12 30 2025 29 December, 2025 121 12 31 1900 30 December, 1900 122 12 31 1901 30 December, 1901 123 12 31 1962 30 December, 1962 124 12 31 2024 30 December, 2024 125 12 31 2025 30 December, 2025 Note: 1. The author has used BVA ranges for designing the test cases but you can use Robustness Ranges also designing the test cases. 2. Carefully design the test cases without redundancy 3. Don’t take random values
  • 23. Example • A program reads an integer number within the range [1,100] and determines whether the number is a prime number or not. Design all test cases for this program using BVC, Robust testing and worst- case testing methods. • 1) Test cases using BVC
  • 24. Example • Test Cases Using Robust Testing
  • 26. Software Testing Equivalence Class Testing In this method, input domain of a program is partitioned into a finite number of equivalence classes such that one can reasonably assume, but not be absolutely sure, that the test of a representative value of each class is equivalent to a test of any other value. Two steps are required to implementing this method: 1. The equivalence classes are identified by taking each input condition and partitioning it into valid and invalid classes. For example, if an input condition specifies a range of values from 1 to 999, we identify one valid equivalence class[1<item<999]; and two invalid equivalence classes [item<1] and [item>999]. 2. Generate the test cases using the equivalence classes identified in the previous step. This is performed by writing test cases covering all the valid equivalence classes. Then a test case is written for each invalid equivalence class so that no test contains more than one invalid class. This is to ensure that no two invalid classes mask each other.
  • 27. Example • A program reads three numbers A, B and C with range [1,50] and prints largest number. Design all test cases for this program using equivalence class testing technique. I1 = {<A,B,C> : 1 ≤ A ≤ 50} I2 = {<A,B,C> : 1 ≤ B ≤ 50} I3 = {<A,B,C> : 1 ≤ C ≤ 50} I4 = {<A,B,C> : A < 1} I5 = {<A,B,C> : A > 50} I6 = {<A,B,C> : B < 1} I7 = {<A,B,C> : B > 50} I8 = {<A,B,C> : C < 1} I9 = {<A,B,C> : C > 50}
  • 28. • I1 = {<A,B,C> : A > B, A > C} • I2 = {<A,B,C> : B > A, B > C} • I3 = {<A,B,C> : C > A, C > B} • I4 = {<A,B,C> : A = B, A ≠ C} • I5 = {<A,B,C> : B = C, A ≠ B} • I6 = {<A,B,C> : A = C, C ≠ B } • I7 = {<A,B,C> : A = B = C} Example
  • 30. Decision Table Based Testing • It is another useful method to represent the information in a tabular method • It has the specialty to consider complex combinations of input conditions and resulting actions. • Decision tables obtain their power from logical expressions • Each operant or variable in a logical expression takes on the value, TRUE or FALSE
  • 31. • Condition Stub  it is a list of input conditions for which the complex combination is made • Action Stub it is a list of resulting actions which will be performed if a combination of input condition is satisfied • Condition entry it is a specific entry in the table corresponding to input onditions mentioned in the condition stub. When we enter T or F for all input conditions for a particular combination, then it is called a Rule and it defines which combination of conditions produces the resulting action. • Action Entry it is the entry in the table for the resulting action to be performed when one rule is satisfied, ‘X’ denotes the action entry in the table.
  • 32. Decision Table Based Testing Example • A program calculates the total salary of an employee with the conditions that if the working hours are less than or equal to 48, then give normal salary. The hours over 48 on normal working days are calculated at the rate of 1.25 of the salary. However, on holidays or Sundays, the hours are calculated at the rate of 2.00 times of the salary. Design the test cases using decision table testing.
  • 33. Decision Table Based Testing Test case id Working Hour Day Expected Result 1 48 Monday Normal Salary(Rule2) 2 45 Tuesday Normal Salary(Rule 2) 3 50 Tuesday 1.25 of salary(Rule 3) 4 55 Wednesday 1.25 of salary (Rule 3) 5 52 Sunday 2.00 of Salary(Rule 1) 6 60 Holiday 2.00 of Salary(Rule1)