To use your test or resource class, you must place the Python module file containing it in a directory where QMTest can find it. QMTest looks in three places when loading extension classes:
If the environment variable QMTEST_CLASS_PATH is defined, QMTest first checks any directories listed in it. This value of this environment variable should be a list of directories to check for the module file, in the same format as the standard PATH environment variable.
A test database may specify additional locations to check.
QMTest checks the configuration directory (the subdirectory named QMTest of a test database).
Finally, QMTest checks a standard directory. This directory, installed with QMTest, contains modules with the standard test classes described in Section 3.5.
You should generally place module files containing your test classes in the test database's QMTest directory, unless you plan to use the test classes in more than one test database.
You must use the qmtest register command to register your new extension class. You must perform this step no matter where you place the module containing your extension class.
You can refer to the new extension class using the syntax module.Class, where module is the name of the module and Class is the name of the class.