Skip to content

Commit ca23c8a

Browse files
Semi-automated tests Nov 29 (#30733)
* Added new semi-automated tests TC-LWM-3.2 TC-LWM-3.3 TC-REFALM-2.3 TC-TCTL-3.2 TC-TCTL-3.3 * Auto generated files * INVALID_IN_STATE in TCTL-3.2 * Fix TCTL-3.3 CI failure * Modified CI-pics-value files SupportsInvalidInMode set to 0
1 parent 8677d1a commit ca23c8a

File tree

11 files changed

+1391
-804
lines changed

11 files changed

+1391
-804
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
"Test_TC_TCCM_3_3",
5959
"Test_TC_RVCRUNM_3_1",
6060
"Test_TC_TCTL_2_1",
61+
"Test_TC_LWM_3_1",
62+
"Test_TC_LWM_3_2",
63+
"Test_TC_LWM_3_3",
6164
"Disabled because darwin-framework-tool does not support constraints arithmetic operations",
6265
"Test_TC_FLW_2_1",
6366
"Test_TC_RH_2_1",

scripts/tests/chiptest/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ def _GetChipReplUnsupportedTests() -> Set[str]:
184184
"Test_TC_DGGEN_2_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
185185
"Test_TC_DGGEN_2_3.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
186186
"Test_TC_LWM_3_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
187+
"Test_TC_LWM_3_2.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
188+
"Test_TC_LWM_3_3.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
187189
"Test_TC_G_2_4.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
188190
"Test_TC_RVCRUNM_3_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster
189191
"Test_TC_RVCCLEANM_3_1.yaml", # chip-repl does not support EqualityCommands pseudo-cluster

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

+116-197
Large diffs are not rendered by default.

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

+122-220
Large diffs are not rendered by default.

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

+98-81
Original file line numberDiff line numberDiff line change
@@ -11,117 +11,134 @@
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:
1716
217.2.3. [TC-REFALM-2.3] Local suppression of the door alarm with DUT as
1817
Server
1918

2019
PICS:
2120
- REFALM.S
21+
- REFALM.S.M.LocalSuppress
2222

2323
config:
2424
nodeId: 0x12344321
25-
cluster: "Basic Information"
26-
endpoint: 0
25+
cluster: "Refrigerator Alarm"
26+
endpoint: 1
27+
PIXIT.REFALM.AlarmThreshold:
28+
type: int16u
29+
defaultValue: 5
2730

2831
tests:
2932
- label:
3033
"Step 1: Commission DUT to TH (can be skipped if done in a preceding
3134
test)"
32-
verification: |
33-
34-
disabled: true
35+
cluster: "DelayCommands"
36+
command: "WaitForCommissionee"
37+
arguments:
38+
values:
39+
- name: "nodeId"
40+
value: nodeId
3541

3642
- label: "Step 2: Ensure that the door on the DUT is closed"
3743
verification: |
3844
Ensure that the door on the DUT is closed
39-
disabled: true
40-
41-
- label: "Step 3: TH reads from the DUT the State attribute"
45+
cluster: "LogCommands"
46+
command: "UserPrompt"
47+
PICS: PICS_USER_PROMPT
48+
arguments:
49+
values:
50+
- name: "message"
51+
value: "Please enter 'y' for success"
52+
- name: "expectedValue"
53+
value: "y"
54+
55+
- label: "Step 3:TH reads from the DUT the State attribute"
56+
command: "readAttribute"
57+
attribute: "State"
4258
PICS: REFALM.S.A0002
43-
verification: |
44-
./chip-tool refrigeratoralarm read state 1 1
45-
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0.
46-
47-
[1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772
48-
[1688447820.603415][4247:4249] CHIP:TOO: State: 0
49-
[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)
50-
disabled: true
51-
52-
- label: "Step 4: TH reads from the DUT the Mask attribute"
59+
response:
60+
constraints:
61+
type: bitmap32
62+
hasMasksClear: [0x1]
63+
64+
- label: "Step 4:TH reads from the DUT the Mask attribute"
65+
command: "readAttribute"
66+
attribute: "Mask"
5367
PICS: REFALM.S.A0000
54-
verification: |
55-
./chip-tool refrigeratoralarm read mask 1 1
56-
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
57-
58-
[1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772
59-
[1688447677.833165][4229:4231] CHIP:TOO: Mask: 1
60-
[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)
61-
disabled: true
68+
response:
69+
constraints:
70+
type: bitmap32
71+
hasMasksSet: [0x1]
6272

6373
- label: "Step 5: Manually open the door on the DUT"
6474
verification: |
6575
Manually open the door on the DUT
66-
disabled: true
76+
cluster: "LogCommands"
77+
command: "UserPrompt"
78+
PICS: PICS_USER_PROMPT
79+
arguments:
80+
values:
81+
- name: "message"
82+
value: "Please enter 'y' for success"
83+
- name: "expectedValue"
84+
value: "y"
6785

6886
- label: "Step 6: Wait for the time defined in PIXIT.REFALM.AlarmThreshold"
69-
verification: |
70-
Wait for the time defined in PIXIT.REFALM.AlarmThreshold
71-
disabled: true
72-
73-
- label: "Step 7: TH reads from the DUT the State attribute"
74-
PICS: REFALM.S.A0002
75-
verification: |
76-
./chip-tool refrigeratoralarm read state 1 1
77-
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0.
78-
79-
[1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772
80-
[1688447820.603415][4247:4249] CHIP:TOO: State: 1
81-
[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)
82-
disabled: true
87+
cluster: "DelayCommands"
88+
PICS: PICS_USER_PROMPT
89+
command: "WaitForMs"
90+
arguments:
91+
values:
92+
- name: "ms"
93+
value: PIXIT.REFALM.AlarmThreshold * 1000
94+
95+
- label: "Step 7:TH reads from the DUT the State attribute"
96+
command: "readAttribute"
97+
attribute: "State"
98+
PICS: REFALM.S.A0002 && PICS_USER_PROMPT
99+
response:
100+
constraints:
101+
type: bitmap32
102+
hasMasksSet: [0x1]
83103

84104
- label:
85105
"Step 8: Invoke the on DUT sequence to suppress the alarm, do not
86106
close the door"
87107
verification: |
88108
Invoke the on DUT sequence to suppress the alarm, do not close the door
89-
disabled: true
90-
91-
- label: "Step 9: TH reads from the DUT the State attribute"
92-
PICS: REFALM.S.A0002
93-
verification: |
94-
./chip-tool refrigeratoralarm read state 1 1
95-
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0.
96-
97-
[1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772
98-
[1688447820.603415][4247:4249] CHIP:TOO: State: 0
99-
[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)
100-
disabled: true
101-
102-
- label: "Step 10: TH reads from the DUT the Mask attribute"
103-
PICS: REFALM.S.A0000
104-
verification: |
105-
./chip-tool refrigeratoralarm read mask 1 1
106-
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
107-
108-
[1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772
109-
[1688447677.833165][4229:4231] CHIP:TOO: Mask: 0
110-
[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)
111-
disabled: true
112-
113-
- label: "Step 11: TH reads from the DUT the Supported attribute"
114-
PICS: REFALM.S.A0003
115-
verification: |
116-
./chip-tool refrigeratoralarm read supported 1 1
117-
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
118-
119-
[1689677642.708638][18413:18415] CHIP:DMG: SuppressResponse = true,
120-
[1689677642.708645][18413:18415] CHIP:DMG: InteractionModelRevision = 1
121-
[1689677642.708651][18413:18415] CHIP:DMG: }
122-
[1689677642.708726][18413:18415] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0003 DataVersion: 1517282962
123-
[1689677642.708773][18413:18415] CHIP:TOO: Supported: 1
124-
[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)
125-
[1689677642.708859][18413:18415] CHIP:IN: (S) Sending msg 29829407 on secure session with LSID: 53289
126-
[1689677642.708900][18413:18415] CHIP:EM: Flushed pending ack for MessageCounter:142651059 on exchange 32432i
127-
disabled: true
109+
cluster: "LogCommands"
110+
command: "UserPrompt"
111+
PICS: PICS_USER_PROMPT
112+
arguments:
113+
values:
114+
- name: "message"
115+
value: "Please enter 'y' for success"
116+
- name: "expectedValue"
117+
value: "y"
118+
119+
- label: "Step 9:TH reads from the DUT the State attribute"
120+
command: "readAttribute"
121+
attribute: "State"
122+
PICS: REFALM.S.A0002 && PICS_USER_PROMPT
123+
response:
124+
constraints:
125+
type: bitmap32
126+
hasMasksClear: [0x1]
127+
128+
- label: "Step 10:TH reads from the DUT the Mask attribute"
129+
command: "readAttribute"
130+
attribute: "Mask"
131+
PICS: REFALM.S.A0000 && PICS_USER_PROMPT
132+
response:
133+
constraints:
134+
type: bitmap32
135+
hasMasksClear: [0x1]
136+
137+
- label: "Step 11:TH reads from the DUT the Supported attribute"
138+
command: "readAttribute"
139+
attribute: "Supported"
140+
PICS: REFALM.S.A0003 && PICS_USER_PROMPT
141+
response:
142+
constraints:
143+
type: bitmap32
144+
hasMasksSet: [0x1]

0 commit comments

Comments
 (0)