Forum Discussion

anumolu9999's avatar
anumolu9999
Contributor
13 years ago

Problem with deleting Projects

Hi,

 I am using TestComplete 9.3. When i deleted a project from project suite. Scripts of another project are deleted. Where did the deleted files moved. Is there any chance to get those deleted files.



Thanks,

Anumolu

4 Replies

  • simon_glet's avatar
    simon_glet
    Regular Contributor
    Hi,



    Could it be that scripts were shared between projects ?



    It would explain your issue but I would open a support ticket as a bug: a shared file between projects of a project suite should not be deleted as long as one project still references the shared resource. It would be even nicer to have such a behavior with different project suites ;-)



    Sincerely

    Simon Glet
  • Hi Simon,

    I didnot share or reference scripts with/to another projects.

    can we get back the deleted files once deleted using testcomplete.



    Thanks,

    Anumolu
  • simon_glet's avatar
    simon_glet
    Regular Contributor
    Hi,



    If


    1. they are not in the Script directory


    2. they are not in the Trash 


    3. you don't have a source code versioning system, 


    I would say no.



    Sincerely

    Simon Glet
  • AlexKaras's avatar
    AlexKaras
    Community Hero
    > ... I would say no.


     



    Unless you have something like Recuva/NTFS undelete/FreeUndelete/etc. and try it the sooner the better after the files are deleted.



     


    To Simon: Usually, when some item is deleted from TestComplete test suite, TestComplete asks you whether you like to really delete the item or just remove it from the suite. In the former case the item is deleted physically, while in the latter case just the reference to it is removed from the test suite.


    I don't think that it would be easy to implement automatic determination of whether the item should be deleted or removed from the project without something like reference counting like is done for the COM objects in the Windows registry. And even in this case, there is a chance that you may want to remove an item from one test suite and move it into another one, but not to delete it.



    So I don't think this is an issue in TestComplete and prefer the current implementation.