[qmtest] Python unit tests

Scott Lowrey slowrey at nextone.com
Wed Apr 6 17:40:14 UTC 2005


Neilen Marais wrote:

>Hi!
>
>I'm trying to do unit testing as I develop some python apps that support
>the fortran code I mentioned before. The way I assumed it should work,
>is to use one of the python test classes, then to import my .py file,
>and do some tests etc.  But I can't seem to figure out where to put my
>python source, I always get: 
>
>qmtest.exception  exceptions.ImportError: No module named outfilecomp
>
>  
>
(Sorry, my other responses were not formatted correctly for the qmtest 
list server.)

You should put custom Python modules in lib/python2.x/site-packages.  If 
you don't you'll have to define the environment variable PYTHONPATH to 
point to the directory where your stuff is.

It seems that, in this case, you haven't actually written a QMTest 
extension.  That's different.  You have an API to conform to and a 
registration process to complete before QMTest will use the extension.  
See the manual for details.

-- 
*Scott Lowrey*
Test Engineering Manager
NexTone Communications <http://nextone.com>
Gaithersburg, Maryland USA

/1.240.912.1369/




More information about the qmtest mailing list