It's all about the answers!

Ask a question

print custom section in RQM using RPE

Daniel Mott (13122) | 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.

7 answers

permanent link
Paul Slauenwhite (8.4k12) | answered Oct 02 '12, 7:23 a.m.
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.6k2196132) | 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.

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

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

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

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.6k2196132) | 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.

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 ''. Open that schema file and add a new element of customized section for testplan (I created an element named 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/ 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.
</ extensionDisplayName="Environment">
<div xmlns="">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.

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= 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 " ".  Yes, the "name" field that was shown in above graph = 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.

permanent link
Bob 3 (146546) | answered Sep 12 '19, 11:53 p.m.

Publishing Test Plans' and Test Cases' custom sections were addressed in this thread, but what about Test Script custom sections? Where in the RPE QM schema XML should these be located?

permanent link
Bob 3 (146546) | answered Sep 13 '19, 9:08 a.m.
edited Sep 13 '19, 9:12 a.m.

 I answered my own question! Here is my workflow:

  1. Use an internet browser to "Inspect Element" on the custom QM test script section in order to identify its unique section ID.
  2. Construct an XML snippet like Exhibit A, customizing the unique section ID (in this case, 1546300150765), the documentation tag value (pop-up tooltip from RPE schema explorer), and the label tag value (what is displayed in the RPE schema explorer hierarchy)
  3. In RPE Studio, open template and open the RQM QM schema that is dedicated to the test script in the schema editor
  4. Navigate through the schema source to the tag <xs:element name="testscript"> (see Triangle in graphic below)
  5. Insert the customized XML snipped (Exhibit A) as a child element of Exhibit B in the test script schema source (see Circle in graphic below)
  6. Save the schema source
  7. Save the template
  8. Begin querying the custom test script section in the template
<xs:element maxOccurs="1" minOccurs="0" name="" type="qm:richTextSection">
<xs:documentation xmlns:xml="" xml:lang="en">Test Script Tables Section</xs:documentation>
<label>Test Script Tables Section</label>

<xs:element name="testscript">
<xs:documentation xmlns:xml="" xml:lang="en">The execution script for a manual test.</xs:documentation>
<xs:extension base="reportableArtifact">        

Your answer

Register or to post your answer.