Skip to content

Commit

Permalink
Fixes YAML script issue: 664, 668, 671, 672, 673
Browse files Browse the repository at this point in the history
TC-DGGEN-2.1
TC-TSTAT-1.1
TC-TSUIC-1.1
TC-TSTAT-2.1
TC-WNCV-3.4
TC-WNCV-3.5
Manual tests:
TC-REFALM-2.2
TC-REFALM-2.3
  • Loading branch information
manjunath-grl committed Sep 27, 2023
1 parent fc456b5 commit 6ba5e68
Show file tree
Hide file tree
Showing 9 changed files with 260 additions and 90 deletions.
34 changes: 27 additions & 7 deletions src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ config:
type: int64u
defaultValue: "0x0000000000000003"

payloadValue:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
Expand All @@ -47,9 +51,7 @@ tests:
- label: "Step 1a: Reset Devices to factory defaults"
PICS: PICS_USER_PROMPT
verification: |
Reset DUT to factory defaults
Set the DUT to Discoverable mode.
Reset Devices to factory defaults
cluster: "LogCommands"
command: "UserPrompt"
arguments:
Expand All @@ -59,6 +61,16 @@ tests:
- name: "expectedValue"
value: "y"

- label: "Recommission the DUT"
cluster: "CommissionerCommands"
command: "PairWithCode"
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: payloadValue

- label: "Step 1b: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
Expand Down Expand Up @@ -428,9 +440,7 @@ tests:
- label: "Step 10b: Reset Devices to factory defaults"
PICS: PICS_USER_PROMPT
verification: |
Reset DUT to factory defaults
Set the DUT to Discoverable mode.
Reset Devices to factory defaults
cluster: "LogCommands"
command: "UserPrompt"
arguments:
Expand All @@ -440,7 +450,17 @@ tests:
- name: "expectedValue"
value: "y"

- label: "Step 10b: Wait for the commissioned device to be retrieved"
- label: "Recommission the DUT"
cluster: "CommissionerCommands"
command: "PairWithCode"
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: payloadValue

- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
Expand Down
5 changes: 5 additions & 0 deletions src/app/tests/suites/certification/Test_TC_REFALM_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ config:
endpoint: 0

tests:
- label: "Note"
verification: |
This is a simulated example log for instructional purposes only. In real scenarios, the actual log may vary depending on the feature implementation in Reference App.
disabled: true

- label:
"Step 1: Commission DUT to TH (can be skipped if done in a preceding
test)"
Expand Down
55 changes: 45 additions & 10 deletions src/app/tests/suites/certification/Test_TC_REFALM_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,58 +35,93 @@ tests:

- label: "Step 2: Ensure that the door on the DUT is closed"
verification: |
Ensure that the door on the DUT is closed
disabled: true

- label: "Step 3: TH reads from the DUT the State attribute"
PICS: REFALM.S.A0002
verification: |
Verify that the DUT response contains a 32-bit value with bit 0 set to 0
./chip-tool refrigeratoralarm read state 1 1
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0.
[1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772
[1688447820.603415][4247:4249] CHIP:TOO: State: 0
[1688447820.603708][4247:4249] CHIP:EM: <<< [E:2198i S:4260 M:156565261 (Ack:46517349)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck)
disabled: true

- label: "Step 4: TH reads from the DUT the Mask attribute"
PICS: REFALM.S.A0000
verification: |
Verify that the DUT response contains a 32-bit value with bit 0 set to 1
./chip-tool refrigeratoralarm read mask 1 1
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
[1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772
[1688447677.833165][4229:4231] CHIP:TOO: Mask: 1
[1688447677.833494][4229:4231] CHIP:EM: <<< [E:27636i S:5449 M:199797248 (Ack:151091416)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck)
disabled: true

- label: "Step 5: Manually open the door on the DUT"
verification: |
Manually open the door on the DUT
disabled: true

- label: "Step 6: Wait for the time defined in PIXIT.REFALM.AlarmThreshold"
verification: |
Wait for the time defined in PIXIT.REFALM.AlarmThreshold
disabled: true

- label: "Step 7: TH reads from the DUT the State attribute"
PICS: REFALM.S.A0002
verification: |
Verify that the DUT response contains a 32-bit value with bit 0 set to 1
./chip-tool refrigeratoralarm read state 1 1
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0.
[1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772
[1688447820.603415][4247:4249] CHIP:TOO: State: 1
[1688447820.603708][4247:4249] CHIP:EM: <<< [E:2198i S:4260 M:156565261 (Ack:46517349)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck)
disabled: true

- label:
"Step 8: Invoke the on DUT sequence to suppress the alarm, do not
close the door"
verification: |
Invoke the on DUT sequence to suppress the alarm, do not close the door
disabled: true

- label: "Step 9: TH reads from the DUT the State attribute"
PICS: REFALM.S.A0002
verification: |
Verify that the DUT response contains a 32-bit value with bit 0 set to 0
./chip-tool refrigeratoralarm read state 1 1
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0.
[1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772
[1688447820.603415][4247:4249] CHIP:TOO: State: 0
[1688447820.603708][4247:4249] CHIP:EM: <<< [E:2198i S:4260 M:156565261 (Ack:46517349)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck)
disabled: true

- label: "Step 10: TH reads from the DUT the Mask attribute"
PICS: REFALM.S.A0000
verification: |
Verify that the DUT response contains a 32-bit value with bit 0 set to 0
./chip-tool refrigeratoralarm read mask 1 1
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
[1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772
[1688447677.833165][4229:4231] CHIP:TOO: Mask: 0
[1688447677.833494][4229:4231] CHIP:EM: <<< [E:27636i S:5449 M:199797248 (Ack:151091416)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck)
disabled: true

- label: "Step 11: TH reads from the DUT the Supported attribute"
PICS: REFALM.S.A0003
verification: |
Verify that the DUT response contains a 32-bit value with bit 0 set to 1
./chip-tool refrigeratoralarm read supported 1 1
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
[1689677642.708638][18413:18415] CHIP:DMG: SuppressResponse = true,
[1689677642.708645][18413:18415] CHIP:DMG: InteractionModelRevision = 1
[1689677642.708651][18413:18415] CHIP:DMG: }
[1689677642.708726][18413:18415] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0003 DataVersion: 1517282962
[1689677642.708773][18413:18415] CHIP:TOO: Supported: 1
[1689677642.708845][18413:18415] CHIP:EM: <<< [E:32432i S:53289 M:29829407 (Ack:142651059)] (S) Msg TX to 1:0000000000000001 [BFDE] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1689677642.708859][18413:18415] CHIP:IN: (S) Sending msg 29829407 on secure session with LSID: 53289
[1689677642.708900][18413:18415] CHIP:EM: Flushed pending ack for MessageCounter:142651059 on exchange 32432i
disabled: true
16 changes: 13 additions & 3 deletions src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -553,18 +553,28 @@ tests:
type: list
contains: [30]

- label: "Step 5a: Read the mandatory commands in AcceptedCommandList"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0]

- label:
"Step 5a: Read Feature dependent(TSTAT.S.F03(SCH)) commands in
"Step 5b: Read Feature dependent(TSTAT.S.F03(SCH)) commands in
AcceptedCommandList"
PICS: TSTAT.S.F03
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0, 1, 2, 3]
contains: [1, 2, 3]

- label: "Step 5b: Read the optional attribute: AcceptedCommandList"
- label:
"Step 5c: Read the optional (GetRelayStatusLog) command in
AcceptedCommandList"
PICS: TSTAT.S.C04.Rsp
command: "readAttribute"
attribute: "AcceptedCommandList"
Expand Down
44 changes: 38 additions & 6 deletions src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1736,20 +1736,52 @@ tests:
anyOf: [4, 5]

- label:
"Step 12: Write Attribute command for ControlSequenceOfOperation with
a new valid value"
"Step 12: TH writes value 1 for attribute ControlSequenceOfOperation.
If TSTAT.S.F00 is true & TSTAT.S.F01 is false"
command: "writeAttribute"
attribute: "ControlSequenceOfOperation"
PICS: TSTAT.S.F00 || TSTAT.S.F01
PICS: TSTAT.S.F00 && !TSTAT.S.F01
arguments:
value: 2
value: 1

- label: "Step 12: Read it back again to confirm the successful write"
command: "readAttribute"
attribute: "ControlSequenceOfOperation"
PICS: TSTAT.S.F00 || TSTAT.S.F01
PICS: TSTAT.S.F00 && !TSTAT.S.F01
response:
value: 1

- label:
"Step 12: TH writes value 3 for attribute ControlSequenceOfOperation.
If TSTAT.S.F01 is true & TSTAT.S.F00 is false"
command: "writeAttribute"
attribute: "ControlSequenceOfOperation"
PICS: TSTAT.S.F01 && !TSTAT.S.F00
arguments:
value: 3

- label: "Step 12: Read it back again to confirm the successful write"
command: "readAttribute"
attribute: "ControlSequenceOfOperation"
PICS: TSTAT.S.F01 && !TSTAT.S.F00
response:
value: 3

- label:
"Step 12: TH writes value 4 for attribute ControlSequenceOfOperation.
If TSTAT.S.F01 & TSTAT.S.F00 are true"
command: "writeAttribute"
attribute: "ControlSequenceOfOperation"
PICS: TSTAT.S.F00 && TSTAT.S.F01
arguments:
value: 4

- label: "Step 12: Read it back again to confirm the successful write"
command: "readAttribute"
attribute: "ControlSequenceOfOperation"
PICS: TSTAT.S.F00 && TSTAT.S.F01
response:
value: 2
value: 4

- label:
"Writes MaxHeatSetpointLimit attribute to default value of 2950 to
Expand Down
27 changes: 19 additions & 8 deletions src/app/tests/suites/certification/Test_TC_TSUIC_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,49 +31,60 @@ tests:
- name: "nodeId"
value: nodeId

- label: "Step 2: TH read ClusterRevision attribute from the DUT"
- label: "Step 2: TH reads from the DUT the ClusterRevision attribute."
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 2
constraints:
type: int16u

- label: "Step 3: Read FeatureMap attribute from the DUT"
- label: "Step 3: TH reads from the DUT the FeatureMap attribute."
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
constraints:
type: bitmap32

- label: "Step 4: Read the global attribute: AttributeList"
- label: "Step 4a: TH reads from the DUT the AttributeList attribute."
PICS: PICS_EVENT_LIST_ENABLED
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [0, 1, 2, 65528, 65529, 65530, 65531, 65532, 65533]
contains: [0, 1, 65528, 65529, 65530, 65531, 65532, 65533]

- label: "Step 4: Read the global attribute: AttributeList"
- label: "Step 4a: TH reads from the DUT the AttributeList attribute."
PICS: "!PICS_EVENT_LIST_ENABLED"
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [0, 1, 2, 65528, 65529, 65531, 65532, 65533]
contains: [0, 1, 65528, 65529, 65531, 65532, 65533]

- label: "Step 5: Read the global attribute: AcceptedCommandList"
- label:
"Step 4b: TH reads optional attribute(ScheduleProgrammingVisibility)
in AttributeList"
PICS: TSUIC.S.A0002
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [2]

- label: "Step 5: TH reads from the DUT the AcceptedCommandList attribute."
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

- label: "Step 6: Read the global attribute: GeneratedCommandList"
- label: "Step 6: TH reads from the DUT the GeneratedCommandList attribute."
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_WNCV_3_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ config:
endpoint: 1
fastMotionDuration:
type: int16u
defaultValue: 3000
defaultValue: 5000
fullMotionDuration:
type: int16u
defaultValue: 6000
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_WNCV_3_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ config:
endpoint: 1
fastMotionDuration:
type: int16u
defaultValue: 3000
defaultValue: 5000
fullMotionDuration:
type: int16u
defaultValue: 6000
Expand Down
Loading

0 comments on commit 6ba5e68

Please sign in to comment.