Forum Discussion

alex_hokanson's avatar
alex_hokanson
Occasional Contributor
13 years ago

TestComplete Deletes Project?

I have TestComplete 9.1 that I am currently using and it just started doing something really weird.  Sometimes after a test item or test group run, all of the files in the project directory are removed.  



I have a project suite named "AdminRegression" and a project within that called "IA_TestPlan_40".  So if I go into the AdminRegression Directory, everything seems fine, but when I go into the "IA_TestPlan_40" directory, it is empty!!



Has anyone else experienced this?  This has happened with two separate project suites now and I have no idea what could be causing this.  Any ideas?
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Alex,


     


    This is really very weird. Let's check what process gets access to the IA_TestPlan_40 folder when TestComplete is executing the test. For this, you can use the Process Monitor utility. Let us know your results.


     

  • alex_hokanson's avatar
    alex_hokanson
    Occasional Contributor
    I am pretty sure I found the issue.  When I don't use the right encoding, this is the result.  For the most part, I use external editors, and the day this started happening I had just switched to Notepad++.  I didn't make the connection until a few days later.  I have had issues with Notepad++ before, so I switched back to Sublime Text 2.  After converting all of the wrongly encoded files back to a TestComplete-compatible  encoding, I haven't had any issues for over a week.  



    The issue from the OP happened more than three times within a 2 day period, and now I haven't had any problems (related to this issue) in over a week!  



    Should I submit a ticket for this?
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Alex,


     


    Actually, we don't recommend modifying the TestComplete script files via a third-party utility - we cannot guarantee that the test will work after that. And your example shows that Notepad++ isn't a reliable utility for this.


     

  • alex_hokanson's avatar
    alex_hokanson
    Occasional Contributor
    I changed the script file so that it was encoded in "UFT-16 LE with BOM".  This is a supported format by SmartBear and I have coworkers that do the same without issue.



    I then went into TestComplete and began running some tests. The first 4-5 ran fine, but the next one resulted in the behavior from my OP.  TestComplete completely deletes all of the files in the project directory, except for the log\ directory.



    I am guessing this doesn't have anything to do with where the file was created/edited, since the test ran fine for the first several tests.  From my experience earlier, it seemed that if I had the wrong encoding, TestComplete would wipe my project during the first test run, so this may not be caused by the encoding anymore.



    Any idea on what is going on here?