When multiple projects use the same or similar resources, you may wish to share or integrate these project resources. Here we address four scenarios: Sharing helper methods between projects, sharing data sources between projects, and importing tests from other projects.
Sharing Helper Methods Between Projects
If your projcts use common methods, you may wish to place them in a custom DLL. You can then add references to this utility class in your different projects in Standalone Test Studio or the Visual Studio Plugin.
Sharing Data Sources Between Projects
Generally, data sources must be in the same project folder as the tests bound to them. Test Studio creates a copy of the target data source for this purpose, so that after data binding, changes to the original data source do not automatically affect the data source for the test.
A SQL database, however, behaves differently: any test configured to connect to a SQL database as a data source will retrieve up-to-date data from that database. So, any number of projects can data bind to the same SQL database and access the same data.
Importing Tests from Another Project
All Test Studio projects are file-based. To import tests from one project to another, you can copy the test files (.tstest) from those projects into the target project. Next, manually update the namespace for any copied code-behind files. Test Studio will automatically detect this new test on restart or Project view refresh.