How can I share functions across multiple projects within a project suite?
We have a set of functions that we use across all the projects within a project suite. I placed these functions in their own script file within a project and used //USEUNIT functions to include them in each test.
When I tried this for a second project within the suite it was unable to locate the functions. So I tried add -. Existing item and this made a copy of the functions in the next project. But when I added a new function to the original file it did not show up in the function script file in the other projects.
Right now the solution we have to a copy of the functions in each project, which is really annoying because whenever we add a new function or make changes to an existing, we have to remembe to copy it to the 20 or 30 projects in the project suite.
Any ideas on how to share a script file actoss projects?
This is all done with jscript for desktop testing.
did you do like this..?
according to documentations
"Adding an existing test does not create a copy of this test, it just adds a reference to the project. The test file remains in the original project. If you change the imported test in the current project, it will be changed in the original project as well."
I did this, but the piece I was missing is that it refers to the file on the disk, so until you do a save the copy is not updated. Once you save it the updates show up across all of the versions.
Thanks for the reply.