Cabman -
As with most source code providers, you could just invoke a simple command line string or API like command to get all files under a specific project or a folder under the project. Depending on how your source files are stored, why not just issue a root level command and get the latest for everything? If there are no new files to get, it should be a quick command. Just a thought.
You are correct in that the source code control API within the TestStand API is exposed from the workspace or more specifically workspace objects. In TestStand the root workspace object, the workspace file, specifies the provider name to connect to and controls whether TestStand is even connected to a provider at any specific instance.
If you think that maintaining a
workspace image that mimics your sequences and the underlying VIs another files that it calls, you could do this manually.
The API does allow you to "discover" the code modules that a sequence file calls using the Workspace.InsertCodeModule method. Your OI could create the details in the workspace dynamically using this method. You might have to "discover" any new sequence files (code modules) that that sequence file calls.
You could create a utility DLL that communicates to your source code control system possibly using a direct API or using Microsoft's common source code control API. The utility could attempt to discover the code module recursively and it could validate that you have the latest source files. Your OI could do this or even a sequence file load callback could. This might be a lot of work though.
Scott Richardson
Scott Richardson
https://testeract.com