Weitere ähnliche Inhalte Ähnlich wie Adopting the Pairwise Test Design Technique to Optimize Printer Driver Test Coverage (20) Mehr von HCL Technologies (20) Kürzlich hochgeladen (20) Adopting the Pairwise Test Design Technique to Optimize Printer Driver Test Coverage3. ©2015,HCLTechnologies.ReproductionProhibited.ThisdocumentisprotectedunderCopyrightbytheAuthor,allrightsreserved.
Testingtheinteractionsbetweenprinterdrivervariableshasalwaysbeenachallenge.Consideringthat
testingallthepossiblecombinationsofdrivervariableinteractionsisquiteimpractical,thereisalwaysa
demandforoptimizingthetestcoverage.Pairwisetesting,whichisaproventechniqueinthesoftwaretesting
industry,canbeadoptedtoprovideoptimizedtestcoverageforprinterdrivertesting.
AAcasestudyhasbeenconductedtoexploretheeffectivenessofusingthepairwisetestdesigntechnique
againstthelegacyapproachthatusedrandomization,usingoperationalprofiles.Theinputdatacontained
around61variablesresultinginapproximately2800pairwisetestcasestocompletelytestallvariableinterac-
tions.Thetestcasesgeneratedbythepairwiseapproachandtheteststhatweregeneratedusingthelegacy
approachwereexecutedontheproductundertestanditwasobservedthatthepairwisetestscenarioswere
abletodetect19%moreofdefectsthantheonesthatweredetectedbythelegacytestcaseswithanexecu-
tioneffortsavingsof70%.
Foranyapplicationinthecurrentworld,duetothedistinctvarietiesofusergroups,thereisaneedforaccom-
modatingmoreinputvariablesinasoftwaresystem.Withthisincrease,thecomplexitymultipliesintesting
theinteractionsbetweenallthesevariables.Withonly10variableseachwith2statesperse,thetotaltestsce-
nariostotestallthepossiblecombinationswillbe210
=1024testcases.Ifjustonemorevariableisaddedto
thesoftwaresystem with2states,thetotaltestscenariosbecome2048!
Inaprinterdriver,therearemorethan60inputvariablesleadingtoanunimaginablenumberoftestcombi-
nations;acompletecoverageofwhich,isnearlyimpossibletoprovide.Consideringthecompetitivemarket
Sl.No
1
2
3
4
5
6
77
DRE
TTM
NASA
OS
PDL
PICT
OATSOATS
DefectRemovalEfficiency
TimeToMarket
OperatingSystem
PageDescriptionLanguage
OrthogonalArrayTestStrategy
TheNationalAeronauticsandSpace
Administration,USA
PairwiseIndependentCombinatorial
Testingtoolfrom Microsoft
FullFormAcronyms
Abstract
Abbreviations
MarketTrendsandChallenges
AdoptingthePairwiseTestDesignTechniquetoOptimizePrinterDriverTestCoverage |3
4. ©2015,HCLTechnologies.ReproductionProhibited.ThisdocumentisprotectedunderCopyrightbytheAuthor,allrightsreserved.
environmentandtheneedforareducedtimetomarket(TTM),thetestteamsarechallengedtocomeupwith
variousstrategiestooptimizetestingwithoutcompromisingonthequalityofthedeliverables.Thismay
includereducingtheoverallnumberoftestcasestoaccelerateproducttimetomarket
Sometimes,testteamschooseoption(2)whichcanefficientlyunveilamorenumberofdefectsbutnotmost
ofthem.Withthisoption,providingaquantitativenumberintermsoftestcoverageisachallengeaswell.
Mostoften,option(1)ischosenbymanytestteamswhichbringsineffectivetestcoverage,leadingtopoor
DefectRemovalEfficiency(DRE).ApoorDREmeansmorefielddefectsandlesssatisfiedcustomers.
Byrandomlypickingasubsetoftestsfrom theoverallcountwithoutadoptingastrategy(pureran-
domizationorguessing)
Byrandomlypickingasubsetoftestsfrom theoverallcountusingoperationalprofiles(morefocus
oncustomerusagelikepapersizes/papertypes,highestcustomerbaselikeWindows8.1,Mac10.9,
etc.)or
Bychoosingastatistically-basedtestdesigntechnique.
Thesolutiontothecombinatorialtestingproblem statedinthepreviouspageistoadoptthePairwiseTest
DesignTechniquefortestingtheprinterdriver’svariableinteractions.
PairwisePairwisetestingisaneconomicalalternativetotestingallthepossiblecombinationsofasetofvariables.Itis
aneffectivetestcasegenerationtechniquebasedonthehistoricaldatathatmostfaultsarecausedbyinterac-
tionsoftwoactions.Inpairwisetesting,testcasesaredesignedtoexecuteallthepossiblediscretecombina-
tionsofeachpairofinputparameters.Pairwise-generatedtestsuitescoverallthecombinationsoftwo;and
arethereforemuchsmallerthanexhaustiveones,yetstillveryeffectiveinfindingdefects.Pairwisetestingis
alsoreferredtoasall-pairstestingor2-waytesting.
Graph1showsthecumulativepercentageofsoftwaredefectsdetectedbythen-tupleinteractionswhereitis
apparentthatformedicaldevicesoftwareandNASAapplications,pairwiseinteractionsareabletodetect
morethan90%ofsoftwarefailures.Higher-orderinteractions(3-way,4-way,etc.)canstillbeadopted,ifpre-
ferred,butthebenefit-costratiowillbeconsiderablyless.
Graph1.Errordetectionratesforinteractionstrengths1to6
Cumulativepercentof
softwarefailures
Interactions
MediacalDevices
Browser
Sensor
NASA
NetworkSecurity
Solution
AdoptingthePairwiseTestDesignTechniquetoOptimizePrinterDriverTestCoverage |4
10. Formoredetailscontact:ers.info@hcl.com
Followusontwitter:http://twitter.com/hclersand
Ourbloghttp://www.hcltech.com/blogs/engineering-and-rd-services
Visitourwebsite:http://www.hcltech.com/engineering-rd-services
Hello,I’m from HCL’sEngineeringandR&DServices.Weenabletechnologyledorganizationstogotomarketwithinnovativeproducts
andsolutions.Wepatnerwithourcustomersinbuildingworldclassproductsandcreatingassociatedsolutiondeliveryecosystems
to help bringmarketleadership.Wedevelop engineeringproducts,solutionsand platformsacrossAerospaceand Defense,
Automotive,ConsumerElectronics,Software,Online,IndustrialManufacturing,MedicalDevices,NetworkingandTelecom,Office
Automation,SemiconductorandServers&Storageforourcustomers.
ThiswhitepaperispublishedbyHCLEngineeringandR&DServices.
Theviewsandopinionsinthisarticleareforinformationalpurposesonlyandshouldnotbeconsideredasasubstituteforprofessional
businessadvice.TheusehereinofanytrademarksisnotanassertionofownershipofsuchtrademarksbyHCLnorintendedtoimply
anyassociationbetweenHCLandlawfulownersofsuchtrademarks.
FormoreinformationaboutHCLEngineeringandR&DServices,
Pleasevisithttp://www.hcltech.com/engineering-rd-services
Copyright@ HCCopyright@ HCLTechnologies
Allrightsreserved.
SwadishAaryan
HCLEngineeringandR&DServices
Reference
AuthorInfo
1)http://www.pairwise.org/
2)PairwiseTestingintheRealWorld:
PracticalExtensionstoTest-CaseScenarios.(http://msdn.microsoft.com/en-us/library/cc150619.aspx#Pairwise_topic1)
3)JamesBachandPatrickJ.Schroeder,PairwiseTesting:ABestPracticeThatIsn’t
4)JacekCzerwonka,PICT3.3User’sGuide
5)PracticalCombinatorialTesting.SP800-142.(Report).Natl.Inst.ofStandardsandTechnology.2010.
AdoptingthePairwiseTestDesignTechniquetoOptimizePrinterDriverTestCoverage |10