Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[qmtest] W.R.T result_streams


  • To: qmtest@xxxxxxxxxxxxxxxx
  • Subject: [qmtest] W.R.T result_streams
  • From: Mohamed Barwani <mohamedb@xxxxxxx>
  • Date: Fri, 1 Aug 2008 09:56:40 +1000

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">
   &quot;&lt;pre&gt;&lt;/pre&gt;&quot;
  </annotation>
  <annotation name="ExecTest.stdout">
   &quot;&lt;pre&gt;Linux shark 2.6.25-2-amd64 #1 SMP Mon Jul 14 11:05:23 UTC 
2008 x86_64 GNU/Linux
&lt;/pre&gt;&quot;
  </annotation>
  <annotation name="qmtest.end_time">
   &quot;2008-07-31T23:44:30Z&quot;
  </annotation>
  <annotation name="qmtest.start_time">
   &quot;2008-07-31T23:44:30Z&quot;
  </annotation>
  <annotation name="qmtest.target">
   &quot;local&quot;
  </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>