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> |
Accepted answer
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
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.
Hi Kimlee,
|
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.
|
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.