Why do I get the "Required property 'name' is missing" error when importating an XML file?
![]()
I am trying to import some test cases and I keep getting an error that says "Required property 'name' is missing. Does any one have any idea what this means?
I used the following XML schema (based on this: https://jazz.net/products/rational-quality-manager/api-doc-2.0/api-files/schemas/qm_xsd/elements/testcase_1.html) and even went as a far as to changing the "title" tags to "name" with no luck:
<title>""title>
<description>""description>
<updated>""updated>
<state>""state>
<creator>""creator>
<owner>""owner>
<regressionTest>""regressionTest>
<weight>""weight>
<category term="Category" value="" />
<category term="Function" value="" />
<categoryterm="Theme" value="" />
<testcase> |
One answer
![]()
Paul Slauenwhite (8.4k●1●2)
| answered Jul 29 '14, 5:55 p.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Jul 29 '14, 7:36 p.m.
Hard to tell with the attached XML. However, it looks like in the third category element, a space is needed before the term attribute. Also, most element/attribute values are missing.
|
Comments
Maybe the original XML content is just messed up when posted, but it seems that the attributes don't have namespace specified. You may try to use the XML content of an existing test case as a template, and make sure the XML content is correctly formatted (even IE can do a fine job on this).
The missing namespace prefixes would not cause this error. It's caused by the missing 'name' element/attribute.
I don't recognize the regressionTest element (see https://jazz.net/products/rational-quality-manager/api-doc-5.0/schemas/qm_xsd/elements/testcase.html).
I would suggest following https://jazz.net/wiki/bin/view/Main/RqmApi#ScenarioCreateTip.
If the problem continues, open a RQM defect and attached the testcase XML.