Using Poster to get XML format of the RQM artifcact
2 answers
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.
- Login RQM in another Firefox tab.
- 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
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>
Comments
Bing Dong Ma
JAZZ DEVELOPER Jun 06 '12, 1:55 a.m.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
Chandrahasa Reddy D
Jun 06 '12, 2:45 a.m.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
Scarlett Li
JAZZ DEVELOPER Jun 06 '12, 2:49 a.m.Please use hostname instead of "localhost".
Chandrahasa Reddy D
Jun 06 '12, 3:11 a.m.Got it..thanks heaps for your support !