Unit 3 STPM 5it5-12 2023
Unit 3 STPM 5it5-12 2023
UNIT 3
What is Black box Testing?
Black-box testing is a method of software testing that examines the
functionality of an application based on the specifications. It is also known as
Specifications based testing. Independent Testing Team usually performs this
type of testing during the software testing life cycle.
In this method, tester selects a function and gives input value to examine its
functionality, and checks whether the function is giving expected output or
not. If the function produces correct output, then it is passed in testing,
otherwise failed. The test team reports the result to the development team
and then tests the next function. After completing testing of all functions if
there are severe problems, then it is given back to the development team for
correction.
This method of test can be applied to each and every level of software testing
such as unit, integration, system and acceptance testing.
There are different techniques involved in Black Box testing.
Equivalence Class
Boundary Value Analysis
Decision Tables
State Transition
Use Case
All-pairs testing
UNIT-3 Page 1
Software Testing and Project Management - 5IT5 – 12
o Use Case -Use case Technique used to identify the test cases from the
beginning to the end of the system as per the usage of the system. By
using this technique, the test team creates a test scenario that can
exercise the entire software based on the functionality of each function
from start to end.
o All-Pair Testing -All-pair testing Technique is used to test all the possible
discrete combinations of values. This combinational method is used for
testing the application that uses checkbox input, radio button input, list
box, text box, etc.
UNIT-3 Page 2
Software Testing and Project Management - 5IT5 – 12
box” in “Black Box Testing” symbolizes not being able to see the inner workings
of the software so that only the end-user experience can be tested.
Types of White Box Testing
White box testing encompasses several testing types used to evaluate the
usability of an application, block of code or specific software package. There
are listed below —
o Unit Testing: It is often the first type of testing done on an application.
Unit Testing is performed on each unit or block of code as it is
developed. Unit Testing is essentially done by the programmer. As a
software developer, you develop a few lines of code, a single function or
an object and test it to make sure it works before continuing Unit
Testing helps identify a majority of bugs, early in the software
development lifecycle. Bugs identified in this stage are cheaper and easy
to fix.
o Testing for Memory Leaks: Memory leaks are leading causes of slower
running applications. A QA specialist who is experienced at detecting
memory leaks is essential in cases where you have a slow running
software application.
o White Box Penetration Testing: In this testing, the tester/developer has
full information of the application’s source code, detailed network
information, IP addresses involved and all server information the
application runs on. The aim is to attack the code from several angles to
expose security threats.
o White Box Mutation Testing: Mutation testing is often used to discover
the best coding techniques to use for expanding a software solution.
UNIT-3 Page 3
Software Testing and Project Management - 5IT5 – 12
o Developers who usually execute white box test cases detest it. The white
box testing by developers is not detailed and can lead to production
errors.
o White box testing requires professional resources with a detailed
understanding of programming and implementation.
o White-box testing is time-consuming, bigger programming applications
take the time to test fully.
UNIT-3 Page 4
Software Testing and Project Management - 5IT5 – 12
UNIT-3 Page 5