It's all about the answers!

Ask a question

Import Test Plan with Test cases using xml


Firoz Khan (121121) | asked Aug 31 '15, 11:56 p.m.
Hello Team,

I trying to import the Test Plan with Test Case through xml using RQMExcelImporter.

content of my cfg file is as below:

testplan.dc:title=C1
testplan.Section("myns:com.ibm.rqm.planning.editor.section.planBusinessObjectives","RQM-KEY-TP-BUSS-OBJ-TITLE")=C2
testplan.Section("myns:com.ibm.rqm.process.web.entryCriteria","RQM-KEY-PROC-ENTRY-CRITERIA-TITLE")=C3
testplan.Section("myns:com.ibm.rqm.process.web.exitCriteria","RQM-KEY-PROC-EXIT-CRITERIA-TITLE")=C4
testplan.XLSLink=testcase

testcase.XLSStartRow=7
testcase.dc:title=B
testcase.dc:description=E
testcase.jzalm:owner=C
testcase.Section("myns:com.ibm.rqm.planning.editor.section.testCaseDesign","RQM-KEY-TC-DESIGN-TITLE")=F
testcase.Section("myns:com.ibm.rqm.planning.editor.section.testCasePreCondition","RQM-KEY-TC-PRE-COND-TITLE")=K
testcase.Section("myns:com.ibm.rqm.planning.editor.section.testCasePostCondition","RQM-KEY-TC-POST-COND-TITLE")=L

After i export to file , i can see this in my xml file

<?xml version="1.0" encoding="utf-8"?>
<testplan xmlns="http://jazz.net/xmlns/alm/qm/v0.1/"
 xmlns:jzalm="http://jazz.net/xmlns/alm/v0.1/"
 xmlns:alm="http://jazz.net/xmlns/alm/v0.1/"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:myns="http://mydomain.net/some/custom/namespace/v0.1/"
 xmlns:ts="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/"
 xmlns:er="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1"
 xmlns:vg="http://schema.ibm.com/vega/2008/"
 xmlns:rs="http://jazz.net/xmlns/alm/qm/remotescript/v0.1/" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel">
<myns:com.ibm.rqm.process.web.exitCriteria extensionDisplayName="RQM-KEY-PROC-EXIT-CRITERIA-TITLE">No significant test failures
No visible flaws</myns:com.ibm.rqm.process.web.exitCriteria>
<dc:title>Test Plan_001</dc:title>
<myns:com.ibm.rqm.planning.editor.section.planBusinessObjectives extensionDisplayName="RQM-KEY-TP-BUSS-OBJ-TITLE">Ensure that the big hammer has all the functionality expected by out clients</myns:com.ibm.rqm.planning.editor.section.planBusinessObjectives>
<myns:com.ibm.rqm.process.web.entryCriteria extensionDisplayName="RQM-KEY-PROC-ENTRY-CRITERIA-TITLE">Functional release definition approved
Product plan in approval phase</myns:com.ibm.rqm.process.web.entryCriteria>
<testcase href="../testcase/TestPlan_with_TestCases_001_Acme_Hammers_1.xml"/>

</testplan>

After i import of xml file i can't see the test case inside test plan . I tried the same through Export to repository it is working.
Please help me with this.

Regards,
Firoz Khan.


One answer



permanent link
Reshma Ratnani (1.1k1) | answered Sep 01 '15, 1:36 a.m.
JAZZ DEVELOPER
Hi Firoz,

Export to File and Export to Repository uses the same logic to form the xml so if Export to Repository works then exporting the xml derived from Export to File option also should work provided you follow the same sequence of export.
Looking at the xml you have pasted, it is clear that testcase link has been added to the TestPlan xml so the xml looks fine.

I would like to know the sequence in which you did the export. You need to first send the TestCase xmls to server then send the TestPlan xml.

Comments
Firoz Khan commented Sep 01 '15, 1:50 a.m.

Hi Reshma ,

I followed the same sequence , first imported the test case xml then test plan xml.

Your answer


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