classification tree method

30
Variants of student solutions to assignments concerning functional testing (classification tree method) Michael Ritzschke 11th Workshop “Software Engineering Education and Reverse Engineering” Ohrid, Macedonia, 22 August 27 August 2011 Humboldt-Universität zu Berlin Department of Computer Science Software Engineering

Transcript of classification tree method

Page 1: classification tree method

Variants of student solutions to assignments concerning

functional testing (classification tree method)

Michael Ritzschke

11th Workshop “Software Engineering Education and Reverse Engineering” Ohrid, Macedonia, 22 August – 27 August 2011

Humboldt-Universität zu Berlin Department of Computer Science

Software Engineering

Page 2: classification tree method

Lesson Functional Testing

Tool CTE (Classification Tree Editor)

Assignment “select test cases with classification tree method”

Student Solutions: Examples

Summary

Contents

2

Page 3: classification tree method

The lesson Functional Testing

Translation by Zoran Putnik

3

Page 4: classification tree method

The lesson: What means “Functional Testing”

4

Page 5: classification tree method

The lesson: Some Examples to explain the CT-method

5

Comp. Vision System: Identification of Shapes with typical properties 1: relevant aspects 2: test cases

Page 6: classification tree method

Lesson Functional Testing

Tool Classification Tree Editor

Assignment “select test cases with classification tree method”

Student Solutions: Examples

Summary

Contents

6

Page 7: classification tree method

www.systematic-testing.com Classification Tree Editor

eXtended Logics

free Version of CTE XL

the tool is popular amongst developers and testers and is successfully used in various domains

for possibilities see the link

7

Page 8: classification tree method

The tool window

8

Page 9: classification tree method

Lesson Functional Testing

Tool Classification Tree Editor

Assignment “select test cases with classification tree method”

Student Solutions: Examples

Summary

Contents

9

Page 10: classification tree method

10

Reminder of assignments

Assignments HU NS TIR

1. Review requirements specification “SemOrg”

2. Function points (Tool)

3. Review structured analysis model

4. Develop an OOA model Tool

5. Formal specifications (Tool)

6. Metrics Tool

7. Select test cases functionally by the CTE Tool

8. Select regression test cases by ATOS Tool

9. Review of a assgn solution of another team

10. Test coverage with SOTA Tool

x

x

(x)

x

x

x

x

x

-

x

x

x

x

x

x

x

-

-

x

x

x

-

-

x

x

-

-

-

Berlin: 8 assignments Novi Sad: 7 assignments Tirana: 4 assignments

Page 11: classification tree method

Use cases of “Seminar Organisation”

11

Page 12: classification tree method

The tasks for the students (teams)

think about the possible inputs for the use case “booking”, find out classifications and classes

study the tutorial of CTE to understand the main possibilities of the tool

create a classification tree with the help of CTE

find out necessary test cases for Minimality Criterion (every class must be represented at least once)

find 3 additional „interresting“ test cases

12

Page 13: classification tree method

Schema description of “booking”

13

Page 14: classification tree method

Relevant aspects of “booking”

14

the kind of the Seminar: company-internal, public

kind of client: company, private

registration status of client or company: available, obsolete, new

kind of presentation: don’t exist, occurs, fully booked

payment morale

...

Page 15: classification tree method

Lesson Functional Testing

Tool Classification Tree Editor

Assignment “select test cases with classification tree method”

Student Solutions: Examples

Summary

Contents

15

Page 16: classification tree method

Example 1

16

Page 17: classification tree method

Example 2

17

flat hierarchy with element composition

Page 18: classification tree method

Example 2

18

Page 19: classification tree method

Example 2

19

3 test cases to fulfill Minimality Criterion

Page 20: classification tree method

Example 3

20

flat hierarchy without composition

Page 21: classification tree method

Lesson Functional Testing

Tool Classification Tree Editor

Assignment “select test cases with classification tree method”

Students Solutions: Examples with mistakes

Summary

Contents

21

Page 22: classification tree method

Example 1

classification and classes: decomposition of the input space not activities (check presentation, recall client data …)

not outputs (send informations …)

22

Page 23: classification tree method

Example 2

23

incomplete test cases: question mark means that no class has yet been marked

Page 24: classification tree method

Example 3

24 5 test cases necessary for Minimality Criterion

Page 25: classification tree method

Example 4: inconvenient solution

several identical classification and classes

25

Page 26: classification tree method

Example 5: extremely extensive tree

26

Page 27: classification tree method

Example 5

27

type of data of the input space: digit, date, String …

possible mistakes in the input stream: not a number

Page 28: classification tree method

Summary

students learn how it’s possible to find test cases early in software development process

there are many possibilities for the design of the CT, so we get different solutions

work with a professional Tool

think about useful test cases and about the minimal and maximal number

the method is easy to understand

students have further tasks

28

Page 29: classification tree method

Entirely new CTE XL Professional

29

Page 30: classification tree method

Summary

Thank you for your attention!

30