diff --git a/src/app/tests/suites/certification/Test_TC_APBSC_9_1.yaml b/src/app/tests/suites/certification/Test_TC_APBSC_9_1.yaml index 20f7df8130e716..fa7f138e3a9283 100644 --- a/src/app/tests/suites/certification/Test_TC_APBSC_9_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_APBSC_9_1.yaml @@ -62,6 +62,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads the Application attribute" PICS: APBSC.S.A0004 diff --git a/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml index 91da2d93193ab1..88db602018f901 100644 --- a/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_CC_2_1.yaml @@ -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 @@ -43,6 +45,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "TH reads RemainingTime attribute from DUT" PICS: CC.S.A0002 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -178,6 +194,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "TH reads FeatureMap attribute from DUT" command: "readAttribute" @@ -274,6 +292,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "TH reads Primary2X attribute from DUT" PICS: CC.S.A0015 @@ -302,6 +322,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "TH reads Primary3X attribute from DUT" PICS: CC.S.A0019 @@ -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" @@ -359,6 +383,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "TH reads Primary5X attribute from DUT" PICS: CC.S.A0024 @@ -387,6 +413,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "TH reads Primary6X attribute from DUT" PICS: CC.S.A0028 @@ -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" @@ -464,6 +494,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "TH reads ColorPointGX attribute from DUT" PICS: CC.S.A0036 @@ -492,6 +524,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "TH reads ColorPointBX attribute from DUT" PICS: CC.S.A003a @@ -520,3 +554,5 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 diff --git a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml index 7ad5b29dc96e7f..968cccaffe22ca 100644 --- a/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml @@ -44,6 +44,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reboot target device" PICS: PICS_SDK_CI_ONLY @@ -106,6 +108,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFE - label: "Reboot target device" PICS: PICS_SDK_CI_ONLY diff --git a/src/app/tests/suites/certification/Test_TC_DGSW_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DGSW_2_2.yaml index 17778fca156a42..243aad00e637fc 100644 --- a/src/app/tests/suites/certification/Test_TC_DGSW_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGSW_2_2.yaml @@ -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" diff --git a/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_1.yaml index 6a8459a0847924..3f8eb5a01cb48c 100644 --- a/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_1.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -348,6 +370,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "TH reads BetterPartitionAttachAttemptCount attribute value from DUT" @@ -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 @@ -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 diff --git a/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_2.yaml b/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_2.yaml index 2a268d21486c61..6e2836a4a23a69 100644 --- a/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_2.yaml @@ -35,6 +35,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxUnicastCount attribute value from DUT" PICS: DGTHREAD.S.A0017 @@ -43,6 +45,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxBroadcastCount attribute value from DUT" PICS: DGTHREAD.S.A0018 @@ -51,6 +55,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxAckRequestedCount attribute value from DUT" PICS: DGTHREAD.S.A0019 @@ -59,6 +65,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxAckedCount attribute value from DUT" PICS: DGTHREAD.S.A001a @@ -67,6 +75,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxNoAckRequestedCount attribute value from DUT" PICS: DGTHREAD.S.A001b @@ -75,6 +85,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxDataCount attribute value from DUT" PICS: DGTHREAD.S.A001c @@ -83,6 +95,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxDataPollCount attribute value from DUT" PICS: DGTHREAD.S.A001d @@ -91,6 +105,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxBeaconCount attribute value from DUT" PICS: DGTHREAD.S.A001e @@ -99,6 +115,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxBeaconRequestCount attribute value from DUT" PICS: DGTHREAD.S.A002f @@ -107,6 +125,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxOtherCount attribute value from DUT" PICS: DGTHREAD.S.A0020 @@ -115,6 +135,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxRetryCount attribute value from DUT" PICS: DGTHREAD.S.A0021 @@ -123,6 +145,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxDirectMaxRetryExpiryCount attribute value from DUT" PICS: DGTHREAD.S.A0022 @@ -131,6 +155,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxIndirectMaxRetryExpiryCount attribute value from DUT" PICS: DGTHREAD.S.A0023 @@ -139,6 +165,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxErrCcaCount attribute value from DUT" PICS: DGTHREAD.S.A0024 @@ -147,6 +175,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxErrAbortCount attribute value from DUT" PICS: DGTHREAD.S.A0025 @@ -155,6 +185,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads TxErrBusyChannelCount attribute value from DUT" PICS: DGTHREAD.S.A0026 @@ -163,3 +195,5 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF diff --git a/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_3.yaml b/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_3.yaml index ca377d9fd6885d..670d8413c70862 100644 --- a/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGTHREAD_2_3.yaml @@ -35,6 +35,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxUnicastCount attribute value from DUT" PICS: DGTHREAD.S.A0028 @@ -43,6 +45,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxBroadcastCount attribute value from DUT" PICS: DGTHREAD.S.A0029 @@ -51,6 +55,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxDataCount attribute value from DUT" PICS: DGTHREAD.S.A002a @@ -59,6 +65,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxDataPollCount attribute value from DUT" PICS: DGTHREAD.S.A002b @@ -67,6 +75,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxBeaconCount attribute value from DUT" PICS: DGTHREAD.S.A002c @@ -75,6 +85,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxBeaconRequestCount attribute value from DUT" PICS: DGTHREAD.S.A002d @@ -83,6 +95,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxOtherCount attribute value from DUT" PICS: DGTHREAD.S.A002e @@ -91,6 +105,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxAddressFilteredCount attribute value from DUT" PICS: DGTHREAD.S.A002f @@ -99,6 +115,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxDestAddrFilteredCount attribute value from DUT" PICS: DGTHREAD.S.A0030 @@ -107,6 +125,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxDuplicatedCount attribute value from DUT" PICS: DGTHREAD.S.A0031 @@ -115,6 +135,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxErrNoFrameCount attribute value from DUT" PICS: DGTHREAD.S.A0032 @@ -123,6 +145,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxErrUnknownNeighborCount attribute value from DUT" PICS: DGTHREAD.S.A0033 @@ -131,6 +155,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF #Issue #18335 - label: @@ -161,6 +187,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxErrFcsCount attribute value from DUT" PICS: DGTHREAD.S.A0036 @@ -169,6 +197,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "TH reads RxErrOtherCount attribute value from DUT" PICS: DGTHREAD.S.A0037 @@ -177,3 +207,5 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF diff --git a/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml index 83a25223f7525d..b395fbb0fc5202 100644 --- a/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_DGWIFI_2_1.yaml @@ -63,6 +63,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads RSSI attribute constraints" PICS: DGWIFI.S.A0004 @@ -81,6 +83,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Reads BeaconRxCount attribute constraints" PICS: DGWIFI.S.A0006 @@ -89,6 +93,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Reads PacketMulticastRxCount attribute constraints" PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0007 @@ -97,6 +103,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Reads PacketMulticastTxCount attribute constraints" PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0008 @@ -105,6 +113,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Reads PacketUnicastRxCount attribute constraints" PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A0009 @@ -113,6 +123,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Reads PacketUnicastTxCount attribute constraints" PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000a @@ -121,6 +133,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Reads CurrentMaxRate attribute constraints" PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.A000b diff --git a/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml b/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml index 1c7db189c2defe..63013e0ee27d8e 100644 --- a/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_FLW_2_1.yaml @@ -35,6 +35,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Read the mandatory attribute: MinMeasuredValue" PICS: FLW.S.A0001 @@ -43,6 +45,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Read the mandatory attribute: MaxMeasuredValue" PICS: FLW.S.A0002 @@ -51,6 +55,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "read the optional attribute: Tolerance" PICS: FLW.S.A0003 diff --git a/src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml b/src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml index b2b97cdbf31f5b..0ad7b2405f308a 100644 --- a/src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml @@ -36,6 +36,8 @@ tests: saveAs: ValueBeforeChange constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "operate on DUT to change the flow significantly" cluster: "LogCommands" @@ -55,4 +57,6 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 notValue: ValueBeforeChange diff --git a/src/app/tests/suites/certification/Test_TC_I_2_1.yaml b/src/app/tests/suites/certification/Test_TC_I_2_1.yaml index 9350a120f56952..d34a86313d7fdf 100644 --- a/src/app/tests/suites/certification/Test_TC_I_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_I_2_1.yaml @@ -34,6 +34,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "TH reads the IdentifyType attribute from the DUT" command: "readAttribute" diff --git a/src/app/tests/suites/certification/Test_TC_I_2_3.yaml b/src/app/tests/suites/certification/Test_TC_I_2_3.yaml index 7fad95095a80c4..211a0c25755ac2 100644 --- a/src/app/tests/suites/certification/Test_TC_I_2_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_I_2_3.yaml @@ -44,7 +44,7 @@ tests: - label: "DUT executes a blink effect" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" @@ -68,7 +68,7 @@ tests: - label: "DUT executes a breathe effect" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" @@ -92,7 +92,7 @@ tests: - label: "DUT executes an okay effect" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" @@ -116,7 +116,7 @@ tests: - label: "DUT executes a channel change effect" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" @@ -140,7 +140,7 @@ tests: - label: "DUT executes a breathe effect" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" @@ -164,7 +164,7 @@ tests: - label: "DUT stops the breathe effect after the current effect sequence" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" @@ -188,7 +188,7 @@ tests: - label: "DUT executes a breathe effect" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" @@ -212,7 +212,7 @@ tests: - label: "DUT stops the breathe effect as soon as possible." cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" @@ -236,7 +236,7 @@ tests: - label: "Check DUT executes a blink effect." cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" @@ -261,7 +261,7 @@ tests: "DUT stops any effect that may be still running as soon as possible" cluster: "LogCommands" command: "UserPrompt" - PICS: PICS_USER_PROMPT + PICS: PICS_USER_PROMPT && I.S.C40.Rsp arguments: values: - name: "message" diff --git a/src/app/tests/suites/certification/Test_TC_KEYPADINPUT_3_2.yaml b/src/app/tests/suites/certification/Test_TC_KEYPADINPUT_3_2.yaml index b4d0518c5a4bab..34634381342c21 100644 --- a/src/app/tests/suites/certification/Test_TC_KEYPADINPUT_3_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_KEYPADINPUT_3_2.yaml @@ -35,6 +35,10 @@ tests: values: - name: "keyCode" value: 0x0A + response: + values: + - name: "status" + value: 0 - label: "TH sends CEC Home Keys(0x09) to DUT" PICS: KEYPADINPUT.S.LK @@ -43,3 +47,7 @@ tests: values: - name: "keyCode" value: 0x09 + response: + values: + - name: "status" + value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_KEYPADINPUT_3_3.yaml b/src/app/tests/suites/certification/Test_TC_KEYPADINPUT_3_3.yaml index a6cfbf7d663510..68bb952d00732f 100644 --- a/src/app/tests/suites/certification/Test_TC_KEYPADINPUT_3_3.yaml +++ b/src/app/tests/suites/certification/Test_TC_KEYPADINPUT_3_3.yaml @@ -35,6 +35,10 @@ tests: values: - name: "keyCode" value: 0x21 + response: + values: + - name: "status" + value: 0 - label: "Send Numbers2" PICS: KEYPADINPUT.S.NK @@ -43,6 +47,10 @@ tests: values: - name: "keyCode" value: 0x22 + response: + values: + - name: "status" + value: 0 - label: "Send Numbers3" PICS: KEYPADINPUT.S.NK @@ -51,6 +59,10 @@ tests: values: - name: "keyCode" value: 0x23 + response: + values: + - name: "status" + value: 0 - label: "Send Numbers4" PICS: KEYPADINPUT.S.NK @@ -59,6 +71,10 @@ tests: values: - name: "keyCode" value: 0x24 + response: + values: + - name: "status" + value: 0 - label: "Send Numbers5" PICS: KEYPADINPUT.S.NK @@ -67,6 +83,10 @@ tests: values: - name: "keyCode" value: 0x25 + response: + values: + - name: "status" + value: 0 - label: "Send Numbers6" PICS: KEYPADINPUT.S.NK @@ -75,6 +95,10 @@ tests: values: - name: "keyCode" value: 0x26 + response: + values: + - name: "status" + value: 0 - label: "Send Numbers7" PICS: KEYPADINPUT.S.NK @@ -83,6 +107,10 @@ tests: values: - name: "keyCode" value: 0x27 + response: + values: + - name: "status" + value: 0 - label: "Send Numbers8" PICS: KEYPADINPUT.S.NK @@ -91,6 +119,10 @@ tests: values: - name: "keyCode" value: 0x28 + response: + values: + - name: "status" + value: 0 - label: "Send Numbers9" PICS: KEYPADINPUT.S.NK @@ -99,3 +131,7 @@ tests: values: - name: "keyCode" value: 0x29 + response: + values: + - name: "status" + value: 0 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml index 36de61c59972af..b6f4088fd15da6 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml @@ -67,6 +67,8 @@ tests: saveAs: CurrentLevelValue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Reads the RemainingTime attribute" PICS: LVL.S.A0001 @@ -75,6 +77,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads the MinLevel attribute" PICS: LVL.S.A0002 && LVL.S.F01 @@ -95,7 +99,7 @@ tests: constraints: type: uint8 minValue: 0 - maxValue: 1 + maxValue: 255 - label: "Reads the MaxLevel attribute" PICS: LVL.S.A0003 && LVL.S.F01 @@ -146,6 +150,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads the MinFrequency attribute" PICS: LVL.S.A0005 @@ -155,6 +161,8 @@ tests: saveAs: MinFrequencyValue constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads the MaxFrequency attribute" PICS: LVL.S.A0006 @@ -164,6 +172,8 @@ tests: saveAs: MaxFrequencyValue constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Step 7b & 7C Reads the CurrentFrequency attribute" PICS: LVL.S.A0004 && LVL.S.A0005 && LVL.S.A0006 @@ -182,6 +192,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads the OnLevel attribute " PICS: LVL.S.F01 && LVL.S.A0011 @@ -210,6 +222,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads the OffTransitionTime attribute " PICS: LVL.S.A0013 @@ -218,6 +232,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads the DefaultMoveRate attribute " PICS: LVL.S.A0014 @@ -226,6 +242,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Reads the Options attribute " PICS: LVL.S.A000f @@ -243,3 +261,5 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml b/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml index 681e8be2b7ba6c..791618634c6cbe 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_2_2.yaml @@ -54,6 +54,8 @@ tests: saveAs: OnOffTransitionTimeValue constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "writes the OnOffTransitionTime attribute on the DUT" PICS: LVL.S.A0010 @@ -80,6 +82,8 @@ tests: saveAs: OnLevelValue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "writes the OnLevel attribute on the DUT" PICS: LVL.S.A0011 @@ -106,6 +110,8 @@ tests: saveAs: OnTransitionTimeValue constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Writes the OnTransitionTime attribute on the DUT" PICS: LVL.S.A0012 @@ -132,6 +138,8 @@ tests: saveAs: OffTransitionTimeValue constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Writes the OffTransitionTime attribute on the DUT" PICS: LVL.S.A0013 @@ -158,6 +166,8 @@ tests: saveAs: DefaultMoveRatevalue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Writes the DefaultMoveRate attribute on the DUT" PICS: LVL.S.A0014 @@ -184,6 +194,8 @@ tests: saveAs: StartUpCurrentLevelValue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "writes the StartUpCurrentLevel attribute on the DUT" PICS: LVL.S.A4000 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml index b53201bb1eb4d1..df5043401010d4 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_3_1.yaml @@ -48,6 +48,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Reads the MaxLevel attribute" PICS: LVL.S.A0003 @@ -56,6 +58,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "sends a MoveToLevelWithOnOff command" PICS: LVL.S.C00.Rsp @@ -151,6 +155,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 # Null is not supported here 0xFFFF is considerd as Null - label: "sends a Move to level command" diff --git a/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml index d239e53e6e3f5e..f9dadfe58fbc15 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml @@ -49,6 +49,8 @@ tests: saveAs: MinlevelValue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "sends a MoveToLevelWithOnOff command" PICS: LVL.S.C00.Rsp @@ -72,6 +74,8 @@ tests: saveAs: MaxlevelValue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "sends a Move up command" PICS: LVL.S.C01.Rsp @@ -161,7 +165,7 @@ tests: value: MinlevelValue constraints: minValue: 0 - maxValue: 1 + maxValue: 255 - label: "reads default move rate attribute from DUT" PICS: LVL.S.A0014 @@ -171,6 +175,8 @@ tests: saveAs: DefaultMoveRateValue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "sends a Move up command at default move rate" PICS: LVL.S.C05.Rsp && LVL.S.A0014 diff --git a/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml index 8fd113b81c67cc..abcf91204efe42 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_5_1.yaml @@ -49,6 +49,8 @@ tests: saveAs: MinlevelValue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Sends MoveToLevelWithOnOff command to DUT" PICS: LVL.S.C04.Rsp @@ -73,6 +75,8 @@ tests: saveAs: CurrentlevelValue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Sends step up command to DUT" PICS: LVL.S.C02.Rsp && LVL.S.M.VarRate diff --git a/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml b/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml index 6502c3af9fc350..9058552ff93319 100644 --- a/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml @@ -49,6 +49,8 @@ tests: saveAs: MinlevelValue constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Sends MoveToLevelWithOnOff command to DUT" PICS: LVL.S.C04.Rsp @@ -72,7 +74,7 @@ tests: saveAs: CurrentLevelValue constraints: minValue: 0 - maxValue: 1 + maxValue: 255 - label: "Sends a move up command to DUT" PICS: LVL.S.C01.Rsp diff --git a/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml b/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml index ce4861270de5c3..228b64c7dbbb78 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_2_1.yaml @@ -66,6 +66,8 @@ tests: value: 0 constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads optional attribute constrains: PIRUnoccupiedToOccupiedDelay" PICS: OCC.S.A0011 @@ -75,6 +77,8 @@ tests: value: 0 constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads optional attribute constrains: PIRUnoccupiedToOccupiedThreshold" @@ -96,6 +100,8 @@ tests: value: 0 constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Read attribute: UltrasonicUnoccupiedToOccupiedDelay" PICS: OCC.S.A0021 @@ -105,6 +111,8 @@ tests: value: 0 constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Read attribute: UltrasonicUnoccupiedToOccupiedThreshold" PICS: OCC.S.A0022 @@ -127,6 +135,8 @@ tests: value: 0 constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads optional attribute constrains: @@ -138,6 +148,8 @@ tests: value: 0 constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Reads optional attribute constrains: diff --git a/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml b/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml index 8078b515f5b4d1..648e8d4a7f2422 100644 --- a/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OCC_3_1.yaml @@ -37,13 +37,15 @@ tests: saveAs: OccupancyValue - label: "Operate on DUT to change the occupancy status" - PICS: OCC.M.OccupancyChange cluster: "LogCommands" command: "UserPrompt" + PICS: PICS_USER_PROMPT && OCC.M.OccupancyChange arguments: values: - name: "message" - value: "Operate on DUT to change the occupancy status" + value: "Please enter 'y' for success" + - name: "expectedValue" + value: "y" - label: "Reads back Occupancy attribute from DUT after few seconds" PICS: OCC.S.A0000 diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml index a8189e5a156ab3..2580de9ddd88f8 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_1.yaml @@ -51,6 +51,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "read LT attribute: OffWaitTime" PICS: OO.S.A4002 @@ -59,6 +61,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "read LT attribute: StartUpOnOff" PICS: OO.S.A4003 diff --git a/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml b/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml index f1084882672fe8..8181dba46b76da 100644 --- a/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_OO_2_2.yaml @@ -134,7 +134,7 @@ tests: # Skipped this step because the above test need manual input - label: "Check on/off attribute value is true after on command" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: @@ -153,7 +153,7 @@ tests: # Skipped the step because the above test need manual input - label: "Check on/off attribute value is false after off command" - PICS: PICS_SKIP_SAMPLE_APP + PICS: PICS_SKIP_SAMPLE_APP && OO.S.A0000 command: "readAttribute" attribute: "OnOff" response: diff --git a/src/app/tests/suites/certification/Test_TC_PS_2_1.yaml b/src/app/tests/suites/certification/Test_TC_PS_2_1.yaml index d407c33dd02441..ba8ecaa297abb9 100644 --- a/src/app/tests/suites/certification/Test_TC_PS_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_PS_2_1.yaml @@ -45,6 +45,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Test Harness Client reads Description attribute from Server DUT" PICS: PS.S.A0002 @@ -63,6 +65,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Test Harness Client reads WiredAssessedInputFrequency attribute from @@ -73,6 +77,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Test Harness Client reads WiredCurrentType attribute from Server DUT" @@ -94,6 +100,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Test Harness Client reads WiredNominalVoltage from Server DUT" PICS: PICS_SKIP_SAMPLE_APP && PS.S.A0007 @@ -102,6 +110,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Test Harness Client reads WiredMaximumCurrent from Server DUT" PICS: PICS_SKIP_SAMPLE_APP && PS.S.A0008 @@ -110,6 +120,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Test Harness Client reads WiredPresent from Server DUT" PICS: PICS_SKIP_SAMPLE_APP && PS.S.A0009 @@ -135,6 +147,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Test Harness Client reads BatPercentRemaining from Server DUT" PICS: PICS_SKIP_SAMPLE_APP && PS.S.A000c @@ -153,6 +167,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Test Harness Client reads BatChargeLevel from Server DUT" PICS: PS.S.A000e @@ -254,6 +270,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Test Harness Client reads BatQuantity from Server DUT" PICS: PICS_SKIP_SAMPLE_APP && PS.S.A0019 @@ -262,6 +280,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Test Harness Client reads BatChargeState from Server DUT" PICS: PICS_SKIP_SAMPLE_APP && PS.S.A001a @@ -280,6 +300,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Test Harness Client reads BatFunctionalWhileCharging from Server DUT" @@ -297,6 +319,8 @@ tests: response: constraints: type: uint32 + minValue: 0x0 + maxValue: 0xFFFFFFFF - label: "Test Harness Client reads ActiveBatChargeFaults from Server DUT" PICS: PICS_SKIP_SAMPLE_APP && PS.S.A001e diff --git a/src/app/tests/suites/certification/Test_TC_SWTCH_2_1.yaml b/src/app/tests/suites/certification/Test_TC_SWTCH_2_1.yaml index ed0384b4bffa88..5f0653034876bf 100644 --- a/src/app/tests/suites/certification/Test_TC_SWTCH_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_SWTCH_2_1.yaml @@ -45,6 +45,7 @@ tests: constraints: type: uint8 minValue: 0 + maxValue: 255 - label: "Read MultiPressMax attribute" PICS: SWTCH.S.F04 @@ -55,3 +56,4 @@ tests: constraints: type: uint8 minValue: 2 + maxValue: 255 diff --git a/src/app/tests/suites/certification/Test_TC_TGTNAV_8_1.yaml b/src/app/tests/suites/certification/Test_TC_TGTNAV_8_1.yaml index 3b5c550a1a67fe..a58b42e1735c7d 100644 --- a/src/app/tests/suites/certification/Test_TC_TGTNAV_8_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TGTNAV_8_1.yaml @@ -41,6 +41,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Reads the TargetList attribute" PICS: TGTNAV.S.A0000 diff --git a/src/app/tests/suites/certification/Test_TC_TMP_2_1.yaml b/src/app/tests/suites/certification/Test_TC_TMP_2_1.yaml index b7f6cccbb72407..4b0018e94e38df 100644 --- a/src/app/tests/suites/certification/Test_TC_TMP_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TMP_2_1.yaml @@ -35,6 +35,8 @@ tests: response: constraints: type: int16 + minValue: -27315 + maxValue: 32767 - label: "read the mandatory attribute: MinMeasuredValue" PICS: TMP.S.A0001 @@ -44,7 +46,7 @@ tests: constraints: type: int16 minValue: -27315 - maxValue: 32766 + maxValue: 32767 - label: "read the mandatory attribute: MaxMeasuredValue" PICS: TMP.S.A0002 @@ -58,7 +60,6 @@ tests: - label: "read the optional attribute: Tolerance" PICS: TMP.S.A0003 - optional: true command: "readAttribute" attribute: "Tolerance" response: diff --git a/src/app/tests/suites/certification/Test_TC_TMP_2_2.yaml b/src/app/tests/suites/certification/Test_TC_TMP_2_2.yaml index 63f75f05f0dc4e..c0ee0370643242 100644 --- a/src/app/tests/suites/certification/Test_TC_TMP_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_TMP_2_2.yaml @@ -56,6 +56,8 @@ tests: saveAs: valueBeforeChange constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Operate on device to change the temperature significantly" cluster: "LogCommands" @@ -75,4 +77,6 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 notValue: valueBeforeChange diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml index 52a27e40c3a941..31f03c229dd4b6 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml @@ -35,6 +35,8 @@ tests: response: constraints: type: int16 + minValue: -27315 + maxValue: 32767 - label: "Read OutdoorTemperature attribute from the DUT" PICS: TSTAT.S.A0001 @@ -43,6 +45,8 @@ tests: response: constraints: type: int16 + minValue: -27315 + maxValue: 32767 - label: "Read Occupancy attribute from the DUT" PICS: TSTAT.S.A0002 @@ -61,8 +65,8 @@ tests: response: constraints: type: int16 - minValue: 700 - maxValue: 3000 + minValue: -27315 + maxValue: 32767 - label: "Reads mandatory attributes from DUT: AbsMaxHeatSetpointLimit" PICS: TSTAT.S.A0004 @@ -71,8 +75,8 @@ tests: response: constraints: type: int16 - minValue: 700 - maxValue: 3000 + minValue: -27315 + maxValue: 32767 - label: "Reads optional attributes from DUT: AbsMinCoolSetpointLimit" PICS: TSTAT.S.A0005 @@ -81,8 +85,8 @@ tests: response: constraints: type: int16 - minValue: 1600 - maxValue: 3200 + minValue: -27315 + maxValue: 32767 - label: "Reads optional attributes from DUT: AbsMaxCoolSetpointLimit" PICS: TSTAT.S.A0006 @@ -91,8 +95,8 @@ tests: response: constraints: type: int16 - minValue: 1600 - maxValue: 3200 + minValue: -27315 + maxValue: 32767 - label: "Read PICoolingDemand attribute from the DUT" PICS: TSTAT.S.A0007 @@ -141,8 +145,8 @@ tests: response: constraints: type: int16 - minValue: 1600 - maxValue: 2600 + minValue: -27315 + maxValue: 32767 - label: "Reads mandatory attributes from DUT: OccupiedHeatingSetpoint" PICS: TSTAT.S.A0012 @@ -151,8 +155,8 @@ tests: response: constraints: type: int16 - minValue: 700 - maxValue: 2600 + minValue: -27315 + maxValue: 32767 - label: "Read UnoccupiedCoolingSetpoint attribute from the DUT" PICS: TSTAT.S.A0013 @@ -161,6 +165,8 @@ tests: response: constraints: type: int16 + minValue: -27315 + maxValue: 32767 - label: "Read UnoccupiedHeatingSetpoint attribute from the DUT" PICS: TSTAT.S.A0014 @@ -169,6 +175,8 @@ tests: response: constraints: type: int16 + minValue: -27315 + maxValue: 32767 - label: "Reads mandatory attributes from DUT: MinHeatSetpointLimit" PICS: TSTAT.S.A0015 @@ -177,6 +185,8 @@ tests: response: constraints: type: int16 + minValue: -27315 + maxValue: 32767 - label: "Reads mandatory attributes from DUT: MaxHeatSetpointLimit" PICS: TSTAT.S.A0016 @@ -185,8 +195,8 @@ tests: response: constraints: type: int16 - minValue: 700 - maxValue: 3000 + minValue: -27315 + maxValue: 32767 - label: "Reads optional attributes from DUT: MinCoolSetpointLimit" PICS: TSTAT.S.A0017 @@ -195,8 +205,8 @@ tests: response: constraints: type: int16 - minValue: 1600 - maxValue: 3200 + minValue: -27315 + maxValue: 32767 - label: "Reads optional attributes from DUT: MaxCoolSetpointLimit" PICS: TSTAT.S.A0018 @@ -205,8 +215,8 @@ tests: response: constraints: type: int16 - minValue: 1600 - maxValue: 3200 + minValue: -27315 + maxValue: 32767 - label: "Reads optional attributes from DUT: MinSetpointDeadBand" PICS: TSTAT.S.A0019 @@ -321,6 +331,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Reads optional attributes from DUT: NumberOfDailyTransitions" PICS: TSTAT.S.A0022 @@ -329,6 +341,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Read TemperatureSetpointHold attribute from the DUT" PICS: TSTAT.S.A0023 @@ -387,6 +401,8 @@ tests: response: constraints: type: int16 + minValue: -27315 + maxValue: 32767 - label: "Read SetpointChangeSourceTimestamp attribute from the DUT" PICS: TSTAT.S.A0032 @@ -403,6 +419,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Read OccupiedSetbackMin attribute from the DUT" PICS: TSTAT.S.A0035 @@ -411,6 +429,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Read OccupiedSetbackMax attribute from the DUT" PICS: TSTAT.S.A0036 @@ -419,6 +439,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Read UnoccupiedSetback attribute from the DUT" PICS: TSTAT.S.A0037 @@ -427,6 +449,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Read UnoccupiedSetbackMin attribute from the DUT" PICS: TSTAT.S.A0038 @@ -435,6 +459,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Read UnoccupiedSetbackMax attribute from the DUT" PICS: TSTAT.S.A0039 @@ -443,6 +469,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Read EmergencyHeatDelta attribute from the DUT" PICS: TSTAT.S.A003a @@ -451,6 +479,8 @@ tests: response: constraints: type: uint8 + minValue: 0 + maxValue: 255 - label: "Read ACType attribute from the DUT" PICS: TSTAT.S.A0040 @@ -469,6 +499,8 @@ tests: response: constraints: type: uint16 + minValue: 0 + maxValue: 65535 - label: "Read ACRefrigerantType attribute from the DUT" PICS: TSTAT.S.A0042 @@ -515,6 +547,8 @@ tests: response: constraints: type: int16 + minValue: -27315 + maxValue: 32767 - label: "Read ACCapacityFormat attribute from the DUT" PICS: TSTAT.S.A0047 diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 444b1dfab5baea..ef52fc9651fd0e 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -2634,6 +2634,8 @@ class Test_TC_CC_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 2: @@ -2642,6 +2644,8 @@ class Test_TC_CC_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 3: @@ -2650,6 +2654,8 @@ class Test_TC_CC_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 4: @@ -2727,6 +2733,8 @@ class Test_TC_CC_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 12: @@ -2745,6 +2753,8 @@ class Test_TC_CC_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 14: @@ -2753,6 +2763,8 @@ class Test_TC_CC_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 15: @@ -2761,6 +2773,8 @@ class Test_TC_CC_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 16: @@ -2769,6 +2783,8 @@ class Test_TC_CC_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 17: @@ -2777,6 +2793,8 @@ class Test_TC_CC_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 18: @@ -2874,6 +2892,8 @@ class Test_TC_CC_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 28: @@ -2902,6 +2922,8 @@ class Test_TC_CC_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 31: @@ -2930,6 +2952,8 @@ class Test_TC_CC_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 34: @@ -2958,6 +2982,8 @@ class Test_TC_CC_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 37: @@ -2986,6 +3012,8 @@ class Test_TC_CC_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 40: @@ -3014,6 +3042,8 @@ class Test_TC_CC_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 43: @@ -3062,6 +3092,8 @@ class Test_TC_CC_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 48: @@ -3090,6 +3122,8 @@ class Test_TC_CC_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 51: @@ -3118,6 +3152,8 @@ class Test_TC_CC_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; default: @@ -11780,6 +11816,8 @@ class Test_TC_FLW_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 2: @@ -11788,6 +11826,8 @@ class Test_TC_FLW_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 3: @@ -11796,6 +11836,8 @@ class Test_TC_FLW_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 4: @@ -12392,6 +12434,8 @@ class Test_TC_DGGEN_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 3: @@ -12428,6 +12472,8 @@ class Test_TC_DGGEN_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967294UL)); } break; case 10: @@ -12895,6 +12941,8 @@ class Test_TC_I_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 2: @@ -13310,7 +13358,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 2: { LogStep(2, "DUT executes a blink effect"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -13334,7 +13382,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 4: { LogStep(4, "DUT executes a breathe effect"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -13358,7 +13406,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 6: { LogStep(6, "DUT executes an okay effect"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -13382,7 +13430,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 8: { LogStep(8, "DUT executes a channel change effect"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -13406,7 +13454,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 10: { LogStep(10, "DUT executes a breathe effect"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -13430,7 +13478,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 12: { LogStep(12, "DUT stops the breathe effect after the current effect sequence"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -13454,7 +13502,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 14: { LogStep(14, "DUT executes a breathe effect"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -13478,7 +13526,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 16: { LogStep(16, "DUT stops the breathe effect as soon as possible."); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -13502,7 +13550,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 18: { LogStep(18, "Check DUT executes a blink effect."); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -13526,7 +13574,7 @@ class Test_TC_I_2_3Suite : public TestCommand } case 20: { LogStep(20, "DUT stops any effect that may be still running as soon as possible"); - VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); @@ -14263,6 +14311,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); CurrentLevelValue = value; } break; @@ -14272,6 +14322,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 6: @@ -14291,7 +14343,7 @@ class Test_TC_LVL_2_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 1U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); MinLevelValue1 = value; } break; @@ -14343,6 +14395,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 13: @@ -14351,6 +14405,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); MinFrequencyValue = value; } break; @@ -14360,6 +14416,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); MaxFrequencyValue = value; } break; @@ -14379,6 +14437,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 17: @@ -14407,6 +14467,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 20: @@ -14415,6 +14477,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 21: @@ -14423,6 +14487,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 22: @@ -14440,6 +14506,8 @@ class Test_TC_LVL_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; default: @@ -14682,6 +14750,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); OnOffTransitionTimeValue = value; } break; @@ -14706,6 +14776,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); OnLevelValue = value; } break; @@ -14730,6 +14802,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); OnTransitionTimeValue = value; } break; @@ -14754,6 +14828,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); OffTransitionTimeValue = value; } break; @@ -14778,6 +14854,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); DefaultMoveRatevalue = value; } break; @@ -14802,6 +14880,8 @@ class Test_TC_LVL_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); StartUpCurrentLevelValue = value; } break; @@ -15048,6 +15128,8 @@ class Test_TC_LVL_3_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 4: @@ -15056,6 +15138,8 @@ class Test_TC_LVL_3_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 5: @@ -15109,6 +15193,8 @@ class Test_TC_LVL_3_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 15: @@ -15406,6 +15492,8 @@ class Test_TC_LVL_4_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); MinlevelValue = value; } break; @@ -15418,6 +15506,8 @@ class Test_TC_LVL_4_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); MaxlevelValue = value; } break; @@ -15458,7 +15548,7 @@ class Test_TC_LVL_4_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValue("currentLevel", value, MinlevelValue)); VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 1U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 14: @@ -15467,6 +15557,8 @@ class Test_TC_LVL_4_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); DefaultMoveRateValue = value; } break; @@ -15774,6 +15866,8 @@ class Test_TC_LVL_5_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); MinlevelValue = value; } break; @@ -15787,6 +15881,8 @@ class Test_TC_LVL_5_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValue("currentLevel", value, MinlevelValue)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); CurrentlevelValue = value; } break; @@ -16054,6 +16150,8 @@ class Test_TC_LVL_6_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); MinlevelValue = value; } break; @@ -16066,7 +16164,7 @@ class Test_TC_LVL_6_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 1U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); CurrentLevelValue = value; } break; @@ -18717,6 +18815,7 @@ class Test_TC_KEYPADINPUT_3_2Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; case 2: @@ -18724,6 +18823,7 @@ class Test_TC_KEYPADINPUT_3_2Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; default: @@ -18821,6 +18921,7 @@ class Test_TC_KEYPADINPUT_3_3Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; case 2: @@ -18828,6 +18929,7 @@ class Test_TC_KEYPADINPUT_3_3Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; case 3: @@ -18835,6 +18937,7 @@ class Test_TC_KEYPADINPUT_3_3Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; case 4: @@ -18842,6 +18945,7 @@ class Test_TC_KEYPADINPUT_3_3Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; case 5: @@ -18849,6 +18953,7 @@ class Test_TC_KEYPADINPUT_3_3Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; case 6: @@ -18856,6 +18961,7 @@ class Test_TC_KEYPADINPUT_3_3Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; case 7: @@ -18863,6 +18969,7 @@ class Test_TC_KEYPADINPUT_3_3Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; case 8: @@ -18870,6 +18977,7 @@ class Test_TC_KEYPADINPUT_3_3Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; case 9: @@ -18877,6 +18985,7 @@ class Test_TC_KEYPADINPUT_3_3Suite : public TestCommand { chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); + VerifyOrReturn(CheckValue("status", value.status, 0U)); } break; default: @@ -21705,6 +21814,8 @@ class Test_TC_TGTNAV_8_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 2: @@ -21859,6 +21970,8 @@ class Test_TC_APBSC_9_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 5: @@ -22779,6 +22892,8 @@ class Test_TC_OCC_2_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValue("pirOccupiedToUnoccupiedDelay", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 5: @@ -22788,6 +22903,8 @@ class Test_TC_OCC_2_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValue("pirUnoccupiedToOccupiedDelay", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 6: @@ -22808,6 +22925,8 @@ class Test_TC_OCC_2_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValue("ultrasonicOccupiedToUnoccupiedDelay", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 8: @@ -22817,6 +22936,8 @@ class Test_TC_OCC_2_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValue("ultrasonicUnoccupiedToOccupiedDelay", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 9: @@ -22837,6 +22958,8 @@ class Test_TC_OCC_2_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValue("physicalContactOccupiedToUnoccupiedDelay", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 11: @@ -22846,6 +22969,8 @@ class Test_TC_OCC_2_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckValue("physicalContactUnoccupiedToOccupiedDelay", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 12: @@ -23248,6 +23373,8 @@ class Test_TC_OO_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 4: @@ -23256,6 +23383,8 @@ class Test_TC_OO_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 5: @@ -23628,7 +23757,7 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 18: { LogStep(18, "Check on/off attribute value is true after on command"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 19: { @@ -23643,7 +23772,7 @@ class Test_TC_OO_2_2Suite : public TestCommand } case 20: { LogStep(20, "Check on/off attribute value is false after off command"); - VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A0000"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); return ReadAttribute(kIdentityAlpha, GetEndpoint(1), OnOff::Id, OnOff::Attributes::OnOff::Id, true, chip::NullOptional); } case 21: { @@ -24413,6 +24542,8 @@ class Test_TC_PS_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 3: @@ -24429,6 +24560,8 @@ class Test_TC_PS_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 5: @@ -24437,6 +24570,8 @@ class Test_TC_PS_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 6: @@ -24455,6 +24590,8 @@ class Test_TC_PS_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 8: @@ -24463,6 +24600,8 @@ class Test_TC_PS_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 9: @@ -24471,6 +24610,8 @@ class Test_TC_PS_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 10: @@ -24495,6 +24636,8 @@ class Test_TC_PS_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 13: @@ -24511,6 +24654,8 @@ class Test_TC_PS_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 15: @@ -24610,6 +24755,8 @@ class Test_TC_PS_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 26: @@ -24618,6 +24765,8 @@ class Test_TC_PS_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 27: @@ -24636,6 +24785,8 @@ class Test_TC_PS_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 29: @@ -24652,6 +24803,8 @@ class Test_TC_PS_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 31: @@ -28015,6 +28168,7 @@ class Test_TC_SWTCH_2_1Suite : public TestCommand VerifyOrReturn(CheckValue("currentPosition", value, 0U)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 3: @@ -28025,6 +28179,7 @@ class Test_TC_SWTCH_2_1Suite : public TestCommand VerifyOrReturn(CheckValue("multiPressMax", value, 2U)); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("value", value, 2U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; default: @@ -28301,6 +28456,8 @@ class Test_TC_TMP_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 2: @@ -28310,7 +28467,7 @@ class Test_TC_TMP_2_1Suite : public TestCommand VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 32766)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 3: @@ -28324,10 +28481,6 @@ class Test_TC_TMP_2_1Suite : public TestCommand } break; case 4: - if (IsUnsupported(status.mStatus)) - { - return; - } VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); { uint16_t value; @@ -28765,6 +28918,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 2: @@ -28773,6 +28928,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 3: @@ -28791,8 +28948,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 700)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 3000)); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 5: @@ -28801,8 +28958,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 700)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 3000)); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 6: @@ -28811,8 +28968,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 1600)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 3200)); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 7: @@ -28821,8 +28978,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 1600)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 3200)); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 8: @@ -28871,8 +29028,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 1600)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 2600)); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 13: @@ -28881,8 +29038,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 700)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 2600)); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 14: @@ -28891,6 +29048,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 15: @@ -28899,6 +29058,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 16: @@ -28907,6 +29068,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 17: @@ -28915,8 +29078,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 700)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 3000)); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 18: @@ -28925,8 +29088,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 1600)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 3200)); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 19: @@ -28935,8 +29098,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand int16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("value", value, 1600)); - VerifyOrReturn(CheckConstraintMaxValue("value", value, 3200)); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 20: @@ -29009,6 +29172,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 28: @@ -29017,6 +29182,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 29: @@ -29075,6 +29242,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 35: @@ -29091,6 +29260,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 37: @@ -29099,6 +29270,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 38: @@ -29107,6 +29280,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 39: @@ -29115,6 +29290,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 40: @@ -29123,6 +29300,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 41: @@ -29131,6 +29310,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 42: @@ -29139,6 +29320,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand uint8_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 43: @@ -29157,6 +29340,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 45: @@ -29203,6 +29388,8 @@ class Test_TC_TSTAT_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, -27315)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 32767)); } break; case 50: @@ -31879,6 +32066,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 2: @@ -31909,6 +32098,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 6: @@ -31965,6 +32156,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 16: @@ -31973,6 +32166,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 17: @@ -31981,6 +32176,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 18: @@ -31989,6 +32186,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 255U)); } break; case 19: @@ -31997,6 +32196,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 20: @@ -32005,6 +32206,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 21: @@ -32013,6 +32216,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 22: @@ -32021,6 +32226,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 23: @@ -32029,6 +32236,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 24: @@ -32037,6 +32246,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 25: @@ -32045,6 +32256,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 26: @@ -32053,6 +32266,8 @@ class Test_TC_DGTHREAD_2_1Suite : public TestCommand uint16_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 27: @@ -32426,6 +32641,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 2: @@ -32434,6 +32651,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 3: @@ -32442,6 +32661,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 4: @@ -32450,6 +32671,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 5: @@ -32458,6 +32681,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 6: @@ -32466,6 +32691,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 7: @@ -32474,6 +32701,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 8: @@ -32482,6 +32711,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 9: @@ -32490,6 +32721,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 10: @@ -32498,6 +32731,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 11: @@ -32506,6 +32741,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 12: @@ -32514,6 +32751,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 13: @@ -32522,6 +32761,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 14: @@ -32530,6 +32771,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 15: @@ -32538,6 +32781,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 16: @@ -32546,6 +32791,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 17: @@ -32554,6 +32801,8 @@ class Test_TC_DGTHREAD_2_2Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; default: @@ -32732,6 +32981,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 2: @@ -32740,6 +32991,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 3: @@ -32748,6 +33001,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 4: @@ -32756,6 +33011,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 5: @@ -32764,6 +33021,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 6: @@ -32772,6 +33031,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 7: @@ -32780,6 +33041,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 8: @@ -32788,6 +33051,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 9: @@ -32796,6 +33061,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 10: @@ -32804,6 +33071,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 11: @@ -32812,6 +33081,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 12: @@ -32820,6 +33091,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 13: @@ -32828,6 +33101,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 14: @@ -32840,6 +33115,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 16: @@ -32848,6 +33125,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 17: @@ -32856,6 +33135,8 @@ class Test_TC_DGTHREAD_2_3Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; default: @@ -33714,6 +33995,8 @@ class Test_TC_DGWIFI_2_1Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); } break; case 5: @@ -33732,6 +34015,8 @@ class Test_TC_DGWIFI_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 7: @@ -33740,6 +34025,8 @@ class Test_TC_DGWIFI_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 8: @@ -33748,6 +34035,8 @@ class Test_TC_DGWIFI_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 9: @@ -33756,6 +34045,8 @@ class Test_TC_DGWIFI_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 10: @@ -33764,6 +34055,8 @@ class Test_TC_DGWIFI_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 11: @@ -33772,6 +34065,8 @@ class Test_TC_DGWIFI_2_1Suite : public TestCommand uint32_t value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 4294967295UL)); } break; case 12: @@ -55147,7 +55442,7 @@ class Test_TC_DGSW_2_1Suite : public TestCommand class Test_TC_DGSW_2_2Suite : public TestCommand { public: - Test_TC_DGSW_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGSW_2_2", 1, credsIssuerConfig) + Test_TC_DGSW_2_2Suite(CredentialIssuerCommands * credsIssuerConfig) : TestCommand("Test_TC_DGSW_2_2", 2, credsIssuerConfig) { AddArgument("nodeId", 0, UINT64_MAX, &mNodeId); AddArgument("cluster", &mCluster); @@ -55184,6 +55479,10 @@ class Test_TC_DGSW_2_2Suite : public TestCommand VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); shouldContinue = true; break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + shouldContinue = true; + break; default: LogErrorOnFailure(ContinueOnChipMainThread(CHIP_ERROR_INVALID_ARGUMENT)); } @@ -55200,7 +55499,14 @@ class Test_TC_DGSW_2_2Suite : public TestCommand switch (testIndex) { case 0: { - LogStep(0, + LogStep(0, "Wait for the commissioned device to be retrieved"); + ListFreer listFreer; + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee(kIdentityAlpha, value); + } + case 1: { + LogStep(1, "Reads a list of SoftwareFault struct from DUT and data type in each field of the struct must match the value " "listed in spec"); VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); @@ -81196,6 +81502,8 @@ class Test_TC_FLW_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); ValueBeforeChange = value; } break; @@ -81209,6 +81517,8 @@ class Test_TC_FLW_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0U)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535U)); VerifyOrReturn(CheckConstraintNotValue("value", value, ValueBeforeChange)); } break; @@ -81577,11 +81887,12 @@ class Test_TC_OCC_3_1Suite : public TestCommand } case 2: { LogStep(2, "Operate on DUT to change the occupancy status"); - VerifyOrDo(!ShouldSkip("OCC.M.OccupancyChange"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); + VerifyOrDo(!ShouldSkip("PICS_USER_PROMPT && OCC.M.OccupancyChange"), return ContinueOnChipMainThread(CHIP_NO_ERROR)); ListFreer listFreer; chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; - value.message = - chip::Span("Operate on DUT to change the occupancy statusgarbage: not in length on purpose", 45); + value.message = chip::Span("Please enter 'y' for successgarbage: not in length on purpose", 28); + value.expectedValue.Emplace(); + value.expectedValue.Value() = chip::Span("ygarbage: not in length on purpose", 1); return UserPrompt(kIdentityAlpha, value); } case 3: { @@ -87728,6 +88039,8 @@ class Test_TC_TMP_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535)); valueBeforeChange = value; } break; @@ -87741,6 +88054,8 @@ class Test_TC_TMP_2_2Suite : public TestCommand chip::app::DataModel::Nullable value; VerifyOrReturn(CheckDecodeValue(chip::app::DataModel::Decode(*data, value))); VerifyOrReturn(CheckConstraintType("value", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("value", value, 0)); + VerifyOrReturn(CheckConstraintMaxValue("value", value, 65535)); VerifyOrReturn(CheckConstraintNotValue("value", value, valueBeforeChange)); } break; diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h index b9c7262a886c68..e141e099452766 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -3958,6 +3958,9 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentHue", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("currentHue", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("currentHue", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -3978,6 +3981,9 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentSaturation", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("currentSaturation", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("currentSaturation", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -3998,6 +4004,9 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("remainingTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("remainingTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("remainingTime", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -4177,6 +4186,9 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("enhancedCurrentHue", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("enhancedCurrentHue", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("enhancedCurrentHue", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -4220,6 +4232,9 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopActive", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("colorLoopActive", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("colorLoopActive", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -4240,6 +4255,9 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopDirection", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("colorLoopDirection", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("colorLoopDirection", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -4260,6 +4278,9 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("colorLoopTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("colorLoopTime", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -4281,6 +4302,9 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStartEnhancedHue", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("colorLoopStartEnhancedHue", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("colorLoopStartEnhancedHue", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -4302,6 +4326,9 @@ class Test_TC_CC_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("colorLoopStoredEnhancedHue", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("colorLoopStoredEnhancedHue", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("colorLoopStoredEnhancedHue", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -4545,6 +4572,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("primary1Intensity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("primary1Intensity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("primary1Intensity", [value unsignedCharValue], 255U)); } NextTest(); @@ -4615,6 +4644,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("primary2Intensity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("primary2Intensity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("primary2Intensity", [value unsignedCharValue], 255U)); } NextTest(); @@ -4685,6 +4716,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("primary3Intensity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("primary3Intensity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("primary3Intensity", [value unsignedCharValue], 255U)); } NextTest(); @@ -4755,6 +4788,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("primary4Intensity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("primary4Intensity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("primary4Intensity", [value unsignedCharValue], 255U)); } NextTest(); @@ -4825,6 +4860,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("primary5Intensity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("primary5Intensity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("primary5Intensity", [value unsignedCharValue], 255U)); } NextTest(); @@ -4895,6 +4932,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("primary6Intensity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("primary6Intensity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("primary6Intensity", [value unsignedCharValue], 255U)); } NextTest(); @@ -5011,6 +5050,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("colorPointRIntensity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("colorPointRIntensity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("colorPointRIntensity", [value unsignedCharValue], 255U)); } NextTest(); @@ -5081,6 +5122,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("colorPointGIntensity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("colorPointGIntensity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("colorPointGIntensity", [value unsignedCharValue], 255U)); } NextTest(); @@ -5151,6 +5194,8 @@ class Test_TC_CC_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("colorPointBIntensity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("colorPointBIntensity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("colorPointBIntensity", [value unsignedCharValue], 255U)); } NextTest(); @@ -18347,6 +18392,8 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("measuredValue", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("measuredValue", [value unsignedShortValue], 65535U)); } NextTest(); @@ -18371,6 +18418,8 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("minMeasuredValue", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("minMeasuredValue", [value unsignedShortValue], 65535U)); } NextTest(); @@ -18395,6 +18444,8 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("maxMeasuredValue", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("maxMeasuredValue", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("maxMeasuredValue", [value unsignedShortValue], 65535U)); } NextTest(); @@ -19547,6 +19598,9 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("rebootCount", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("rebootCount", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("rebootCount", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -19628,6 +19682,9 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("totalOperationalHours", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("totalOperationalHours", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("totalOperationalHours", [value unsignedIntValue], 4294967294UL)); + NextTest(); }]; @@ -20216,6 +20273,9 @@ class Test_TC_I_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("identifyTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("identifyTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("identifyTime", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -20678,7 +20738,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 2: ChipLogProgress(chipTool, " ***** Test Step 2 : DUT executes a blink effect\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -20696,7 +20756,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 4: ChipLogProgress(chipTool, " ***** Test Step 4 : DUT executes a breathe effect\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -20714,7 +20774,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 6: ChipLogProgress(chipTool, " ***** Test Step 6 : DUT executes an okay effect\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -20732,7 +20792,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 8: ChipLogProgress(chipTool, " ***** Test Step 8 : DUT executes a channel change effect\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -20750,7 +20810,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 10: ChipLogProgress(chipTool, " ***** Test Step 10 : DUT executes a breathe effect\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -20768,7 +20828,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 12: ChipLogProgress(chipTool, " ***** Test Step 12 : DUT stops the breathe effect after the current effect sequence\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -20786,7 +20846,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 14: ChipLogProgress(chipTool, " ***** Test Step 14 : DUT executes a breathe effect\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -20804,7 +20864,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 16: ChipLogProgress(chipTool, " ***** Test Step 16 : DUT stops the breathe effect as soon as possible.\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -20822,7 +20882,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 18: ChipLogProgress(chipTool, " ***** Test Step 18 : Check DUT executes a blink effect.\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -20840,7 +20900,7 @@ class Test_TC_I_2_3 : public TestCommandBridge { break; case 20: ChipLogProgress(chipTool, " ***** Test Step 20 : DUT stops any effect that may be still running as soon as possible\n"); - if (ShouldSkip("PICS_USER_PROMPT")) { + if (ShouldSkip("PICS_USER_PROMPT && I.S.C40.Rsp")) { NextTest(); return; } @@ -22861,6 +22921,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("currentLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("currentLevel", [value unsignedCharValue], 255U)); { CurrentLevelValue = value; } @@ -22885,6 +22947,9 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("remainingTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("remainingTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("remainingTime", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -22937,7 +23002,7 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { VerifyOrReturn(CheckConstraintType("minLevel", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("minLevel", [value unsignedCharValue], 0U)); - VerifyOrReturn(CheckConstraintMaxValue("minLevel", [value unsignedCharValue], 1U)); + VerifyOrReturn(CheckConstraintMaxValue("minLevel", [value unsignedCharValue], 255U)); { MinLevelValue1 = value; } @@ -23066,6 +23131,9 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentFrequency", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("currentFrequency", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("currentFrequency", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -23087,6 +23155,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minFrequency", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("minFrequency", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("minFrequency", [value unsignedShortValue], 65535U)); { MinFrequencyValue = value; } @@ -23112,6 +23182,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxFrequency", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("maxFrequency", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("maxFrequency", [value unsignedShortValue], 65535U)); { MaxFrequencyValue = value; } @@ -23159,6 +23231,9 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("onOffTransitionTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("onOffTransitionTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("onOffTransitionTime", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -23233,6 +23308,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("onTransitionTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("onTransitionTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("onTransitionTime", [value unsignedShortValue], 65535U)); } NextTest(); @@ -23257,6 +23334,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("offTransitionTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("offTransitionTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("offTransitionTime", [value unsignedShortValue], 65535U)); } NextTest(); @@ -23281,6 +23360,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("defaultMoveRate", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("defaultMoveRate", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("defaultMoveRate", [value unsignedCharValue], 255U)); } NextTest(); @@ -23330,6 +23411,8 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("startUpCurrentLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("startUpCurrentLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("startUpCurrentLevel", [value unsignedCharValue], 255U)); } NextTest(); @@ -23658,6 +23741,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("onOffTransitionTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("onOffTransitionTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("onOffTransitionTime", [value unsignedShortValue], 65535U)); { OnOffTransitionTimeValue = value; } @@ -23737,6 +23822,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("onLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("onLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("onLevel", [value unsignedCharValue], 255U)); } { OnLevelValue = value; @@ -23819,6 +23906,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("onTransitionTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("onTransitionTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("onTransitionTime", [value unsignedShortValue], 65535U)); } { OnTransitionTimeValue = value; @@ -23902,6 +23991,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("offTransitionTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("offTransitionTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("offTransitionTime", [value unsignedShortValue], 65535U)); } { OffTransitionTimeValue = value; @@ -23985,6 +24076,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("defaultMoveRate", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("defaultMoveRate", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("defaultMoveRate", [value unsignedCharValue], 255U)); } { DefaultMoveRatevalue = value; @@ -24068,6 +24161,8 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("startUpCurrentLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("startUpCurrentLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("startUpCurrentLevel", [value unsignedCharValue], 255U)); } { StartUpCurrentLevelValue = value; @@ -24504,6 +24599,9 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("minLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("minLevel", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -24524,6 +24622,9 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("maxLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("maxLevel", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -24710,6 +24811,9 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("onOffTransitionTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("onOffTransitionTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("onOffTransitionTime", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -25202,6 +25306,8 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("minLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("minLevel", [value unsignedCharValue], 255U)); { MinlevelValue = value; } @@ -25250,6 +25356,8 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("maxLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("maxLevel", [value unsignedCharValue], 255U)); { MaxlevelValue = value; } @@ -25385,7 +25493,7 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { } VerifyOrReturn(CheckConstraintMinValue("currentLevel", [value unsignedCharValue], 0U)); - VerifyOrReturn(CheckConstraintMaxValue("currentLevel", [value unsignedCharValue], 1U)); + VerifyOrReturn(CheckConstraintMaxValue("currentLevel", [value unsignedCharValue], 255U)); NextTest(); }]; @@ -25410,6 +25518,8 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("defaultMoveRate", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("defaultMoveRate", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("defaultMoveRate", [value unsignedCharValue], 255U)); } { DefaultMoveRateValue = value; @@ -25824,6 +25934,8 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("minLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("minLevel", [value unsignedCharValue], 255U)); { MinlevelValue = value; } @@ -25877,6 +25989,8 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { } VerifyOrReturn(CheckConstraintType("currentLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("currentLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("currentLevel", [value unsignedCharValue], 255U)); { CurrentlevelValue = value; } @@ -26400,6 +26514,8 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minLevel", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("minLevel", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("minLevel", [value unsignedCharValue], 255U)); { MinlevelValue = value; } @@ -26448,7 +26564,7 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintMinValue("currentLevel", [value unsignedCharValue], 0U)); - VerifyOrReturn(CheckConstraintMaxValue("currentLevel", [value unsignedCharValue], 1U)); + VerifyOrReturn(CheckConstraintMaxValue("currentLevel", [value unsignedCharValue], 255U)); { CurrentLevelValue = value; } @@ -30770,6 +30886,11 @@ class Test_TC_KEYPADINPUT_3_2 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -30792,6 +30913,11 @@ class Test_TC_KEYPADINPUT_3_2 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -30997,6 +31123,11 @@ class Test_TC_KEYPADINPUT_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -31019,6 +31150,11 @@ class Test_TC_KEYPADINPUT_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -31041,6 +31177,11 @@ class Test_TC_KEYPADINPUT_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -31063,6 +31204,11 @@ class Test_TC_KEYPADINPUT_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -31085,6 +31231,11 @@ class Test_TC_KEYPADINPUT_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -31107,6 +31258,11 @@ class Test_TC_KEYPADINPUT_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -31129,6 +31285,11 @@ class Test_TC_KEYPADINPUT_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -31151,6 +31312,11 @@ class Test_TC_KEYPADINPUT_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -31173,6 +31339,11 @@ class Test_TC_KEYPADINPUT_3_3 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + { + id actualValue = values.status; + VerifyOrReturn(CheckValue("status", actualValue, 0U)); + } + NextTest(); }]; @@ -35195,6 +35366,9 @@ class Test_TC_TGTNAV_8_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("currentTarget", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("currentTarget", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("currentTarget", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -35522,6 +35696,9 @@ class Test_TC_APBSC_9_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("productID", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("productID", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("productID", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -37028,20 +37205,23 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster - readAttributePirOccupiedToUnoccupiedDelayWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads optional attribute: PIROccupiedToUnoccupiedDelay Error: %@", err); + [cluster readAttributePirOccupiedToUnoccupiedDelayWithCompletionHandler:^( + NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads optional attribute: PIROccupiedToUnoccupiedDelay Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("PIR occupied to unoccupied delay", actualValue, 0U)); - } + { + id actualValue = value; + VerifyOrReturn(CheckValue("PIR occupied to unoccupied delay", actualValue, 0U)); + } - VerifyOrReturn(CheckConstraintType("pirOccupiedToUnoccupiedDelay", "", "uint16")); - NextTest(); - }]; + VerifyOrReturn(CheckConstraintType("pirOccupiedToUnoccupiedDelay", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("pirOccupiedToUnoccupiedDelay", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("pirOccupiedToUnoccupiedDelay", [value unsignedShortValue], 65535U)); + + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -37054,20 +37234,23 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster - readAttributePirUnoccupiedToOccupiedDelayWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Reads optional attribute constrains: PIRUnoccupiedToOccupiedDelay Error: %@", err); + [cluster readAttributePirUnoccupiedToOccupiedDelayWithCompletionHandler:^( + NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Reads optional attribute constrains: PIRUnoccupiedToOccupiedDelay Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - { - id actualValue = value; - VerifyOrReturn(CheckValue("PIR unoccupied to occupied delay", actualValue, 0U)); - } + { + id actualValue = value; + VerifyOrReturn(CheckValue("PIR unoccupied to occupied delay", actualValue, 0U)); + } - VerifyOrReturn(CheckConstraintType("pirUnoccupiedToOccupiedDelay", "", "uint16")); - NextTest(); - }]; + VerifyOrReturn(CheckConstraintType("pirUnoccupiedToOccupiedDelay", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("pirUnoccupiedToOccupiedDelay", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("pirUnoccupiedToOccupiedDelay", [value unsignedShortValue], 65535U)); + + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -37121,6 +37304,11 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { } VerifyOrReturn(CheckConstraintType("ultrasonicOccupiedToUnoccupiedDelay", "", "uint16")); + VerifyOrReturn( + CheckConstraintMinValue("ultrasonicOccupiedToUnoccupiedDelay", [value unsignedShortValue], 0U)); + VerifyOrReturn( + CheckConstraintMaxValue("ultrasonicOccupiedToUnoccupiedDelay", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -37147,6 +37335,11 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { } VerifyOrReturn(CheckConstraintType("ultrasonicUnoccupiedToOccupiedDelay", "", "uint16")); + VerifyOrReturn( + CheckConstraintMinValue("ultrasonicUnoccupiedToOccupiedDelay", [value unsignedShortValue], 0U)); + VerifyOrReturn( + CheckConstraintMaxValue("ultrasonicUnoccupiedToOccupiedDelay", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -37204,6 +37397,11 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { } VerifyOrReturn(CheckConstraintType("physicalContactOccupiedToUnoccupiedDelay", "", "uint16")); + VerifyOrReturn( + CheckConstraintMinValue("physicalContactOccupiedToUnoccupiedDelay", [value unsignedShortValue], 0U)); + VerifyOrReturn( + CheckConstraintMaxValue("physicalContactOccupiedToUnoccupiedDelay", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -37230,6 +37428,11 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { } VerifyOrReturn(CheckConstraintType("physicalContactUnoccupiedToOccupiedDelay", "", "uint16")); + VerifyOrReturn( + CheckConstraintMinValue("physicalContactUnoccupiedToOccupiedDelay", [value unsignedShortValue], 0U)); + VerifyOrReturn( + CheckConstraintMaxValue("physicalContactUnoccupiedToOccupiedDelay", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -37833,6 +38036,9 @@ class Test_TC_OO_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("onTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("onTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("onTime", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -37851,6 +38057,9 @@ class Test_TC_OO_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("offWaitTime", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("offWaitTime", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("offWaitTime", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -38052,7 +38261,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { break; case 18: ChipLogProgress(chipTool, " ***** Test Step 18 : Check on/off attribute value is true after on command\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A0000")) { NextTest(); return; } @@ -38068,7 +38277,7 @@ class Test_TC_OO_2_2 : public TestCommandBridge { break; case 20: ChipLogProgress(chipTool, " ***** Test Step 20 : Check on/off attribute value is false after off command\n"); - if (ShouldSkip("PICS_SKIP_SAMPLE_APP")) { + if (ShouldSkip("PICS_SKIP_SAMPLE_APP && OO.S.A0000")) { NextTest(); return; } @@ -40254,6 +40463,9 @@ class Test_TC_PS_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("order", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("order", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("order", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -40297,6 +40509,9 @@ class Test_TC_PS_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("wiredAssessedInputVoltage", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("wiredAssessedInputVoltage", [value unsignedIntValue], 0UL)); + VerifyOrReturn( + CheckConstraintMaxValue("wiredAssessedInputVoltage", [value unsignedIntValue], 4294967295UL)); } NextTest(); @@ -40313,19 +40528,22 @@ class Test_TC_PS_2_1 : public TestCommandBridge { queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); - [cluster - readAttributeWiredAssessedInputFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { - NSLog(@"Test Harness Client reads WiredAssessedInputFrequency attribute from Server DUT Error: %@", err); + [cluster readAttributeWiredAssessedInputFrequencyWithCompletionHandler:^( + NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"Test Harness Client reads WiredAssessedInputFrequency attribute from Server DUT Error: %@", err); - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); + VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); - if (value != nil) { + if (value != nil) { - VerifyOrReturn(CheckConstraintType("wiredAssessedInputFrequency", "", "uint16")); - } + VerifyOrReturn(CheckConstraintType("wiredAssessedInputFrequency", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("wiredAssessedInputFrequency", [value unsignedShortValue], 0U)); + VerifyOrReturn( + CheckConstraintMaxValue("wiredAssessedInputFrequency", [value unsignedShortValue], 65535U)); + } - NextTest(); - }]; + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -40369,6 +40587,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("wiredAssessedCurrent", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("wiredAssessedCurrent", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("wiredAssessedCurrent", [value unsignedIntValue], 4294967295UL)); } NextTest(); @@ -40391,6 +40611,9 @@ class Test_TC_PS_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("wiredNominalVoltage", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("wiredNominalVoltage", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("wiredNominalVoltage", [value unsignedIntValue], 4294967295UL)); + NextTest(); }]; @@ -40411,6 +40634,9 @@ class Test_TC_PS_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("wiredMaximumCurrent", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("wiredMaximumCurrent", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("wiredMaximumCurrent", [value unsignedIntValue], 4294967295UL)); + NextTest(); }]; @@ -40473,6 +40699,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("batVoltage", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("batVoltage", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("batVoltage", [value unsignedIntValue], 4294967295UL)); } NextTest(); @@ -40521,6 +40749,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("batTimeRemaining", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("batTimeRemaining", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("batTimeRemaining", [value unsignedIntValue], 4294967295UL)); } NextTest(); @@ -40759,6 +40989,9 @@ class Test_TC_PS_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("batCapacity", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("batCapacity", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("batCapacity", [value unsignedIntValue], 4294967295UL)); + NextTest(); }]; @@ -40779,6 +41012,9 @@ class Test_TC_PS_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("batQuantity", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("batQuantity", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("batQuantity", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -40824,6 +41060,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("batTimeToFullCharge", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("batTimeToFullCharge", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("batTimeToFullCharge", [value unsignedIntValue], 4294967295UL)); } NextTest(); @@ -40869,6 +41107,8 @@ class Test_TC_PS_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("batChargingCurrent", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("batChargingCurrent", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("batChargingCurrent", [value unsignedIntValue], 4294967295UL)); } NextTest(); @@ -45272,6 +45512,7 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { VerifyOrReturn(CheckConstraintType("currentPosition", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("currentPosition", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("currentPosition", [value unsignedCharValue], 255U)); NextTest(); }]; @@ -45297,6 +45538,7 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { VerifyOrReturn(CheckConstraintType("multiPressMax", "", "uint8")); VerifyOrReturn(CheckConstraintMinValue("multiPressMax", [value unsignedCharValue], 2U)); + VerifyOrReturn(CheckConstraintMaxValue("multiPressMax", [value unsignedCharValue], 255U)); NextTest(); }]; @@ -45751,6 +45993,8 @@ class Test_TC_TMP_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("measuredValue", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("measuredValue", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("measuredValue", [value shortValue], 32767)); } NextTest(); @@ -45775,7 +46019,7 @@ class Test_TC_TMP_2_1 : public TestCommandBridge { VerifyOrReturn(CheckConstraintType("minMeasuredValue", "", "int16")); VerifyOrReturn(CheckConstraintMinValue("minMeasuredValue", [value shortValue], -27315)); - VerifyOrReturn(CheckConstraintMaxValue("minMeasuredValue", [value shortValue], 32766)); + VerifyOrReturn(CheckConstraintMaxValue("minMeasuredValue", [value shortValue], 32767)); } NextTest(); @@ -45819,11 +46063,6 @@ class Test_TC_TMP_2_1 : public TestCommandBridge { [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { NSLog(@"read the optional attribute: Tolerance Error: %@", err); - if (err.code == MTRInteractionErrorCodeUnsupportedAttribute) { - NextTest(); - return; - } - VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("tolerance", "", "uint16")); @@ -47116,6 +47355,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("localTemperature", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("localTemperature", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("localTemperature", [value shortValue], 32767)); } NextTest(); @@ -47140,6 +47381,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("outdoorTemperature", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("outdoorTemperature", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("outdoorTemperature", [value shortValue], 32767)); } NextTest(); @@ -47185,8 +47428,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("absMinHeatSetpointLimit", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("absMinHeatSetpointLimit", [value shortValue], 700)); - VerifyOrReturn(CheckConstraintMaxValue("absMinHeatSetpointLimit", [value shortValue], 3000)); + VerifyOrReturn(CheckConstraintMinValue("absMinHeatSetpointLimit", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("absMinHeatSetpointLimit", [value shortValue], 32767)); NextTest(); }]; @@ -47208,8 +47451,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("absMaxHeatSetpointLimit", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("absMaxHeatSetpointLimit", [value shortValue], 700)); - VerifyOrReturn(CheckConstraintMaxValue("absMaxHeatSetpointLimit", [value shortValue], 3000)); + VerifyOrReturn(CheckConstraintMinValue("absMaxHeatSetpointLimit", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("absMaxHeatSetpointLimit", [value shortValue], 32767)); NextTest(); }]; @@ -47231,8 +47474,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("absMinCoolSetpointLimit", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("absMinCoolSetpointLimit", [value shortValue], 1600)); - VerifyOrReturn(CheckConstraintMaxValue("absMinCoolSetpointLimit", [value shortValue], 3200)); + VerifyOrReturn(CheckConstraintMinValue("absMinCoolSetpointLimit", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("absMinCoolSetpointLimit", [value shortValue], 32767)); NextTest(); }]; @@ -47254,8 +47497,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("absMaxCoolSetpointLimit", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("absMaxCoolSetpointLimit", [value shortValue], 1600)); - VerifyOrReturn(CheckConstraintMaxValue("absMaxCoolSetpointLimit", [value shortValue], 3200)); + VerifyOrReturn(CheckConstraintMinValue("absMaxCoolSetpointLimit", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("absMaxCoolSetpointLimit", [value shortValue], 32767)); NextTest(); }]; @@ -47371,8 +47614,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("occupiedCoolingSetpoint", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("occupiedCoolingSetpoint", [value shortValue], 1600)); - VerifyOrReturn(CheckConstraintMaxValue("occupiedCoolingSetpoint", [value shortValue], 2600)); + VerifyOrReturn(CheckConstraintMinValue("occupiedCoolingSetpoint", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("occupiedCoolingSetpoint", [value shortValue], 32767)); NextTest(); }]; @@ -47394,8 +47637,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("occupiedHeatingSetpoint", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("occupiedHeatingSetpoint", [value shortValue], 700)); - VerifyOrReturn(CheckConstraintMaxValue("occupiedHeatingSetpoint", [value shortValue], 2600)); + VerifyOrReturn(CheckConstraintMinValue("occupiedHeatingSetpoint", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("occupiedHeatingSetpoint", [value shortValue], 32767)); NextTest(); }]; @@ -47418,6 +47661,9 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("unoccupiedCoolingSetpoint", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("unoccupiedCoolingSetpoint", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("unoccupiedCoolingSetpoint", [value shortValue], 32767)); + NextTest(); }]; @@ -47439,6 +47685,9 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("unoccupiedHeatingSetpoint", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("unoccupiedHeatingSetpoint", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("unoccupiedHeatingSetpoint", [value shortValue], 32767)); + NextTest(); }]; @@ -47459,6 +47708,9 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minHeatSetpointLimit", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("minHeatSetpointLimit", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("minHeatSetpointLimit", [value shortValue], 32767)); + NextTest(); }]; @@ -47479,8 +47731,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxHeatSetpointLimit", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("maxHeatSetpointLimit", [value shortValue], 700)); - VerifyOrReturn(CheckConstraintMaxValue("maxHeatSetpointLimit", [value shortValue], 3000)); + VerifyOrReturn(CheckConstraintMinValue("maxHeatSetpointLimit", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("maxHeatSetpointLimit", [value shortValue], 32767)); NextTest(); }]; @@ -47502,8 +47754,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("minCoolSetpointLimit", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("minCoolSetpointLimit", [value shortValue], 1600)); - VerifyOrReturn(CheckConstraintMaxValue("minCoolSetpointLimit", [value shortValue], 3200)); + VerifyOrReturn(CheckConstraintMinValue("minCoolSetpointLimit", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("minCoolSetpointLimit", [value shortValue], 32767)); NextTest(); }]; @@ -47525,8 +47777,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("maxCoolSetpointLimit", "", "int16")); - VerifyOrReturn(CheckConstraintMinValue("maxCoolSetpointLimit", [value shortValue], 1600)); - VerifyOrReturn(CheckConstraintMaxValue("maxCoolSetpointLimit", [value shortValue], 3200)); + VerifyOrReturn(CheckConstraintMinValue("maxCoolSetpointLimit", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("maxCoolSetpointLimit", [value shortValue], 32767)); NextTest(); }]; @@ -47698,6 +47950,9 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("numberOfWeeklyTransitions", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("numberOfWeeklyTransitions", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("numberOfWeeklyTransitions", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -47718,6 +47973,9 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("numberOfDailyTransitions", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("numberOfDailyTransitions", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("numberOfDailyTransitions", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -47862,6 +48120,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("setpointChangeAmount", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("setpointChangeAmount", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("setpointChangeAmount", [value shortValue], 32767)); } NextTest(); @@ -47907,6 +48167,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("occupiedSetback", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("occupiedSetback", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("occupiedSetback", [value unsignedCharValue], 255U)); } NextTest(); @@ -47931,6 +48193,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("occupiedSetbackMin", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("occupiedSetbackMin", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("occupiedSetbackMin", [value unsignedCharValue], 255U)); } NextTest(); @@ -47955,6 +48219,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("occupiedSetbackMax", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("occupiedSetbackMax", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("occupiedSetbackMax", [value unsignedCharValue], 255U)); } NextTest(); @@ -47979,6 +48245,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("unoccupiedSetback", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("unoccupiedSetback", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("unoccupiedSetback", [value unsignedCharValue], 255U)); } NextTest(); @@ -48003,6 +48271,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("unoccupiedSetbackMin", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("unoccupiedSetbackMin", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("unoccupiedSetbackMin", [value unsignedCharValue], 255U)); } NextTest(); @@ -48027,6 +48297,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("unoccupiedSetbackMax", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("unoccupiedSetbackMax", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("unoccupiedSetbackMax", [value unsignedCharValue], 255U)); } NextTest(); @@ -48049,6 +48321,9 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("emergencyHeatDelta", "", "uint8")); + VerifyOrReturn(CheckConstraintMinValue("emergencyHeatDelta", [value unsignedCharValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("emergencyHeatDelta", [value unsignedCharValue], 255U)); + NextTest(); }]; @@ -48092,6 +48367,9 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("ACCapacity", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("ACCapacity", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("ACCapacity", [value unsignedShortValue], 65535U)); + NextTest(); }]; @@ -48203,6 +48481,8 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("ACCoilTemperature", "", "int16")); + VerifyOrReturn(CheckConstraintMinValue("ACCoilTemperature", [value shortValue], -27315)); + VerifyOrReturn(CheckConstraintMaxValue("ACCoilTemperature", [value shortValue], 32767)); } NextTest(); @@ -54473,6 +54753,8 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { if (value != nil) { VerifyOrReturn(CheckConstraintType("channelNumber", "", "uint16")); + VerifyOrReturn(CheckConstraintMinValue("channelNumber", [value unsignedShortValue], 0U)); + VerifyOrReturn(CheckConstraintMaxValue("channelNumber", [value unsignedShortValue], 65535U)); } NextTest(); @@ -54519,6 +54801,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("beaconLostCount", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("beaconLostCount", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("beaconLostCount", [value unsignedIntValue], 4294967295UL)); + NextTest(); }]; @@ -54538,6 +54823,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("beaconRxCount", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("beaconRxCount", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("beaconRxCount", [value unsignedIntValue], 4294967295UL)); + NextTest(); }]; @@ -54557,6 +54845,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("packetMulticastRxCount", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("packetMulticastRxCount", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("packetMulticastRxCount", [value unsignedIntValue], 4294967295UL)); + NextTest(); }]; @@ -54576,6 +54867,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("packetMulticastTxCount", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("packetMulticastTxCount", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("packetMulticastTxCount", [value unsignedIntValue], 4294967295UL)); + NextTest(); }]; @@ -54595,6 +54889,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("packetUnicastRxCount", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("packetUnicastRxCount", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("packetUnicastRxCount", [value unsignedIntValue], 4294967295UL)); + NextTest(); }]; @@ -54614,6 +54911,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { VerifyOrReturn(CheckValue("status", err ? err.code : 0, 0)); VerifyOrReturn(CheckConstraintType("packetUnicastTxCount", "", "uint32")); + VerifyOrReturn(CheckConstraintMinValue("packetUnicastTxCount", [value unsignedIntValue], 0UL)); + VerifyOrReturn(CheckConstraintMaxValue("packetUnicastTxCount", [value unsignedIntValue], 4294967295UL)); + NextTest(); }]; @@ -94052,14 +94352,18 @@ class Test_TC_DGSW_2_2 : public TestCommandBridge { // incorrect mTestIndex value observed when we get the response. switch (mTestIndex++) { case 0: + ChipLogProgress(chipTool, " ***** Test Step 0 : Wait for the commissioned device to be retrieved\n"); + err = TestWaitForTheCommissionedDeviceToBeRetrieved_0(); + break; + case 1: ChipLogProgress(chipTool, - " ***** Test Step 0 : Reads a list of SoftwareFault struct from DUT and data type in each field of the struct must " + " ***** Test Step 1 : Reads a list of SoftwareFault struct from DUT and data type in each field of the struct must " "match the value listed in spec\n"); if (ShouldSkip("PICS_USER_PROMPT")) { NextTest(); return; } - err = TestReadsAListOfSoftwareFaultStructFromDutAndDataTypeInEachFieldOfTheStructMustMatchTheValueListedInSpec_0(); + err = TestReadsAListOfSoftwareFaultStructFromDutAndDataTypeInEachFieldOfTheStructMustMatchTheValueListedInSpec_1(); break; } @@ -94075,6 +94379,9 @@ class Test_TC_DGSW_2_2 : public TestCommandBridge { case 0: VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); break; + case 1: + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), 0)); + break; } // Go on to the next test. @@ -94088,14 +94395,21 @@ class Test_TC_DGSW_2_2 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 1; + const uint16_t mTestCount = 2; chip::Optional mNodeId; chip::Optional mCluster; chip::Optional mEndpoint; chip::Optional mTimeout; - CHIP_ERROR TestReadsAListOfSoftwareFaultStructFromDutAndDataTypeInEachFieldOfTheStructMustMatchTheValueListedInSpec_0() + CHIP_ERROR TestWaitForTheCommissionedDeviceToBeRetrieved_0() + { + chip::app::Clusters::DelayCommands::Commands::WaitForCommissionee::Type value; + value.nodeId = mNodeId.HasValue() ? mNodeId.Value() : 305414945ULL; + return WaitForCommissionee("alpha", value); + } + + CHIP_ERROR TestReadsAListOfSoftwareFaultStructFromDutAndDataTypeInEachFieldOfTheStructMustMatchTheValueListedInSpec_1() { chip::app::Clusters::LogCommands::Commands::UserPrompt::Type value; value.message = chip::Span("Please enter '0' for successgarbage: not in length on purpose", 28);