Software Testing Techniques
Test you code.
Aman Jain
Application Engineer,
Meritech Software Pvt. Ltd.
Characteristics of Testable Software
o Operable
o The better it works (i.e., better quality), the easier it
is to test
o Observable
o Incorrect output is easily identified; internal errors
are automatically detected
o Controllable
o The states and variables of the software can be
controlled directly by the tester
o Decomposable
o The software is built from independent modules
that can be tested independently
Characteristics of Testable Software
o Simple
o The program should exhibit functional, structural,
and code simplicity
o Stable
o Changes to the software during testing are
infrequent and do not invalidate existing tests
o Understandable
o The architectural design is well understood;
documentation is available and organized
Test Characteristics
o A good test has a high probability of
finding an error
o The tester must understand the software and how
it might fail
o A good test is not redundant
o Testing time is limited; one test should not serve
the same purpose as another test
o A good test should be “best of breed”
o Tests that have the highest likelihood of
uncovering a whole class of errors should be used
o A good test should be neither too
simple nor too complex
o Each test should be executed separately
Testing Techniques
o White Box Testing
o Testing of a software solution’s internal
coding and infrastructure.
o Black Box Testing
o Functionality of the Software-Under-Test
(SUT) is checked without looking at the
internal coding and structure.
White Box Testing
o Developers get involved.
o Knowing the internal workings of
a product, all the internal
operations are tested according
to specifications and all internal
components are exercised.
o Logical paths through the
software are tested.
White Box Testing
o Other names:
o Clear Box Testing
o Structural Box Testing
o Open Box Testing
o Opaque (or Glass) Box Testing
Types of White Box Testing
o UNIT Testing
o INTEGRATION Testing
Unit Testing
o A ‘unit’ is the smallest part in the
application where the
developers test the individual
units of source code.
o Its a verification and validation
methodology where the
developers test the individual
units of source code.
o These tests are conducted during
development.
Unit Testing
o There are 2 ways of doing “Unit
Test” in .NET
o Visual Studio Unit Test Facility
o In-Built
o Third-Party Software (Not Recommended)
o NUnit
Types of Unit Tests
o Basically 3 types:
o Execution Testing:
oAgain 3 types:
o Conditional Coverage:
o Conditional Statements like IF-ELSE are
tested.
o Loops Coverage:
o Loops like FOR,WHILE,DO-WHILE are
tested.
o Program Technique Testing:
o Test to optimize the code (minimum
number of lines).
Types of Unit Tests
o Operational Testing:
oCode should execute on customer
expected Operating System.
o Mutation Testing:
oIntentionally try to bring errors in
program execution to increase
efficiency.
Example of Unit Testing
o Through Visual Basic Unit Test:
Example of Unit Testing
o Through NUnit:
Integration Testing
o Check all the modules are
working with each other as a
whole or not.
o There are 2 approaches in
Integration Testing:
o TOP DOWN Approach
o BOTTOM UP Approach
Top Down Approach
o Main Module is ready and Sub-
Module is under development.
o Ex: “Log-in” is Ready and “Register” is under
development.
o Temporary Program (called as
“STUBS” in this approach) are like
alternatives which takes the
module under development, so
that testing activity of the main
module, or the module which is
ready, can be done.
Bottom Up Approach
o Main module is under
development and Sub-Module is
ready.
o “Log-in” is under development and “Register” is
ready.
o Temporary Program (called as
“DRIVERS” in this approach) are
like alternatives which takes the
module under development and
the testing activity of the module
which is ready, is done.
Black Box Testing
o Testers get involved.
o Knowing the specified function
that a product has been
designed to perform, testing is
done so as to see if that function
is fully operational and error free.
o Not concerned with internal
logical structure of the software.
o Includes tests that are conducted
at the software interface.
Black Box Testing
o Other names:
o Closed Box Testing
o Functionality Testing
o Behavioral Testing
o Test is done just by knowing the inputs
and outputs without knowing their
internal code implementation.
BLACK BOXInput Output
Types of Black Box Testing
o Functional Testing:
o Related to functional requirements of the
system.
o Non-Functional Testing:
o Not related to testing of a specific
functionality but non-functional
requirements such as performance,
scalability, usability.
o Regression Testing:
o Done after code fixes, upgrades or any
other system maintenance to check the
new code has not affected the existing
code.
References
o http://www.guru99.com/
o Online QTP Tutorials.
o http://www.nunit.org/
Thank You!

More Related Content

PPS
Unit Testing
PPTX
Unit Testing in Android
PPTX
Unit testing
PPTX
PPT
Software Testing Tecniques
PPTX
White box & Black box testing
PPTX
Introduction to qa
PPTX
Unit testing en Windows 10
Unit Testing
Unit Testing in Android
Unit testing
Software Testing Tecniques
White box & Black box testing
Introduction to qa
Unit testing en Windows 10

What's hot (19)

PPTX
White box testing
PPT
Testing, black ,white and gray box testing
PPTX
Unit testing
PPTX
WHITE BOX & BLACK BOX TESTING IN DATABASE
PDF
Pragmatic Introduction to PHP Unit Testing (2015)
PPTX
5 black box and grey box testing
PPT
Black box & white-box testing technique
PPT
Gray box testing
PPTX
Introduction to White box testing
PPTX
White box testing
KEY
Unit Testing Your Application
PPT
N Unit Presentation
PPT
Software testing- an introduction
PPT
Testing ppt
PPT
Software testing
PPTX
Unit tests & TDD
PPS
Why Unit Testingl
PPTX
The Test way
White box testing
Testing, black ,white and gray box testing
Unit testing
WHITE BOX & BLACK BOX TESTING IN DATABASE
Pragmatic Introduction to PHP Unit Testing (2015)
5 black box and grey box testing
Black box & white-box testing technique
Gray box testing
Introduction to White box testing
White box testing
Unit Testing Your Application
N Unit Presentation
Software testing- an introduction
Testing ppt
Software testing
Unit tests & TDD
Why Unit Testingl
The Test way
Ad

Similar to Testing ppt (20)

PPT
Testing chapter updated (1)
PPTX
System Testing.pptx
PPTX
Fundamentals of software part 1
PPT
Test Levels & Techniques
PPTX
Software testing
PPTX
Software testing
PPTX
softwaretesting-140721025833-phpapp02.pptx
PPTX
Software testing.ppt
PDF
softwaretesting-140721025833-phpapp02.pdf
PPT
testing strategies and tactics
PPTX
SE-Unit 4_software testing stretagy.pptx
PPTX
Software testing
PPT
Software Testing Presentation in Cegonsoft Pvt Ltd...
PPTX
Software testing strategies
PDF
PPT
Software testing part
PDF
Software Testing Techniques: An Overview
PPT
System Testing by system analysis design.ppt
PPTX
Types of testing
Testing chapter updated (1)
System Testing.pptx
Fundamentals of software part 1
Test Levels & Techniques
Software testing
Software testing
softwaretesting-140721025833-phpapp02.pptx
Software testing.ppt
softwaretesting-140721025833-phpapp02.pdf
testing strategies and tactics
SE-Unit 4_software testing stretagy.pptx
Software testing
Software Testing Presentation in Cegonsoft Pvt Ltd...
Software testing strategies
Software testing part
Software Testing Techniques: An Overview
System Testing by system analysis design.ppt
Types of testing
Ad

Recently uploaded (20)

PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
STKI Israel Market Study 2025 version august
PDF
Unlock new opportunities with location data.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPT
Geologic Time for studying geology for geologist
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PPTX
Modernising the Digital Integration Hub
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Getting started with AI Agents and Multi-Agent Systems
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
WOOl fibre morphology and structure.pdf for textiles
Hindi spoken digit analysis for native and non-native speakers
observCloud-Native Containerability and monitoring.pptx
sustainability-14-14877-v2.pddhzftheheeeee
Taming the Chaos: How to Turn Unstructured Data into Decisions
STKI Israel Market Study 2025 version august
Unlock new opportunities with location data.pdf
Chapter 5: Probability Theory and Statistics
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
A contest of sentiment analysis: k-nearest neighbor versus neural network
Geologic Time for studying geology for geologist
DP Operators-handbook-extract for the Mautical Institute
Enhancing emotion recognition model for a student engagement use case through...
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
O2C Customer Invoices to Receipt V15A.pptx
Modernising the Digital Integration Hub
From MVP to Full-Scale Product A Startup’s Software Journey.pdf

Testing ppt

  • 1. Software Testing Techniques Test you code. Aman Jain Application Engineer, Meritech Software Pvt. Ltd.
  • 2. Characteristics of Testable Software o Operable o The better it works (i.e., better quality), the easier it is to test o Observable o Incorrect output is easily identified; internal errors are automatically detected o Controllable o The states and variables of the software can be controlled directly by the tester o Decomposable o The software is built from independent modules that can be tested independently
  • 3. Characteristics of Testable Software o Simple o The program should exhibit functional, structural, and code simplicity o Stable o Changes to the software during testing are infrequent and do not invalidate existing tests o Understandable o The architectural design is well understood; documentation is available and organized
  • 4. Test Characteristics o A good test has a high probability of finding an error o The tester must understand the software and how it might fail o A good test is not redundant o Testing time is limited; one test should not serve the same purpose as another test o A good test should be “best of breed” o Tests that have the highest likelihood of uncovering a whole class of errors should be used o A good test should be neither too simple nor too complex o Each test should be executed separately
  • 5. Testing Techniques o White Box Testing o Testing of a software solution’s internal coding and infrastructure. o Black Box Testing o Functionality of the Software-Under-Test (SUT) is checked without looking at the internal coding and structure.
  • 6. White Box Testing o Developers get involved. o Knowing the internal workings of a product, all the internal operations are tested according to specifications and all internal components are exercised. o Logical paths through the software are tested.
  • 7. White Box Testing o Other names: o Clear Box Testing o Structural Box Testing o Open Box Testing o Opaque (or Glass) Box Testing
  • 8. Types of White Box Testing o UNIT Testing o INTEGRATION Testing
  • 9. Unit Testing o A ‘unit’ is the smallest part in the application where the developers test the individual units of source code. o Its a verification and validation methodology where the developers test the individual units of source code. o These tests are conducted during development.
  • 10. Unit Testing o There are 2 ways of doing “Unit Test” in .NET o Visual Studio Unit Test Facility o In-Built o Third-Party Software (Not Recommended) o NUnit
  • 11. Types of Unit Tests o Basically 3 types: o Execution Testing: oAgain 3 types: o Conditional Coverage: o Conditional Statements like IF-ELSE are tested. o Loops Coverage: o Loops like FOR,WHILE,DO-WHILE are tested. o Program Technique Testing: o Test to optimize the code (minimum number of lines).
  • 12. Types of Unit Tests o Operational Testing: oCode should execute on customer expected Operating System. o Mutation Testing: oIntentionally try to bring errors in program execution to increase efficiency.
  • 13. Example of Unit Testing o Through Visual Basic Unit Test:
  • 14. Example of Unit Testing o Through NUnit:
  • 15. Integration Testing o Check all the modules are working with each other as a whole or not. o There are 2 approaches in Integration Testing: o TOP DOWN Approach o BOTTOM UP Approach
  • 16. Top Down Approach o Main Module is ready and Sub- Module is under development. o Ex: “Log-in” is Ready and “Register” is under development. o Temporary Program (called as “STUBS” in this approach) are like alternatives which takes the module under development, so that testing activity of the main module, or the module which is ready, can be done.
  • 17. Bottom Up Approach o Main module is under development and Sub-Module is ready. o “Log-in” is under development and “Register” is ready. o Temporary Program (called as “DRIVERS” in this approach) are like alternatives which takes the module under development and the testing activity of the module which is ready, is done.
  • 18. Black Box Testing o Testers get involved. o Knowing the specified function that a product has been designed to perform, testing is done so as to see if that function is fully operational and error free. o Not concerned with internal logical structure of the software. o Includes tests that are conducted at the software interface.
  • 19. Black Box Testing o Other names: o Closed Box Testing o Functionality Testing o Behavioral Testing o Test is done just by knowing the inputs and outputs without knowing their internal code implementation. BLACK BOXInput Output
  • 20. Types of Black Box Testing o Functional Testing: o Related to functional requirements of the system. o Non-Functional Testing: o Not related to testing of a specific functionality but non-functional requirements such as performance, scalability, usability. o Regression Testing: o Done after code fixes, upgrades or any other system maintenance to check the new code has not affected the existing code.
  • 21. References o http://www.guru99.com/ o Online QTP Tutorials. o http://www.nunit.org/