Link Test Plan to Test Case with Python
Accepted answer
You'd use the OSLC APIs - for more info start here https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding
NOTE create the link by PUT on the thing at the 'from' end which in your case would be the Test Case.
There are probably existing questions on here with an example of creating a link in ETM, please search.
There's a technote How to add requirement links to existing Test Cases (ibm.com) about creating links but it misses that you need to add these headers:
OSLC-Core-Version: 2.0
Content-Type: application/rdf+xml
Accept: applicaiton/xml
and somewhere you'll need to specify the configuration - either as an additional parameter in the URL &oslc_config.context=... or as header Configuration-Context: configuration URL.
One other answer
As far as I can tell, ETM provides APIs that can be used to create and update artefacts.
As far as I am aware, there is no hook, or whatever extension mechanism that would allow a customer to create automation for the Test artefacts. It is not really possible for customers to create advisors/preconditions or participants/follow up actions. The SDK is not available to customers.
So you can create automation to create and link artifacts - using the available APIs.
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 20 '23, 9:10 a.m.But what do you mean "automatically"?
Mattéo Dupré
Jun 20 '23, 9:23 a.m.By "automatically" I mean that I want to associate a test case to a test plan when a test plan is created. The main goal is that every test plan got a TCER.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 20 '23, 9:33 a.m.This is a page with all the APIs that are available by product.