|
|
ViewsPersonal toolsUsing a Trigger to Change the State of a File in Surround SCMFrom Seapine LabsWorks with TestTrack 2008 Works with Surround SCM 2008
[edit] IntroductionIn this example, a TestTrack trigger launches an executable that changes the state of the files in the source code tab of the defect in Surround SCM. It is designed to change the state of a file when a defect reaches a specific state. This example shows how you can link the TestTrack Workflow with the Surround SCM workflow. It only works one way, from TestTrack to Surround SCM. A change in a file state in Surround SCM will not change the state of the defect that the file is attached to. [edit] System Requirements
The application was written in C# using Visual Studio 2005. [edit] Installing ChangeSSCMState
The batch file includes the following example:
[edit] Setting Up the Trigger in TestTrackRefer to the TestTrack User Guide for detailed instructions on how to create a trigger. A few pointers:
The trigger runs through all files in the source code tab and sets their state. Note that this state change will be applied to the latest version and not the fixed revision. [edit] Improvements/EnhancementsAn improvement to the sample trigger could be to get the version of the source code file attached to the defect and then set the state of that specific version. Note that the state change may not be visible in the Surround SCM client because it displays the latest version of the file and the version attached to the defect may be a previous version. Also, everything could be done by a batch file. I chose to use a C# application because that is what I am most familiar with. [edit] ResourcesDocumentation that can help you improve or enhance this trigger.
|
|


