It's all about the answers!

Ask a question

Manual Test Script XML schema error for ETM importing (7.0.1)


Andrew Oltorik (153) | asked Dec 05 '21, 9:45 p.m.

  Hi all,


I'm currently in the process of migrating manual test scripts from Excel to ETM. Due to security, I cannot use the IBM Excel-to-ETM import utility, so I am using a custom Python script to read read the Excel test steps and prepare the XML file for import. 

I have had success getting the first 3/5 of the first batch of manual test scripts into ETM (all of which contain the same custom attributes). However, 2 of the 5 manual test scripts are getting the following error:
The uploaded content does not consist of well-formed XML or does not match the XML schema for testscript

It puzzles me that only 2 test scripts are getting this error, because all five were generated following the same schema. I played around with one of the faulty test scripts and found that it will successfully import all the way up to step 181 (it has over 200). This is not a file upload size issue. 

Any ideas??

Below is a snippet of the XML file for the test script that imports only up to step 181 (steps 181-182 and the closeouts). Keep in mind, introducing step 182 here is what causes the error to throw. Thank you!

 <ns8:step stepIndex="181" type="execution" ns3:id="_LmDhoejDEeuvjPjzvfOn5g">

            <ns8:name>Click the <b>Apply</b>.</ns8:name>
            <ns8:title>Click the <b>Apply</b>.</ns8:title>
            <ns8:description>
                <div xmlns="http://www.w3.org/1999/xhtml">Click the <b>Apply</b>.</div>
            </ns8:description>
            <ns8:expectedResult>The window is closed.</ns8:expectedResult>
            <ns8:customAttributes>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>Domain</ns8:identifier>
                    <ns8:name>Domain</ns8:name>
                    <ns8:value>TMS</ns8:value>
                </ns8:customAttribute>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>User</ns8:identifier>
                    <ns8:name>User</ns8:name>
                    <ns8:value>Admin</ns8:value>
                </ns8:customAttribute>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>RecordedInformation</ns8:identifier>
                    <ns8:name>Recorded Information</ns8:name>
                    <ns8:value></ns8:value>
                </ns8:customAttribute>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>Tier5</ns8:identifier>
                    <ns8:name>Tier 5</ns8:name>
                    <ns8:value></ns8:value>
                </ns8:customAttribute>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>SPARDIUT</ns8:identifier>
                    <ns8:name>SPAR DIUT</ns8:name>
                    <ns8:value></ns8:value>
                </ns8:customAttribute>
            </ns8:customAttributes>
        </ns8:step>
        <ns8:step stepIndex="182" type="execution" ns3:id="_LmDhoejDEeuvjPjzvfOn5g">
            <ns8:name>Select the <b> View </b>button, and verify that the status is <b><i>Complete</b></i></ns8:name>
            <ns8:title>Select the <b> View </b>button, and verify that the status is <b><i>Complete</b></i></ns8:title>
            <ns8:description>
                <div xmlns="http://www.w3.org/1999/xhtml">Select the <b> View </b>button, and verify that the status is <b><i>Complete</b></i></div>
            </ns8:description>
            <ns8:expectedResult>The data is nullified.</ns8:expectedResult>
            <ns8:customAttributes>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>Domain</ns8:identifier>
                    <ns8:name>Domain</ns8:name>
                    <ns8:value>TMS</ns8:value>
                </ns8:customAttribute>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>User</ns8:identifier>
                    <ns8:name>User</ns8:name>
                    <ns8:value>Admin</ns8:value>
                </ns8:customAttribute>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>RecordedInformation</ns8:identifier>
                    <ns8:name>Recorded Information</ns8:name>
                    <ns8:value></ns8:value>
                </ns8:customAttribute>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>Tier5</ns8:identifier>
                    <ns8:name>Tier 5</ns8:name>
                    <ns8:value></ns8:value>
                </ns8:customAttribute>
                <ns8:customAttribute type="SMALL_STRING" required="false">
                    <ns8:identifier>SPARDIUT</ns8:identifier>
                    <ns8:name>SPAR DIUT</ns8:name>
                    <ns8:value></ns8:value>
                </ns8:customAttribute>
            </ns8:customAttributes>
        </ns8:step>
    </ns2:steps>
    <ns2:template href="https://maui:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Teds1/template/manualtestscript/com.ibm.rqm.planning.manualtestscript.default"/>;
    <ns2:artifactAttributes>
        <ns2:artifactAttribute>
            <ns2:predefinedAttributeId>com.ibm.rqm.planning.common.manualtestscript.step.description</ns2:predefinedAttributeId>
        </ns2:artifactAttribute>
        <ns2:artifactAttribute>
            <ns2:predefinedAttributeId>com.ibm.rqm.planning.common.manualtestscript.step.expectedresult</ns2:predefinedAttributeId>
        </ns2:artifactAttribute>
        <ns2:artifactAttribute>
            <ns2:predefinedAttributeId>com.ibm.rqm.planning.common.manualtestscript.step.attachementsandlinks</ns2:predefinedAttributeId>
        </ns2:artifactAttribute>
    </ns2:artifactAttributes>
</ns2:testscript>


Comments
Ian Barnard commented Dec 06 '21, 4:28 a.m. | edited Dec 06 '21, 4:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

This:

<b><i>Complete</b></i> 

looks strange because the tags are unbalanced. That might be allowed in HTML but not in XML. 

Accepted answer


permanent link
Ian Barnard (2.1k613) | answered Dec 06 '21, 8:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 This:

<b><i>Complete</b></i> 

looks strange because the tags are unbalanced. That might be allowed in HTML but not in XML. 

Andrew Oltorik selected this answer as the correct answer

Comments
Andrew Oltorik commented Dec 06 '21, 9:36 a.m.

That fixed it. Thank you!

One other answer



permanent link
Ralph Stuart (111) | answered Dec 09 '21, 3:42 a.m.
edited Dec 10 '21, 4:01 a.m.

 

  • You can import test scripts that are saved as local XML files directly ... The following example is a basic test script XML file that adheres to the schema:.

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.