Toolboxcategory cloud |
ViewsPersonal toolsTrigger Using SOAP To Update FoldersFrom Seapine LabsWorks with TestTrack 2008 and later
[edit] OverviewThis article outlines how to create a trigger in TestTrack which calls a script that will add a defect to a folder in TestTrack.
[edit] Add To Folder ScriptThe script you will be using is written in C#. The benefits of using C# are that it is easy to understand and allows for some pretty sophisticated triggers. The code itself should be fairly self explanatory if you have some familiarity with C# or C++ and XML. The executable from the C# code must be run from a batch script with some additional parameters. This was done to make the script more versatile and to prevent you from having to recompile the executable every time you want to use a different folder, sever, user, password, etc.
[edit] Batch File How-to:In the batch script you will need to pass 5 input parameters when calling the exe:
[edit] What the Script does when called:
[edit] Create the TriggerLog into Testtrack with a user that has permissions to create triggers. Go to Tools -> Administration -> Automation Rules. Then select the triggers tab and click the add button. Set all the settings you want and on the actions tab select the run executable option, enter the path of the batch file that you created earlier then save the trigger. [edit] Use of the TriggerAn example of the use of this trigger would be to put every newly entered defect into a folder called "Review". The trigger would be set up like above and every new defect would be put into the "Review" folder as they are added. This would enable a project manager to quickly assign new defects to the appropriate developers. It could also be used with filters that target certain types of defects that a developer might be concerned with. If when the script has run, nothing has been added to the folder that you specified, check the error log at the path that you entered in the batch file. If you would like this script to work with Test Cases or Test Runs see the notes in the source code.
|
|


