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

How to get href or URI of test script which needs to be added to test case through XML?

'in the below xml I need to specify href and vega:id. Where do I get that? 


<?xml version="1.0"?>

<title xmlns="http://purl.org/dc/elements/1.1/">TC_01_Create Artifact_103</title>

<description xmlns="http://purl.org/dc/elements/1.1/">Testing the create artifact functionality</description>

<category term="Complexity" value="Complex

<category term="Safety Related" value="Yes

<category term="Type" value="MANUAL

<category term="Type of Testing" value="Functional Testing

<testscript href="TS_03" vega:id =???/>

</testcase>

0 votes



One answer

Permanent link
Hi Sridhar, 
How did you get this xml? Is it obtained via some GET call on any RQM test artifact? It is not clear in your question. 

How ever, If you question is regarding modifying an existing test artifact - then you may have to do a PUT on the target test artifact. 
The short answer - do a GET on the artifact. Then modify the content of the GET response, and then perform PUT. 

Please see the RQM Reportable REST API WIKI (https://jazz.net/wiki/bin/view/Main/RqmApi):


0 votes

Comments

 Hi Abhishek, 

Thanks for the answer. I got the XML template from "Help" file of RQM and modified as per my test case. Added category values, Name and Description to it. Now in the above XML I have to include XML tags that link Test script and Requirement to test case.XML tag template for linking is as follows, but I do not know what value I need to give for "href" and "vega:id" in both cases.

<testscript href =  xs:anyURI vega:id = xs:string />
<requirement href =  xs:anyURI vega:id = xs:string /> 

Thanks for your time. Your help is very much appreciated. 

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

Question asked: May 13 '19, 9:39 a.m.

Question was seen: 1,820 times

Last updated: May 15 '19, 7:27 a.m.

Confirmation Cancel Confirm