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

Create components in RQM rtc test manager 7.0.2

 Hello,


I would like to create components in RQM rtc test manager in java.
I could not use RTC plain Java apis for the same.
Kindly guide me how to create components in Test Manager(RQM) ibm jazz.

Thanks in advance,
Arati

0 votes



2 answers

Permanent link
You can create components in ETM through REST services by discovering the URI of an OSLC Creation Factory for components, and then perform a POST to that URI with appropriate RDF content.

GET ETM's rootservices document. You should see it contains an entry similar to:
  <!-- Configuration Management service catalog -->
  <oslc_config:cmServiceProviders
          xmlns:oslc_config="http://open-services.net/ns/config#"
          rdf:resource="https://localhost:9443/qm/oslc_config/catalog"  /

    
That provides the URI of the OSLC Service Provider Catalog for ETM configuration management.
A GET on that service provider catalog URI includes definitions of service providers, one of which will declare something like:
    oslc:creationFactory  [ 
        a                   oslc:CreationFactory ;
        oslc:creation       <https://localhost:9443/qm/oslc_config/resources/com.ibm.team.vvc.Component> ;
        oslc:resourceShape  <https://localhost:9443/qm/oslc_config/resourceShapes/com.ibm.team.vvc.Component> ;
        oslc:resourceType   <http://open-services.net/ns/config#Component> ;
        dcterms:title       "Default creation factory for Component"^^rdf:XMLLiteral
        ] ;

    
That gives you the URI of the creation factory to which you POST RDF content describing the component you want to create. It also povides the URI of an OSLC Resource Shape that describes the properties that may or must be supplied.

If you're unfamiliar with OSLC, I recommend that you read the OSLC Primer.


1 vote

Comments

 Hello David,

Thanks for the feedback!
I tried to get service provider using https://jazzServer.com/qm/olsc_qm/catalog and I received information of all ETM project areas.
I got services.xml url from each project area response tag.

When I clicked on services.xml, I cannot find creation factory for component as you mentioned above but there are all other creation factories for testCase, TestScript etc
How should I proceed now?
Is there anything needed to be activated/configured on jazz server to allow this creation?

Any help appreciated!

Regards,
Arati

You're looking at the SPC for QM artifacts. You need the SPC for configuration management. Look at the element from the rootservices document I included in  my previous post.

Hello,


As I am only beginner in REST/OSLC and RQM area, I am not able to find out creationFactory for Component.

But I am getting response as 
HTTP/1.1 302 Found

Kindly guide me through this.


That doesn't look like the URI of an ETM OSLC creation factory for components. In my local environment, root services response includes:

  <!-- Configuration Management service catalog -->
  <oslc_config:cmServiceProviders
          xmlns:oslc_config="http://open-services.net/ns/config#"
          rdf:resource="https://localhost:9443/qm/oslc_config/catalog"  />

    




A GET on that OSLC SPC includes:
  <rdf:Description rdf:nodeID="A19">
    <oslc:resourceType rdf:resource="http://open-services.net/ns/config#Component"/>
    <oslc:resourceShape rdf:resource="https://localhost:9443/qm/oslc_config/resourceShapes/com.ibm.team.vvc.Component"/>
    <dcterms:title rdf:parseType="Literal">Default creation factory for Component</dcterms:title>

    

    <oslc:creation rdf:resource="https://localhost:9443/qm/oslc_config/resources/com.ibm.team.vvc.Component"/>
    <rdf:type rdf:resource="http://open-services.net/ns/core#CreationFactory"/>
  </rdf:Description>
Which indicates the URI of the creation factory for components is:


showing 5 of 7 show 2 more comments

Permanent link

 These are the public APIs for the various applications: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding


There is no SDK/Plain Java Client Libraries for ETM. Some parts of ETM were inherited from EWM and the Jazz Platform. The related EWM/RTC SDK/Plain Java API often works for ETM. There is no SDK/Plain Java API for component/configuration management, I am aware of that would work in ETM. 

The other APIs do not seem to be related to this either. Based on this, I would assume you can not do what you want using an available, published, public API.

0 votes

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
× 10,938

Question asked: May 16 '23, 1:32 a.m.

Question was seen: 887 times

Last updated: Jun 02 '23, 5:34 a.m.

Confirmation Cancel Confirm