Import Test Plans, Requirement in XML form from local machine gives error-
Hi, I am trying to import XML schema for Test Cases in RQM 2.0.1.1 version. After browsing the sample.xml test case file and clicked on Import button it throws error:-- The uploaded content does not match the schema for Test case. I have contructed the sample xml from the documentaion- http://publib.boulder.ibm.com/infocenter/rqmhelp/v2r0/index.jsp?topic=/com.ibm.rational.test.qm.doc/topics/t_import_testcase.html. Please let me know how to import the test cases and requirements in XML form. Is RQM 2.0 version supports different XML schema ? Thanks- Chandan |
Accepted answer
Hi Chandan,
the sample is not correct, the description section miss an end tag </description> you can use the following xml to have a try again. <?xml version="1.0"?> <testcase xmlns="http://jazz.net/xmlns/alm/qm/v0.1/"> <title xmlns="http://purl.org/dc/elements/1.1/" >New Customer Order Test Case</title > <description xmlns="http://purl.org/dc/elements/1.1/">Test the ordering functionality of the Classics Java application.</description> <updated xmlns="http://jazz.net/xmlns/alm/v0.1/">2008-08-23T01:00:21.437Z</updated> <state xmlns="http://jazz.net/xmlns/alm/v0.1/">com.ibm.rqm.planning.common.new</state> <creator xmlns="http://purl.org/dc/elements/1.1/">mary</creator> <owner xmlns="http://jazz.net/xmlns/alm/v0.1/">unassigned</owner> <regressionTest>false</regressionTest> <weight>20</weight> <category term="Category" value="Web UI"/> <category term="Function" value="Execution"/> <category term="Theme" value="Functionality"/> <title xmlns="http://purl.org/dc/elements/1.1/">New Customer Order Test Case</title> </testcase> Chandan Jha selected this answer as the correct answer
Comments Chandan, the title section doesn't display on, this may be a forum defect. you need to add the <title xmlns="http://purl.org/dc/elements/1.1/">New Customer Order Test Case</title> section to the xml
Chandan Jha
commented Sep 11 '12, 5:12 a.m.
Yes, The description end tag was missing. Now its working. Thanks. |
2 other answers
Hi Chandan,
Make sure you are using correct namespace. I think best example would be to do a GET on existing testcase and see the xml received Testcase Feed URL would look something like this https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project area name>/testcase From this feed select any of the Link. Clicking on the link might open RQM Web client rather xml so use utility like Poster addon in Firefox. In poster copy paste URL of one of the test case from feed Do not forget to add header parameter user-agent: true or alternatively accept: application/xml Click on GET button . Response should contain testcase xml, provided you are already authenticated in browser Save response into some xml file and use it as reference. Hope it helps -|- Pramod |
Fixed in RQM 2.0.1.1 iFix 4 under Malformed XML example in 'Importing test cases into Rational Quality Manager'. (53202).
|
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.