From an IBM Publishing template, when I'm at a Test Case, how do I explore the parent Test Plan?
[I'm using IBM Publishing version 7.1 and ELM 7.0.2.]
I'm publishing a DOORS Next module that has artifacts linked via 'Validated By' to ETM Test Cases. I need to navigate the link to the Test Case and then publish information about the Test Case's parent Test Plan. How can this be done?
I don't see a way to "look up" to the parent Test Plan natively from the resources exposed by the ETM QM or the ETM Feed data sources in IBM Publishing Document Studio.
Thank you!
Accepted answer
Bob,
You are reading the API documentation wrong.
That second column where you are drawing your arrow is a FILTER.
So you would do something like this--you'd get the full Test Case REST API URI
and you'd use that as input to your query -- show me all Test Plans with this specific Test Case:
So long as the PUB data source can understand feed/entry, you're good. If it can't, you'll have to create a Data Schema and get the the information of the Test Plan(s) from /feed/entry/id.
Best of luck,
Kevin Murphy
IBM Champion
3 other answers
Another option is to extend your ETM feed or create a custom feed that includes the parent Test Plan for each Test Case. This way, the publishing template has access to the Test Plan without needing extra navigation logic in Document Studio. You might need some scripting or a small transformation in XML or XSLT to pull in that hierarchy.
Comments
There can be more than one test plan, so do you want to report on all of them or just a specific one?
In any case I would imagine that you can get this from within RPE pretty trivially. But I've never personally tried it.
Comments
Bob,
What I believe is going on is you are likely navigating to the test case from the requirement. When you do that, the 'context' of where you're coming from is lost to ETM, because Test Cases can be used in multiple Test Plans. This is off the top of my head as it's been a few years since I did PUB ETM REST API work, so a bit of a grain of salt is needed.
The workaround: can you get TCER refs? The TCERs should then be able to be queried to get you Test Plans...give it a shot.
Kevin Murphy
IBM Champion