Black box and white box testing

suryaprakashpandey 5,501 views 13 slides May 01, 2021
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

Black-box testing is a method of software testing that examines the functionality of an application based on the specifications.
White box testing is a testing technique, that examines the program structure and derives test data from the program logic/code


Slide Content

BLACKBOX AND WHITEBOX TESTING
Prepared By:
Mr. Surya Prakash Pandey
Awadhesh Pratap Singh Uniersity,
Rewa(M.P.)

BLACKBOXTESTING
InBlackBoxTestingwejustfocusoninputsand
outputofthesoftwaresystemwithoutbothering
aboutinternalknowledgeofthesoftwareprogram.
[Figure of Blackbox Testing]
TheaboveBlackBoxexecutableprogramcanbeany
softwaresystemyouwanttotest.

BLACKBOXTESTING
Byapplyingblack-boxtechniques,youderiveasetof
testcasesthatsatisfythefollowingcriteria:
(1)testcasesthatreduce,byacountthatisgreater
thanonethenumberofadditionaltestcasesthatmust
bedesignedtoachievereasonabletesting,and
(2)testcasesthattellyousomethingaboutthe
presenceorabsenceofclassesoferrors,ratherthan
anerrorassociatedonlywiththespecifictestathand.

BLACKBOXTESTING
Blackbox Techniques/ Methods:
Equivalencepartitioning:Itisasoftwaretestdesign
techniquethatinvolvesdividinginputvaluesintovalid
andinvalidpartitionsandselectingrepresentative
valuesfromeachpartitionastestdata.
BoundaryValueAnalysis:Itisasoftwaretestdesign
techniquethatinvolvesdeterminationofboundaries
forinputvaluesandselectingvaluesthatareatthe
boundariesandjustinside/outsideoftheboundaries
astestdata.
Causeeffectgraphing:Itisasoftwaretestdesign
techniquethatinvolvesidentifyingthecases(input
conditions)andeffects(outputconditions),producing
aCause-EffectGraph,andgeneratingtestcases
accordingly.

WHITEBOXTESTING:
WhiteBoxTesting(alsoknownasClearBoxTesting,
OpenBoxTesting,GlassBoxTesting,TransparentBox
Testing,Code-BasedTestingorStructuralTesting)is
asoftwaretestingmethodinwhichtheinternal
structure/design/implementationoftheitembeing
testedisknowntothetester.
WhiteBoxTestingisliketheworkofamechanicwho
examinestheenginetoseewhythecarisnotmoving.
Usingwhite-boxtestingmethods,youcanderivetest
casesthat
(1)guaranteethatallindependentpathswithina
modulehavebeenexercisedatleastonce

(2) exercise all logical decisions on their true and
false sides
(3) execute all loops at their boundaries and within
their operational bounds
(4) exercise internal data structures to ensure their
validity.
WHITEBOXTESTING:

WHITEBOXTESTING:
[Figure of Whitebox Testing Approach]

WHITEBOXTESTING:
WhyandWhenWhite-BoxTesting:
Whiteboxtestingismainlyusedfordetectinglogical
errorsintheprogramcode.
Itisusedfordebuggingacode,findingrandom
typographicalerrors,anduncoveringincorrect
programmingassumptions.
Whiteboxtestingisdoneatlowleveldesignand
implementablecode.
Itcanbeappliedatalllevelsofsystemdevelopment
especiallyUnit,systemandintegrationtesting.
Whiteboxtestingcanbeusedforotherdevelopment
artifactslikerequirementsanalysis,designingandtest
cases.

WHITEBOXTESTING:
Whitebox Testing Techniques:
Following are Whitebox testing techniques:
Statementcoverage:Thistechniqueisaimedat
exercisingallprogrammingstatementswithminimal
tests.
Branchanddecisioncoverage:Thistechniqueis
runningaseriesofteststoensurethatallbranchesare
testedatleastonce.
Tools:Anexampleofatoolthathandlesbranch
coveragetestingforC,C++andJavaapplications
isTCAT-PATH
Pathcoverage:Thistechniquecorrespondstotesting
allpossiblepathswhichmeansthateachstatement
andbranchiscovered.

WHITEBOXTESTING:
[Figure of Path coverage Example]

COMPARISONOFBLACKBOXTESTINGANDWHITEBOXTESTING:

COMPARISONOFBLACKBOXTESTINGANDWHITEBOXTESTING:

THANKYOU