ArticleslgStudy

computer science

Classification Tree Method

Classification Tree Method is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Classification Tree Method rather than just read about it. In short: The Classification Tree Method is a method for test design, as it is used in different areas of software development. It was developed by Grimm and Grochtmann in 1993.

Classification Tree Method — main illustration
Classification Tree Method — illustration

Key takeaways

  • Classification Tree Method belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Classification Tree Method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Classification Tree Method from memory before moving on to harder problems.

Reference excerpt

The Classification Tree Method is a method for test design, as it is used in different areas of software development. It was developed by Grimm and Grochtmann in 1993. Classification Trees in terms of the Classification Tree Method must not be confused with decision trees. The classification tree method consists of two major steps:

Identification of test relevant aspects (so called classifications) and their corresponding values (called classes) as well as Combination of different classes from all classifications into test cases. The identification of test relevant aspects usually follows the (functional) specification (e.g. requirements, use cases …) of the system under test. These aspects form the input and output data space of the test object. The second step of test design then follows the principles of combinatorial test design. While the method can be applied using a pen and a paper, the usual way involves the usage of the Classification Tree Editor, a software tool implementing the classification tree method.

Application Prerequisites for applying the classification tree method (CTM) is the selection (or definition) of a system under test. The CTM is a black-box testing method and supports any type of system under test. This includes (but is not limited to) hardware systems, integrated hardware-software systems, plain software systems, including embedded software, user interfaces, operating systems, parsers, and others (or subsystems of mentioned systems). With a selected system under test, the first step of the classification tree method is the identification of test relevant aspects. Any system under test can be described by a set of classifications, holding both input and output parameters. (Input parameters can also include environments states, pre-conditions and other, rather uncommon parameters). Each classification can have any number of disjoint classes, describing the occurrence of the parameter. The selection of classes typically follows the principle of equivalence partitioning for abstract test cases and boundary-value analysis for concrete test cases. Together, all classifications form the classification tree. For semantic purpose, classifications can be grouped into compositions. The maximum number of test cases is the Cartesian product of all classes of all classifications in the tree, quickly resulting in large numbers for realistic test problems. The minimum number of test cases is the number of classes in the classification with the most containing classes. In the second step, test cases are composed by selecting exactly one class from every classification of the classification tree. The selection of test cases originally was a manual task to be performed by the test engineer.

Example

For a database system, test design has to be performed. Applying the classification tree method, the identification of test relevant aspects gives the classifications: User Privilege, Operation and Access Method. For the User Privileges, two classes can be identified: Regular User and Administrator User. There are three Operations: Add, Edit and Delete. For the Access Method, again three classes are identified: Native Tool, Web Browser, API. The Web Browser class is further refined with the test aspect Brand, three possible classes are included here: Internet Explorer, Mozilla Firefox, and Apple Safari. The first step of the classification tree method now is complete. Of course, there are further possible test aspects to include, e.g. access speed of the connection, number of database records present in the database, etc. Using the graphical representation in terms of a tree, the selected aspects and their corresponding values can quickly be reviewed. For the statistics, there are 30 possible test cases in total (2 privileges * 3 operations * 5 access methods). For minimum coverage, 5 test cases are sufficient, as there are 5 access methods (and access method is the classification with the highest number of disjoint classes). In the second step, three test cases have been manually selected:

A regular user adds a new data set to the database using the native tool. An administrator user edits an existing data set using the Firefox browser. A regular user deletes a data set from the database using the API.

Enhancements

Background The CTM introduced the following advantages over the Category Partition Method (CPM) by Ostrand and Balcer:

Notation: CPM only had a textual notation, whereas CTM uses a graphical, tree-shaped representation. Refinements Selecting one representative might have an influence on the occurrence of other representatives. CPM only offers restrictions to handle this scenario. CTM allows modeling of hierarchical refinements in the classification tree, also called implicit dependencies. Tool support: The tool presented by Ostrand and Balcer only supported test case generation, but not the partitioning itself. Grochtmann and Wegener presented their tool, the Classification Tree Editor (CTE) which supports both partitioning as well as test case generation.

Classification Tree Method for Embedded Systems The classification tree method first was intended for the design and specification of abstract test cases. With the classification tree method for embedded systems, test implementation can also be performed. Several additional features are integrated with the method:

In addition to atomic test cases, test sequences containing several test steps can be specified. A concrete timing (e.g. in Seconds, Minutes ...) can be specified for each test step. Signal transitions (e.g. linear, spline, sine ...) between selected classes of different test steps can be specified. A distinction between event and state can be modelled, represented by different visual marks in a test. The module and unit testing tool Tessy relies on this extension.

Dependency Rules and Automated Test Case Generation One way of modelling constraints is using the refinement mechanism in the classification tree method. This, however, does not allow for modelling constraints between classes of different classifications. Lehmann and Wegener introduced Dependency Rules based on Boolean expressions with their incarnation of the CTE. Further features include the automated generation of test suites using combinatorial test design (e.g. all-pairs testing).

… excerpt ends here. Continue reading the full article.

Illustrations

Classification Tree Method: Classification Tree for Embedded System Example containing concrete values, concrete timing, (different) transitions and distinguish between States and Actions
Classification Tree for Embedded System Example containing concrete values, concrete timing, (different) transitions and distinguish between States and Actions

Worked examples

Example 1 — a first encounter with Classification Tree Method

Start with the simplest possible case. Write down what Classification Tree Method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Classification Tree Method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Classification Tree Method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Classification Tree Method

In research
Classification Tree Method appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Classification Tree Method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Classification Tree Method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Software development process, Software testing, so understanding it makes those chapters shorter.
In everyday life
Look for Classification Tree Method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Classification Tree Method” →

How to study Classification Tree Method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Classification Tree Method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Classification Tree Method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Classification Tree Method in simple terms?

The Classification Tree Method is a method for test design, as it is used in different areas of software development. It was developed by Grimm and Grochtmann in 1993.

Why does Classification Tree Method matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Classification Tree Method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Classification Tree Method.

Tags

  • Software development process
  • Software testing

Keep exploring