It's all about the answers!

Ask a question

Create components in RQM rtc test manager 7.0.2


Arati Kulkarni (132) | asked May 16 '23, 1:32 a.m.

 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

2 answers



permanent link
David Honey (1.8k17) | answered May 16 '23, 4:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited May 16 '23, 4:29 a.m.
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.



Comments
Arati Kulkarni commented May 26 '23, 8:50 a.m.

 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


David Honey commented May 26 '23, 12:09 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


Arati Kulkarni commented Jun 02 '23, 3:06 a.m.

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.



David Honey commented Jun 02 '23, 5:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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"  />

    





David Honey commented Jun 02 '23, 5:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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>

    

David Honey commented Jun 02 '23, 5:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
    <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:



David Honey commented Jun 02 '23, 5:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
showing 5 of 7 show 2 more comments

permanent link
Ralph Schoon (63.1k33645) | answered May 16 '23, 3:01 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 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.

Your answer


Register or 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.