It's all about the answers!

Ask a question

print custom section in RQM using RPE


Daniel Mott (1322) | asked Oct 01 '12, 12:49 p.m.

I asked a question in developerWorks RPE forum but wanted to ask on RQM forum as well:

How do I access a custom section in RQM when using RPE?

Not sure you need more info here.. I created a custom section in my RQM test plan of type rich text and I would like to print it out using RPE. I'm not sure how to access it... I am using the "qm.xsd" schema currently.

Thanks for your help.

http://www.ibm.com/developerworks/forums/thread.jspa?threadID=456942&tstart=0

5 answers



permanent link
Paul Slauenwhite (8.3k12) | answered Oct 02 '12, 7:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Rich text custom sections can be extracted by RPE as long as they are present in the schema. A custom section will be present in the schema only if it was added through a testcase/testplan template. Custom sections added to individual testcases/testplans cannot be reported on.

permanent link
Don Yang (7.0k2186117) | answered Oct 16 '13, 4:20 a.m.
Hi, Paul

What do you mean "A custom section will be present in the schema only if it was added through a testcase/testplan template."? Do you mean that so long as custom section is added through a testcase/testplan, it will be able to show in the schema or the user needs to do something to make it present in the schema? We have one user asking the below question which is related to this discussion, can you please advise whether it is possible and how to retrieve custom section when there is no pre-defined field in the schema to matching the custom section? Thank you very much.

===question===
The schema I was talking about was the data source schema used in RPE
to extract data from RQM. As for test plan, I used "feed" schema
obtained from

https://xxx:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/schema/feed.xsd.
More specifically, the test plan fields
listed in schema were under "feed/entry/content/testplan/", which were
"schema fields" I meant. In the schema fields, there were some
pre-defined section names i.e.
Introduction, Business Objectives, Object Under Test etc. Please note
the schema fields were pre-defined in the schema file but not depending
on the customized sections
I created in RQM.

The case was that I could retrieve data out using RPE if two conditions
satisfied.
a. the customised section was created in test plan template at first,
and then generate the instance of test plan in RQM.
b. the customised section name matched the pre-defined name listed in
the schema fields.

Now my question is whether RPE has some way to retrieve data out if
condition a) was satisfied but b) was not.
====

Comments
Chong Yuan Yin commented Oct 17 '13, 4:07 a.m.
JAZZ DEVELOPER

After the schema is imported into RPE, you can edit it to include the customized section into the schema and use that field to retrieve data for customized section


Don Yang commented Oct 17 '13, 11:35 p.m.

Thanks ChongYuan for the answer. Collin will ask further question on how to create the custom field in the schema here. Please help further. Thanks again.


permanent link
Collin Zhu (1) | answered Oct 17 '13, 10:50 p.m.

This is the screenshot I have got from RPE version 1.2. I would like to create an attribute under testplan as richtext object used for customized section. I can create one under content directory (parent directory of testplan) but not under tesplan directory. Could you please provide further instruction about how to create? Thanks a lot.

permanent link
Don Yang (7.0k2186117) | answered Oct 18 '13, 1:52 a.m.
I am updating the answer from Chong Yuan as below. Many thanks to ChongYuan for providing the answers which helps the issue. Hopefully it will also benefits to other users who are interested in the same topic.

==Answer====
The testplan referenced in the feed schema actually locates in another schema file, so you need to edit the referenced schema file. But I don't find from RPE where to open that file directly. Here is something you can do to edit the schema outside of RPE, it's kind of of complicated though..

1) inside RPE right click on the schema file in outline view, select 'open schema in editor', the schema file name will appear:


2) locate your .dta file, it is actually a zipped file so you can open it using tools like 7-zip, and find the schema file matching the name in step 1) under \schemas fold
3) open the _RPE_MAPPINGS_ file, and find the schema file matching 'https://clm.jkebanking.net/qm/service/com.ibm.rqm.integration.service.IIntegrationService/schema/qm.xsd'. Open that schema file and add a new element of customized section for testplan (I created an element named com.ibm.rqm.planning.editor.section.test for example).



4)copy the updated schema file back to the .dta zip file. Reopen it in RPE.



permanent link
Collin Zhu (1) | answered Oct 18 '13, 3:58 a.m.
Thanks for Chongyuan, however the solution provided here was not completed. The completed and tested solution was as follows. 
Step 1. create the customized section in test plan template using RQM web UI.
Step 2. Generate the test plan using the test plan created in Step 1.
Step 3. Retrieving the customized section ID (generated by RQM automatically). Many handy tools can be used here. I am using Poster. Put the following URI enquiry:

https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Project Area Name/testplan?fields=feed/entry/content/testplan[title='test plan name in Step 2']/(*)abbreviate=false

The return messages will contain all the resources under the requested test plan. The bold font shows the internal ID for customized section "Environment" e. g.
</com.ibm.rqm.planning.editor.section.dynamicSection_1381893903332 extensionDisplayName="Environment">
<div xmlns="http://www.w3.org/1999/xhtml">this is environment</div>

Step 4. Edit XML schema file as described by Chong yuan. Make sure the "name" field is the same as the section ID. It does not matter with "documentation" field. And the "label" field will be the same as Section Name, which is "Environment". Note it is important to match the RQM internal ID, otherwise it will not work.

Enjoy RPE.


Comments
Don Yang commented Oct 18 '13, 5:54 a.m.

Thanks Collin for providing the further details here.
There is no bold font in your comments. So which one is the id you are referring to:1381893903332 or not?
It is not clear which is the "name field" you suggested it need to be section ID, is it name= com.ibm.rqm.planning.editor.section.test above documentation field?
Can you please clarify a bit more? Thanks


Collin Zhu commented Oct 18 '13, 7:59 a.m.

The ID refers to "com.ibm.rqm.planning.editor.section.dynamicSection_1381893903332 ".  Yes, the "name" field that was shown in above graph = com.ibm.rqm.planning.editor.section.test. The "name" field needs to exactly match the ID field obtained from the Poster return as I explained before. Hope it will help. 


Don Yang commented Oct 21 '13, 1:15 a.m.

Thanks Collin for the further clarification. It is very clear now.

Your answer


Register or to post your answer.