Create components in RQM rtc test manager 7.0.2
2 answers
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.
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.
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:
If you're unfamiliar with OSLC, I recommend that you read the OSLC Primer.
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
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:
The shape of an OSLC creation factory is described in https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/discovery.html#creationFactoryShape
showing 5 of 7
show 2 more comments