Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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!

1 vote


Accepted answer

Permanent link

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

Bob 3 selected this answer as the correct answer

2 votes

Comments

Thanks for clarifying, Kevin. The QM Feed query for all test plans with a specific test case did the trick!


3 other answers

Permanent link
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.

1 vote

Comments

Travis, thank you for your reply. Can you share more details about your suggestions, or a link? Specifically, extending the ETM feed or creating a custom feed that includes the parent Test Plan for Test Cases.


Permanent link

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.

1 vote

Comments

Hey Kevin! Thanks for your reply. To answer your question, I would like to see any and all Test Case -> Test Plan links. I can sort out which one(s) I am interested in from there.


The confusing thing is that the QM Reportable REST API spec indicates this link relationship will be provided with the Test Case query. However, QM is not returning the Test Plan href as advertised.

testplan_href


Permanent link

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

0 votes

Comments

Kevin, you're correct that I'm navigating from a DOORS Next requirement artifact to the ETM Test Case. From there, I want to explore the Test Plan(s) with which the Test Case is associated. I think, from my reading of the ETM Reportable REST API documentation, the testplan/href data should come with the testcase query. (see my previous reply to your comment for more details)

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,109

Question asked: Oct 11, 8:19 p.m.

Question was seen: 261 times

Last updated: Oct 27, 1:17 p.m.

Confirmation Cancel Confirm