Forum Discussion

jaswany's avatar
jaswany
Occasional Contributor
13 years ago

Upgrade to TestComplete 8.7 issues

We recently upgraded out TestComplete 8.6 software to TestComplete 8.7.  A script that was previously working in TC 8.6 started failing after we upgraded to TC 8.7.  The developer who wrote the script did not have issues when running in TC 8.6.  After 3 hours of troubleshooting and uninstalling TC 8.7 and reinstalling 8.6, the script is not working again.  Does anyone know of anything that might have changed in TC 8.7 that would affect this? 



This is the part of the code that it kept failing on.



Now add the Note info to the xml for the SOAP request


  Set SoapNode = RequestXml.getElementsByTagName("soap:Body").Item(0).lastChild.lastChild


  Set NoteDTOValue = RequestXml.createTextNode(inputXML)


  Call SoapNode.appendChild(NoteDTOValue)




Any ideas?
  • Julia_K's avatar
    Julia_K
    SmartBear Alumni (Retired)
    Hello Joshua,


    Does the described problem occur when you work with the SOAP requests generated by the WebServiceInfo.PrepareRequest method?


    The SOAP namespace prefix used in the requests generated by that method in TestComplete 8.60 has been changed to the S namespace prefix in TestComplete 8.70.


    That is, most likely, your script fails, because the element with the SOAP:Body tag name does not exist.


    This namespace change is not expected for TestComplete. Thank you for drawing our attention to this issue. We will fix it in one of future releases. Sorry for the inconvenience.


    Meanwhile, you can modify your script and use the new namespace prefix:


    Set SoapNode = RequestXml.getElementsByTagName("s:Body").Item(0).lastChild.lastChild



    Please let us know whether this information helps.

    Thank you.
  • jaswany's avatar
    jaswany
    Occasional Contributor
    Thanks Julie.  I forwared this information to our developer for her to look at your response.  I will let you know if we have any further questions.



    Thanks,

    Josh