[qmtest] Finding test location

Mark Mitchell mark at codesourcery.com
Wed Mar 27 18:30:15 UTC 2002


> How can this question be addressed? Is it assumed that the location of
> the  test database be always passed as context variable?

That would work.

The basic model assumes that tests may not be stored in the file system,
so it doesn't make sense to have a way of getting the path to the test.

You can, however, get it's test id, with the "id" argument.  (So,
from Python, in the 'Run' method, you can do:

  self.id

).  The XML test database also sets the working directory for the test
execution to the directory containg the file, so you can find yourself
by putting those two pieces of information together.

Does that make sense?

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com




More information about the qmtest mailing list