A & C Enable

Supports Enable and Disable Methods. These tests need to have a subscription in place to receive event notifications to confirm that the action was successful. The alarm must be in an active state. After each test the Alarm must be put back into a NORMAL state.


Questions? Contact us
Generated: 21/11/2021 at 17:21:20 p.m.
A & C Enable - 16 Test Cases
Test Case Id Test Type Keywords Test Case Description Test Requirements Expected Result

000

CTT Unavailable  Search for instances of ""Conditions"" (or sub-types, such as an Alarm) in the address-space.
Cache the NodeIds of these conditions so that they can be accessed quickly by the other scripts within this CU.
Conditions provide the "Enable" and "Disable" methods and their signatures match the specifications; the BrowseName is either 'Enable' or 'Disable' and it has reference 'AlwaysGeneratesEvent' (of type AuditConditionEnableEventType). If no instance exist this test can be skipped

Service Result = Good; Operation Result = Good or BadNodeIdUnknown; SpecLink = Spec 5.5.2, 5.5.4,5.5.5

001

CTT Unavailable  For each enabled condition, invoke the Disable method (using the well known MethodId from the type definition). Confirm the EnabledState, TransitionTime, and Retain properties..
ensure that the condition is returned to enable when test is complete. This test can be limited to the a subset of all alarms that can be generated, but it should be tried against all supported Condition subtypes. If an instance exist , use both the methodid from the type and from the instance, ensure both are supported.
Step #
Action
Expected Result(s)

1

Each call is successful. The EnabledState is FALSE. The Retain property is FALSE. The TransitionTime is within the expected time-frame for when the call was made. [An AuditConditionEnableEventType should be received (if auditing is supported). Service result = Good; Operation results = Good; SpecLink = Spec 5.5.2, 5.5.4,5.5.5

2

For each disabled condition, invoke the Enable method (using the well known MethodId from the type definition). Read the EnabledState, TransitionTime, and Retain properties.

Each call is successful. The EnabledState is TRUE. The Retain property change to TRUE for any conditions that are in an interesting state. The TransitionTime is within the expected time-frame for when the call was made. [An AuditConditionEnableEventType should be received (if auditing is supported).] ServiceResult = Good; Operation Results = Good; SpecLink = Spec 5.5.2,5.5.4,5.5.5

002

CTT Unavailable  Call()  For each configured condition instance, invoke the Enable method. Read the EnabledState, TransitionTime, and Retain properties. Read the EnabledState property to get the current status. Revert the status back to the initial value after the test is complete. Each call is successful. The EnabledState is TRUE. The Retain property *might* change to TRUE (cannot fail this test). The TransitionTime is within the expected time-frame for when the call was made. An AuditConditionEnableEventType should be received (if auditing is supported).

Service result = Good
Operation results = Good or BadConditionalAlreadyEnabled.

Specification links: P9->5.5.2>Page18>Para3; P9->5.5.2>Page18>Para4; P9->Table84(Retain)

003

CTT Unavailable  Call()  Verify that a Disabled condition instance will not be raised. Make sure the condition is disabled and then set the appropriate conditions to see if the 'Condition' is invoked. The condition is not invoked.

Service result = Good
Operation results = Good

004

CTT Unavailable  For an active event, first Disable the condition instance. Then call Refresh.
This test requires a subtype that has more states then enabled/disabled. For an alarm that was active ensure that the alarm is no longer in the active list (refresh) and ensure that when enabled it returns to the list. [Alarm is assummed to be in the active state throughout the test]
Step #
Action
Expected Result(s)

1

The event is disabled, therefore an event is received to notify the event is disabled and retain bit is false. The Refresh will yield nothing. [An AuditConditionEnableEventType should be received (if auditing is supported).] Serviceresult = Good; OperationResults = Good; SpecLink: 5.5.2,5.5.4,5.5.5

2

Verify that an Enabled condition instance can be raised.

The condition is invoked. Service result = Good; Operation results = Good

005

CTT Unavailable  Disable an already-disabled condition instance. Server rejects request.

Service Result = BadConditionalAlreadyDisabled
SpecLink = Spec 5.5.2,5.5.4,5.5.5

006

CTT Unavailable  Enable an already-enabled condition instance. Server rejects request.

Service Result = BadConditionalAlreadyEnabled;
SpecLink = Spec 5.5.2,5.5.4,5.5.5

007

CTT Unavailable  Enable a condition instance that the user does not have access to. Condition has access-rights preventing the user access. Server rejects request. If user access rights are not supported this test is skipped

ServiceResult = BadUserAccessDenied;
SpecLink = Spec 5.5.2,5.5.4,5.5.5

008

CTT Unavailable  Disable a condition instance that the user does not have access to. Condition has access-rights preventing the user access. Server rejects request.
Service Result = BadUserAccessDenied
SpecLink = Spec 5.5.2,5.5.4,5.5.5

009

CTT Unavailable  Specify multiple methods in one "Call" where method, for example: (1)=Enable; (2)=Disable; (3)=Disable; (4)=Enable. Read the state of each condition first (enabled/disabled etc.) and then adjust the call accordingly (e.g. disable an enabled condition etc.) All condition instances are modified.
Service Result = Good
Operation Results [0..x] = Good
SpecLink = Spec 5.5.2,5.5.4,5.5.5

010

CTT Unavailable  Call()  For each configured condition type invoke the Disable method by using the TypeDefinition. Read the EnabledState, TransitionTime, and Retain properties. Trigger the event in order to receive it via Subscription. Read the EnabledState property to get the current status. CTT Scripts: cache the NodeIds for reuse with other test scripts.
Step #
Action
Expected Result(s)

1

Each call is successful. The EnabledState is FALSE. The Retain property is FALSE. The TransitionTime is within the expected time-frame for when the call was made. An AuditConditionEnableEventType should be received, if supported. Service and operation results: Good Spec Links: P9->5.5.2>Page18>Para3; P9->5.5.2>Page18>Para4

2

For each configured condition type invoke the Enable method by using the TypeDefinition. Read the EnabledState, TransitionTime, and Retain properties. Note: Revert the status back to the initial value after the test is complete.

Each call is successful. The EnabledState is TRUE. The Retain property *might* change to TRUE (cannot fail this test). The TransitionTime is within the expected time-frame for when the call was made. An AuditConditionEnableEventType should be received, if supported. Service and operation results: Good.

011

CTT Unavailable  Call()  Verify that a Disabled condition type can not be raised. Make sure the condition is disabled and then set the appropriate conditions to see if the 'Condition' is invoked. Note: The NodeIds in the CTT's Cache will be needed. The condition is not invoked.

Service and operation results: Good.

012

CTT Unavailable  Call()  Verify that an Enabled condition can be raised. Make sure the condition is enabled and then set the appropriate conditions to see if the 'Condition' is invoked. Note: The NodeIds in the CTT's Cache will be needed. The condition is invoked.

Service and operation results: Good

013

CTT Unavailable  Call()  Specify multiple methods in one "Call" where method: (1)=Enable; (2)=Disable; (3)=Disable; (4)=Enable. A minimum of 4 Methods must be available: 2xEnable and 2xDisable. Note: The NodeIds in the CTT's Cache will be needed. All 4 conditions are invoked.

Service result: Good
Operation results: [0..3]=Good.

014

CTT Unavailable  Call()  Disable an already-disabled condition. Note: The NodeIds in the CTT's Cache will be needed. Server rejects request.
Service result: BadConditionalAlreadyDisabled

015

CTT Unavailable  Call()  Enable an already-enabled condition. Note: The NodeIds in the CTT's Cache will be needed. Server rejects request.
Service result: BadConditionalAlreadyEnabled