Saket Singh B248 70021118053 Btech Cs Se Assignment 3 Sem Vi
Saket Singh B248 70021118053 Btech Cs Se Assignment 3 Sem Vi
Early Testing:
To find the defect in the software, early test activity shall be started. The defect
detected in early phases of SDLC will very less expensive. For better performance
of software, software testing will start at initial phase i.e., testing will perform at the
requirement analysis phase.
Defect clustering:
In a project, a small number of the module can contain most of the defects. Pareto
Principle to software testing state that 80% of software defect comes from 20% of
modules.
Pesticide paradox:
Repeating the same test cases again and again will not find new bugs. So, it is
necessary to review the test cases and add or update test cases to find new bugs.
Q2. Differentiate between white box and Black box testing with proper
example and type of it.
ANS:
In Black-box testing, a tester doesn't have any information about the internal working of the
software system. Black box testing is a high level of testing that focuses on the behavior of the
software. It involves testing from an external or end-user perspective. Black box testing can be
applied to virtually every level of software testing: unit, integration, system, and acceptance.
White Box testing:
White-box testing is a testing technique which checks the internal functioning of the system. In
this method, testing is based on coverage of code statements, branches, paths or conditions.
White-Box testing is considered as low-level testing. It is also called glass box, transparent box,
clear box or code base testing. The white-box Testing method assumes that the path of the logic
in a unit or program is known.
Black box testing is the Software testing White box testing is the software testing
method which is used to test the software method in which internal structure is being
without knowing the internal structure of code known to tester who is going to test the
or program. software.
Testing is applicable on higher levels of testing Testing is applicable on lower level of testing
like System Testing, Acceptance testing. like Unit Testing, Integration testing.
Black box testing means functional test or White box testing means structural test or
external testing. interior testing.
The main aim of this testing to check on what The main aim of White Box testing to check
functionality is performing by the system under
on how System is performing.
test.
Black Box testing can be started based on White Box testing can be started based on
Requirement Specifications documents. Detail Design documents.
The goal of WhiteBox testing in software engineering is to verify all the decision branches,
loops, statements in the code.
To exercise the statements in the above white box testing example, WhiteBox test cases would
be
A = 1, B = 1
A = -1, B = -3
Regression Testing
Regression Testing is done after code fixes, upgrades or any other system maintenance to
check the new code has not affected the existing code.
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 --
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.
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.
Apart from above, a few testing types are part of both black box and white box testing. They are
listed as below
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
White Box Mutation Testing: Mutation testing is often used to discover the best coding
techniques to use for expanding a software solution.