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
|
2 answers
David Honey (1.8k●1●7)
| 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:
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
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.
That doesn't look like the URI of an ETM OSLC creation factory for components. In my local environment, root services response includes:
A GET on that OSLC SPC includes:
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
|
Ralph Schoon (63.5k●3●36●46)
| 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
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.