Skip to content

Commit

Permalink
Refactored Test_TC_S_1_1 to now be automated
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed May 9, 2023
1 parent d154372 commit 7b5ecb2
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 31 deletions.
110 changes: 81 additions & 29 deletions src/app/tests/suites/certification/Test_TC_S_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,51 +20,103 @@ PICS:

config:
nodeId: 0x12344321
cluster: "Basic Information"
endpoint: 0
cluster: "Scenes"
endpoint: 1

tests:
- label: "Commission DUT to TH (can be skipped if done in a preceding test)"
verification: |
DUT and TH are on same fabric
disabled: true
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Read ClusterRevision (global attribute 65533)"
verification: |
value SHALL be 4
disabled: true
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 5
constraints:
type: int16u

- label: "Read FeatureMap (global attribute 65532)"
verification: |
value SHALL be 0
disabled: true
PICS: (!S.S.F00)
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
constraints:
type: bitmap32

- label: "Read FeatureMap (global attribute 65532)"
verification: |
value SHALL be 1
disabled: true
PICS: S.S.F00
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 1
constraints:
type: bitmap32

- label: "Read AttributeList (global attribute 65531)"
verification: |
list SHALL be [0,1,2,3,4]
disabled: true
PICS: S.S.A0005
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains:
[0, 1, 2, 3, 4, 5, 6, 7, 65528, 65529, 65531, 65532, 65533]

- label: "Read AttributeList (global attribute 65531)"
verification: |
list SHALL be [0,1,2,3,4,5]
disabled: true
PICS: (!S.S.A0005)
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [0, 1, 2, 3, 4, 6, 7, 65528, 65529, 65531, 65532, 65533]

- label: "Read EventList (global attribute 65530)"
verification: |
list SHALL be empty
disabled: true
command: "readAttribute"
attribute: "EventList"
response:
constraints:
type: list
contains: []

- label: "Read AcceptedCommandList (global attribute 65529)"
verification: |
list SHALL contain at least [0,1,2,3,4,5,6] if S.S.C40.Rsp(EnhancedAddScene) then list SHALL also contain [40] else it SHALL NOT contain [40] if S.S.C41.Rsp(EnhancedViewScene) then list SHALL also contain [41] else it SHALL NOT contain [41] if S.S.C42.Rsp(CopyScene) then list SHALL also contain [42] else it SHALL NOT contain [42]
disabled: true
PICS: S.S.C40.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0, 1, 2, 3, 4, 5, 6, 40, 41, 42]

- label: "Read AcceptedCommandList (global attribute 65529)"
PICS: (!S.S.C40.Rsp)
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0, 1, 2, 3, 4, 5, 6]

- label: "Read GeneratedCommandList (global attribute 65528)"
PICS: S.C.C40.Tx
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0, 1, 2, 3, 4, 5, 6, 40, 41, 42]

- label: "Read GeneratedCommandList (global attribute 65528)"
verification: |
list SHALL contain at least [0,1,2,3,4,5,6] if S.S.C40.Rsp(EnhancedAddScene) then list SHALL also contain [40] else it SHALL NOT contain [40] if S.S.C41.Rsp(EnhancedViewScene) then list SHALL also contain [41] else it SHALL NOT contain [41] if S.S.C42.Rsp(CopyScene) then list SHALL also contain [42] else it SHALL NOT contain [42]
disabled: true
PICS: (!S.C.C40.Tx)
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0, 1, 2, 3, 4, 5, 6]
1 change: 1 addition & 0 deletions src/app/tests/suites/ciTests.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@
"Test_TC_G_1_1",
"Test_TC_G_2_1"
],
"Scenes": ["Test_TC_S_1_1"],
"collection": [
"AccessControl",
"AccessControlEnforcement",
Expand Down
216 changes: 214 additions & 2 deletions zzz_generated/chip-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7b5ecb2

Please sign in to comment.