Question & Answer
Question
How do you retrieve Custom Attribute identifier from IBM Engineering Test Manager (ETM)
Cause
You need to know the identifier to include while creating a configuration file for MS-EXCEL import via ETM excel importer utility.
Answer
Find the attribute identifier in the response of a REST API call for an example artifact.
PROCEDURE:
- Create an artifact in the ETM Web UI in the project you will be importing artifacts into and of the same kind (for example a Test Case).
- Enter values for the custom attributes the identifiers of which you want to retrieve and save the artifact
- Download the project feed from
https://<server:port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projects - Find your project area by name in the feed
- Find the project alias of the project area in the feed.
- Install a REST client like the RQMURL utility or the RESTer browser plug-in.
- Perform a GET call for the artifact created in step 1 using the URL
https://<server:port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project-alias>/<artifact-type>/<artifact-type-urn>:<artifact-id>
For example
https://localhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:32
- If you are using RQMUrlUtility
Execute
the command
java.exe -jar RQMUrlUtility.jar -command GET -user user -password user -filepath <file-path> -url<artifact-url>
- If you are using RESTer select Method: GET and add the header Accept: text/xml
- If you are using RQMUrlUtility
- Open the XML response in an XML editor
- Search for the XML tag that says customAttribute
<ns4:customAttributes>
<ns4:customAttribute required="true" type="SMALL_STRING">
<ns4:identifier>myId</ns4:identifier>
<ns4:name>myId</ns4:name>
<ns4:value>myValue</ns4:value>
<ns4:description />
</ns4:customAttribute>
</ns4:customAttributes>
The tag<ns4:identifier>
contains the identifier.
[{"Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSUVV6","label":"IBM Engineering Test Management"},"ARM Category":[{"code":"a8m50000000CjK4AAK","label":"Quality Manager->API"}],"ARM Case Number":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Version(s)"}]
Was this topic helpful?
Document Information
Modified date:
09 October 2020
UID
swg21684401