Skip to content

Commit 099d226

Browse files
Newly semi/automated tests (#30090)
TC-REFALM-2.1 TC-TCCM-3.2 TC-TCCM-3.3 Modified tests: TC-MOD-3.1 TC-MOD-3.2 TC-MOD-3.3 TC-RVCRUNM-3.1
1 parent 0604ef6 commit 099d226

File tree

12 files changed

+552
-451
lines changed

12 files changed

+552
-451
lines changed

examples/darwin-framework-tool/templates/tests/ciTests.json

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
"Disabled because darwin-framework-tool does not support EqualityCommands pseudo-cluster",
5555
"Test_TC_S_2_2",
5656
"Test_TC_TCCM_3_1",
57+
"Test_TC_TCCM_3_2",
58+
"Test_TC_TCCM_3_3",
59+
"Test_TC_RVCRUNM_3_1",
5760
"Test_TC_TCTL_2_1",
5861
"Disabled because darwin-framework-tool does not support constraints arithmetic operations",
5962
"Test_TC_FLW_2_1",

scripts/tests/chiptest/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ def _GetChipReplUnsupportedTests() -> Set[str]:
188188
"Test_TC_RVCRUNM_3_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
189189
"Test_TC_RVCCLEANM_3_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
190190
"Test_TC_TCCM_3_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
191+
"Test_TC_TCCM_3_2.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
192+
"Test_TC_TCCM_3_3.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
191193
"Test_TC_TCTL_2_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
192194
# chip-repl and chip-tool disagree on what the YAML here should look like: https://github.com/project-chip/connectedhomeip/issues/29110
193195
"TestClusterMultiFabric.yaml",

src/app/tests/suites/certification/Test_TC_MOD_3_1.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,31 @@ config:
3131
defaultValue: 5000
3232

3333
tests:
34-
- label: "Wait for the commissioned device to be retrieved"
34+
- label: "Step 0:Wait for the commissioned device to be retrieved"
3535
cluster: "DelayCommands"
3636
command: "WaitForCommissionee"
3737
arguments:
3838
values:
3939
- name: "nodeId"
4040
value: nodeId
4141

42-
- label: "TH reads the OnMode attribute from the DUT"
42+
- label: "Step 1: TH reads the OnMode attribute from the DUT"
4343
PICS: MOD.S.A0005 && MOD.S.F00
4444
command: "readAttribute"
4545
attribute: "OnMode"
4646
response:
4747
saveAs: on_mode_dut
4848

49-
- label: "TH reads the CurrentMode attribute from the DUT"
49+
- label: "Step 2a: TH reads the CurrentMode attribute from the DUT"
5050
PICS: MOD.S.A0003 && MOD.S.F00
5151
command: "readAttribute"
5252
attribute: "CurrentMode"
5353
response:
5454
saveAs: old_current_mode_dut
5555

5656
- label:
57-
"If the OnMode and CurrentMode attributes have the same value, proceed
58-
to step 2c, Otherwise proceed to step 3a"
57+
"Step 2b: If the OnMode and CurrentMode attributes have the same
58+
value, proceed to step 2c, Otherwise proceed to step 3a"
5959
PICS: MOD.S.A0003 && MOD.S.A0005 && MOD.S.F00
6060
cluster: "EqualityCommands"
6161
command: "UnsignedNumberEquals"
@@ -70,7 +70,7 @@ tests:
7070
- name: "Equals"
7171
saveAs: IsExpectedValue
7272

73-
- label: "TH reads the SupportedModes attribute from the DUT"
73+
- label: "Step 2c: TH reads the SupportedModes attribute from the DUT"
7474
runIf: IsExpectedValue
7575
PICS: MOD.S.A0005 && MOD.S.F00
7676
command: "readAttribute"
@@ -80,9 +80,9 @@ tests:
8080
type: list
8181

8282
- label:
83-
"Select a value from the list in step 2c with a different value than
84-
the onMode value read in step 1. TH sends a ChangeToMode command to
85-
the TH with the selected value."
83+
"Step 2d: Select a value from the list in step 2c with a different
84+
value than the onMode value read in step 1. TH sends a ChangeToMode
85+
command to the TH with the selected value."
8686
runIf: IsExpectedValue
8787
PICS: MOD.S.A0002 && MOD.S.C00.Rsp && MOD.S.F00
8888
command: "ChangeToMode"
@@ -91,12 +91,12 @@ tests:
9191
- name: "NewMode"
9292
value: NewMode
9393

94-
- label: "TH sends an Off command to the DUT"
94+
- label: "Step 3a: TH sends an Off command to the DUT"
9595
PICS: OO.S.C00.Rsp && MOD.S.F00
9696
cluster: "On/Off"
9797
command: "Off"
9898

99-
- label: "TH sends an On command to the DUT"
99+
- label: "Step 3b: TH sends an On command to the DUT"
100100
PICS: OO.S.C01.Rsp && MOD.S.F00
101101
cluster: "On/Off"
102102
command: "On"
@@ -109,7 +109,7 @@ tests:
109109
- name: "ms"
110110
value: WaitTime
111111

112-
- label: "TH reads the CurrentMode attribute from the DUT"
112+
- label: "Step 3c: TH reads the CurrentMode attribute from the DUT"
113113
PICS: MOD.S.A0003 && MOD.S.F00
114114
command: "readAttribute"
115115
attribute: "CurrentMode"

src/app/tests/suites/certification/Test_TC_MOD_3_2.yaml

+12-13
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
1514

1615
name: 80.5.2. [TC-MOD-3.2] StartUpMode verification with DUT as Server
1716

@@ -28,31 +27,31 @@ config:
2827
defaultValue: 7
2928

3029
tests:
31-
- label: "Wait for the commissioned device to be retrieved"
30+
- label: "Step 0: Wait for the commissioned device to be retrieved"
3231
cluster: "DelayCommands"
3332
command: "WaitForCommissionee"
3433
arguments:
3534
values:
3635
- name: "nodeId"
3736
value: nodeId
3837

39-
- label: "TH reads the StartUpMode attribute from the DUT"
38+
- label: "Step 1: TH reads the StartUpMode attribute from the DUT"
4039
PICS: MOD.S.A0004
4140
command: "readAttribute"
4241
attribute: "StartUpMode"
4342
response:
4443
saveAs: startup_mode_dut
4544

46-
- label: "TH reads the CurrentMode attribute from the DUT"
45+
- label: "Step 2a: TH reads the CurrentMode attribute from the DUT"
4746
PICS: MOD.S.A0003
4847
command: "readAttribute"
4948
attribute: "CurrentMode"
5049
response:
5150
saveAs: old_current_mode_dut
5251

5352
- label:
54-
"If startup_mode_dut is equal to old_current_mode_dut proceed to step
55-
4. Else proceed to step 6"
53+
"Step 2b: If the StartUpMode and CurrentMode attributes have the same
54+
value, proceed to step 2c, Otherwise proceed to step 3a."
5655
PICS: MOD.S.A0003 && MOD.S.A0004
5756
cluster: "EqualityCommands"
5857
command: "UnsignedNumberEquals"
@@ -67,7 +66,7 @@ tests:
6766
- name: "Equals"
6867
saveAs: IsExpectedValue
6968

70-
- label: "TH reads the SupportedModes attribute from the DUT"
69+
- label: "Step 2c: TH reads the SupportedModes attribute from the DUT"
7170
runIf: IsExpectedValue
7271
PICS: MOD.S.A0002
7372
command: "readAttribute"
@@ -77,9 +76,9 @@ tests:
7776
type: list
7877

7978
- label:
80-
"Select a value from the list in step 2c with a different value than
81-
the StartUpMode value read in step 1. TH sends a ChangeToMode command
82-
to the DUT with the selected value."
79+
"Step 2d: Select a value from the list in step 2c with a different
80+
value than the StartUpMode value read in step 1. TH sends a
81+
ChangeToMode command to the DUT with the selected value."
8382
runIf: IsExpectedValue
8483
PICS: MOD.S.A0002 && MOD.S.C00.Rsp
8584
command: "ChangeToMode"
@@ -88,7 +87,7 @@ tests:
8887
- name: "NewMode"
8988
value: NewMode
9089

91-
- label: "Physically power cycle the device."
90+
- label: "Step 3a: Physically power cycle the device."
9291
verification: |
9392
Physically power cycle the device.
9493
cluster: "LogCommands"
@@ -101,15 +100,15 @@ tests:
101100
- name: "expectedValue"
102101
value: "y"
103102

104-
- label: "Commission device after reboot"
103+
- label: "Wait for the commissioned device to be retrieved"
105104
cluster: "DelayCommands"
106105
command: "WaitForCommissionee"
107106
arguments:
108107
values:
109108
- name: "nodeId"
110109
value: nodeId
111110

112-
- label: "TH reads the CurrentMode attribute from the DUT"
111+
- label: "Step 3b: TH reads the CurrentMode attribute from the DUT"
113112
PICS: MOD.S.A0003 && MOD.S.F00 && PICS_USER_PROMPT
114113
command: "readAttribute"
115114
attribute: "CurrentMode"

src/app/tests/suites/certification/Test_TC_MOD_3_3.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ tests:
127127
- name: "expectedValue"
128128
value: "y"
129129

130-
- label: "Commission device after reboot"
130+
- label: "Wait for the commissioned device to be retrieved"
131131
cluster: "DelayCommands"
132132
command: "WaitForCommissionee"
133133
arguments:

src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml

+38-43
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default
1514

1615
name: 222.2.1. [TC-REFALM-2.1] Attributes with DUT as Server
1716

@@ -20,62 +19,58 @@ PICS:
2019

2120
config:
2221
nodeId: 0x12344321
23-
cluster: "Basic Information"
24-
endpoint: 0
22+
cluster: "Refrigerator Alarm"
23+
endpoint: 1
2524

2625
tests:
27-
- label: "Note"
28-
verification: |
29-
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.
30-
disabled: true
31-
3226
- label:
3327
"Step 1: Commission DUT to TH (can be skipped if done in a preceding
3428
test)"
35-
verification: |
36-
37-
disabled: true
29+
cluster: "DelayCommands"
30+
command: "WaitForCommissionee"
31+
arguments:
32+
values:
33+
- name: "nodeId"
34+
value: nodeId
3835

3936
- label:
4037
"Step 2: Ensure that the door alarm is not locally suppressed and the
4138
door is closed"
4239
verification: |
4340
Ensure that the door alarm is not locally suppressed and the door is closed
44-
disabled: true
41+
cluster: "LogCommands"
42+
command: "UserPrompt"
43+
PICS: PICS_USER_PROMPT
44+
arguments:
45+
values:
46+
- name: "message"
47+
value: "Please enter 'y' for success"
48+
- name: "expectedValue"
49+
value: "y"
4550

46-
- label: "Step 3: TH reads from the DUT the Mask attribute"
51+
- label: "Step 3:TH reads from the DUT the Mask attribute"
4752
PICS: REFALM.S.A0000
48-
verification: |
49-
./chip-tool refrigeratoralarm read mask 1 1
50-
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
51-
[1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772
52-
[1688447677.833165][4229:4231] CHIP:TOO: Mask: 1
53-
[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)
54-
disabled: true
53+
command: "readAttribute"
54+
attribute: "Mask"
55+
response:
56+
constraints:
57+
type: bitmap32
58+
hasMasksSet: [0x1]
5559

56-
- label: "Step 4: TH reads from the DUT the State attribute"
60+
- label: "Step 4:TH reads from the DUT the State attribute"
5761
PICS: REFALM.S.A0002
58-
verification: |
59-
./chip-tool refrigeratoralarm read state 1 1
60-
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0.
61-
62-
[1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772
63-
[1688447820.603415][4247:4249] CHIP:TOO: State: 0
64-
[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)
65-
disabled: true
62+
command: "readAttribute"
63+
attribute: "State"
64+
response:
65+
constraints:
66+
type: bitmap32
67+
hasMasksClear: [0x1]
6668

67-
- label: "Step 5: TH reads from the DUT the Supported attribute"
69+
- label: "Step 5:TH reads from the DUT the Supportedask attribute"
6870
PICS: REFALM.S.A0003
69-
verification: |
70-
./chip-tool refrigeratoralarm read supported 1 1
71-
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
72-
73-
[1689677642.708638][18413:18415] CHIP:DMG: SuppressResponse = true,
74-
[1689677642.708645][18413:18415] CHIP:DMG: InteractionModelRevision = 1
75-
[1689677642.708651][18413:18415] CHIP:DMG: }
76-
[1689677642.708726][18413:18415] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0003 DataVersion: 1517282962
77-
[1689677642.708773][18413:18415] CHIP:TOO: Supported: 1
78-
[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)
79-
[1689677642.708859][18413:18415] CHIP:IN: (S) Sending msg 29829407 on secure session with LSID: 53289
80-
[1689677642.708900][18413:18415] CHIP:EM: Flushed pending ack for MessageCounter:142651059 on exchange 32432i
81-
disabled: true
71+
command: "readAttribute"
72+
attribute: "Supported"
73+
response:
74+
constraints:
75+
type: bitmap32
76+
hasMasksSet: [0x1]

src/app/tests/suites/certification/Test_TC_RVCRUNM_3_1.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ name: 87.4.1. [TC-RVCRUNM-3.1] On Mode functionality with DUT as Server
1717
PICS:
1818
- RVCRUNM.S.A0003
1919
- RVCRUNM.S.F00
20+
- OO.S.C00.Rsp
21+
- OO.S.C01.Rsp
2022

2123
config:
2224
nodeId: 0x12344321

0 commit comments

Comments
 (0)