Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated...

21
Presentation: Issues in Testing Object Oriented Systems by James Gawn Behrooz Nobakht [email protected] LIACS

Transcript of Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated...

Page 1: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Presentation:

Issues in Testing Object Oriented Systemsby

James Gawn

Behrooz [email protected]

LIACS

Page 2: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

IntroductionMotivationTesting Types

Overview on Object-Oriented Paradigm

Issues on TestingTesting Levels in OO SystemsTesting Concerns in OO Systems

9/17/2009LIACS 2

Page 3: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Testing AchievementsGuaranteeIdentification

9/17/2009 LIACS 3

Page 4: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Functional TestingBlack-box TestingInputs vs. Outputs

Structural TestingWhite-box TestingLevel of Code Coverage

Which one?

9/17/2009LIACS 4

Page 5: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Data AbstractionEncapsulationInheritancePolymorphism

9/17/2009LIACS 5

Page 6: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

9/17/2009 LIACS 6

Page 7: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

InterfaceImplementation

9/17/2009 LIACS 7

Page 8: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Composite InheritanceMultiple Inheritance

9/17/2009 LIACS 8

Page 9: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Static BindingDynamic Binding

9/17/2009 LIACS 9

Page 10: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Complete an incomplete behaviorSpecialize previous (upper) behavior

9/17/2009 LIACS 10

Page 11: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Method TestingClass TestingIntegration TestingSystem Testing

9/17/2009LIACS 11

Page 12: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Method Functional SpecificationMethods' DependencyStubs

9/17/2009LIACS 12

Page 13: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Object Instantiation TestingMethods as a wholeIntra-class Testing: Method InteractionOther classesStubs

9/17/2009LIACS 13

Page 14: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Class Communication Concerns: FaultsInter-class Testing: Class InteractionStrategies:

Big BangBottom UpTop Down

9/17/2009LIACS 14

Page 15: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Program as a wholeSpecifications of the programFunctional Testing Criteria

9/17/2009LIACS 15

Page 16: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Access Control ChallengesRisks in Changing Object States

9/17/2009LIACS 16

Page 17: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Actual Features in Class HierarchyTesting Hierarchy: Re-testability, Re-usability, Testing Axioms: Anti-extensionality, Anti-decomposition, Anti-compositionClass Flattening

9/17/2009LIACS 17

Shape

Circle Rectangle

Square

Triangle

Page 18: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Safety Testing Goals:Complete Branch CoverageDynamically-Bound MethodsExternal Polymorphic Objects

9/17/2009LIACS 18

Page 19: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Automation: Test Case Extraction, Test Case Generation, Test Suite Framework, Test OraclesAlgorithms: Method Call Sequence Generation: Evolutionary AlgorithmsMethodology-oriented Testing

9/17/2009LIACS 19

Page 20: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

9/17/2009 LIACS 20

Page 21: Presentation: Issues in Testing Object Oriented Systems ... · zIssues in Testing Object Orientated Systems, Gawn, James, 2007 zAutomatic testing of object-oriented software, Bertrand

Issues in Testing Object Orientated Systems, Gawn, James, 2007Automatic testing of object-oriented software, Bertrand Meyer, Ilinca Ciupa, Andreas Leitner, Lisa (Ling) LiuSoftware Testing Research: Achievements, Achievements, Dreams, Antonia BertolinoTIOBE Index:http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

9/17/2009LIACS 21