Version: classificationtreeviewer v0.1.14
The "classificationtreeviewer" is an extension for Visual Studio Code to generate Classification tree in SVG format.
The systematic test is an inevitable part of the verification and validation process for software. Software Testing is a method to check whether the actual software product matches expected requirements and to ensure that the software product is defect free. The most important prerequisite for a thorough software test is the design of relevant test cases,since they determine the kind and scope of the test.
The classification tree method is a special technique for test design, as it is used in different areas of software development and supports any type of system under test. Classification trees support certain black-box test techniques by enabling a graphical representation of the data space to be created which applies to test the object. The data is organized into classifications and classes.
The classification tree method consists of two major steps such as:
This classification Tree method can be applied using pen and paper which can be a tedious and time-consuming affair. To solve this issue we come up with a software tool.
The "classificationtreeviewer" a software tool implementing the classification tree method. The "classificationtreeviewer" is a simple extension that, together with Visual Studio Code, greatly simplifies and assists this process.
In classificationtreeviewer extension, the user can generate a Classification tree in SVG format based on the valid entries scenario.xml and classification.xml files. How to write these XML files and their limitations are discussed in subsequent sections.
The minimum requirements for running the "classificationtreeviewer" extension are listed below:
The "classificationtreeviewer" is already been tested for below VS Code Version and Operating System.
Navigate to where you saved the plug-in and select the corresponding VSIX-File
Once Installation is successful then user can see below tab.
The classification tree Viewer is based on the classification tree method and supports systematic and efficient test case determination for black-box testing. The two main phases of the classification-tree method – design of Classifications and their corresponding classes and Combination of different classes from all classifications into test cases.
When using the classification-tree method, the most important source of information for the tester is the functional specification of the given test object. So while using this tool user should provide a couple of xml files as an input to the classification-tree Viewer. These files should explain the scenarios along with the test cases.
The below example shows how to use the classification tree method with the xml files.
Classification.xml:
For example, the shape, the color, and the size are the classes. Then classification based on the shape can be rectangle and circle and so on.
<?xml version="1.0" encoding="UTF-8"?>
<Classification>
<Class name = "shape" >
<Characteristic>rectangle</Characteristic>
<Characteristic>circle</Characteristic>
</Class>
<Class name = "color">
<Characteristic>yellow</Characteristic>
<Characteristic>red</Characteristic>
</Class>
<Class name = "size" >
<Characteristic>medium</Characteristic>
<Characteristic>big</Characteristic>
</Class>
</Classification>Scenario.xml:
For example, we have a tag called Testcase and named as 'Testcase-1'. Inside every Testcase tag, users can include different scenarios (characteristics).
<?xml version="1.0" encoding="UTF-8"?>
<Testcases>
<Testcase name='Testcase-1'>
<shape>rectangle</shape>
<color>red</color>
<size>medium</size>
</Testcase >
<Testcase name='Testcase-2'>
<color>red</color>
<shape>rectangle</shape>
<size>big</size>
</Testcase>
<Testcase name='Testcase-3'>
<shape>rectangle</shape>
<color>red</color>
<size>medium</size>
</Testcase >
<Testcase name='Testcase-4'>
<color>red</color>
<shape>rectangle</shape>
<size>big</size>
</Testcase>
<Testcase name='Testcase-5'>
<shape>rectangle</shape>
<color>red</color>
<size>medium</size>
</Testcase >
<Testcase name='Testcase-6'>
<color>red</color>
<shape>circle</shape>
<size>big</size>
</Testcase>
</Testcases>For both the Classification.xml file XSD grammar has already been defined and the XSD for Scenario.xml is created based on the user's Classification.xml. So the user should follow the below rules and limitations while writing the xml files. If the user fails to follow the below rules then the classification tree would not be generated and the server would throw an error.
The XML tags in Classification.xml and Scenario.xml are case-sensitive with the current version of the classification tree script. Please find the rules which should be followed while writing the xml files.
Classification.xml
Scenario.xml
After successful installation of the extension, "classificationtreeviewer" is ready for usage.