W.R.T result_streams
Mohamed Barwani
mohamedb at sgi.com
Thu Jul 31 23:56:40 UTC 2008
I wanted to play around with different result streams.. and see what would fit
best, or perhaps write a new one.
However, regardless of what you pass into the command line you get multiple
streams printed out.. Specifying xml_result_stream fro example will produce
an output as below. A combination of TextResultStream & XMLResultStream.
Further I expected the output file to be an xml but I got a pickled python
object. Which is fine, I think, so long as I could get a proper xml output.
My question is, What is the significance of having multiple streams output, if
the output file is still going to be a cPickled object?
Thanks,
Mohamed
-------------------------------- Output -------------------------------------
$ qmtest run --result-stream=xml_result_stream.XMLResultStream -o s.xml ls
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE results
PUBLIC "-//QM/2.4/QMTest/Result//EN" "http://www.codesourcery.com/qm/dtds/2.4/qmtest/result.dtd">
<results>
<annotation key="foo">
bar
</annotation>
<annotation key="bla">
ble
</annotation>
<annotation key="qmtest.run.start_time">
2008-07-31T23:44:30Z
</annotation>
<annotation key="qmtest.run.username">
mohamedb
</annotation>
<annotation key="qmtest.run.userid">
16393
</annotation>
<annotation key="qmtest.run.version">
2.4
</annotation>
<annotation key="qmtest.run.uname">
Linux shark 2.6.25-2-amd64 #1 SMP Mon Jul 14 11:05:23 UTC 2008 x86_64
</annotation>
<annotation key="qmtest.run.command_line">
/usr/bin/qmtest run --result-stream=xml_result_stream.XMLResultStream -o
s.xml ls
</annotation>
--- TEST RESULTS -------------------------------------------------------------
ls : PASS
<result id="ls" kind="test" outcome="PASS">
<annotation name="ExecTest.stderr">
"<pre></pre>"
</annotation>
<annotation name="ExecTest.stdout">
"<pre>Linux shark 2.6.25-2-amd64 #1 SMP Mon Jul 14 11:05:23 UTC
2008 x86_64 GNU/Linux
</pre>"
</annotation>
<annotation name="qmtest.end_time">
"2008-07-31T23:44:30Z"
</annotation>
<annotation name="qmtest.start_time">
"2008-07-31T23:44:30Z"
</annotation>
<annotation name="qmtest.target">
"local"
</annotation>
</result>
--- TESTS THAT DID NOT PASS --------------------------------------------------
None.
--- STATISTICS ---------------------------------------------------------------
1 tests total
1 (100%) tests PASS
<annotation key="qmtest.run.end_time">
2008-07-31T23:44:30Z
</annotation>
</results>
More information about the qmtest
mailing list