NAME, 05 OCTOBER, 2016.

Added on - 22 Sep 2019

  • 6

    Pages

  • 1487

    Words

  • 71

    Views

  • 0

    Downloads

Trusted by +2 million users,
assist thousands of students everyday
Showing pages 1 to 3 of 6 pages
STUDENT05 OCTOBER,2016QUESTIONNAIRESOLUTION0|P a g e
NAME,05 OCTOBER,20161.A devicesupportstwofeatures:FeatureA and FeatureB. Bothcan be turnedoff and on.FeatureB is dependenton FeatureA. Therefore,if FeatureA is off, FeatureB will not work.FeatureA is on by default.Designthe optimalset of test casesthatwill test all combinationsof FeatureA and FeatureB.ANSWER:TEST CASE IDDESCRIPTIONEXPECTEDRESULTACTUAL RESULTSUCCESS /FAILURE1FeatureA isturnedoff and Bis on.FeatureA and Bwill not workFeatureA and Bdoesn’tworkSuccess2FeatureA is onand featureBoff.FeatureA willworkand B willnot work.FeatureA worksand B doesn’twork.Success3FeatureA isturnedoff and Bis off.FeatureA and Bwill not workFeatureA and Bdoesn’tworkSuccess4FeatureA is onand featureB ison.FeatureA willworkand B willalsowork.FeatureA worksand B alsowork.Success2.UnsignedintegerX is an inputparameterto a device.The deviceexpectsX to be withinarange,X = [a,b].a and b are includedin the range,and b is alwaysgreaterthana. Createtheoptimizednumberof teststo verifythata devicecan receiveX. Specifya valuefor X in eachtest case.ANSWER:TEST CASE IDVALUE OF XDESCRIPTIONEXPECTEDRESULTACTUALRESULTSUCCESS /FAILUREab112b>aX will beacceptedbydeviceAcceptedSuccess221a>bX will not beacceptedbydevice.RejectedSuccess311a=bX will not beacceptedbydevice.RejectedSuccess435b>aX will beacceptedbydeviceAcceptedSuccess3.A requirementstatesthatan ASCIIcharacterX can be an inputfor a system.For inputcharacters‘0’-‘9’,the systemexecutesa particularfunction.Consideringthis is a blackboxsystem,whatvaluesof X wouldyou use to test the system?
NAME,05 OCTOBER,2016ANSWER:we assumethatif the valuebetweenthe valueincludingthe boundary,is enteredthe,a functionwill be executedand resultwill be success.Elseif othervaluesare enteredthenthe resultis failure.Let the particularfunction= ‘abc’The boundaryvaluesare:1.Lowerboundary= 02.Upperboundary= 9The test casesfor this situationare:TEST CASEIDVALUE OF XDESCRIPTIONEXPECTEDRESULTACTUALRESULTSUCCESS /FAILURE1-1Valuesis lessthanlowerFunction‘abc’will notbe executed‘abc’notexecuted.Success20LowerBoundaryvalueFunction‘abc’will beexecuted.‘abc’executed.Success32Valuewithinthe boundaryFunction‘abc’will beexecuted.‘abc’executed.Success49UpperboundaryvalueFunction‘abc’will beexecuted.‘abc’executed.Success510ValuegreaterthantheupperboundaryFunction‘abc’will notbe executed‘abc’notexecuted.Success68Valuewithintheboundary.Function‘abc’will beexecuted.‘abc’executed.Success4.Whatattributesare foundin a typicaltest case?Pleaseprovideat leastthreeexamplesintableformatusingthe teststhatyou createdin Question3.ANSWER:the attributesof a test caseare:ATTRIBUTESDESCRIPTIONTESTCASEIDEachtest casewill havea uniqueID, whichis usedto identifyit.DESCRIPTIONDescriptionof whatis to be tested.EXPECTEDRESULTThe resultthatshouldcomeaftertestingACTUALRESULTThe resultthatactuallyoccursaftertestingVALUEOF VARIABLEInputvalueof the variableor functionthat
desklib-logo
You’re reading a preview
Preview Documents

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Download This Document