Changes between Version 9 and Version 10 of TestManagerPluginWorkflowOperations
- Timestamp:
- Jul 20, 2015, 10:22:55 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TestManagerPluginWorkflowOperations
v9 v10 1 = [wiki:TestManagerForTracPlugin TestManager] plugin out-of-the-box Workflow Operations =1 = [wiki:TestManagerForTracPlugin TestManager] plugin out-of-the-box Workflow Operations 2 2 3 [[BR]] 4 The following operations are provided along with the plugin: 3 The following operations are provided along with the TestManagerForTracPlugin: 5 4 6 5 * [wiki:TestManagerPluginWorkflowOperations#Setresourceowner Set the owner of the resource] to the desired user 7 6 * [wiki:TestManagerPluginWorkflowOperations#Setresourceownertoself Set the owner of the resource to the currently logged-in user] 8 7 9 [[BR]] 10 [[BR]] 8 = Set resource owner 11 9 12 ------------------------------------- 13 14 = Set resource owner = 15 16 === Syntax === 10 === Syntax 17 11 '''set_owner''' 18 12 19 [[BR]] 20 === Parameters === 13 === Parameters 14 21 15 The user will be asked who to assign the resource to, via a text box or a drop-down list, depending on the following setting. 22 16 … … 25 19 1. Let the user specify the new owner, without guidance and without any restriction. This is the default behavior. 26 20 27 2. Let the user specify the new owner, but chosen among a fixed set of users, specified in the trac.inifile:21 2. Let the user specify the new owner, but chosen among a fixed set of users, specified in the `trac.ini` file: 28 22 29 {{{ 23 {{{#!ini 30 24 [testcase] 31 25 available_owners = user2,user3 32 26 }}} 33 27 34 3. Let the user specify the new owner, but present a list of the known users that have the permission specified in the trac.inifile:28 3. Let the user specify the new owner, but present a list of the known users that have the permission specified in the `trac.ini` file: 35 29 36 {{{ 30 {{{#!ini 37 31 [testcase] 38 32 restrict_owner = true … … 40 34 }}} 41 35 42 [[BR]] 43 === Requirements === 36 === Requirements 37 44 38 The resourceworkflowstate class must have been added the custom property "owner". 45 To do this, add the following to trac.ini:39 To do this, add the following to `trac.ini`: 46 40 47 {{{ 41 {{{#!ini 48 42 [resourceworkflowstate-tm_custom] 49 43 owner = text … … 51 45 }}} 52 46 53 [[BR]] 54 === Example === 47 === Example 55 48 56 49 Adding a workflow to Test Cases, and specifying that when transitioning to the "singing" state, the sample_operation and the set_owner operations should be performed. 57 50 58 {{{ 51 {{{#!ini 59 52 [testcase-resource_workflow] 60 53 sing = new -> singing … … 70 63 }}} 71 64 72 [[BR]] 73 ------------------------------------- 74 [[BR]] 65 = Set resource owner to self 75 66 76 = Set resource owner to self =67 === Syntax 77 68 78 === Syntax ===79 69 '''set_owner_to_self''' 80 70 81 [[BR]] 82 === Parameters === 71 === Parameters 72 83 73 None 84 [[BR]] 85 === Requirements === 74 75 === Requirements 76 86 77 The resourceworkflowstate class must have been added the custom property "owner". 87 78 To do this, add the following to trac.ini: 88 79 89 {{{ 80 {{{#!ini 90 81 [resourceworkflowstate-tm_custom] 91 82 owner = text 92 83 owner.value = 93 84 }}} 94 [[BR]] 95 === Example ===85 86 === Example 96 87 97 88 Adding a workflow to Test Cases, and specifying that when transitioning to the "singing" state, the set_owner_to_self operation should be performed. 98 89 99 {{{ 90 {{{#!ini 100 91 [testcase-resource_workflow] 101 92 sing = new -> singing … … 110 101 owner.value = 111 102 }}} 112 113 [[BR]]114 [[BR]]