Forum Discussion

hogueybear's avatar
hogueybear
Occasional Contributor
10 years ago
Solved

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.

2 Replies