8000 Automating TC-LWM-2.1 (step 7) and updating pics by r-recchia · Pull Request #39972 · project-chip/connectedhomeip · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Automating TC-LWM-2.1 (step 7) and updating pics #39972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 80 additions & 59 deletions src/app/tests/suites/certification/Test_TC_LWM_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,70 +106,91 @@ tests:
minValue: 0
maxValue: 254

#SDK not enabled this failure response
# - label:
# "Step 7: TH sends a ChangeToMode command to the DUT with NewMode set
# to PIXIT.LWM.MODE_CHANGE_FAIL"
# PICS: LWM.S.M.CAN_TEST_MODE_FAILURE && LWM.S.C00.Rsp
# command: "ChangeToMode"
# arguments:
# values:
# - name: "NewMode"
# value: NewMode_CHANGE_FAIL
# response:
# values:
# - name: "Status"
# constraints:
# anyOf:
# [
# 0x02,
# 0x80,
# 0x81,
# 0x82,
# 0x83,
# 0x84,
# 0x85,
# 0x86,
# 0x87,
# 0x88,
# 0x89,
# 0x8A,
# 0x8B,
# 0x8C,
# 0x8D,
# 0x8E,
# 0xBF,
# ]
# - name: "StatusText"
# constraints:
# minLength: 1
# maxLength: 64

- label:
"Step 7: TH sends a ChangeToMode command to the DUT with NewMode set
to PIXIT.LWM.MODE_CHANGE_FAIL"
PICS:
LWM.S.M.CAN_TEST_MODE_FAILURE && LWM.S.C00.Rsp && PICS_SKIP_SAMPLE_APP
verification: |
Note : Please skip this step as SDK is not enabled with this failure response

./chip-tool laundrywashermode change-to-mode 2 1 1

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:

[1690270057.274893][31185:31187] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0051 Command=0x0000_0001
[1690270057.274901][31185:31187] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0051 Command 0x0000_0001
[1690270057.274915][31185:31187] CHIP:TOO: ChangeToModeResponse: {
[1690270057.274921][31185:31187] CHIP:TOO: status: 0
[1690270057.274924][31185:31187] CHIP:TOO: }
cluster: "LogCommands"
command: "UserPrompt"
PICS: LWM.S.M.CAN_TEST_MODE_FAILURE && LWM.S.C00.Rsp
command: "ChangeToMode"
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- name: "NewMode"
value: NewMode_CHANGE_FAIL
response:
values:
- name: "Status"
constraints:
anyOf: [
0x02, # GenericFailure
0x03, # InvalidInMode
0x80,
0x81,
0x82,
0x83,
0x84,
0x85,
0x86,
0x87,
0x88,
0x89,
0x8A,
0x8B,
0x8C,
0x8D,
0x8E,
0x8F,
0x90,
0x91,
0x92,
0x93,
0x94,
0x95,
0x96,
0x97,
0x98,
0x99,
0x9A,
0x9B,
0x9C,
0x9D,
0x9E,
0x9F,
0xA0,
0xA1,
0xA2,
0xA3,
0xA4,
0xA5,
0xA6,
0xA7,
0xA8,
0xA9,
0xAA,
0xAB,
0xAC,
0xAD,
0xAE,
0xAF,
0xB0,
0xB1,
0xB2,
0xB3,
0xB4,
0xB5,
0xB6,
0xB7,
0xB8,
0xB9,
0xBA,
0xBB,
0xBC,
0xBD,
0xBE,
0xBF,
]
- name: "StatusText"
constraints:
minLength: 1
maxLength: 64

- label: "Step 8: TH reads from the DUT the CurrentMode attribute."
PICS: LWM.S.A0001
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/ci-pics-values
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ LWM.S.C01.Tx=1
PIXIT.LWM.MODE_CHANGE_FAIL=1
PIXIT.LWM.MODE_CHANGE_OK=1

LWM.S.M.CAN_TEST_MODE_FAILURE=1
LWM.S.M.CAN_TEST_MODE_FAILURE=0
LWM.S.M.CAN_MANUALLY_CONTROLLED=1

# OVEN MODE CLUSTER
Expand Down
Loading
0