How to get the look ups value for RQM test case using Rest API
How to get the look ups value for RQM test case using Rest API
I am referring this document for rest API.
Using the following Rest API i am getting the fields meta of all schema including Test Case.
https://<host>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/schema/v2_0/qm.xsd
I wanted to fetch the look up values for the State, Priority , Template, Trigger, as well Test Activity (Activity) etc.
Even wanted to fetch look up values for each category type.
Kindly provide me the Rest Request to be used in order to fetch all above mentioned Fields's look ups for RQM Test Case.
Also how to fetch the custom attributes meta using the Rest Request above field meta request not giving custom field meta of Test Case.
Regards,
Ajay
2 answers
Hi,
<oslc:creationFactory>
|
<oslc:Property>
<oslc:range rdf:resource="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/Priority"/>
<oslc:representation rdf:resource="http://open-services.net/ns/core#Reference"/>
<oslc:occurs rdf:resource="http://open-services.net/ns/core#Zero-or-one"/>
|
<dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Has Priority</dcterms:title>
|
<oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">hasPriority</oslc:name>
<dcterms:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">The priority of the resource.</dcterms:description>
<oslc:isMemberProperty rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc:isMemberProperty>
<oslc:hidden rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</oslc:hidden>
Comments
Hi Matthias,
Thanks for the response.
We have checked the OSLC API to get fields meta and look up values.
But we are facing few issues using OSLC API. following are those. Kindly help us to resolve them.
1) Using OSLC we are getting look up for the Priority, Status etc. but we are not getting look up values for Test Case Activity and Trigger Field.
2) Using OSLC we are also not getting fields information of each rich text type field of test case.
as per RQM UI rich text fields are, Pre-Condition,Post-Condition, Test Case design, Test Case Scope , Notes etc.
But using OSLC we are not getting all these fields meta for test case.
Click Here to check the Request of Test Case Meta and Rich Text Section response.
Kindly help us to resolve above two query.
Thanks in advance
Hi Ajay.
Back from vacation I find the time to comment on your Questions.
First of all, is it right, that you'd like to create a test case using REST or OSLC?
But now my comments on your answer:
1) What do you mean with Trigger or Activity Field. Is this a custom or a built-in attribute. If it's a built-in I have to apologize but we never used them before so they are unknown to me.
2) When you query for an existing Test Case using the Firefox Rest Client you'll find the rich text fields as well. Search for the tag <rqm_qm:richTextSection> in the Result.
So if you'd like to create a Test Case you simply need to adapt the XML and add the content for each Rich-Text section. If you use Lyo this should be possible using the ExtendedProperties property of the Test Case class.
Kind regards
Matthias
Comments
ajay hirapara
Jul 13 '17, 3:10 a.m.Hi
Kindly provide solution to requested query
Thanks
Donald Nong
Jul 17 '17, 3:13 a.m.What exactly is a "look up value"?