in3240 / in4240 / inf3121 / inf4121 software testing 2019 ... · system testing component testing...

Post on 12-Oct-2020

4 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

1/15

Dayofexam:May27th,2019Examhours:14:30-18:30Permittedmaterials:NoneReadthispagethoroughlyTheassignmentconsistsoffiveparts.Thefirstpartisthisintroduction,whileyoushallanswerthenextfoursections.

Part2-MultipleChoicequestions

15multiplechoicequestionsQuestionswithoneansweralternative:1pointforcorrectanswerQuestionswithmorethanoneansweralternative:1pointforeachcorrectanswer,-1foreachwronganswer.However,itisnotpossibletogetlessthanzeropointsforaquestion.Matchingquestions:1pointforeachsuccessfullmatch.Maximumscoreforpart2:30points

Part3-textexercises

6textassignmentstobeansweredbrieflyandaccurately.Thenumberofpointsmayvaryfromquestiontoquestion.Maximumscoreforpart3:30points.Inthispartyoucandrawsketchesasasupplementtooneofyourtextanswers(assignment3.2).Readthelastparagraphofthistitlepagethoroughly.

Part4-Useoftesttechniques

Twotestcases.10pointsforcorrectsolutionofeachcase.Maximumscoreforpart4:20points.Inthispartyoucandrawsketchesasasupplementtoyourtextanswers.Readthelastparagraphofthistitlepagethoroughly.

Part5-Textaboutagiventopic

Maximumscoreforpart5:20points

Ifanytasksareunclear,youcanmakeyourownprerequisites.Ifso,pleaseexplainthem.SketchingInthisthesisyouwillbeabletosupplement3ofthetextassignmentswithdigitalhandwritingassignment(assignments3.2,4.1and4.2).Youusethesketchsheetsyouaregiven.Itispossibletousemultiplesheetspertask.Seeinstructionsforfillingoutthesketchsheetonthedesk.YoumayNOThandinsketchsheetsforanyotherassignmentsthanassigments3.2,4.1and4.2.YouwillNOTbegivenextratimetofilloutthe"generalinformation"onthesketchingsheets(taskcodes,candidatenumberetc.)

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

2/15

2.1 Matchthefollowingprocesseswiththeircorrespondingactivities:

Transformthetestobjectivesintotest

conditions

Grouptestsintoscripts

Writeatestsummaryreportforthestakeholders

Establishthescopeandobjectivesofthe

testing

Testreporting

Testanalysis

Testplanning

Testimplementation

Maximummarks:4

2.2 Whenusingstructure-based(white-box)testtechniques,whichofthefollowingalternativescouldbeusedtoassessthecoverage?Selectoneormorealternatives:

Conditionsormultipleconditionsexercised

Boundariesexercised

Decisionoutcomesexercised

Partitionsexercised

Statementsexercised

Maximummarks:3

2.3 Whichofthefollowingisabenefitoftestindependence?Selectonealternative:

Itdoesnotrequirefamiliaritywiththecode.

Independenttesterssometimesquestiontheassumptionsbehindrequirements,designsandimplementations.

Itischeaperthanusingdeveloperstotesttheirowncode.

Testersarebetteratfindingdefectsthandevelopers.

Maximummarks:1

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

3/15

2.4 Aspartofwhichtestprocessdoyoudeterminetheexitcriteria?Selectonealternative:

Evaluatingexitcriteriaandreporting

Testplanning

Testcontrol

Testclosure

Maximummarks:1

2.5 AccordingtotheISTQBGlossary,whichofthefollowingalternativesisatesttype?Selectonealternative:

Systemtesting

Componenttesting

Functionaltesting

Acceptancetesting

Maximummarks:1

2.6 Aprogramvalidatesanumericfieldasfollows:Valueslessthan10arerejected,valuesbetween10and21areaccepted,valuesgreaterthanorequalto22arerejected.Whichofthefollowinginputvaluescoveralloftheequivalencepartitions?Selectonealternative:

3,20,21

3,10,22

10,21,22

10,11,21

Maximummarks:1

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

4/15

2.7 Whichofthefollowingaretypicalactivitiesforatester:Selectoneormorealternatives:

Writestestsummaryreportsformanagement

Introducesmetricsformeasuringthetestprogress

Writesautomatedtests

Givesrecommendationstocontinueorstopthetesting,basedonthetestexecutionresults

Evaluatestheresultsoftheexecutionoftests:passorfail

Acquiresandpreparestestdata

Maximummarks:3

2.8 Whichofthefollowingaretypicalactivitiesforatestleader:Selectoneormorealternatives:

Writestestsummaryreportsformanagement

Writesautomatedtests

Evaluatestheresultsoftheexecutionoftests:passorfail

Acquiresandpreparestestdata

Introducesmetricsformeasuringthetestprogress

Givesrecommendationstocontinueorstopthetesting,basedonthetestexecutionresults

Maximummarks:3

2.9 Whatisbetatesting?Selectonealternative:

Testingperformedbyproductdevelopersatthecustomer'slocation.

Testingperformedbyproductdevelopersattheirownlocations.

Testingperformedbypotentialcustomersattheirownlocations.

Testingperformedbypotentialcustomersatthedeveloper'slocation.

Maximummarks:1

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

5/15

2.10 ImpactAnalysishelpstodecide...Selectonealternative:

howmanymoretestcasesneedtowritten.

exitcriteria.

differenttoolstoperformregressiontesting.

howmuchregressiontestingshouldbedone.

Maximummarks:1

2.11 Whichofthefollowingsarenon-functionalqualitycharacteristics?Selectoneormorealternatives:

Configurationability

Portability

Regression

Usability

Coverage

Maximummarks:2

2.12 WhichofthefollowingisMOSTcharacteristicofspecificationbased(black-box)techniques?

Selectonealternative:

Testcasescanbeeasilyautomated.

Testcasesareindependentofeachother.

Testcasesarederivedsystematicallyfromthedeliveredcode.

Testcasesarederivedsystematicallyfrommodelsofthesystem.

Maximummarks:1

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

6/15

2.13 WhichofthefollowingoftypesoftoolsisMOSTLIKELYtobeusedbydevelopers?Selectoneormorealternatives:

Staticanalysistools

Testmanagementtools

Dynamicanalysistools

Modelingtools

Performancetestingtools

Maximummarks:3

2.14 Whatdeterminesthelevelofrisk?Selectonealternative:

Thecostofdealingwithanadverseeventifitoccurs.

Theamountoftestingplannedbeforereleaseofasystem.

Theprobabilitythatanadverseeventwilloccur.

Thelikelihoodofanadverseeventandtheimpactoftheevent.

Maximummarks:1

2.15 MatcheverystageoftheSoftwareDevelopmentLifecyclewiththecorrecttestlevel:

Pleasematchthevalues:

Functionalandnon-functionalrequirements

Globaldesign

Businessrequirements Code

Integrationtests

Acceptancetests

Unittests

Systemtests

Maximummarks:4

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

7/15

3.1 OneoftheseventestingprinciplesiscalledDefectclustering.Whatdoes"Defectclustering"meanandhowdoesitaffectthetestingactivities?Whataretheremainingsixprinciples?Fillinyouranswerhere

Words:0

Maximummarks:8

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

8/15

3.2 Notethatinthistaskyoucananswerbothinthetexteditorandwithsketches/drawings.Usethesketchingpaperhandedtoyouintheexamroom.Seeinstructionsonyourdesk.

DrawafigureoftheV-modelthatshowsthedifferenttestactivitiesandthedifferentstestlevels.Thefigureshouldcontainarrowsthatshowtheworkflowsandhowthedifferenttestactivitiesandtestlevelsarerelated.

Fillinyouranswerhere

Words:0

Maximummarks:5

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

9/15

3.3Equivalencepartitioning(EP)andboundaryvalueanalysis(BVA)canbeappliedmorethanoncetothesameitemspecification,dependingwhatwearefocusingon.YoushallnowuseEPandBVAinthefollowingcase:Acompanyusesfourdigitpincodesontheirdoors.Thepin-codesareintherange1000–9999,bothboundariesincluded.Inthiscase,youshalluseEPandBVAinatleastthreedifferentwayswithrespecttodifferentpointsofview.Foreachway,youshallidentify:

theequivalencepartitions,bothvalidand,ifpresent,invalidpartitionsand,ifpresent,boundaryvalues

Fillinyouranswerhere

Words:0

Maximummarks:5

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

10/15

3.4 Anintegerthatisequaltothesumofallitsrealfactors,includingone(1)iscalledaperfectnumber.

Arealfactormeansafactorsmallerthanthenumberitself.

StudytheJavacodebelow:

WritethenecessaryJavaunittest(s),i.e.thetestmethod(s),fortheJavamethodabove.Fillinyouranswerhere

Words:0

Maximummarks:5

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

11/15

3.5Explainthedifference(s)betweentestexecutiontoolsanddynamicanalysistoolswithrespecttotheirpurposes.

Whatfunctionsdotheysupport?Whousesthem?Whenaretheyusedandwhatkindofdefectsmighttheydiscover?

Fillinyouranswerhere

Words:0

Maximummarks:5

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

12/15

3.6 Explainthefollowingterms:

regressiontestingconfirmationtesting

Fillinyouranswerhere

Words:0

Maximummarks:2

4.1 Notethatinthistaskyoucananswerbothinthetexteditorandwithsketches/drawings.Usethesketchingpaperhandedtoyouintheexamroom.Seeinstructionsonyourdesk.

AMusicAcademyhasthefollowingadmissionrequirements:

Theapplicantmusthavegeneralacademicqualifications.

Theapplicantmusthavepassedapracticalmusictest.

Theapplicantmusthavecompetitionpointsabovetheyear’sminimum.

Ifalltherequirementsabovearefulfilled,theapplicantwillbeofferedanordinarystudyplace.However,iftheapplicanthasgeneralacademicqualifications,butdoesnotfulfillthesecondorthirdrequirementsabove,thefollowingactionswillbetaken:

Theapplicantisplacedonawaitinglistifheorshehaspassedthepracticalmusictestbuthascompetitionpointsbelowtheyear’sminimum.

Theapplicantisofferedasecondchancetotakethepracticalmusictestifheorshedidnotpassthistestinthefirstplacebuthascompetitionpointsabovetheyear’sminimum.

a)Drawadecisiontablethatshowsallthepossiblecombinationsofconditionsforanapplicant.Thedecisiontableshallincludeanactionpartthatshowswhethertheapplicantisofferedastudyplaceorisplacedonawaitinglistorisofferedasecondchancetopassthepracticalmusictest.b)Reducethenumberofrulesasmuchaspossiblewhilestillretainingallinformation.Explainhowyoumadethereduction.

c)Considerthefollowingthreedifferenttestcases:

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

13/15

1. Theapplicantisacademicallyqualified,haspassedthepracticalmusictest,andhascompetitionpointsabovetheyear’sminimum.

2. Theapplicantisacademicallyqualified,haspassedthepracticalmusictest,buthascompetitionpointsbelowtheyear’sminimum.

3. Theapplicantisacademicallyqualifiedandhascompetitionpointsabovetheyear’sminimumbutdidnotpassthepracticalmusictest.

Doweneedmoretestcases?Ifyes,specifythetestcase(s).

Inordertoobtainstudentswiththebestmusicabilitiesandskills,theMusicAcademyis,inspecialcases,willingtodepartfromtheadmissionrules:

Ifanapplicantshowsimpressivemusicabilitiesandskillsonthepracticalmusictestbutlacksgeneralacademicqualifications,heorshemaybeofferedastudyplaceontheconditionthatgeneralacademicqualificationsareacquiredduringthefirstyearattheMusicAcademy.

d)Howmanydifferentcombinationsofvaluesofconditionswilltherebeinthedecisiontableifallconditionsandcombinationsareincluded?Howdoesthenumberofconditionsaffecttheuseofdecisiontables?

Fillinyouranswerhere

Words:0

Maximummarks:10

4.2 Notethatinthistaskyoucananswerbothinthetexteditorandwithsketches/drawings.Usethesketchingpaperhandedtoyouintheexamroom.Seeinstructionsonyourdesk.Amedicalcenterwillinstallapaymentmachineforpatientstopayfortheirmedicalconsultations.Beforestartingtousethepaymentmachine,thecenterwantstoperformsomeuserteststhatyouwillhelpdesign.

Intheenclosedpdfdocument,youwillfindastatetransitiondiagramthatdescribesthepaymentmachineaswellastheinteractionbetweenthemachineandtheuser.NB!Youshallnotjudgewhetherthestatetransitiondiagramiscorrectornotbutbaseyouranswersonitasitis.

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

14/15

a)Basedonthestatetransitiondiagraminthepdfdocument,youshallnowsetupatestcaseasapath(sequenceofstates)thatdescribesthemainscenario,i.e.asuccessfulpaymenttransaction.

Whatisthestatecoverageofthistestcase?Whatisthetransitioncoverageofthistestcase?

b)Whatisthehighesttransitioncoveragewecanachieveinonesingletestcase?

Whatisthestatecoverageofthistestcase?Whatisthetransitioncoverageofthistestcase?

c)Howmanytestcasesdoweneedtoachieve100%transitioncoverage?

Whatisthestatecoverageofthistestcase?Whatisthetransitioncoverageofthistestcase?

d)FindtheshortestpathfromS0toSXthatvisitseverystate.

Whatisthestatecoverageofthistestcase?Whatisthetransitioncoverageofthistestcase?

e)Whyis100%statecoverageinmostcasesnotenoughasanexitcriterionfortesting?

Fillinyouranswerhere

Words:0

Maximummarks:10

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

15/15

5.1Writeatextdescribingpotentialbenefitsaswellasrisksofusingtoolsthatsupporttesting.

Whatarethebenefits?Whatrisksshouldwebeawareof?

Youshouldrecognizethatsometoolshavespecialconsiderations.Explainthespecialconsiderationsrelatedto

TestexecutiontoolsPerformancetestingtoolsStaticanalysistoolsTestmanagementtools

Fillinyouranswerhere

Words:0

Maximummarks:20

Question 23Attached

S0: Machine in starting position, waiting to be touched

User touches the screen

S1: Message on screen:

“Enter your birth date”

S2: Machine evaluates the birth date

User enters the birth date

Invalid date of birth

Valid date of birth

Cancel

Cancel

S3: Message on the screen:

“Invalid birth date, try again!”

S4: The patient's name appears on the screen

along with the amount to be paid.Message on the screen: «Insert your credit card and enter your pin code"The user inserts the card and enters code

Invalid card or code

Valid card and code

S6: Message on the screen:

“Invalid card or code, try again!”

S7: Message on the screen:

“Account charged. Receipt? (Y/N)”Y N

S8: Receipt printed S9: Message on the screen:

“Please remove your credit card”

SX: Message on the screen:

“Have a nice day!”

User removes the card

Machine returns to start position

S5: Machine evaluates card and code

top related