Skip to content

Commit

Permalink
Modified script jul 29 (#21423) (#21497)
Browse files Browse the repository at this point in the history
* Modified scripts
TC-BINFO-2.1
TC-ILL-2.1
TC-LVL-3.1
TC-CC-5.1
TC-PC-2.1
TC-SWTCH-2.1
PICS update
TC-CC-3.*
TC-CC-4.*
TC-CC-5.*
TC-CC-6.*
TC-CC-7.*
TC-CC-9.*
TC-WNCV-3.*
TC-WNCV-4.*

* Added auto generated files

* Removed WNCV tests PICS changes as per jonathan request

* Auto generated files

* Removed SWTCH-2.1 from darwin JS

* Auto generated files

Co-authored-by: manjunath-grl <[email protected]>
  • Loading branch information
woody-apple and manjunath-grl authored Aug 1, 2022
1 parent 59ecf97 commit da5ece0
Show file tree
Hide file tree
Showing 32 changed files with 11,353 additions and 7,442 deletions.
3 changes: 3 additions & 0 deletions examples/darwin-framework-tool/templates/tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ function getTests() {
// TODO: Test_TC_BINFO_2_1 does not work on Darwin for now.
tests.disable('Test_TC_BINFO_2_1');

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

return tests;
}

Expand Down
6 changes: 6 additions & 0 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,12 @@ PICS:
- label: "Does the Device support WindowStatus attribute?"
id: CADMIN.S.A0000

- label: "Does the Device support AdminFabricIndex attribute?"
id: CADMIN.S.A0001

- label: "Does the Device support AdminVendorId attribute?"
id: CADMIN.S.A0002

#client
- label: "Does the Device support Enhanced Commissioning Method (ECM)?"
id: CADMIN.C.C00.Tx
Expand Down
9 changes: 9 additions & 0 deletions src/app/tests/suites/certification/Test_TC_BINFO_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,15 @@ tests:
response:
error: UNSUPPORTED_WRITE

- label: "TH reads Reachable from the DUT."
PICS: BINFO.S.A0011
command: "readAttribute"
attribute: "Reachable"
response:
value: true
constraints:
type: boolean

- label: "TH reads UniqueID from the DUT."
PICS: BINFO.S.A0012
command: "readAttribute"
Expand Down
4 changes: 4 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CC_3_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ tests:
value: nodeId

- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"

- label: "Check on/off attribute value is true after on command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 1

Expand Down Expand Up @@ -346,12 +348,14 @@ tests:
value: hueDirectionDown

- label: "Turn off light that we turned on"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
command: "off"

- label: "Check on/off attribute value is false after off command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 0
4 changes: 4 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CC_3_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ tests:
value: nodeId

- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"

- label: "Check on/off attribute value is true after on command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 1

Expand Down Expand Up @@ -292,12 +294,14 @@ tests:
value: CurrentHueValueAfterStopmode

- label: "Turn off light that we turned on"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
command: "off"

- label: "Check on/off attribute value is false after off command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 0
4 changes: 4 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CC_3_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ tests:
value: nodeId

- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"

- label: "Check on/off attribute value is true after on command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 1

Expand Down Expand Up @@ -129,12 +131,14 @@ tests:
maxValue: 249

- label: "Turn off light that we turned on"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
command: "off"

- label: "Check on/off attribute value is false after off command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 0
4 changes: 4 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CC_4_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ tests:
value: nodeId

- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"

- label: "Check on/off attribute value is true after on command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 1

Expand Down Expand Up @@ -94,12 +96,14 @@ tests:
maxValue: 254

- label: "Turn off light that we turned on"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
command: "off"

- label: "Check on/off attribute value is false after off command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 0
4 changes: 4 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CC_4_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ tests:
value: nodeId

- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"

- label: "Check on/off attribute value is true after on command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 1

Expand Down Expand Up @@ -383,12 +385,14 @@ tests:
value: CurrentSaturationStep5d

- label: "Turn off light that we turned on"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
command: "off"

- label: "Check on/off attribute value is false after off command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 0
4 changes: 4 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CC_4_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ tests:
value: nodeId

- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"

- label: "Check on/off attribute value is true after on command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 1

Expand Down Expand Up @@ -129,12 +131,14 @@ tests:
maxValue: 254

- label: "Turn off light that we turned on"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
command: "off"

- label: "Check on/off attribute value is false after off command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 0
4 changes: 4 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CC_4_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ tests:
value: nodeId

- label: "Turn on light for color control tests"
PICS: OO.S.C01.Rsp
cluster: "On/Off"
command: "on"

- label: "Check on/off attribute value is true after on command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 1

Expand Down Expand Up @@ -121,12 +123,14 @@ tests:
maxValue: 254

- label: "Turn off light that we turned on"
PICS: OO.S.C00.Rsp
cluster: "On/Off"
command: "off"

- label: "Check on/off attribute value is false after off command"
cluster: "On/Off"
command: "readAttribute"
attribute: "OnOff"
PICS: OO.S.A0000
response:
value: 0
Loading

0 comments on commit da5ece0

Please sign in to comment.