Isi it possible to Import Custom Attributes for Test Case
Hi,
I'm trying to import test cases using the Web client with RQM 4.0. Using the RQMExcelWordImporter tool wouldn't be work, since I don't have Word/Excel and only have Symphony installed on my system.
I have a custom attribute "Test Purpose" created for the Test Case. I've been able to import test cases that don't have custom attributes defined in the xml file. Is there a way to specify this custom attribute in my xml file? I didn't see any documentation for this in the testcase xml schema.
Link I used: https://jazz.net/products/rational-quality-manager/api-doc-2.0/api-files/schemas/qm_xsd/elements/testcase_1.html
I'm trying to import test cases using the Web client with RQM 4.0. Using the RQMExcelWordImporter tool wouldn't be work, since I don't have Word/Excel and only have Symphony installed on my system.
I have a custom attribute "Test Purpose" created for the Test Case. I've been able to import test cases that don't have custom attributes defined in the xml file. Is there a way to specify this custom attribute in my xml file? I didn't see any documentation for this in the testcase xml schema.
Link I used: https://jazz.net/products/rational-quality-manager/api-doc-2.0/api-files/schemas/qm_xsd/elements/testcase_1.html
Accepted answer
Hi Corey,
I attached an XML of test case with custom attributes for you reference
<?xml version="1.0" encoding="UTF-8"?>
<ns2:testcase xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns13="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns17="http://www.w3.org/1999/XSL/Transform">
<ns2:projectArea alias="abcqm" href="https://onehaodesktop.cn.ibm.com:9444/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_b_GQ4Ja3EeKN3cPr1CQ_-Q"/>
<ns3:identifier>https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/abcqm/testcase/urn:com.ibm.rqm:testcase:364</ns3:identifier>
<ns2:stylesheet href="https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/abcqm/testcase/urn:com.ibm.rqm:testcase:364?stylesheet=true"/>
<ns2:webId>364</ns2:webId>
<ns3:title>sample test case with custom attributes</ns3:title>
<ns3:description/>
<ns2:creationDate>2013-03-28T02:27:24.098Z</ns2:creationDate>
<ns5:updated>2013-03-28T02:28:40.864Z</ns5:updated>
<ns5:state ns6:resource="https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_b_GQ4Ja3EeKN3cPr1CQ_-Q/workflowstate/com.ibm.rqm.process.testcase.workflow/com.ibm.rqm.planning.common.new">com.ibm.rqm.planning.common.new</ns5:state>
<ns3:creator ns6:resource="https://onehaodesktop.cn.ibm.com:9444/jts/resource/itemName/com.ibm.team.repository.Contributor/onehao">onehao</ns3:creator>
<ns5:owner>unassigned</ns5:owner>
<ns2:locked>false</ns2:locked>
<ns2:weight>100</ns2:weight>
<ns2:priority ns6:resource="https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_b_GQ4Ja3EeKN3cPr1CQ_-Q/priority/literal.priority.101">literal.priority.101</ns2:priority>
<ns2:suspect>false</ns2:suspect>
<ns2:category value="Core Functionality" term="Type"/>
<ns2:category value="User Acceptance Test" term="Test Phase"/>
<ns2:variables/>
<ns2:template href="https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/abcqm/template/testcase/com.ibm.rqm.planning.templates.testcase.default"/>
<ns2:customAttributes>
<ns2:customAttribute type="SMALL_STRING">
<ns2:identifier>myCustomAttribute1</ns2:identifier>
<ns2:name>myCustomAttribute1</ns2:name>
<ns2:value>value1</ns2:value>
</ns2:customAttribute>
<ns2:customAttribute type="SMALL_STRING">
<ns2:identifier>myCustomAttribute2</ns2:identifier>
<ns2:name>myCustomAttribute2</ns2:name>
<ns2:value>value2</ns2:value>
</ns2:customAttribute>
</ns2:customAttributes>
</ns2:testcase>
I attached an XML of test case with custom attributes for you reference
<?xml version="1.0" encoding="UTF-8"?>
<ns2:testcase xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/" xmlns:ns3="http://purl.org/dc/elements/1.1/" xmlns:ns4="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns5="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns6="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns13="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns17="http://www.w3.org/1999/XSL/Transform">
<ns2:projectArea alias="abcqm" href="https://onehaodesktop.cn.ibm.com:9444/qm/resource/itemOid/com.ibm.team.process.ProjectArea/_b_GQ4Ja3EeKN3cPr1CQ_-Q"/>
<ns3:identifier>https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/abcqm/testcase/urn:com.ibm.rqm:testcase:364</ns3:identifier>
<ns2:stylesheet href="https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/abcqm/testcase/urn:com.ibm.rqm:testcase:364?stylesheet=true"/>
<ns2:webId>364</ns2:webId>
<ns3:title>sample test case with custom attributes</ns3:title>
<ns3:description/>
<ns2:creationDate>2013-03-28T02:27:24.098Z</ns2:creationDate>
<ns5:updated>2013-03-28T02:28:40.864Z</ns5:updated>
<ns5:state ns6:resource="https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_b_GQ4Ja3EeKN3cPr1CQ_-Q/workflowstate/com.ibm.rqm.process.testcase.workflow/com.ibm.rqm.planning.common.new">com.ibm.rqm.planning.common.new</ns5:state>
<ns3:creator ns6:resource="https://onehaodesktop.cn.ibm.com:9444/jts/resource/itemName/com.ibm.team.repository.Contributor/onehao">onehao</ns3:creator>
<ns5:owner>unassigned</ns5:owner>
<ns2:locked>false</ns2:locked>
<ns2:weight>100</ns2:weight>
<ns2:priority ns6:resource="https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/process-info/_b_GQ4Ja3EeKN3cPr1CQ_-Q/priority/literal.priority.101">literal.priority.101</ns2:priority>
<ns2:suspect>false</ns2:suspect>
<ns2:category value="Core Functionality" term="Type"/>
<ns2:category value="User Acceptance Test" term="Test Phase"/>
<ns2:variables/>
<ns2:template href="https://onehaodesktop.cn.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/abcqm/template/testcase/com.ibm.rqm.planning.templates.testcase.default"/>
<ns2:customAttributes>
<ns2:customAttribute type="SMALL_STRING">
<ns2:identifier>myCustomAttribute1</ns2:identifier>
<ns2:name>myCustomAttribute1</ns2:name>
<ns2:value>value1</ns2:value>
</ns2:customAttribute>
<ns2:customAttribute type="SMALL_STRING">
<ns2:identifier>myCustomAttribute2</ns2:identifier>
<ns2:name>myCustomAttribute2</ns2:name>
<ns2:value>value2</ns2:value>
</ns2:customAttribute>
</ns2:customAttributes>
</ns2:testcase>