It's all about the answers!

Ask a question

how to change state of testcase execution record


ronaldo james (112) | asked Feb 25 '22, 12:37 a.m.
edited Feb 25 '22, 4:57 a.m.
Hi,
can I able to change the state of testcase execution record through execution result ?
I have tried with execution result to change it the xml is
<?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/testscript/v0.1/"
    xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1"
     xmlns:ns10="http://open-services.net/ns/core#"
     xmlns:ns11="http://open-services.net/ns/qm#"
      xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/"
       xmlns:ns13="http://www.w3.org/2002/07/owl#"
        xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1"
         xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1"
          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:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/"
            xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/"
             xmlns:ns21="http://www.w3.org/1999/XSL/Transform">
    <ns2:projectArea href="https://portal.port.com:995/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_MPBWQaxIEeih48gIzz96_w" alias="Sandpit+%28Quality+Management%29" />
    <ns2:webId>
        33
    </ns2:webId>
    <ns5:state>
                 com.ibm.rqm.execution.common.state.error
    </ns5:state>
    <ns3:title>
        EXECUTION-RESULT
    </ns3:title>
    <ns3:description>
        created a sample testsuite and linking the testcases
    </ns3:description>
    <ns2:stepResultsUpdateStatus>
    MODIFIED
    </ns2:stepResultsUpdateStatus>
    <ns3:creator>
            user
    </ns3:creator>
    <ns5:owner>
        user
    </ns5:owner>
    <ns2:ownerid>
        01
    </ns2:ownerid>
    <ns2:approvalstate ns7:resource="https://portal.port.com:995/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_MPBWQaxIEeih48gIzz96_w/workflowstate/com.ibm.rqm.process.testcaseresult.workflow/com.ibm.rqm.planning.common.new">
        com.ibm.rqm.planning.common.new
    </ns2:approvalstate>
    <ns2:pointspassed>
        7
    </ns2:pointspassed>
    
    <ns2:variables />
    <ns2:weight>
        100
    </ns2:weight>
    <executionworkitem href="https://portal.port.com:995/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Sandpit+%28Quality+Management%29/executionworkitem/urn:com.ibm.rqm:executionworkitem:50" />
    <ns2:testplan href="https://portal.port.com:995/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Sandpit+%28Quality+Management%29/testplan/423af821-19a8-43e8-bb24-bf36eca0a345" />
    <ns2:testcase href="https://portal.port.com:995/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Sandpit+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:9691" />
</ns2:executionresult>



the REST API is
java  -jar -Dcom.ibm.team.repository.transport.client.protocol="TLSv1.2" "/home/kpit/Desktop/python/rqmimporter/RQMUrlUtility.jar" -filepath "/home/kpit/Desktop/python/rqmimporter/xmlfiles/testsuiteupload.xml" -command PUT -user user -password password -url https://portal.port.com:995/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Sandpit+%28Quality+Management%29/executionresult/urn:com.ibm.rqm:executionresult:32

but i am getting error
RQMUrlUtility: Server Response code: 400
If there is any way to change toe state of TCER please let me know .


Thank You




Comments
Ralph Schoon commented Feb 25 '22, 2:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Please add reasonable tags to your question useage does not cut it and has a typo. All the other two questions have the same issue and I have already fixed one but I am not willing to play your secretary. You can edit your tags later. If you ask about APIs use something like API as tag. Provide a product name.  


With respect to API questions - you might not get an answer if there is nobody that has that experience.

Be the first one to answer this question!


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.