It's all about the answers!

Ask a question

What values are needed for priority for a test case import


Kimlee Gile (534) | asked Jan 13 '14, 6:31 p.m.
I am using RQM 4.04.   I am importing a test case using the import test cases feature under the Construction menu.

I've found documentation for a couple of different values, but they don't seem to work.  I've tried using   low,  "low", literal.priority.120, and "literal.priority.120"

My XML file has the following:

<?xml version="1.0" encoding="UTF-8"?>
   <testcase xmlns="http://jazz.net/xmlns/alm/qm/v0.1/">
      <title xmlns="http://purl.org/dc/elements/1.1/">Migration test - 1 (empty fields)</title>
       <priority xmlns="http://jazz.net/xmlns/alm/v0.1/">literal.priority.120</priority>
      <description xmlns="http://purl.org/dc/elements/1.1/">xxx</description>
   </testcase>

Accepted answer


permanent link
Ara Masrof (3.1k15) | answered Jan 15 '14, 8:22 a.m.
JAZZ DEVELOPER
edited Jan 15 '14, 8:23 a.m.
 Kimlee
Here is an example that will import and set the priority (this was done in version 4.0.3)

<?xml version="1.0" encoding="utf-8"?>
<testcase xmlns="http://jazz.net/xmlns/alm/qm/v0.1/"
 xmlns:jzalm="http://jazz.net/xmlns/alm/v0.1/"
 xmlns:alm="http://jazz.net/xmlns/alm/v0.1/"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:myns="http://mydomain.net/some/custom/namespace/v0.1/"
 xmlns:ts="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/"
 xmlns:er="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1"
 xmlns:vg="http://schema.ibm.com/vega/2008/"
 xmlns:rs="http://jazz.net/xmlns/alm/qm/remotescript/v0.1/">
<category term="Test Pase" value="TestPahse One import"/>
<dc:title>TC Example </dc:title>
<dc:description>Populates the description field in the summary section</dc:description>
<category term="Function" value="Function One Import"/>
<priority>literal.priority.130</priority>
<category term="Importer" value="Added this on this on fly"/>
</testcase>
Kimlee Gile selected this answer as the correct answer

Comments
Kimlee Gile commented Jan 15 '14, 10:10 a.m.

Ah, it was the attribute that I had for priority that was causing mine not to work.   I removed  xmlns="http://jazz.net/xmlns/alm/v0.1/"   then literal.priority.130  worked.   Thanks

2 other answers



permanent link
Paul Slauenwhite (8.3k12) | answered Jan 14 '14, 6:49 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
See Document values for all qm:priority properties. (103133)

In the meantime, I would suggest to set the priority for a test artifact in the RQM UI and GET the test artifact using the RQM REST API (see https://jazz.net/wiki/bin/view/Main/RqmApi#Read).

Comments
Kimlee Gile commented Jan 14 '14, 4:24 p.m.

This is a standard RQM field and a shipped import feature.  (Note that I am not asking about the Excel/Word import tool, I'm asking about the Import Test Case feature under the Construction menu.)  I'm just looking for the answer.   I have no other reason to learn how to use the API at this time so it seems like an excessive use of time to pick it up just for this.



Paul Slauenwhite commented Jan 15 '14, 8:34 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Hi Kimlee,

If you want to use the Import from a local XML file feature in RQM, you need to know something about the RQM REST API, specifically the RQM XML schema.

In most cases, this type of information is contained in the RQM XML schema documentation.  However, in this case, there was an omission (hence defect 103133).  See the defect for the new text added to the RQM XML schema documentation.


permanent link
Ara Masrof (3.1k15) | answered Jan 14 '14, 8:21 a.m.
JAZZ DEVELOPER
Kimlee,
To follow up on Paul's comment, you could also use the ExcelWord import tool with the 'Export to File' option and analyze the resulting XML 
This can help in getting the syntax correct
Here is an example of a Test Plan Priority set to 'High'

<dc:title>TP using importer (populate default sections)</dc:title>
<priority>literal.priority.130</priority>
<dc:description>Populates the description field in the summary section</dc:description>

Comments
Kimlee Gile commented Jan 14 '14, 4:17 p.m.

I can't use the Excel/Word import tool because I don't have Excel and there's no way to request it.   Even the exception process for requesting Office is gone as of Jan 1st, 2014.

I've tried using literal.priority.130 in my XML file for the import test case option under the Construction menu and it does not work.   So I'm looking for the values to put in XML for THAT import tool that will results in for the standard Low, Medium and High.

Your answer


Register or to post your answer.