[qmtest] Multiple databases
Morten Mossige
morten.mossige at gmail.com
Wed Apr 11 07:17:56 UTC 2007
2007/4/10, Stefan Seefeld <seefeld at sympatico.ca>:
> 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...
>
Hi
Thanks for answer.
I'm still not sure if I fully understand how to do this.
But let me give an ex. of how I would like have it:
I have several different applications, placed in the following
directory structure:
root+app+---app1--+--src
| |
| +--test
|
+---app2--+--src
| |
| +--test
|
+---app3--+--src
| |
| +--test
|
|
+MasterTest
I would like to have a single test database in each app<n>\test
directory which tests only this application. But in the MasterTest dir
I would like to have a testdatabase which will run all the subtests +
integration test (tests which require several app's running together.
The tests in app<n>\test will typically be runned by developers, while
the test in MasterTest will be runned automatically by the daily build
system (build server).
Also: How is the best way of getting a html based report out of the
MasterTest test?
Will it be possible to use qmtest like this?
br. Morten
More information about the qmtest
mailing list