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

What values are needed for priority for a test case import

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>

0 votes


Accepted answer

Permanent link
 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

0 votes

Comments

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

0 votes

Comments

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.


Permanent link
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).

0 votes

Comments

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.


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.


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
× 12,015

Question asked: Jan 13 '14, 6:31 p.m.

Question was seen: 5,399 times

Last updated: Jan 15 '14, 10:10 a.m.

Confirmation Cancel Confirm