Skip to content

Commit

Permalink
Modified test June 21 (#19805)
Browse files Browse the repository at this point in the history
* Modified tests
TC-CC-9.*
TC-MC-3.*
TC-MC-5.*
TC-MC-6.*
TC-MC-7.1
TC-MC-7.2
TC-MC-8.1
TC-MC-9.1
TC-PRS-2.1
TC-SC-4.2
TC-WNCV-2.4
TC-WNCV-2.5

* Auto generated files

* Restyled by whitespace

* Modified Darwin JS file

* Auto generated files

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Sep 18, 2023
1 parent 9f68c7e commit f18387d
Show file tree
Hide file tree
Showing 35 changed files with 6,213 additions and 5,086 deletions.
9 changes: 9 additions & 0 deletions examples/darwin-framework-tool/templates/tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ function getTests() {
// TODO: Test_TC_CC_9_3 does not work on Darwin for now.
tests.disable('Test_TC_CC_9_3');

// TODO: Test_TC_MC_3_7 does not work on Darwin for now.
tests.disable('Test_TC_MC_3_7');

// TODO: Test_TC_MC_3_8 does not work on Darwin for now.
tests.disable('Test_TC_MC_3_8');

// TODO: Test_TC_MC_3_9 does not work on Darwin for now.
tests.disable('Test_TC_MC_3_9');

return tests;
}

Expand Down
25 changes: 25 additions & 0 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,34 @@ PICS:
SupportedStreamingProtocols attribute?"
id: MC_CONTENTLAUNCHER.S.A0001

#Pressure Measurement
- label: "Does the device implement the MeasuredValue attribute?"
id: PRS.S.A0000

- label: "Does the device implement the MinMeasuredValue attribute?"
id: PRS.S.A0001

- label: "Does the device implement the MaxMeasuredValue attribute?"
id: PRS.S.A0002

- label: "Does the device implement the Tolerance attribute?"
id: PRS.S.A0003

- label: "Does the device implement the ScaledValue attribute?"
id: PRS.S.A0010

- label: "Does the device implement the MinScaledValue attribute?"
id: PRS.S.A0011

- label: "Does the device implement the MaxScaledValue attribute?"
id: PRS.S.A0012

- label: "Does the device implement the ScaledTolerance attribute?"
id: PRS.S.A0013

- label: "Does the device implement the Scale attribute?"
id: PRS.S.A0014

- label: "Does the device implement the Occupancy attribute?"
id: OCC.S.A0000

Expand Down
28 changes: 16 additions & 12 deletions src/app/tests/suites/certification/Test_TC_CC_9_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ tests:
- name: "optionsOverride"
value: 0

- label: "Wait for 1000ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 1000

- label: "Sends ColorLoopSet Command - Set all Attributes"
command: "ColorLoopSet"
PICS: CC.S.C44.Rsp
Expand Down Expand Up @@ -194,11 +202,10 @@ tests:
response:
value: 1

#Issue 18848
- label: "Read ColorLoopStoredEnhancedHue attribute from DUT"
command: "readAttribute"
attribute: "ColorLoopStoredEnhancedHue"
PICS: PICS_SKIP_SAMPLE_APP && CC.S.A4006
PICS: CC.S.A4006
response:
value: 16384

Expand Down Expand Up @@ -344,11 +351,10 @@ tests:
response:
value: 1

#Issue 18848
- label: "Read ColorLoopStoredEnhancedHue attribute from DUT"
command: "readAttribute"
attribute: "ColorLoopStoredEnhancedHue"
PICS: PICS_SKIP_SAMPLE_APP && CC.S.A4006
PICS: CC.S.A4006
response:
value: 16384

Expand Down Expand Up @@ -446,7 +452,7 @@ tests:
arguments:
values:
- name: "enhancedHue"
value: 40960
value: 16384
- name: "direction"
value: 0
- name: "transitionTime"
Expand All @@ -456,20 +462,20 @@ tests:
- name: "optionsOverride"
value: 0

- label: "Wait 2000ms"
- label: "Wait 1000ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 2000
value: 1000

- label: "Read EnhancedCurrentHue attribute from DUT"
command: "readAttribute"
attribute: "EnhancedCurrentHue"
PICS: CC.S.A4000
response:
value: 40960
value: 16384

- label: "Sends ColorLoopSet Command - Set all Attributes"
command: "ColorLoopSet"
Expand Down Expand Up @@ -525,11 +531,10 @@ tests:
response:
value: 1

#Issue 18848
- label: "Read ColorLoopStoredEnhancedHue attribute from DUT"
command: "readAttribute"
attribute: "ColorLoopStoredEnhancedHue"
PICS: PICS_SKIP_SAMPLE_APP && CC.S.A4006
PICS: CC.S.A4006
response:
value: 16384

Expand Down Expand Up @@ -675,11 +680,10 @@ tests:
response:
value: 1

#Issue 18848
- label: "Read ColorLoopStoredEnhancedHue attribute from DUT"
command: "readAttribute"
attribute: "ColorLoopStoredEnhancedHue"
PICS: PICS_SKIP_SAMPLE_APP && CC.S.A4006
PICS: CC.S.A4006
response:
value: 16384

Expand Down
11 changes: 9 additions & 2 deletions src/app/tests/suites/certification/Test_TC_CC_9_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ tests:
- name: "optionsOverride"
value: 0

- label: "Wait for 1000ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 1000

- label: "Sends ColorLoopSet Command - Set all Attributes"
command: "ColorLoopSet"
PICS: CC.S.C44.Rsp
Expand Down Expand Up @@ -135,11 +143,10 @@ tests:
response:
value: 1

#Issue 18848
- label: "Read ColorLoopStoredEnhancedHue attribute from DUT."
command: "readAttribute"
attribute: "ColorLoopStoredEnhancedHue"
PICS: PICS_SKIP_SAMPLE_APP && CC.S.A4006
PICS: CC.S.A4006
response:
value: 16384

Expand Down
11 changes: 9 additions & 2 deletions src/app/tests/suites/certification/Test_TC_CC_9_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ tests:
- name: "optionsOverride"
value: 0

- label: "Wait for 1000ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 1000

- label: "Sends ColorLoopSet Command - Set all Attributes"
command: "ColorLoopSet"
PICS: CC.S.C44.Rsp
Expand Down Expand Up @@ -134,11 +142,10 @@ tests:
response:
value: 1

#Issue 18848
- label: "Read ColorLoopStoredEnhancedHue attribute from DUT."
command: "readAttribute"
attribute: "ColorLoopStoredEnhancedHue"
PICS: PICS_SKIP_SAMPLE_APP && CC.S.A4006
PICS: CC.S.A4006
response:
value: 16384

Expand Down
2 changes: 2 additions & 0 deletions src/app/tests/suites/certification/Test_TC_MC_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ tests:

- label: "TH sends Sleep command to DUT"
command: "Sleep"
response:
error: 0
4 changes: 0 additions & 4 deletions src/app/tests/suites/certification/Test_TC_MC_3_11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,14 @@ tests:
constraints:
type: list

#Issue 17985
- label: "Select Input Command"
PICS: PICS_SKIP_SAMPLE_APP
command: "SelectInput"
arguments:
values:
- name: "index"
value: 1

#skipped due to above command failure
- label: "Read current input list"
PICS: PICS_SKIP_SAMPLE_APP
command: "readAttribute"
attribute: "CurrentInput"
response:
Expand Down
6 changes: 4 additions & 2 deletions src/app/tests/suites/certification/Test_TC_MC_3_12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ tests:
value: nodeId

- label: "Hide Input Status Command"
PICS: PICS_SKIP_SAMPLE_APP
command: "HideInputStatus"
response:
error: 0

- label: "Show Input Status Command"
PICS: PICS_SKIP_SAMPLE_APP
command: "ShowInputStatus"
response:
error: 0
11 changes: 0 additions & 11 deletions src/app/tests/suites/certification/Test_TC_MC_3_13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ tests:
type: list

- label: "Rename Input Command"
PICS: PICS_SKIP_SAMPLE_APP
command: "RenameInput"
arguments:
values:
Expand All @@ -46,16 +45,6 @@ tests:
- name: "name"
value: "A1"

- label: "Rename Input Command"
PICS: PICS_SKIP_SAMPLE_APP
command: "RenameInput"
arguments:
values:
- name: "index"
value: 1
- name: "name"
value: "A2"

- label: "Read attribute media input list"
command: "readAttribute"
attribute: "InputList"
Expand Down
3 changes: 0 additions & 3 deletions src/app/tests/suites/certification/Test_TC_MC_3_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,14 @@ tests:
- name: "nodeId"
value: nodeId

#Issue 17510
- label: "TH sends CEC Settings Keys(0x0A) to DUT"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
- name: "keyCode"
value: 0x0A

- label: "TH sends CEC Home Keys(0x09) to DUT"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
Expand Down
10 changes: 0 additions & 10 deletions src/app/tests/suites/certification/Test_TC_MC_3_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,73 +28,63 @@ tests:
- name: "nodeId"
value: nodeId

#Issue 17510
- label: "Send Numbers1"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
- name: "keyCode"
value: 0x21

- label: "Send Numbers2"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
- name: "keyCode"
value: 0x22

- label: "Send Numbers3"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
- name: "keyCode"
value: 0x23

- label: "Send Numbers4"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
- name: "keyCode"
value: 0x24

- label: "Send Numbers5"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
- name: "keyCode"
value: 0x25

- label: "Send Numbers6"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
- name: "keyCode"
value: 0x26

- label: "Send Numbers7"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
- name: "keyCode"
value: 0x27

- label: "Send Numbers8"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
- name: "keyCode"
value: 0x28

- label: "Send Numbers9"
PICS: PICS_SKIP_SAMPLE_APP
command: "SendKey"
arguments:
values:
Expand Down
26 changes: 20 additions & 6 deletions src/app/tests/suites/certification/Test_TC_MC_3_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,23 @@ tests:
- name: "nodeId"
value: nodeId

- label: "Read CatalogList attribute."
command: "readAttribute"
attribute: "CatalogList"
response:
constraints:
type: list
# Issue 13029
- label:
"TH reads CatalogList attribute from the DUT and where each entry in
the list is a CSA-issued Vendor Id of type unsigned 16 bit integer
ranging between 0-65536 for the catalog"
verification: |
./chip-tool applicationlauncher read catalog-list 1 1
[1651053952.328482][155084:155089] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_050C Attribute 0x0000_0000 DataVersion: 3275104958
[1651053952.328551][155084:155089] CHIP:TOO: CatalogList: 2 entries
[1651053952.328589][155084:155089] CHIP:TOO: [1]: 123
[1651053952.328620][155084:155089] CHIP:TOO: [2]: 456
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
Loading

0 comments on commit f18387d

Please sign in to comment.