It's all about the answers!

Ask a question

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


Sridhar Boyini (111) | asked May 13, 9:39 a.m.

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

One answer



permanent link
abhishek gour (2312) | answered May 15, 4:28 a.m.
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):



Comments
Sridhar Boyini commented May 15, 7:27 a.m.

 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 to post your answer.