Skip to content

Commit 5f00804

Browse files
authored
Automating TC-LWM-2.1 (step 7) and updating pics (project-chip#39972)
* Automating step 7 and updating pics * Restyle * Restyle
1 parent 3b50b2e commit 5f00804

2 files changed

Lines changed: 81 additions & 60 deletions

File tree

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

Lines changed: 80 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -106,70 +106,91 @@ tests:
106106
minValue: 0
107107
maxValue: 254
108108

109-
#SDK not enabled this failure response
110-
# - label:
111-
# "Step 7: TH sends a ChangeToMode command to the DUT with NewMode set
112-
# to PIXIT.LWM.MODE_CHANGE_FAIL"
113-
# PICS: LWM.S.M.CAN_TEST_MODE_FAILURE && LWM.S.C00.Rsp
114-
# command: "ChangeToMode"
115-
# arguments:
116-
# values:
117-
# - name: "NewMode"
118-
# value: NewMode_CHANGE_FAIL
119-
# response:
120-
# values:
121-
# - name: "Status"
122-
# constraints:
123-
# anyOf:
124-
# [
125-
# 0x02,
126-
# 0x80,
127-
# 0x81,
128-
# 0x82,
129-
# 0x83,
130-
# 0x84,
131-
# 0x85,
132-
# 0x86,
133-
# 0x87,
134-
# 0x88,
135-
# 0x89,
136-
# 0x8A,
137-
# 0x8B,
138-
# 0x8C,
139-
# 0x8D,
140-
# 0x8E,
141-
# 0xBF,
142-
# ]
143-
# - name: "StatusText"
144-
# constraints:
145-
# minLength: 1
146-
# maxLength: 64
147-
148109
- label:
149110
"Step 7: TH sends a ChangeToMode command to the DUT with NewMode set
150111
to PIXIT.LWM.MODE_CHANGE_FAIL"
151-
PICS:
152-
LWM.S.M.CAN_TEST_MODE_FAILURE && LWM.S.C00.Rsp && PICS_SKIP_SAMPLE_APP
153-
verification: |
154-
Note : Please skip this step as SDK is not enabled with this failure response
155-
156-
./chip-tool laundrywashermode change-to-mode 2 1 1
157-
158-
Verify on TH(chip-tool) log, DUT responds contains a ChangeToModeResponse command with a GenericFailure(0x02) status response and below is the sample log provided for the raspi platform:
159-
160-
[1690270057.274893][31185:31187] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0051 Command=0x0000_0001
161-
[1690270057.274901][31185:31187] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0051 Command 0x0000_0001
162-
[1690270057.274915][31185:31187] CHIP:TOO: ChangeToModeResponse: {
163-
[1690270057.274921][31185:31187] CHIP:TOO: status: 0
164-
[1690270057.274924][31185:31187] CHIP:TOO: }
165-
cluster: "LogCommands"
166-
command: "UserPrompt"
112+
PICS: LWM.S.M.CAN_TEST_MODE_FAILURE && LWM.S.C00.Rsp
113+
command: "ChangeToMode"
167114
arguments:
168115
values:
169-
- name: "message"
170-
value: "Enter 'y' after success"
171-
- name: "expectedValue"
172-
value: "y"
116+
- name: "NewMode"
117+
value: NewMode_CHANGE_FAIL
118+
response:
119+
values:
120+
- name: "Status"
121+
constraints:
122+
anyOf: [
123+
0x02, # GenericFailure
124+
0x03, # InvalidInMode
125+
0x80,
126+
0x81,
127+
0x82,
128+
0x83,
129+
0x84,
130+
0x85,
131+
0x86,
132+
0x87,
133+
0x88,
134+
0x89,
135+
0x8A,
136+
0x8B,
137+
0x8C,
138+
0x8D,
139+
0x8E,
140+
0x8F,
141+
0x90,
142+
0x91,
143+
0x92,
144+
0x93,
145+
0x94,
146+
0x95,
147+
0x96,
148+
0x97,
149+
0x98,
150+
0x99,
151+
0x9A,
152+
0x9B,
153+
0x9C,
154+
0x9D,
155+
0x9E,
156+
0x9F,
157+
0xA0,
158+
0xA1,
159+
0xA2,
160+
0xA3,
161+
0xA4,
162+
0xA5,
163+
0xA6,
164+
0xA7,
165+
0xA8,
166+
0xA9,
167+
0xAA,
168+
0xAB,
169+
0xAC,
170+
0xAD,
171+
0xAE,
172+
0xAF,
173+
0xB0,
174+
0xB1,
175+
0xB2,
176+
0xB3,
177+
0xB4,
178+
0xB5,
179+
0xB6,
180+
0xB7,
181+
0xB8,
182+
0xB9,
183+
0xBA,
184+
0xBB,
185+
0xBC,
186+
0xBD,
187+
0xBE,
188+
0xBF,
189+
]
190+
- name: "StatusText"
191+
constraints:
192+
minLength: 1
193+
maxLength: 64
173194

174195
- label: "Step 8: TH reads from the DUT the CurrentMode attribute."
175196
PICS: LWM.S.A0001

src/app/tests/suites/certification/ci-pics-values

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ LWM.S.C01.Tx=1
759759
PIXIT.LWM.MODE_CHANGE_FAIL=1
760760
PIXIT.LWM.MODE_CHANGE_OK=1
761761

762-
LWM.S.M.CAN_TEST_MODE_FAILURE=1
762+
LWM.S.M.CAN_TEST_MODE_FAILURE=0
763763
LWM.S.M.CAN_MANUALLY_CONTROLLED=1
764764

765765
# OVEN MODE CLUSTER

0 commit comments

Comments
 (0)