Page 1 of 1

Example for bug report 18958

PostPosted: Tue Oct 21, 2014 1:34 am
by saabie
If the key of a group is passed as a parameter to an executed task, the restrictions of that task are applied to the group key instead of to each of the members of that group:
Executing Actions...
Executing task '# check %location%'.
First Reference: (no output)
Attempting to execute task # check %location%...
Checking single reference task # check Cameras
Referenced Location must not be in group 'Broken cameras': Passed
"Cameras" is the location group name and "B", "C" and "D" are the locations in it.

If we apply a filter to the group key, eg. a property that is always true, then the restrictions are applied to each member of the group independantly:
Executing Actions...
Executing task '# check %location%'.
First Reference: , , (no output)
Attempting to execute task # check %location%...
Checking single reference task # check B
Referenced Location must not be in group 'Broken cameras': Passed
Passed Restrictions
Executing Actions...
Monitor %location%.Name show empty rooms.

Checking single reference task # check C
Referenced Location must not be in group 'Broken cameras': Failed
Failed Restrictions
The monitor for room %location%.Name is just showing snow.

First Reference: (no output)
Checking single reference task # check D
Referenced Location must not be in group 'Broken cameras': Passed
Passed Restrictions
Executing Actions...
Monitor %location%.Name show empty rooms.


GroupTest.taf
Example TAF
(12.92 KiB) Downloaded 143 times