[qmtest] Newbie help with QMTest
Stefan Seefeld
stefan at codesourcery.com
Fri Jul 6 19:48:09 UTC 2007
Hi Gary,
Gary Oberbrunner wrote:
> Hi QMTest folks, and hi Stefan -- we've met on the SCons list; I've been
> impressed with the QMTest setup for testing scons and now I want to use it for
> my own software.
Excellent !
> I installed qmtest 2.3 on my Windows XP system with Python 2.4 (regular
> python, not cygwin). I'm starting on the tutorial, but I get errors right away:
>
> % pwd
> c:\tmp
> % mkdir tdb
> % cd tdb
> % qmtest create-tdb
> QMTest has created a new test database at 'c:\tmp\tdb\.'.
> % qmtest create --id=python_pass -a expression='True' test python.ExecTest
> qmtest: error: create: option --id not recognized
>
> Run 'qmtest --help' to get instructions about how to use QMTest.
> %
>
> Did I install it incorrectly? Why doesn't it accept the --id option as in the
> tutorial? If I don't use the --id option, it runs but it only puts out an XML
> document on stdout.
This is due to me publishing an online tutorial that doesn't correspond to the
last official release, but instead the current version from the repository.
I'm sorry for the confusion. (I'll try hard to wrap up all the current work to
get ready for another release.)
Meanwhile, you can use the '--output' option instead. Noting that with the XMLDatabase
there is a 1-1 correspondence between test file (.qmt) names and test ids, you can
write the above command as
qmtest create --output=python_pass.qmt -a expression='True' test python.ExecTest
having the exact same effect.
Let me know what your current expectations are, i.e. what features you are
particularly interested in. Depending on that you may continue using the 2.3
release, or try a current snapshot instead.
Thanks for your interest !
Stefan
--
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718
More information about the qmtest
mailing list