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

17
IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 1/15 Day of exam: May 27th, 2019 Exam hours: 14:30 - 18:30 Permitted materials: None Read this page thoroughly The assignment consists of five parts. The first part is this introduction, while you shall answer the next four sections. Part 2 - Multiple Choice questions 15 multiple choice questions Questions with one answer alternative: 1 point for correct answer Questions with more than one answer alternative: 1 point for each correct answer, -1 for each wrong answer. However, it is not possible to get less than zero points for a question. Matching questions: 1 point for each successfull match. Maximum score for part 2: 30 points Part 3 - text exercises 6 text assignments to be answered briefly and accurately. The number of points may vary from question to question. Maximum score for part 3: 30 points. In this part you can draw sketches as a supplement to one of your text answers (assignment 3.2). Read the last paragraph of this title page thoroughly. Part 4 - Use of test techniques Two test cases. 10 points for correct solution of each case. Maximum score for part 4: 20 points. In this part you can draw sketches as a supplement to your text answers. Read the last paragraph of this title page thoroughly. Part 5 - Text about a given topic Maximum score for part 5: 20 points If any tasks are unclear, you can make your own prerequisites. If so, please explain them. Sketching In this thesis you will be able to supplement 3 of the text assignments with digital handwriting assignment (assignments 3.2, 4.1 and 4.2). You use the sketch sheets you are given. It is possible to use multiple sheets per task. See instructions for filling out the sketch sheet on the desk. You may NOT hand in sketch sheets for any other assignments than assigments 3.2, 4.1 and 4.2. You will NOT be given extra time to fill out the "general information" on the sketching sheets (task codes, candidate number etc.)

Upload: others

Post on 12-Oct-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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.)

Page 2: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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

Page 3: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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

Page 4: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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

Page 5: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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

Page 6: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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

Page 7: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

7/15

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

Words:0

Maximummarks:8

Page 8: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

8/15

3.2 Notethatinthistaskyoucananswerbothinthetexteditorandwithsketches/drawings.Usethesketchingpaperhandedtoyouintheexamroom.Seeinstructionsonyourdesk.

DrawafigureoftheV-modelthatshowsthedifferenttestactivitiesandthedifferentstestlevels.Thefigureshouldcontainarrowsthatshowtheworkflowsandhowthedifferenttestactivitiesandtestlevelsarerelated.

Fillinyouranswerhere

Words:0

Maximummarks:5

Page 9: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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

Page 10: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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

Page 11: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

11/15

3.5Explainthedifference(s)betweentestexecutiontoolsanddynamicanalysistoolswithrespecttotheirpurposes.

Whatfunctionsdotheysupport?Whousesthem?Whenaretheyusedandwhatkindofdefectsmighttheydiscover?

Fillinyouranswerhere

Words:0

Maximummarks:5

Page 12: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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:

Page 13: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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.

Page 14: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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

Page 15: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

IN3240/IN4240/INF3121/INF4121Softwaretesting2019

15/15

5.1Writeatextdescribingpotentialbenefitsaswellasrisksofusingtoolsthatsupporttesting.

Whatarethebenefits?Whatrisksshouldwebeawareof?

Youshouldrecognizethatsometoolshavespecialconsiderations.Explainthespecialconsiderationsrelatedto

TestexecutiontoolsPerformancetestingtoolsStaticanalysistoolsTestmanagementtools

Fillinyouranswerhere

Words:0

Maximummarks:20

Page 16: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

Question 23Attached

Page 17: IN3240 / IN4240 / INF3121 / INF4121 Software testing 2019 ... · System testing Component testing Functional testing Acceptance testing Maximum marks: 1 2.6 A program validates a

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