It's all about the answers!

Ask a question

Why do I get the "Required property 'name' is missing" error when importating an XML file?


Shai Millen-EL (877) | asked Jul 29 '14, 1:35 p.m.
edited Jul 29 '14, 1:42 p.m.

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:

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

Comments
Donald Nong commented Jul 29 '14, 11:07 p.m.

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


Paul Slauenwhite commented Jul 30 '14, 7:11 a.m. | edited Jul 30 '14, 7:12 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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.

One answer



permanent link
Paul Slauenwhite (8.4k12) | 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.



Your answer


Register or 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.