Forum Discussion

chrisb's avatar
chrisb
Regular Contributor
11 years ago
Solved

Add an existing item wholly to project?

Hi,



I would like to be able to import a script wholly from one project to another within a project suite but it seems that TC creates a reference to the script in its original location, in effect it is sharing the item between projects. This works great when we want to share a script between projects but what if I want to move a script wholly from one project to another? Am I missing something? Is my desired workflow odd or did SmartBear just not consider this workflow?



Any suggestions on how to import an existing script wholly into a project... other than creating an empty script file and performing some cut and paste! Thanks.





  • Technically speaking this is bad practice to copy existing functions/scripts and use them in different projects. It's good practice to encapsulate by using the same script and likely why the add script works the way it does. That said you can copy the SJ file from your Project>Script folder, give it a different name, then add it using the Add Existing option you mentioned. Or simply copy all the code into a new script. :)



    (Can also right click Save As and save it into a different script)

11 Replies