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
This:
looks strange because the tags are unbalanced. That might be allowed in HTML but not in XML.