[qmtest] Multiple databases
Stefan Seefeld
seefeld at sympatico.ca
Tue Apr 10 20:27:56 UTC 2007
Morten Mossige wrote:
> Hi
> In the doc i read the following:
> "
>
> 3.1.6. Test Database
>
> In general, QMTest can only use one test database at a time. However,
> it is possible to create a test database which contains other test
> databases. This mechanism allows you to store the tests associated
> with different parts of a large application in different test
> databases, and still combine them into a single large test database
> when required."
>
> My question is then: How is this done?
The answer is in the docstring of the MountDatabase class:
"The contained databases are found by looking for subdirectories of
the MountDatabase directory. Every immediate subdirectory which
is itself a QMTest database is mounted; its mount point is the
name of the subdirectory."
In other words, if you have two test database directories in a common
parent directory, you may set up a new 'MountDatabase' test database
there that will make the content of the two appear in two subdirectories
named like the directories in the actual file system.
(It may be a good idea to generalize that to allow MountDatabase to
refer to its mounted databases anywhere in the filesystem, not just
in direct subdirs of its own root directory.)
Regards,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
More information about the qmtest
mailing list