It's all about the answers!

Ask a question

create xml for Execution Results


Chidambaram L (23414285) | asked Jul 04 '14, 8:59 a.m.
I have to programatically create Execution Results and upload to RQM Server.
How to create the Execution Results XML; Do I need to use a parser. Can you guide me with perl / java module that will create xml.
My inputs are TER ID, Pass/fail status.

2 answers



permanent link
Donald Nong (14.5k614) | answered Jul 07 '14, 1:36 a.m.
Have you checked out this link?
http://sleroyblog.wordpress.com/2013/04/09/querying-rqm-40-through-oslc-and-rest-api/#cs_create_thru_rest

permanent link
Reshma Ratnani (1.1k1) | answered Jul 07 '14, 3:15 a.m.
JAZZ DEVELOPER
Hi Lakshmanan,

Below is the syntax for Execution Result xml. You can even run a testcase and create execution result in RQM UI. Then do a GET of that execution result. This will give you the xml syntax. We also have a java based open source utility which you can refer. You can get it in https://jazz.net/wiki/bin/view/Main/RqmApi#RQM_API_Utility

<?xml version="1.0" encoding="UTF-8"?>
<ns2:executionresult xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://purl.org/dc/terms/" xmlns:ns7="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns13="http://open-services.net/ns/core#" xmlns:ns14="http://open-services.net/ns/qm#" xmlns:ns15="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns19="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns20="http://www.w3.org/1999/XSL/Transform">
  <ns2:projectArea alias="JKE+Banking+%28Quality+Management%29" href="https://rqmx64d.rtp.raleigh.ibm.com:9444/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_0I6VT9HVEeGSWYp6WoHgWA"/>
 
  <ns3:title>Allocate_Dividends_to_a_Single_Cause_InternetExplorer_DB2_WAS_Windows_S1</ns3:title>
 
  <ns5:state>com.ibm.rqm.execution.common.state.pass</ns5:state>

  <ns2:variables/>


  <ns16:weight>125</ns16:weight>
  <ns16:pointspassed>125</ns16:pointspassed>
  <ns16:pointsfailed>0</ns16:pointsfailed>
  <ns16:pointsattempted>125</ns16:pointsattempted>
  <ns16:pointsblocked>0</ns16:pointsblocked>
  <ns16:pointsinconclusive>0</ns16:pointsinconclusive>
  <ns2:pointspermfailed>0</ns2:pointspermfailed>
  <ns2:pointsdeferred>0</ns2:pointsdeferred>

  <ns16:stepResults>
    <ns16:stepResult ns1:id="_90YfgtHWEeGSWYp6WoHgWA" stepIndex="1" href="https://localhost:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/executionelementresult/_90YfgtHWEeGSWYp6WoHgWA" result="com.ibm.rqm.execution.common.state.pass">
      <ns16:result>com.ibm.rqm.execution.common.state.pass</ns16:result>
      <ns16:description>
        <div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">
          <div xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word">JKE Login</div>
        </div:div>
      </ns16:description>
      <ns16:stepType>com.ibm.rqm.execution.common.elementtype.keyword</ns16:stepType>
      <ns16:comment/>
      <ns16:compare/>
      <ns16:stepResults>
        <ns16:stepResult ns1:id="_90YfjNHWEeGSWYp6WoHgWA" stepIndex="1" href="https://localhost:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/executionelementresult/_90YfjNHWEeGSWYp6WoHgWA" endTime="2012-07-19T19:22:16.194Z" result="com.ibm.rqm.execution.common.state.passed" startTime="2012-07-19T19:21:40.194Z">
          <ns16:result>com.ibm.rqm.execution.common.state.passed</ns16:result>
          <ns16:expectedResult>
            <div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">Accounts Overview screen appears <br/>
              <a href="https://localhost:9444/qm/service/com.ibm.rqm.planning.service.internal.rest.IAttachmentRestService/_4tv84dHWEeGSWYp6WoHgWA">
                <img src="https://localhost:9444/qm/service/com.ibm.rqm.planning.service.internal.rest.IAttachmentRestService/_4tv84dHWEeGSWYp6WoHgWA" alt="1b_Accounts_Overview.png" border="0" id="_4tv84dHWEeGSWYp6WoHgWA"/>
              </a> </div:div>
          </ns16:expectedResult>
          <ns16:actualResult>
            <div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">User logged in successfully.</div:div>
          </ns16:actualResult>
          <ns16:description>
            <div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">Log into JKE Banking with <b>username</b> jbrown and <b>password</b> jbrown. </div:div>
          </ns16:description>
          <ns16:stepType>com.ibm.rqm.execution.common.elementtype.execution</ns16:stepType>
          <ns16:comment/>
        </ns16:stepResult>
      </ns16:stepResults>
    </ns16:stepResult>
    <ns16:stepResult ns1:id="_90YfmNHWEeGSWYp6WoHgWA" stepIndex="2" href="https://localhost:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/executionelementresult/_90YfmNHWEeGSWYp6WoHgWA" endTime="2012-07-19T19:22:57.194Z" result="com.ibm.rqm.execution.common.state.passed" startTime="2012-07-19T19:22:16.194Z">
     
      <ns16:result>com.ibm.rqm.execution.common.state.passed</ns16:result>
      <ns16:expectedResult>
        <div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">
          <b>Account Details screen</b> appears </div:div>
      </ns16:expectedResult>
      <ns16:actualResult>
        <div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">Account Details screen appeared.</div:div>
      </ns16:actualResult>
      <ns16:description>
        <div:div xmlns:div="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml">Select <b>Money Market Savings Account</b>
          <br/>
           </div:div>
      </ns16:description>
      <ns16:stepType>com.ibm.rqm.execution.common.elementtype.execution</ns16:stepType>
      <ns16:comment/>
    </ns16:stepResult>
    </ns16:stepResults>
  <ns2:testcase href="https://localhost:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:19"/>
  <ns2:testscript href="https://localhost:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testscript/urn:com.ibm.rqm:testscript:20"/>
  <ns2:executionworkitem href="https://localhost:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/executionworkitem/urn:com.ibm.rqm:executionworkitem:3"/>
 
</ns2:executionresult>

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.