questions to QMTest

ktemp at gmx.ch ktemp at gmx.ch
Fri Jul 14 06:49:38 UTC 2006


Dear Sirs,

I am evaluating QMTest and reached a point where I am not able to proceed. I would appreciate any help.


I have installed it under Windows XP, Python 2.3.
I will use it to start NUnit and CPP unit tests. The standard output of NUnit includes the time the test need and differs from run to run. That's why I can not create a testcase against this output. I tryed to create an extension class to parse the output but at this point I have some problems. 
I copied the the class C:\Python23\Lib\site-packages\qm\test\classes\command.py to a new file, edit it and registered it with the command 
QMTest.py register ... but when used this class I get an exception.
Because I didn't know what's wrong I just copied the command.py to mycommand.py without any changes and registered it with the command:

C:\Python23\share\qm\tutorial\test\tdb2>qmtest.py register test mycommand.ExecTest
--> Result:
QMTest will load 'ExecTest' from '
C:\Python23\lib\site-packages\qm\test\classes\mycommand.py'.

seems ok..

But when using this class I get the same exception as before (see below) and at this point I need help. 


circle.nunit2Outcome	Cause
ERROR 	An exception occurred. 
Annotation	Value
qmtest.end_time	2006-07-14T05:52:59Z 
qmtest.exception	pywintypes.error: (123, 'CreateProcess', 'Die Syntax f\xfcr den Dateinamen, Verzeichnisnamen oder die Datentr\xe4gerbezeichnung ist falsch.')
qmtest.start_time	2006-07-14T05:52:59Z 
qmtest.target	local 
qmtest.traceback	  File "C:\Python23\Lib\site-packages\qm\test\target.py", line 225, in RunTest
    descriptor.Run(context, result)

  File "C:\Python23\Lib\site-packages\qm\test\database.py", line 256, in Run
    self._Execute(context, result, "Run")

  File "C:\Python23\Lib\site-packages\qm\test\database.py", line 178, in _Execute
    methobj(context, result)

  File "C:\Python23\lib\site-packages\qm\test\classes\mycompiler.py", line 335, in Run
    context, result)

  File "C:\Python23\lib\site-packages\qm\test\classes\mycompiler.py", line 221, in RunProgram
    exit_status = e.Run(arguments, environment, path = program)

  File "C:\Python23\Lib\site-packages\qm\executable.py", line 548, in Run
    path)

  File "C:\Python23\Lib\site-packages\qm\executable.py", line 257, in Run
    child = self.Spawn(arguments, environment, dir, path, exception_pipe)

  File "C:\Python23\Lib\site-packages\qm\executable.py", line 170, in Spawn
    startupinfo)[0]







General:

My scope is to create a nightly build and test sytem with QMTest. My idea is to create two extendend classes basically.
The first is to check out the sources from the source safe reprository and build the project if the sources has changed or if binaries are out of date. I will validate against the compiler output.
The second has to execute the unit tests. This class shall store the e-mail address of the developper and if the test failes it sends an e-mail to him.

Concerning this conecpt I have several questions to some issues.
- Is this the right way to use QMTest or are there better solutions?
- Concerning the class which compiles the project. I have found a class "compiler.py" but didn't found a way to select it in the gui. How can I use it ?
- I can imagine that these issues already have been solved by another developper. Are there some extension classes to download ? 
- I searched for a public Forum for QMTest but I didn't found one. Does no forum exist ?

 
Thanks for your help
Konrad Kellenberger

-- 


"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail



More information about the qmtest mailing list