Forum Discussion

SmartBearDan's avatar
SmartBearDan
SmartBear Alumni (Retired)
9 years ago

Recovering if a key Project file is deleted by accident

The good news is that any work that wasn’t deleted isn’t lost, those items can be brought into a new Project. To do this, create a new project and then bring in the individual scripts, tests, etc. from the old one.  This is done using the “Add Existing Item” option in the Project Explorer.

 

How to add an existing item:

 

AddExisting.png

 

Once that selection is made, navigate to the old project and select the Keyword Test (or other item) from the old project.  Repeat this process for all scripts, tests, and stores.

 

For the NameMapping, pick the “Merge with” option, then find the old NameMapping file in the other project.

 

MergeNameMapping.png

 

More detail is available here at the link below.

 

Adding and Removing Project Items and Their Child Elements: https://support.smartbear.com/viewarticle/68345/

3 Replies

  • chrisb's avatar
    chrisb
    Regular Contributor

    and put your project under source control!

    • Ravik's avatar
      Ravik
      Super Contributor

      It's very common feature, it's exists since long back. :)

       

      • brk9394's avatar
        brk9394
        Occasional Contributor

        #1 - source control, as chrisb suggests! This should be your #1 priority starting tomorrow morning!

        #2 - if you reject source control for some reason, then use nightly backups

        #3 - if you reject all of above, then make regular manual archives of your project suite and store them elsewhere

        #4 - if you reject everything in general, you may be fortunate enough to rely on the .bak files (auto-created by the good folks at Smartbear) in the same folder as your script files.

        #5 - if you have a horseshoe up your @$$, you may be able to recover a lost file using a file recovery tool such as Recuva (as your last resort).

         

        Cheers!