Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Using Poster to get XML format of the RQM artifcact


Hi,

I am pasting the URL in URL field and now what do I need to give in "name" and "value" in Header tab of the poster to get the XML format of the RQM artifact? I am not able to get the artifacts XML format only using URL.

Please help :)

0 votes

Comments

Hi, I see your reply of the URL and the response. The URL you used is the url used in browser address box and RQM UI, not the URL for API. Please refer to wiki https://jazz.net/wiki/bin/view/Main/RqmApi about how to use the API, the URL specification is at https://jazz.net/wiki/bin/view/Main/RqmApi#RQM_Resource_URL_Specification. The test case URL for API is like https://$hostname:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/$project_area_alias/testcase/urn:com.ibm.rqm:testcase:$test_case_id. Parameters with $ should be replaced according to your project

Hey, thanks lot.. now I am able to get the Key but,

"RQM-KEY-TC-PREP-TITLE" is my TestPreparation key.. but it takes test case section name as "RQM-KEY-TC-PREP-TITLE" instead of "TestPreparation". Any suggestions

https://localhost:9443/qm/web/console/zzz%20sssss%20%28Testing%29#action=com.ibm.rqm.planning.home.actionDispatcher&subAction=viewTestCase&id=3

Please use hostname instead of "localhost".

Got it..thanks heaps for your support !



2 answers

Permanent link
Please try to add Name/Value into Headers in Poster to Name = accept and Value = application/xml if you want to get XML format.

1 vote

Comments

I tried by passing name, value but I am getting HTML but not XML, please suggest.

I guess you maybe has not passed the authentication to RQM, so see the HTML page for login. You could have a try as following.

  1. Login RQM in another Firefox tab.
  2. Try in Poster as usual.

Here are two documentation about using RQM API and Poster

https://jazz.net/wiki/bin/view/Main/RqmApi https://jazz.net/wiki/bin/view/Main/RQMUsingPoster

Hope it helps.

Still I am facing same issue !

It's strange. Could you attach the URL and the response body to let me have a check. Thanks.

Please find the details below answered section

Please see the replied comment in the post#1. Your URL is incorrect. Please refer to wiki https://jazz.net/wiki/bin/view/Main/RqmApi about how to use the API, the URL specification is at https://jazz.net/wiki/bin/view/Main/RqmApi#RQM_Resource_URL_Specification. The test case URL for API is like https://$hostname:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/$project_area_alias/testcase/urn:com.ibm.rqm:testcase:$test_case_id. Parameters with $ should be replaced according to your project

showing 5 of 6 show 1 more comments

Permanent link
The URL is:
 https://localhost:9443/qm/web/console/zzz%20sssss%20%28Testing%29#action=com.ibm.rqm.planning.home.actionDispatcher&subAction=viewTestCase&id=3

Response body is:
<!DOCTYPE html>

<!--

  Licensed Materials - Property of IBM
  (c) Copyright IBM Corporation 2005-2010. All Rights Reserved.
 
  Note to U.S. Government Users Restricted Rights:
  Use, duplication or disclosure restricted by GSA ADP Schedule
  Contract with IBM Corp.
 
-->

<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=9">
<title></title>

<link type="text/css" rel="stylesheet" href="/qm/web/_style/?include=B~&etag=GKE3rHIXnSc_en_US&_proxyURL=%2Fqm">
<link rel="shortcut icon" href="/qm/web/com.ibm.rqm.planning.web/RQM.ico">

<style type="text/css">
#net-jazz-ajax-NoScriptMessage {
    width: 100%;
    color: #D0D0D0;
    font-size: 2em;
    text-align: center;
    position: absolute;
    top: 1%;
    z-index: 999;
}
</style>

</head>

<body class="claro">
    <noscript><div id="net-jazz-ajax-NoScriptMessage">Javascript is either disabled or not available in your Browser</div></noscript>
    <div id="net-jazz-ajax-InitialLoadMessage">Loading...</div>
    <div id="net-jazz-ajax-WorkbenchRoot"></div>
   
    <script type="text/javascript">
        djConfig = {
            isDebug: false,
            usePlainJson: true,
            baseUrl: "/qm/web/dojo/",
            locale: "en-us",
            localizationComplete: true
        };
        /*null*/
        net = {jazz: {ajax: {}}};
        net.jazz.ajax._contextRoot = "/qm";
        net.jazz.ajax._appPath = "/qm/web/console/zzz%20ssssss%20%28Testing%29";
        net.jazz.ajax._webuiPrefix = "/web/";
    </script>
   
    <script type="text/javascript" src="/qm/web/_js/?include=B~&etag=GKE3rHIXnSc_en_US&_proxyURL=%2Fqm"></script>

   
    <script type="text/javascript">
    /* <![CDATA[ */
       
dojo.getObject('jazz.core.loader', true)._loaded=['B'];
net.jazz.ajax._rootServices = 'https://localhost:9443/qm/rootservices';
net.jazz.ajax._storageService = 'https://localhost:9443/qm/storage';
net.jazz.ajax._queryService = 'https://localhost:9443/qm/query';
net.jazz.ajax._infoCenterRoot = 'https://localhost:9443/clmhelp';
net.jazz.ajax._oauthRealmName = 'Jazz';
net.jazz.ajax._viewletServiceRoot = 'https://localhost:9443/qm';
net.jazz.ajax._viewletWebUIRoot = 'https://localhost:9443/qm';
net.jazz.ajax._hasLocalRepository = true;
net.jazz.ajax._proxyLegacyMode = false;
net.jazz.ajax._oauthDomains = ['https://localhost:9443/qm/'];
net.jazz.ajax._friendDomains = ['https://localhost:9443/jts/','https://localhost:9443/ccm/'];

    /* ]]> */
    </script>
   
    <script type="text/javascript">
    /* <![CDATA[ */
        dojo.addOnLoad( function() {
            net.jazz.ajax.ui.PlatformUI.createAndRunWorkbench("com.ibm.rqm.planning.web.qualityManager");
        });
    /* ]]> */
    </script>
</body>
</html>

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 04 '12, 3:02 a.m.

Question was seen: 6,886 times

Last updated: Jun 06 '12, 3:11 a.m.

Confirmation Cancel Confirm