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.8 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).9 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.10 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 originally11 was a manual task to be performed by the test engineer.
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:
The CTM introduced the following advantages12 over the Category Partition Method13 (CPM) by Ostrand and Balcer:
The classification tree method first was intended for the design and specification of abstract test cases. With the classification tree method for embedded systems,15 test implementation can also be performed. Several additional features are integrated with the method:
The module and unit testing tool Tessy relies on this extension.
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.16 Further features include the automated generation of test suites using combinatorial test design (e.g. all-pairs testing).
Recent enhancements to the classification tree method include the prioritized test case generation: It is possible to assign weights to the elements of the classification tree in terms of occurrence and error probability or risk. These weights are then used during test case generation to prioritize test cases.1718 Statistical testing is also available (e.g. for wear and fatigue tests) by interpreting the element weights as a discrete probability distribution.
With the addition of valid transitions between individual classes of a classification, classifications can be interpreted as a state machine, and therefore the whole classification tree as a Statechart. This defines an allowed order of class usages in test steps and allows to automatically create test sequences.19 Different coverage levels are available, such as state coverage, transitions coverage and coverage of state pairs and transition pairs.
In addition to Boolean dependency rules referring to classes of the classification tree, Numerical Constraints allow to specify formulas with classifications as variables, which will evaluate to the selected class in a test case.20
The Classification Tree Editor (CTE) is a software tool for test design that implements the classification tree method.21222324
Over the time, several editions of the CTE tool have appeared, written in several (by that time popular) programming languages and developed by several companies.
The original version of CTE was developed at Daimler-Benz Industrial Research2526 facilities in Berlin. It appeared in 1993 and was written in Pascal. It was only available on Unix systems.
In 1997 a major re-implementation was performed, leading to CTE 2. Development again was at Daimler-Benz Industrial Research. It was written in C and available for win32 systems.
The CTE 2 was licensed to Razorcat in 1997 and is part of the TESSY unit test tool. The classification tree editor for embedded systems2728 also based upon this edition.
Razorcat has been developing the CTE since 2001 and has CTE registered a brand name in 2003.
The last version CTE 3.2 was published with the tool TESSY 4.0 in 2016. Note the Versions table below.
The CTE 4 was implemented in TESSY 4.1.7 as an Eclipse plug-in in 2018. The latest CTE 4 version is still being developed as part of TESSY 4.3 in 2021.
In 2000, Lehmann and Wegener introduced Dependency Rules with their incarnation of the CTE, the CTE XL (eXtended Logics).29303132 Further features include the automated generation of test suites using combinatorial test design (e.g. all-pairs testing).33
Development was performed by DaimlerChrysler. CTE XL was written in Java and was supported on win32 systems. CTE XL was available for download free of charge.
In 2008, Berner&Mattner acquired all rights on CTE XL and continued development till CTE XL 1.9.4.
Starting in 2010, CTE XL Professional was developed by Berner&Mattner.34 A complete re-implementation was done, again using Java but this time Eclipse-based. CTE XL Professional was available on win32 and win64 systems.
New developments included:
In 2014, Berner&Mattner started releasing its classification tree editor under the brand name TESTONA.
A free edition of TESTONA is still available for download free of charge, however, with reduced functionality.
win64
Bath, Graham; McKay, Judy (2008). The software test engineer's handbook : a study guide for the ISTQB test analyst and technical test analyst advanced level certificates (1st ed.). Santa Barbara, CA: Rocky Nook. ISBN 9781933952246. 9781933952246 ↩
Hass, Anne Mette Jonassen (2008). Guide to advanced software testing. Boston: Artech House. pp. 179–186. ISBN 978-1596932869. 978-1596932869 ↩
Grochtmann, Matthias; Grimm, Klaus (1993). "Classification Trees for Partition Testing". Software Testing, Verification & Reliability. 3 (2): 63–82. doi:10.1002/stvr.4370030203. S2CID 33987358. /wiki/Doi_(identifier) ↩
Kuhn, D. Richard; Kacker, Raghu N.; Lei, Yu (2013). Introduction to combinatorial testing. Crc Pr Inc. pp. 76–81. ISBN 978-1466552296. 978-1466552296 ↩
Henry, Pierre (2008). The testing network an integral approach to test activities in large software projects. Berlin: Springer. p. 87. ISBN 978-3-540-78504-0. 978-3-540-78504-0 ↩
Grochtmann, Matthias; Wegener, Joachim (1995). "Test Case Design Using Classification Trees and the Classification-Tree Editor CTE" (PDF). Proceedings of the 8th International Software Quality Week(QW '95), San Francisco, USA. Archived from the original (PDF) on 2015-09-24. Retrieved 2013-08-12. https://web.archive.org/web/20150924112623/http://www.systematic-testing.com/documents/qualityweek1995_1.pdf ↩
Ostrand, T. J.; Balcer, M. J. (1988). "The category-partition method for specifying and generating functional tests". Communications of the ACM. 31 (6): 676–686. doi:10.1145/62959.62964. S2CID 207647895. https://doi.org/10.1145%2F62959.62964 ↩
Conrad, Mirko; Krupp, Alexander (1 October 2006). "An Extension of the Classification-Tree Method for Embedded Systems for the Description of Events". Electronic Notes in Theoretical Computer Science. 164 (4): 3–11. doi:10.1016/j.entcs.2006.09.002. https://doi.org/10.1016%2Fj.entcs.2006.09.002 ↩
Lehmann, Eckard; Wegener, Joachim (2000). "Test Case Design by Means of the CTE XL" (PDF). Proceedings of the 8th European International Conference on Software Testing, Analysis & Review (EuroSTAR 2000). Archived from the original (PDF) on 2016-03-04. Retrieved 2013-08-12. https://web.archive.org/web/20160304191237/http://www.systematic-testing.com/documents/eurostar2000.pdf ↩
Kruse, Peter M.; Luniak, Magdalena (December 2010). "Automated Test Case Generation Using Classification Trees". Software Quality Professional. 13 (1): 4–12. ↩
Franke M, Gerke D, Hans C. und andere. Method-Driven Test Case Generation for Functional System Verification. Proceedings ATOS. Delft. 2012. P.36-44. ↩
Kruse, Peter M.; Wegener, Joachim (April 2012). "Test Sequence Generation from Classification Trees". 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation. pp. 539–548. doi:10.1109/ICST.2012.139. ISBN 978-0-7695-4670-4. S2CID 581740. 978-0-7695-4670-4 ↩
Kruse, Peter M.; Bauer, Jürgen; Wegener, Joachim (April 2012). "Numerical Constraints for Combinatorial Interaction Testing". 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation. pp. 758–763. doi:10.1109/ICST.2012.170. ISBN 978-0-7695-4670-4. S2CID 16683773. 978-0-7695-4670-4 ↩
International, SAE (2004). Vehicle electronics to digital mobility : the next generation of convergence; proceedings of the 2004 International Congress on Transportation Electronics, Convergence 2004, [Cobo Center, Detroit, Michigan, USA, October 18 - 20, 2004]. Warrendale, Pa.: Society of Automotive Engineers. pp. 305–306. ISBN 978-0768015430. 978-0768015430 ↩
[edited by] Gomes, Luís; Fernandes, João M. (2010). Behavioral modeling for embedded systems and technologies applications for design and implementation. Hershey, PA: Information Science Reference. p. 386. ISBN 978-1605667515. {{cite book}}: |last= has generic name (help) 978-1605667515 ↩
[edited by] Zander, Justyna; Schieferdecker, Ina; Mosterman, Pieter J. (2011-09-15). Model-based testing for embedded systems. Boca Raton: CRC Press. p. 10. ISBN 978-1439818459. {{cite book}}: |last= has generic name (help) 978-1439818459 ↩
[edited by] Rech, Jörg; Bunse, Christian (2009). Model-driven software development integrating quality assurance. Hershey: Information Science Reference. p. 101. ISBN 978-1605660073. {{cite book}}: |last= has generic name (help) 978-1605660073 ↩
Olejniczak, Robert (2008). Systematisierung des funktionalen Tests eingebetteter Software (PDF). Doctoral dissertation: Technical University Munich. pp. 61–63. Archived from the original (PDF) on 6 March 2016. Retrieved 10 October 2013. https://web.archive.org/web/20160306062722/http://d-nb.info/988858436/34.pdf ↩
Cain, Andrew; Chen, Tsong Yueh; Grant, Doug; Poon, Pak-Lok; Tang, Sau-Fun; Tse, TH (2004). "An Automatic Test Data Generation System Based on the Integrated Classification-Tree Methodology". Software Engineering Research and Applications. Lecture Notes in Computer Science. Vol. 3026. pp. 225–238. doi:10.1007/978-3-540-24675-6_18. hdl:10722/43692. ISBN 978-3-540-21975-0. Retrieved 10 October 2013. 978-3-540-21975-0 ↩
Franke, M.; Gerke, D.; Hans, C; and others: Method-Driven Test Case Genera-tion for Functional System Verification, Air Transport and Operations Sym-posium 2012; p.354-365. Proceedings ATOS. Delft 2012. ↩
Berner&Mattner. "Press Release: Test Case Implementation with TESTONA 4.3". http://www.testona.net/en/media/press-releases/press-release-testona-4.3.html ↩
Chen, T.Y.; Poon, P.-L. (1996). "Classification-Hierarchy Table: A methodology for constructing the classification tree". Proceedings of 1996 Australian Software Engineering Conference. pp. 93–104. doi:10.1109/ASWEC.1996.534127. ISBN 978-0-8186-7635-2. S2CID 6789744. 978-0-8186-7635-2 ↩