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

Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. [email protected]

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Presentation:

Issues in Testing Object Oriented Systemsby

James Gawn

Behrooz [email protected]

LIACS

Page 2: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

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 ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Testing AchievementsGuaranteeIdentification

9/17/2009 LIACS 3

Page 4: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

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 ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Data AbstractionEncapsulationInheritancePolymorphism

9/17/2009LIACS 5

Page 6: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

9/17/2009 LIACS 6

Page 7: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

InterfaceImplementation

9/17/2009 LIACS 7

Page 8: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Composite InheritanceMultiple Inheritance

9/17/2009 LIACS 8

Page 9: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Static BindingDynamic Binding

9/17/2009 LIACS 9

Page 10: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Complete an incomplete behaviorSpecialize previous (upper) behavior

9/17/2009 LIACS 10

Page 11: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Method TestingClass TestingIntegration TestingSystem Testing

9/17/2009LIACS 11

Page 12: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Method Functional SpecificationMethods' DependencyStubs

9/17/2009LIACS 12

Page 13: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

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

9/17/2009LIACS 13

Page 14: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

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 ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Program as a wholeSpecifications of the programFunctional Testing Criteria

9/17/2009LIACS 15

Page 16: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

Access Control ChallengesRisks in Changing Object States

9/17/2009LIACS 16

Page 17: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

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 ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

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

9/17/2009LIACS 18

Page 19: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

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 ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

9/17/2009 LIACS 20

Page 21: Presentation: Issues in Testing Object Oriented Systems ... - TOOS.pdf · Presentation: Issues in Testing Object Oriented Systems. by. James Gawn. Behrooz Nobakht. bnobakht@liacs.nl

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