Skip to content

Commit

Permalink
Modified scripts jul 19 (#20931)
Browse files Browse the repository at this point in the history
* Added range checks for scripts
TC-APBSC-9.1
TC-CC-2.1
TC-DGETH-2.1
TC-DGGEN-2.1
TC-DGSW-2.2
TC-DGTHREAD-2.1
TC-DGTHREAD-2.2
TC-DGTHREAD-2.3
TC-DGWIFI-2.1
TC-FLW-2.1
TC-I-2.1
TC-I-2.3
TC-KEYPADINPUT-3.2
TC-KEYPADINPUT-3.3
TC-LVL-2.1
TC-LVL-2.2
TC-LVL-3.1
TC-LVL-4.1
TC-LVL-5.1
TC-LVL-6.1
TC-OCC-2.1
TC-OCC-3.1
TC-PS-2.1
TC-SWTCH-2.1
TC-TGTNAC-8.1
TC-TMP-2.1
TC-TMP-2.2
TC-TSTAT-2.1
TC-TSTAT-2.2

* Added auto generated files
  • Loading branch information
manjunath-grl authored and pull[bot] committed Feb 9, 2024
1 parent 35af909 commit 5630790
Show file tree
Hide file tree
Showing 32 changed files with 1,132 additions and 154 deletions.
2 changes: 2 additions & 0 deletions src/app/tests/suites/certification/Test_TC_APBSC_9_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "Reads the Application attribute"
PICS: APBSC.S.A0004
Expand Down
36 changes: 36 additions & 0 deletions src/app/tests/suites/certification/Test_TC_CC_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads CurrentSaturation attribute from DUT"
PICS: CC.S.A0001 && CC.S.F00
Expand All @@ -43,6 +45,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads RemainingTime attribute from DUT"
PICS: CC.S.A0002
Expand All @@ -51,6 +55,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads CurrentX attribute from DUT"
PICS: CC.S.A0003 && CC.S.F03
Expand Down Expand Up @@ -128,6 +134,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads EnhancedColorMode attribute from DUT"
PICS: CC.S.F02 && CC.S.A4001
Expand All @@ -146,6 +154,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads ColorLoopDirection attribute from DUT"
PICS: CC.S.A4003 && CC.S.F02
Expand All @@ -154,6 +164,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads ColorLoopTime attribute from DUT"
PICS: CC.S.A4004 && CC.S.F02
Expand All @@ -162,6 +174,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads ColorLoopStartEnhancedHue attribute from DUT"
PICS: CC.S.A4005 && CC.S.F02
Expand All @@ -170,6 +184,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads ColorLoopStoredEnhancedHue attribute from DUT"
PICS: CC.S.A4006 && CC.S.F02
Expand All @@ -178,6 +194,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads FeatureMap attribute from DUT"
command: "readAttribute"
Expand Down Expand Up @@ -274,6 +292,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads Primary2X attribute from DUT"
PICS: CC.S.A0015
Expand Down Expand Up @@ -302,6 +322,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads Primary3X attribute from DUT"
PICS: CC.S.A0019
Expand Down Expand Up @@ -330,6 +352,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

#Additional Defined Primaries Information Attribute Set
- label: "TH reads Primary4X attribute from DUT"
Expand Down Expand Up @@ -359,6 +383,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads Primary5X attribute from DUT"
PICS: CC.S.A0024
Expand Down Expand Up @@ -387,6 +413,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads Primary6X attribute from DUT"
PICS: CC.S.A0028
Expand Down Expand Up @@ -415,6 +443,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

#Defined Color Points Settings Attribute Set
- label: "TH reads WhitePointX attribute from DUT"
Expand Down Expand Up @@ -464,6 +494,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads ColorPointGX attribute from DUT"
PICS: CC.S.A0036
Expand Down Expand Up @@ -492,6 +524,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads ColorPointBX attribute from DUT"
PICS: CC.S.A003a
Expand Down Expand Up @@ -520,3 +554,5 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255
4 changes: 4 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "Reboot target device"
PICS: PICS_SDK_CI_ONLY
Expand Down Expand Up @@ -106,6 +108,8 @@ tests:
response:
constraints:
type: uint32
minValue: 0x0
maxValue: 0xFFFFFFFE

- label: "Reboot target device"
PICS: PICS_SDK_CI_ONLY
Expand Down
8 changes: 8 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DGSW_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ config:
endpoint: 0

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label:
"Reads a list of SoftwareFault struct from DUT and data type in each
field of the struct must match the value listed in spec"
Expand Down
28 changes: 28 additions & 0 deletions src/app/tests/suites/certification/Test_TC_DGTHREAD_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads RoutingRole attribute value from DUT"
PICS: DGTHREAD.S.A0001
Expand Down Expand Up @@ -89,6 +91,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label:
"Read PanId attribute from DUT and verify response value, If value is
Expand Down Expand Up @@ -276,6 +280,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads DataVersion attribute value from DUT"
PICS: DGTHREAD.S.A000b
Expand All @@ -284,6 +290,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads StableDataVersion attribute value from DUT"
PICS: DGTHREAD.S.A000c
Expand All @@ -292,6 +300,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads LeaderRouterId attribute value from DUT"
PICS: DGTHREAD.S.A000d
Expand All @@ -300,6 +310,8 @@ tests:
response:
constraints:
type: uint8
minValue: 0
maxValue: 255

- label: "TH reads DetachedRoleCount attribute value from DUT"
PICS: DGTHREAD.S.A000e
Expand All @@ -308,6 +320,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads ChildRoleCount attribute value from DUT"
PICS: DGTHREAD.S.A001f
Expand All @@ -316,6 +330,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads RouterRoleCount attribute value from DUT"
PICS: DGTHREAD.S.A0010
Expand All @@ -324,6 +340,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads LeaderRoleCount attribute value from DUT"
PICS: DGTHREAD.S.A0011
Expand All @@ -332,6 +350,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads AttachAttemptCount attribute value from DUT"
PICS: DGTHREAD.S.A0012
Expand All @@ -340,6 +360,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads PartitionIdChangeCount attribute value from DUT"
PICS: DGTHREAD.S.A0013
Expand All @@ -348,6 +370,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label:
"TH reads BetterPartitionAttachAttemptCount attribute value from DUT"
Expand All @@ -357,6 +381,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads ParentChangeCount attribute value from DUT"
PICS: DGTHREAD.S.A0015
Expand All @@ -365,6 +391,8 @@ tests:
response:
constraints:
type: uint16
minValue: 0
maxValue: 65535

- label: "TH reads ActiveTimestamp attribute value from DUT"
PICS: DGTHREAD.S.A0038
Expand Down
Loading

0 comments on commit 5630790

Please sign in to comment.