Forum Discussion

anagpal's avatar
anagpal
Occasional Contributor
6 years ago
Solved

ReadyAPI TestSuite not opening (XML Error)

Hi, I created TestSuite in ReadyAPI, it was working fine till yesterday, Todat when i opened the tool, my test suite was grayed out and i am not able to open it. I tried to open the TestSuite XML it gives error: error on line 39605 at column 36: Extra content at the end of the document. But nothing seems wrong there. Yesterday i just added new test cases and today it stopped working. There are approx 40k lines in XML, as i haven't much experience in XML so i am not able to fix it. And now all my testing activities stopped as XML not opening. Please provide some suggestion how i can fix the XML.

3 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi anagpal,

     

    Try to import your project to ReadyAPI. For this, open the tool, select File > Import Project and specify the xml file. You can find more information in our documentation:

    https://support.smartbear.com/readyapi/docs/projects/import.html

     

    If this doesn't help, please submit a support case to our Customer Care team and attach the problematic file. You can contact them here: 

    https://support.smartbear.com/message/?prod=ReadyAPI

    • richie's avatar
      richie
      Community Hero

      Hi anagpal

       

      just a follow up to what Tanya stated.  a similar thing happens quite often for me.  Essentially it sounds like what I get.  Essentially the project file is saved in .xml.  However, if the file isn't wellformed xml (including not wellformed relative to the specified default xml char encoding of UTF-8 - this will result in the file not being able to be opened.

       

      If you try and open the project.xml file in something like XMLSpy (that has an XML parser) you will notice certain characters have been substituted because the file has become corrupt.

       

      To fix this what I normally do is open the file in XMLSpy so I have an idea where the corruption is.  Then I close and reopen the file in something that doesnt include an XML parser like notepad++ and then I edit the file making it wellformed again.

       

      project.xml file corruption has happened a lot for me - so Im quite used to fixing it when this happens.

       

      cheers

       

      richie