A & C Comment

Support Comments, includes AddComment Method.


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

000

CTT Unavailable  Browse the type definitions in the address space for Conditions and locate the AddComment method. The method matches the signature defined in the specifications meaning its BrowseName is 'AddComment' and has 2 references: HasProperty and AlwaysGeneratesEvent.

Service result: Good
Operation results: Good

001

CTT Unavailable  Call add comment for an event, providing a valid comment
Step #
Action
Expected Result(s)

1

Success Service/operation results: Good SpecLink: Part 9->5.5.6

2

Confirm that the ConditionId now include the comment (new event generated)

Event notification received with the Comment. ServiceResult/OperationResults = Good

002

CTT Unavailable  Add multiple (separate) comments to a single Event in a single "Call".
Step #
Action
Expected Result(s)

1

Success Service/operation results: Good

2

Confirm that the ConditionId now include the comment (new event generated)

At least Event notification is received with one of the comments issued. Note: in a load-balanced scenario there might not be any way to assure order of execution if the methods were invoked in by separate CPUs/Servers etc. ServiceResult/OperationResults = Good

003

CTT Unavailable  Specify an empty Comment. (the default locale is defined and the string is empty) Success
Service/operation results: Good

Err-001

CTT Unavailable  Call()  Specify a condition that does not support adding Comments. Find a condition that does not support comments.

Err-002

CTT Unavailable  Specify an EventId that is unknown (but is syntactically valid). Service result: Good
Operation results: BadEventIdUnknown

Spec Link: Part 9->Table 14

Err-003

CTT Unavailable  Call AddComment on the ConditionType node. Service result: Good
Operation results: BadNodeIdUnknown

Spec Link: Part 9->Table 14

Err-004

CTT Unavailable  Specify a Condition where the NodeId does not exist (but is syntactically valid). Service result: Good
Operation results: BadNodeIdUnknown

Spec link: Part 9->Table 14

Err-005

CTT Unavailable  Call the method but specify the ServerObject as the target object. Service result: Good
Operation results: BadMethodInvalid

Spec Link: Part 4-Table 63

Err-006

CTT Unavailable  Add a Comment while specifying an EventId where the related EventType does not support Comments. The request is rejected.
Service result: Good
Operation results: BadNotSupported

Spec Link: Part 9->5.5.6

Err-007

CTT Unavailable  Add a VERY LARGE comment (lengths shown below), i.e. in a loop:
- 500
- 1000
- 2500
- 5000
Up to the limit on the size of a string or 5000 which ever is less

Service result: Good
Operation results: Good or BadOutOfRange

Spec Link: Part 4->Table 63

004

CTT Unavailable  Specify a string using an available local (other than english)
Step #
Action
Expected Result(s)

1

Multiple locale are available on the server

success ServiceResult/OperationResutls = Good

2

Confirm that the ConditionId now has the localized txt

Event notification received with the Comment. [note may require a session for that locale] ServiceResult/OperationResults = Good

3

repeat for all supported locale above. Support by CTT and application

ServiceResult/OperationResults = Good