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

what is the syntax in config file for importing test case summary attribute values like user 1, user 2

I want to update user 1, user 5 in below testcase summary attribute field

testcase.category term="User 5".value=N -- this is not working
please suggest me a suitable config

0 votes

Comments


Accepted answer

Permanent link

May be the url is not okay.

Please try:

https://sdp.web.att.com/fa4qm1/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Order_Creation_QM_20.05.01/testcase/urn:com.ibm.rqm:testcase:498927

 good luck, Jörg


PS: I do the tests also with poster. I did add a header (Headers Tab) with Name=accept and Value=application/xml

SANU PANJI selected this answer as the correct answer

0 votes

Comments

Both of the method is not working, I think this type of URL not supported in Poster or RQMURLutility. Can you suggest me a path forward. Or how can I get exact workable URL.

The URL should work in Poster. The question is whether you have test case 498927 existing or not. It seems that 498927 is a testscript not a test case. you need to find out an existing test case id and put it there or use the correct resource type for example
testcase/urn:com.ibm.rqm:testcase:498927 >>> testscript/urn:com.ibm.rqm:testscript:498927

 Hi Jorga nd Don,

Thanks for your valuable responses. Now m able to get the identifier and name :)
PSB :

<ns2:customAttributes><ns2:customAttribute type="SMALL_STRING" required="false"><ns2:identifier>User_5</ns2:identifier><ns2:name>User 5</ns2:name><ns2:value>test</ns2:value><ns2:description/></ns2:customAttribute></ns2:customAttributes></ns2:testcase>


But when I add below in cfg file :
testcase.customAttributes type="SMALL_STRING".identifier="User_5".name="User 5".value=L

User 5 is not updating


 Config file :

testcase.XLSStartRow=2
testcase.dc:title=B
testcase.dc:description=C
testcase.alm:state="com.ibm.rqm.planning.common.underreview"
testcase.priority="literal.priority.130"
testcase.category term="Application".value=I
testcase.category term="Progression/Regression".value=J
testcase.category term="Test Phase".value=K
testcase.customAttributes type="SMALL_STRING".identifier="User_5".name="User 5".value="Test5test"


Do you use RQM version <= 6.0.1?
According to documentation (see above) the order of the parameters are relevant.
I would try

testcase.customAttributes identifier="User_5".name="User 5".type="SMALL_STRING".value="Test5test"



   Cheers, Jörg

Thanks Jorg, Issue resolve now :)

showing 5 of 6 show 1 more comments

2 other answers

Permanent link

Hi Sanu,

category and attributes are different items and have different syntax to import.

Detail description is here https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter

Tricky part is to get the internal identifier name. Valid syntax is of course described there:



and in your installation directory you'll find also an example: TestCases 001 with custom attributes

Hope this helps, Jörg


0 votes

Comments

 Hello Jorg,


I find out in forum that what am I looking for is a custom attribute. But I dont know the type and identifier of those atteribute. I tried RQMURLUtility, but not able to get any values, please help me

Hi Sanu, a liitle bit more info would be helpful. Which Query did you use, what was the result/error message?

Anyway. Maybe the cheat sheet can help you

Example query is: https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:33

for me this is working. May be one important hint: If you create a dummy test case you have also to enter data in the attribute field(s). Empty fields are not shown in the result.

 Hope this helps, Jörg


My output:

<ns2:customAttributes>  <ns2:customAttribute type="SMALL_STRING" required="false">  <ns2:identifier>UML_Element</ns2:identifier>  <ns2:name>UML Element</ns2:name>  <ns2:value>Dummy</ns2:value>  <ns2:description/>  </ns2:customAttribute></ns2:customAttributes>


 Hi, please see below comment of mine


Permanent link

  Hi,

for me url is this :
https://sdp.web.att.com/fa4qm1/web/console/Order_Creation_QM_20.05.01#action=com.ibm.rqm.planning.home.actionDispatcher&subAction=viewTestScript&id=498927

and I have updated custom attribute in testcase. but below html file returning from RQMURLutility or from poster add on in Mozilla :
 
<!DOCTYPE html>
<!--
Licensed Materials - Property of IBM
(c) Copyright IBM Corporation 2005, 2015. 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=10">
<title></title>

<link type="text/css" rel="stylesheet" href="/fa4qm1/web/_style/?include=A~&etag=DVIScD3UX7b_en_US&_proxyURL=%2Ffa4qm1&ss=KyDUK">
<link rel="shortcut icon" href="/fa4qm1/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: "/fa4qm1/web/dojo/",
locale: "en-us",
localizationComplete: true
};
/null/
net = {jazz: {ajax: {}}};
net.jazz.ajax._contextRoot = "/fa4qm1";
net.jazz.ajax._appPath = "/fa4qm1/web/console/Order_Creation_QM_20.05.01";
net.jazz.ajax._webuiPrefix = "/web/";
</script>

<script type="text/javascript" src="/fa4qm1/web/_js/?include=A~&etag=DVIScD3UX7b_en_US&_proxyURL=%2Ffa4qm1&ss=KyDUK&locale=en-us"></script>

<script type="text/javascript">
require("dojo/main").getObject('jazz.core.loader', true)._serverStartup="KyDUK";
require("dojo/main").getObject('jazz.core.loader',true)._loaded=["A"];
</script>


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

There is no sign of custom attribute

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
× 6,130

Question asked: May 28 '17, 1:16 p.m.

Question was seen: 3,506 times

Last updated: Jun 01 '17, 11:26 a.m.

Confirmation Cancel Confirm