Professional Documents
Culture Documents
.Trashed-1687492846-Chap 3.5
.Trashed-1687492846-Chap 3.5
.Trashed-1687492846-Chap 3.5
5 Testing
• Black Box Testing:
• It is a way of software testing in which the internal
structure or the program or the code is hidden and
nothing is known about it.
• It also known as data-driven, box testing, data-, and
functional testing.
• This type of testing is ideal for higher levels of testing
like System Testing, Acceptance testing.
• It is mostly done by software testers.
• No knowledge of implementation is needed.
• It is functional test of the software.
• Testing can start after preparing requirement
specification document.
• Techniques used:
• Equivalence partitioning: Equivalence partitioning divides
input values into valid and invalid partitions and selecting
corresponding values from each partition of the test
data.
• Ex. Username – accept number only.( Fail- Char, fraction)
• Password – Combination of 4 to 6 char. (1caps, 1lower,
1special, 1number)( null/ blank)
• Boundary value analysis: checks boundaries for input
values.
• Advantages of Black Box Testing
• Efficient when used on large systems.
• Since the tester and developer are independent of
each other, testing is balanced and unprejudiced.
• Tester can be non-technical.
• There is no need for the tester to have detailed
functional knowledge of system.
• Tests will be done from an end user's point of
view, because the end user should accept the
system. (This testing technique is sometimes also
called Acceptance testing.)
• Testing helps to identify vagueness and
contradictions in functional specifications.
• Test cases can be designed as soon as the
functional specifications are complete.
• Disadvantages of Black Box Testing
• Test cases are challenging to design without
having clear functional specifications.
• It is difficult to identify tricky inputs if the test
cases are not developed based on specifications.
• It is difficult to identify all possible inputs in
limited testing time. As a result, writing test cases
may be slow and difficult.
• There are chances of having unidentified paths
during the testing process.
• There is a high probability of repeating tests
already performed by the programmer.
• White Box Testing:
• It is a way of testing the software in which the
tester has knowledge about the internal
structure or the code or the program of the
software.
• It is also called structural testing, clear box
testing, code-based testing, or glass box testing.
• Testing is best suited for a lower level of testing
like Unit Testing, Integration testing.
• It is mostly done by software developers.
• Knowledge of implementation is required.
• It is structural test of the software.
• Testing can start after preparing for Detail design
document.
• Techniques Used:
• Statement Coverage, Branch coverage, and Path
coverage are White Box testing technique.
• Statement Coverage validates whether every
line of the code is executed at least once.
• Branch coverage validates whether each branch
is executed at least once.
• Path coverage method tests all the paths of the
program
• Advantages of White Box Testing
• Code optimization by finding hidden errors.
• White box tests cases can be easily
automated.
• Testing is more thorough as all code paths are
usually covered.
• Testing can start early in SDLC even if GUI is
not available.
• Disadvantages of White Box Testing
• White box testing can be quite complex and
expensive.
• Developers who usually execute white box test
cases detest it. The white box testing by developers
is not detailed can lead to production errors.
• White box testing requires professional resources,
with a detailed understanding of programming and
implementation.
• White-box testing is time-consuming, bigger
programming applications take the time to test
fully.
White box testing Black Box Testing
The tester needs to have the This technique is used to test the
knowledge of internal code or software without the knowledge
program. of internal code or program.
Testing is best suited for a lower This type of testing is ideal for
level of testing like Unit Testing, higher levels of testing like System
Integration testing. Testing, Acceptance testing.
White box testing Black Box Testing
7. Attachments :
A sequence of screenshots of performing the step by step actions and
getting the unexpected result. One can also attach a short screen
recording of performing the steps and encountering defects. Short
videos help developers and/or QA to understand the bugs easily and
quickly.
8. Additional information :
The platform you used, operating system and version. And other
information which describes the defects in detail for assisting the
developer understand the problem and fixing the code for getting
desired results.
Test Summary Report
• Test Report is a document which contains a summary
of all test activities and final test results of a testing
project.
• Test report is an assessment of how well the Testing is
performed. Based on the test report, test manager can
evaluate the quality of the tested product and make a
decision on the software release.
• For example, if the test report informs that there are
many defects remaining in the product, test manager
can delay the release until all the defects are fixed.
• Test Summary
• This section includes the summary of testing
activity in general. Information detailed here
includes
• The number of test cases executed
• The numbers of test cases pass
• The numbers of test cases fail
• Pass percentage
• Fail percentage