[qmtest] Suite file format ?

Steve Byan smb at egenera.com
Wed Nov 19 17:29:28 UTC 2003


On Nov 19, 2003, at 11:51 AM, Herb Schilling wrote:

>  I did a little digging into the QMTest code and I saw references to 
> "suite files" ( as opposed to implicit suites defined by directories 
> ). I can't find any documentation on these and I don't see any 
> examples. Can anyone give more info about these "suite files" ? I 
> think I would like to use them!

I accidentally created some when I thought I was creating directories 
:-). In the GUI, select View->Directory, then select File->New Suite, 
and fill in the following dialog boxes. Go look in your tdb, and voila, 
there's a suite file with the same name as the suite you just added 
with a ".qms" extension. Note that this is a regular file, not a 
directory:

<suite><test_id>environment</test_id></suite>[smb at edvac tdb]$ ls -l
total 32
-rw-rw-rw-    1 smb      software      173 Nov 19 12:07 context
drwxrwxrwx    2 smb      software     4096 Nov 13 09:39 CVS
-rw-rw-r--    1 smb      software     2069 Nov 19 12:03 environment.qmt
-rw-rw-r--    1 smb      software       68 Nov 19 12:21 
fooling-around.qms
-rwxrwxrwx    1 smb      software      214 Nov 13 09:10 Makefile
drwxrwxr-x    3 smb      software     4096 Nov 19 11:44 primary.qms
drwxrwxr-x    2 smb      software     4096 Nov 18 16:54 QMTest
-rwxr-xr-x    1 smb      software       59 Nov 19 11:19 start_qmtest.sh

My toy test suite contains the following text:

[smb at edvac tdb]$ cat fooling-around.qms
<?xml version="1.0" ?>
<suite><test_id>environment</test_id></suite>

BTW, there's a bug in QMTest; if one creates a test suite "foo" and 
then creates a test "foo.bar", QMTest fails with a traceback indicating 
that "foo is not a directory". It's not obvious what the behavior 
should be in this case, but a traceback is a bit over the top :-)

Regards,
-Steve
--------
Steve Byan <smb at egenera.com>
Software Architect
Egenera, Inc.
165 Forest Street
Marlboro, MA 01752
(508) 858-3125




More information about the qmtest mailing list