Tessy features several methods of specifying test data, importing / exporting
test data from / to files, or to save test data for version control or for transfer
over the internet. Also, test data can be imported with test case specifications
from CTE.
|
|
| 3. File Export / Import
Export to Excel Workbooks
Tessy can export test data to Excel workbooks, i.e. to files in Microsoft
Excel format (*.xls). A workbook created by Tessy is related to a single
test object and contains several sheets.
|
 |
Workbook sheet “Values”
contains test data, here the
first test case for a sorting function
|
|
 |
Workbook sheet “Properties”
contains descriptive information
|
| |
|
 |
Workbook sheet “Stubs”
contains stub function code
|
Besides properties and stub function code, the workbook also contains
sheets for general information, user code, and about the order of stub
functions called.
|
Export to Text Files
Tessy can export test data to files in ASCII format (*.txt). A line specifies
a test case; data is separated by tabulators. |

|
Two test cases for a test object
determining the minimum of two values |
|
Export to TMB Files
Tessy can export the complete test relevant information for a Tessy module
(i.e. for several test objects) to a so-called TMB file. The information
in the TMB file does not only include the test data, but also the interfaces
of the test objects, the results of executed tests, and various settings
used for testing. These settings include for instance the compiler used
and its options, the floating point precision of the test evaluation,
the debugger used, etc. |
| |
Import from Files
Naturally, Tessy can import information from the above mentioned file
types. |
| |
Application of the File Export /
Import Features
Generation of Test Data
Best suited to generate test data for a test object may be the export
/ import to / from Excel workbooks. The recommended method follows these
steps:
- Create a single test case for your test object in question by using
the Test Data Editor (TDE) of Tessy
- Export this test case to an Excel workbook
- Open the Excel workbook with Excel and add test cases by adding lines
in the “Values” sheet of the Excel workbook. Test data creation
may make use of the built-in functionality of Excel, e.g. to calculate
expected test results.
- Import all test cases from the Excel workbook to the test object.
|
| |
|
 |
In the “Values” sheet,
just add a line to create
a new test case |
| |
|
Re-use of Test Cases
Excel workbooks may be used to re-use test cases of a certain test object
f1() for a similar test object f2(). Simply export the test data of f1()
to an Excel workbook and then import it to f2(). If the interfaces of
the two test objects do not fit, Tessy warns you and you may adapt the
test data appropriately. |
| |
|
Configuration Management / Version Control
TMB files may be used to save a certain state of the test process. Such
a TMB file may be used for version control, e.g. to save all the tests
appropriate for a certain version of the software under test for later
regression testing. |
| |
|
Transfer of Tests
TMB files may be used to transfer tests, e.g. over the internet between
different geographic test locations. |
| |
|
Import of Test Data from Other Sources
If you already dispose over test data from other sources, e.g. test data
used with proprietary systems, you might be able to convert such data
into an ASCII file (or even an Excel workbook) suitable for Tessy. |
| |
|
|
|
| 4. Import from CTE
The Classification Tree Editor (CTE) accompanying Tessy can not only
be used to specify tests, but also to specify test data. When transferring
the test specification from CTE to Tessy, the specified test data is transferred
automatically.
Test data is specified according to the following steps:
1. In the CTE: Associate interface variables with classifications
|
 |
The interface variable “r1.range_len”
is associated with the
classification “Range Length”
|
2. In the CTE: Specify values for the classes of the associated classification
|
 |
The value “0” is specified for “r1.range_len”,
whenever class “zero” is selected
|
3. Transfer the test case specifications from CTE to Tessy
If a test case uses a class for which a value was specified in the CTE,
this value is automatically inserted in the test case. The respective
field in the TDE is greyed-out.
|
 |
Because the class
“zero” was selected for this test case,
“0” is inserted automatically
|
| |