It's all about the answers!

Ask a question

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

SANU PANJI (135) | asked May 28 '17, 1:16 p.m.
edited May 28 '17, 1:18 p.m.

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

Donald Nong commented May 28 '17, 11:58 p.m.

Accepted answer

permanent link
Jörg Werner (3033271) | answered May 31 '17, 3:41 a.m.

May be the url is not okay.

Please try:

 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

SANU PANJI commented May 31 '17, 11:34 a.m.

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.

Don Yang commented May 31 '17, 8:25 p.m.

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/ >>> testscript/

SANU PANJI commented Jun 01 '17, 2:18 a.m.

 Hi Jorga nd Don,

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

<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

SANU PANJI commented Jun 01 '17, 2:25 a.m.

 Config file :

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"

Jörg Werner commented Jun 01 '17, 3:59 a.m.

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

SANU PANJI commented Jun 01 '17, 11:26 a.m.

Thanks Jorg, Issue resolve now :)

showing 5 of 6 show 1 more comments

2 other answers

permanent link
Jörg Werner (3033271) | answered May 29 '17, 2:00 a.m.

Hi Sanu,

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

Detail description is here

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

SANU PANJI commented May 30 '17, 1:09 a.m.

 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

Jörg Werner commented May 30 '17, 10:27 a.m.

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/

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

Jörg Werner commented May 30 '17, 10:27 a.m.

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>

SANU PANJI commented May 31 '17, 12:50 a.m.

 Hi, please see below comment of mine

permanent link
SANU PANJI (135) | answered May 31 '17, 12:49 a.m.


for me url is this :

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 >
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=10">

<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/">

<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;


<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
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 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";

<script type="text/javascript">
/ <![CDATA[ /
dojo.addOnLoad( function() {
/ ]]> /

There is no sign of custom attribute

Your answer

Register or to post your answer.