From 6811e3436f692b0737a6e6bd6abf64a22389ee63 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 5 Apr 2022 21:13:37 -0400 Subject: [PATCH] Support notValue constraints on enums. (#17070) Fixes https://github.com/project-chip/connectedhomeip/issues/16995 --- .../certification/Test_TC_WNCV_2_1.yaml | 2 - .../tests/suites/include/ConstraintsChecker.h | 8 +- .../Framework/CHIPTests/CHIPClustersTests.m | 151 ++- .../zap-generated/test/Commands.h | 388 ++++---- .../chip-tool/zap-generated/test/Commands.h | 908 ++++++++++-------- 5 files changed, 822 insertions(+), 635 deletions(-) diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_2_1.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_2_1.yaml index f87e4d43c334ae..79c536df640f74 100644 --- a/src/app/tests/suites/certification/Test_TC_WNCV_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_WNCV_2_1.yaml @@ -50,7 +50,6 @@ tests: error: UNSUPPORTED_WRITE - label: "3b: reads back the RO mandatory attribute: Type" - disabled: true command: "readAttribute" attribute: "Type" response: @@ -130,7 +129,6 @@ tests: error: UNSUPPORTED_WRITE - label: "3b: reads back the RO mandatory attribute: EndProductType" - disabled: true command: "readAttribute" attribute: "EndProductType" response: diff --git a/src/app/tests/suites/include/ConstraintsChecker.h b/src/app/tests/suites/include/ConstraintsChecker.h index 1dcb9a3c56c486..0ef172376a11e0 100644 --- a/src/app/tests/suites/include/ConstraintsChecker.h +++ b/src/app/tests/suites/include/ConstraintsChecker.h @@ -245,7 +245,7 @@ class ConstraintsChecker return CheckConstraintMaxValue(itemName, current.Value(), static_cast(expected)); } - template + template ::value, int> = 0> bool CheckConstraintNotValue(const char * itemName, T current, U expected) { if (current == expected) @@ -257,6 +257,12 @@ class ConstraintsChecker return true; } + template ::value, int> = 0> + bool CheckConstraintNotValue(const char * itemName, T current, U expected) + { + return CheckConstraintNotValue(itemName, chip::to_underlying(current), expected); + } + template bool CheckConstraintNotValue(const char * itemName, chip::BitFlags current, chip::BitFlags expected) { diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m index 286d4384855d4d..b1c3c40387393c 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m @@ -29235,6 +29235,32 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000002_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } - (void)testSendClusterTest_TC_WNCV_2_1_000003_ReadAttribute +{ + XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO mandatory attribute: Type"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"3b: reads back the RO mandatory attribute: Type Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + if (actualValue != nil) { + XCTAssertNotEqual([actualValue unsignedCharValue], 250); + } + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_WNCV_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO mandatory attribute default: ConfigStatus"]; @@ -29266,7 +29292,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000003_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000004_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000005_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO mandatory attribute: ConfigStatus"]; @@ -29288,7 +29314,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000004_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000005_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO mandatory attribute: ConfigStatus"]; @@ -29314,7 +29340,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000005_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000006_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO mandatory attribute default: OperationalStatus"]; @@ -29347,7 +29373,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000006_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000007_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO mandatory attribute: OperationalStatus"]; @@ -29370,7 +29396,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000007_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000008_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO mandatory attribute: OperationalStatus"]; @@ -29397,7 +29423,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000008_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000009_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO mandatory attribute default: EndProductType"]; @@ -29430,7 +29456,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000009_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000010_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000011_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO mandatory attribute: EndProductType"]; @@ -29453,7 +29479,34 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000010_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000011_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000012_ReadAttribute +{ + XCTestExpectation * expectation = + [self expectationWithDescription:@"3b: reads back the RO mandatory attribute: EndProductType"]; + + CHIPDevice * device = GetConnectedDevice(); + dispatch_queue_t queue = dispatch_get_main_queue(); + CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; + XCTAssertNotNil(cluster); + + [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"3b: reads back the RO mandatory attribute: EndProductType Error: %@", err); + + XCTAssertEqual([CHIPErrorTestUtils errorToZCLErrorCode:err], 0); + + { + id actualValue = value; + if (actualValue != nil) { + XCTAssertNotEqual([actualValue unsignedCharValue], 250); + } + } + + [expectation fulfill]; + }]; + + [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; +} +- (void)testSendClusterTest_TC_WNCV_2_1_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RW mandatory attribute default: Mode"]; @@ -29485,7 +29538,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000011_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000012_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000014_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RW mandatory attribute:: Mode"]; @@ -29507,7 +29560,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000012_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000013_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000015_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RW mandatory attribute: Mode"]; @@ -29531,7 +29584,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000013_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000014_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: TargetPositionLiftPercent100ths"]; @@ -29565,7 +29618,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000014_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000015_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000017_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: TargetPositionLiftPercent100ths"]; @@ -29590,7 +29643,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000015_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000016_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000018_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: TargetPositionLiftPercent100ths"]; @@ -29618,7 +29671,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000016_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000017_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000019_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: TargetPositionTiltPercent100ths"]; @@ -29652,7 +29705,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000017_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000018_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000020_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: TargetPositionTiltPercent100ths"]; @@ -29677,7 +29730,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000018_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000019_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000021_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: TargetPositionTiltPercent100ths"]; @@ -29705,7 +29758,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000019_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000020_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000022_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: CurrentPositionLiftPercent100ths"]; @@ -29739,7 +29792,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000020_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000021_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000023_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: CurrentPositionLiftPercent100ths"]; @@ -29764,7 +29817,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000021_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000022_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000024_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: CurrentPositionLiftPercent100ths"]; @@ -29792,7 +29845,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000022_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000023_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000025_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: CurrentPositionTiltPercent100ths"]; @@ -29826,7 +29879,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000023_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000024_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000026_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: CurrentPositionTiltPercent100ths"]; @@ -29851,7 +29904,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000024_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000025_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000027_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: CurrentPositionTiltPercent100ths"]; @@ -29879,7 +29932,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000025_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000026_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000028_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: InstalledOpenLimitLift"]; @@ -29912,7 +29965,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000026_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000027_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000029_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: InstalledOpenLimitLift"]; @@ -29937,7 +29990,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000027_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000028_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000030_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: InstalledOpenLimitLift"]; @@ -29970,7 +30023,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000028_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000029_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000031_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: InstalledClosedLimitLift"]; @@ -30003,7 +30056,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000029_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000030_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000032_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: InstalledClosedLimitLift"]; @@ -30028,7 +30081,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000030_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000031_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000033_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: InstalledClosedLimitLift"]; @@ -30061,7 +30114,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000031_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000032_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000034_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: InstalledOpenLimitTilt"]; @@ -30094,7 +30147,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000032_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000033_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000035_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: InstalledOpenLimitTilt"]; @@ -30119,7 +30172,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000033_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000034_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000036_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: InstalledOpenLimitTilt"]; @@ -30152,7 +30205,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000034_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000035_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000037_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2: read the RO optional attribute default: InstalledClosedLimitTilt"]; @@ -30185,7 +30238,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000035_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000036_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000038_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: write a value into the RO optional attribute: InstalledClosedLimitTilt"]; @@ -30210,7 +30263,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000036_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000037_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000039_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3b: reads back the RO optional attribute: InstalledClosedLimitTilt"]; @@ -30243,7 +30296,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000037_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000038_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000040_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO mandatory attribute default: SafetyStatus"]; @@ -30275,7 +30328,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000038_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000039_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000041_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO mandatory attribute: SafetyStatus"]; @@ -30297,7 +30350,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000039_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000040_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000042_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO mandatory attribute: SafetyStatus"]; @@ -30323,7 +30376,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000040_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000041_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000043_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO optional attribute default: CurrentPositionLift"]; @@ -30356,7 +30409,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000041_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000042_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000044_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO optional attribute: CurrentPositionLift"]; @@ -30380,7 +30433,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000042_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000043_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000045_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO optional attribute: CurrentPositionLift"]; @@ -30413,7 +30466,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000043_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000044_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000046_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO optional attribute default: CurrentPositionTilt"]; @@ -30446,7 +30499,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000044_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000045_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000047_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO optional attribute: CurrentPositionTilt"]; @@ -30470,7 +30523,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000045_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000046_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000048_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO optional attribute: CurrentPositionTilt"]; @@ -30503,7 +30556,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000046_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000047_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000049_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO optional attribute default: CurrentPositionLiftPercentage"]; @@ -30537,7 +30590,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000047_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000048_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000050_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO optional attribute: CurrentPositionLiftPercentage"]; @@ -30562,7 +30615,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000048_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000049_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000051_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO optional attribute: CurrentPositionLiftPercentage"]; @@ -30590,7 +30643,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000049_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000050_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000052_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"4: read the RO optional attribute default: CurrentPositionTiltPercentage"]; @@ -30624,7 +30677,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000050_ReadAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000051_WriteAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000053_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5a: write a value into the RO optional attribute: CurrentPositionTiltPercentage"]; @@ -30649,7 +30702,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000051_WriteAttribute [self waitForExpectationsWithTimeout:kTimeoutInSeconds handler:nil]; } -- (void)testSendClusterTest_TC_WNCV_2_1_000052_ReadAttribute +- (void)testSendClusterTest_TC_WNCV_2_1_000054_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"5b: reads back the RO optional attribute: CurrentPositionTiltPercentage"]; diff --git a/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h b/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h index 37996395f2823c..cb96942c66e3db 100644 --- a/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool-darwin/zap-generated/test/Commands.h @@ -39957,231 +39957,239 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { err = Test3aWriteAValueIntoTheRoMandatoryAttributeType_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : 2: read the RO mandatory attribute default: ConfigStatus\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : 3b: reads back the RO mandatory attribute: Type\n"); + err = Test3bReadsBackTheRoMandatoryAttributeType_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : 3a: write a value into the RO mandatory attribute: ConfigStatus\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : 2: read the RO mandatory attribute default: ConfigStatus\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : 3b: reads back the RO mandatory attribute: ConfigStatus\n"); - err = Test3bReadsBackTheRoMandatoryAttributeConfigStatus_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : 3a: write a value into the RO mandatory attribute: ConfigStatus\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : 2: read the RO mandatory attribute default: OperationalStatus\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : 3b: reads back the RO mandatory attribute: ConfigStatus\n"); + err = Test3bReadsBackTheRoMandatoryAttributeConfigStatus_6(); break; case 7: - ChipLogProgress( - chipTool, " ***** Test Step 7 : 3a: write a value into the RO mandatory attribute: OperationalStatus\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : 2: read the RO mandatory attribute default: OperationalStatus\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : 3b: reads back the RO mandatory attribute: OperationalStatus\n"); - err = Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_8(); + ChipLogProgress( + chipTool, " ***** Test Step 8 : 3a: write a value into the RO mandatory attribute: OperationalStatus\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : 2: read the RO mandatory attribute default: EndProductType\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultEndProductType_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : 3b: reads back the RO mandatory attribute: OperationalStatus\n"); + err = Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : 3a: write a value into the RO mandatory attribute: EndProductType\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : 2: read the RO mandatory attribute default: EndProductType\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultEndProductType_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : 2: read the RW mandatory attribute default: Mode\n"); - err = Test2ReadTheRwMandatoryAttributeDefaultMode_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : 3a: write a value into the RO mandatory attribute: EndProductType\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : 3a: write a value into the RW mandatory attribute:: Mode\n"); - err = Test3aWriteAValueIntoTheRwMandatoryAttributeMode_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : 3b: reads back the RO mandatory attribute: EndProductType\n"); + err = Test3bReadsBackTheRoMandatoryAttributeEndProductType_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : 3b: reads back the RW mandatory attribute: Mode\n"); - err = Test3bReadsBackTheRwMandatoryAttributeMode_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : 2: read the RW mandatory attribute default: Mode\n"); + err = Test2ReadTheRwMandatoryAttributeDefaultMode_13(); break; case 14: - ChipLogProgress( - chipTool, " ***** Test Step 14 : 2: read the RO optional attribute default: TargetPositionLiftPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : 3a: write a value into the RW mandatory attribute:: Mode\n"); + err = Test3aWriteAValueIntoTheRwMandatoryAttributeMode_14(); break; case 15: - ChipLogProgress(chipTool, - " ***** Test Step 15 : 3a: write a value into the RO optional attribute: TargetPositionLiftPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : 3b: reads back the RW mandatory attribute: Mode\n"); + err = Test3bReadsBackTheRwMandatoryAttributeMode_15(); break; case 16: ChipLogProgress( - chipTool, " ***** Test Step 16 : 3b: reads back the RO optional attribute: TargetPositionLiftPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_16(); + chipTool, " ***** Test Step 16 : 2: read the RO optional attribute default: TargetPositionLiftPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_16(); break; case 17: - ChipLogProgress( - chipTool, " ***** Test Step 17 : 2: read the RO optional attribute default: TargetPositionTiltPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_17(); + ChipLogProgress(chipTool, + " ***** Test Step 17 : 3a: write a value into the RO optional attribute: TargetPositionLiftPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_17(); break; case 18: - ChipLogProgress(chipTool, - " ***** Test Step 18 : 3a: write a value into the RO optional attribute: TargetPositionTiltPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_18(); + ChipLogProgress( + chipTool, " ***** Test Step 18 : 3b: reads back the RO optional attribute: TargetPositionLiftPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_18(); break; case 19: ChipLogProgress( - chipTool, " ***** Test Step 19 : 3b: reads back the RO optional attribute: TargetPositionTiltPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_19(); + chipTool, " ***** Test Step 19 : 2: read the RO optional attribute default: TargetPositionTiltPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_19(); break; case 20: - ChipLogProgress( - chipTool, " ***** Test Step 20 : 2: read the RO optional attribute default: CurrentPositionLiftPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_20(); + ChipLogProgress(chipTool, + " ***** Test Step 20 : 3a: write a value into the RO optional attribute: TargetPositionTiltPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_20(); break; case 21: - ChipLogProgress(chipTool, - " ***** Test Step 21 : 3a: write a value into the RO optional attribute: CurrentPositionLiftPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_21(); + ChipLogProgress( + chipTool, " ***** Test Step 21 : 3b: reads back the RO optional attribute: TargetPositionTiltPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_21(); break; case 22: ChipLogProgress( - chipTool, " ***** Test Step 22 : 3b: reads back the RO optional attribute: CurrentPositionLiftPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_22(); + chipTool, " ***** Test Step 22 : 2: read the RO optional attribute default: CurrentPositionLiftPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_22(); break; case 23: - ChipLogProgress( - chipTool, " ***** Test Step 23 : 2: read the RO optional attribute default: CurrentPositionTiltPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_23(); + ChipLogProgress(chipTool, + " ***** Test Step 23 : 3a: write a value into the RO optional attribute: CurrentPositionLiftPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_23(); break; case 24: - ChipLogProgress(chipTool, - " ***** Test Step 24 : 3a: write a value into the RO optional attribute: CurrentPositionTiltPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_24(); + ChipLogProgress( + chipTool, " ***** Test Step 24 : 3b: reads back the RO optional attribute: CurrentPositionLiftPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_24(); break; case 25: ChipLogProgress( - chipTool, " ***** Test Step 25 : 3b: reads back the RO optional attribute: CurrentPositionTiltPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_25(); + chipTool, " ***** Test Step 25 : 2: read the RO optional attribute default: CurrentPositionTiltPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_25(); break; case 26: - ChipLogProgress(chipTool, " ***** Test Step 26 : 2: read the RO optional attribute default: InstalledOpenLimitLift\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_26(); + ChipLogProgress(chipTool, + " ***** Test Step 26 : 3a: write a value into the RO optional attribute: CurrentPositionTiltPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_26(); break; case 27: ChipLogProgress( - chipTool, " ***** Test Step 27 : 3a: write a value into the RO optional attribute: InstalledOpenLimitLift\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_27(); + chipTool, " ***** Test Step 27 : 3b: reads back the RO optional attribute: CurrentPositionTiltPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_27(); break; case 28: - ChipLogProgress(chipTool, " ***** Test Step 28 : 3b: reads back the RO optional attribute: InstalledOpenLimitLift\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_28(); + ChipLogProgress(chipTool, " ***** Test Step 28 : 2: read the RO optional attribute default: InstalledOpenLimitLift\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_28(); break; case 29: ChipLogProgress( - chipTool, " ***** Test Step 29 : 2: read the RO optional attribute default: InstalledClosedLimitLift\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_29(); + chipTool, " ***** Test Step 29 : 3a: write a value into the RO optional attribute: InstalledOpenLimitLift\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_29(); break; case 30: - ChipLogProgress( - chipTool, " ***** Test Step 30 : 3a: write a value into the RO optional attribute: InstalledClosedLimitLift\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : 3b: reads back the RO optional attribute: InstalledOpenLimitLift\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_30(); break; case 31: - ChipLogProgress(chipTool, " ***** Test Step 31 : 3b: reads back the RO optional attribute: InstalledClosedLimitLift\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_31(); + ChipLogProgress( + chipTool, " ***** Test Step 31 : 2: read the RO optional attribute default: InstalledClosedLimitLift\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_31(); break; case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : 2: read the RO optional attribute default: InstalledOpenLimitTilt\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_32(); + ChipLogProgress( + chipTool, " ***** Test Step 32 : 3a: write a value into the RO optional attribute: InstalledClosedLimitLift\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_32(); break; case 33: - ChipLogProgress( - chipTool, " ***** Test Step 33 : 3a: write a value into the RO optional attribute: InstalledOpenLimitTilt\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : 3b: reads back the RO optional attribute: InstalledClosedLimitLift\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_33(); break; case 34: - ChipLogProgress(chipTool, " ***** Test Step 34 : 3b: reads back the RO optional attribute: InstalledOpenLimitTilt\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_34(); + ChipLogProgress(chipTool, " ***** Test Step 34 : 2: read the RO optional attribute default: InstalledOpenLimitTilt\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_34(); break; case 35: ChipLogProgress( - chipTool, " ***** Test Step 35 : 2: read the RO optional attribute default: InstalledClosedLimitTilt\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_35(); + chipTool, " ***** Test Step 35 : 3a: write a value into the RO optional attribute: InstalledOpenLimitTilt\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_35(); break; case 36: - ChipLogProgress( - chipTool, " ***** Test Step 36 : 3a: write a value into the RO optional attribute: InstalledClosedLimitTilt\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_36(); + ChipLogProgress(chipTool, " ***** Test Step 36 : 3b: reads back the RO optional attribute: InstalledOpenLimitTilt\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_36(); break; case 37: - ChipLogProgress(chipTool, " ***** Test Step 37 : 3b: reads back the RO optional attribute: InstalledClosedLimitTilt\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_37(); + ChipLogProgress( + chipTool, " ***** Test Step 37 : 2: read the RO optional attribute default: InstalledClosedLimitTilt\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_37(); break; case 38: - ChipLogProgress(chipTool, " ***** Test Step 38 : 4: read the RO mandatory attribute default: SafetyStatus\n"); - err = Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_38(); + ChipLogProgress( + chipTool, " ***** Test Step 38 : 3a: write a value into the RO optional attribute: InstalledClosedLimitTilt\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_38(); break; case 39: - ChipLogProgress(chipTool, " ***** Test Step 39 : 5a: write a value into the RO mandatory attribute: SafetyStatus\n"); - err = Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_39(); + ChipLogProgress(chipTool, " ***** Test Step 39 : 3b: reads back the RO optional attribute: InstalledClosedLimitTilt\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : 5b: reads back the RO mandatory attribute: SafetyStatus\n"); - err = Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_40(); + ChipLogProgress(chipTool, " ***** Test Step 40 : 4: read the RO mandatory attribute default: SafetyStatus\n"); + err = Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_40(); break; case 41: - ChipLogProgress(chipTool, " ***** Test Step 41 : 4: read the RO optional attribute default: CurrentPositionLift\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : 5a: write a value into the RO mandatory attribute: SafetyStatus\n"); + err = Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_41(); break; case 42: - ChipLogProgress( - chipTool, " ***** Test Step 42 : 5a: write a value into the RO optional attribute: CurrentPositionLift\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_42(); + ChipLogProgress(chipTool, " ***** Test Step 42 : 5b: reads back the RO mandatory attribute: SafetyStatus\n"); + err = Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_42(); break; case 43: - ChipLogProgress(chipTool, " ***** Test Step 43 : 5b: reads back the RO optional attribute: CurrentPositionLift\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_43(); + ChipLogProgress(chipTool, " ***** Test Step 43 : 4: read the RO optional attribute default: CurrentPositionLift\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_43(); break; case 44: - ChipLogProgress(chipTool, " ***** Test Step 44 : 4: read the RO optional attribute default: CurrentPositionTilt\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_44(); + ChipLogProgress( + chipTool, " ***** Test Step 44 : 5a: write a value into the RO optional attribute: CurrentPositionLift\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_44(); break; case 45: - ChipLogProgress( - chipTool, " ***** Test Step 45 : 5a: write a value into the RO optional attribute: CurrentPositionTilt\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_45(); + ChipLogProgress(chipTool, " ***** Test Step 45 : 5b: reads back the RO optional attribute: CurrentPositionLift\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_45(); break; case 46: - ChipLogProgress(chipTool, " ***** Test Step 46 : 5b: reads back the RO optional attribute: CurrentPositionTilt\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_46(); + ChipLogProgress(chipTool, " ***** Test Step 46 : 4: read the RO optional attribute default: CurrentPositionTilt\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_46(); break; case 47: ChipLogProgress( - chipTool, " ***** Test Step 47 : 4: read the RO optional attribute default: CurrentPositionLiftPercentage\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_47(); + chipTool, " ***** Test Step 47 : 5a: write a value into the RO optional attribute: CurrentPositionTilt\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_47(); break; case 48: - ChipLogProgress(chipTool, - " ***** Test Step 48 : 5a: write a value into the RO optional attribute: CurrentPositionLiftPercentage\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_48(); + ChipLogProgress(chipTool, " ***** Test Step 48 : 5b: reads back the RO optional attribute: CurrentPositionTilt\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_48(); break; case 49: ChipLogProgress( - chipTool, " ***** Test Step 49 : 5b: reads back the RO optional attribute: CurrentPositionLiftPercentage\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_49(); + chipTool, " ***** Test Step 49 : 4: read the RO optional attribute default: CurrentPositionLiftPercentage\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_49(); break; case 50: - ChipLogProgress( - chipTool, " ***** Test Step 50 : 4: read the RO optional attribute default: CurrentPositionTiltPercentage\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_50(); + ChipLogProgress(chipTool, + " ***** Test Step 50 : 5a: write a value into the RO optional attribute: CurrentPositionLiftPercentage\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_50(); break; case 51: - ChipLogProgress(chipTool, - " ***** Test Step 51 : 5a: write a value into the RO optional attribute: CurrentPositionTiltPercentage\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_51(); + ChipLogProgress( + chipTool, " ***** Test Step 51 : 5b: reads back the RO optional attribute: CurrentPositionLiftPercentage\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_51(); break; case 52: ChipLogProgress( - chipTool, " ***** Test Step 52 : 5b: reads back the RO optional attribute: CurrentPositionTiltPercentage\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_52(); + chipTool, " ***** Test Step 52 : 4: read the RO optional attribute default: CurrentPositionTiltPercentage\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_52(); + break; + case 53: + ChipLogProgress(chipTool, + " ***** Test Step 53 : 5a: write a value into the RO optional attribute: CurrentPositionTiltPercentage\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_53(); + break; + case 54: + ChipLogProgress( + chipTool, " ***** Test Step 54 : 5b: reads back the RO optional attribute: CurrentPositionTiltPercentage\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_54(); break; } @@ -40198,7 +40206,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 53; + const uint16_t mTestCount = 55; chip::Optional mNodeId; chip::Optional mCluster; @@ -40255,7 +40263,29 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_3() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeType_3() + { + CHIPDevice * device = GetConnectedDevice(); + CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"3b: reads back the RO mandatory attribute: Type Error: %@", err); + + VerifyOrReturn(CheckValue("status", err, 0)); + + VerifyOrReturn(CheckConstraintType("type", "", "enum8")); + if (value != nil) { + VerifyOrReturn(CheckConstraintNotValue("type", value, 250)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_4() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40280,7 +40310,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_4() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_5() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40299,7 +40329,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeConfigStatus_5() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeConfigStatus_6() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40321,7 +40351,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_6() + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_7() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40346,7 +40376,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_7() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_8() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40366,7 +40396,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_8() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_9() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40388,7 +40418,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultEndProductType_9() + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultEndProductType_10() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40413,7 +40443,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_10() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_11() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40432,7 +40462,29 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRwMandatoryAttributeDefaultMode_11() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeEndProductType_12() + { + CHIPDevice * device = GetConnectedDevice(); + CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); + + [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { + NSLog(@"3b: reads back the RO mandatory attribute: EndProductType Error: %@", err); + + VerifyOrReturn(CheckValue("status", err, 0)); + + VerifyOrReturn(CheckConstraintType("endProductType", "", "enum8")); + if (value != nil) { + VerifyOrReturn(CheckConstraintNotValue("endProductType", value, 250)); + } + + NextTest(); + }]; + + return CHIP_NO_ERROR; + } + + CHIP_ERROR Test2ReadTheRwMandatoryAttributeDefaultMode_13() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40457,7 +40509,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRwMandatoryAttributeMode_12() + CHIP_ERROR Test3aWriteAValueIntoTheRwMandatoryAttributeMode_14() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40477,7 +40529,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRwMandatoryAttributeMode_13() + CHIP_ERROR Test3bReadsBackTheRwMandatoryAttributeMode_15() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40499,7 +40551,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_14() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_16() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40527,7 +40579,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_15() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_17() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40549,7 +40601,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_16() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_18() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40572,7 +40624,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_17() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_19() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40600,7 +40652,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_18() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_20() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40622,7 +40674,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_19() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_21() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40645,7 +40697,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_20() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_22() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40673,7 +40725,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_21() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_23() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40695,7 +40747,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_22() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_24() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40718,7 +40770,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_23() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_25() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40746,7 +40798,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_24() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_26() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40768,7 +40820,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_25() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_27() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40791,7 +40843,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_26() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_28() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40816,7 +40868,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_27() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_29() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40837,7 +40889,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_28() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_30() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40862,7 +40914,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_29() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_31() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40887,7 +40939,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_30() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_32() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40908,7 +40960,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_31() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_33() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40933,7 +40985,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_32() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_34() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40958,7 +41010,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_33() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_35() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -40979,7 +41031,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_34() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_36() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41004,7 +41056,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_35() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_37() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41029,7 +41081,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_36() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_38() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41050,7 +41102,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_37() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_39() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41075,7 +41127,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_38() + CHIP_ERROR Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_40() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41100,7 +41152,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_39() + CHIP_ERROR Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_41() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41119,7 +41171,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_40() + CHIP_ERROR Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_42() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41141,7 +41193,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_41() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_43() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41166,7 +41218,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_42() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_44() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41187,7 +41239,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_43() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_45() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41212,7 +41264,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_44() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_46() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41237,7 +41289,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_45() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_47() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41258,7 +41310,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_46() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_48() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41283,7 +41335,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_47() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_49() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41311,7 +41363,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_48() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_50() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41333,7 +41385,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_49() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_51() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41356,7 +41408,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_50() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_52() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41384,7 +41436,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_51() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_53() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; @@ -41406,7 +41458,7 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { return CHIP_NO_ERROR; } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_52() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_54() { CHIPDevice * device = GetConnectedDevice(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 6d911a0b0f87ec..07cec1c8cf30df 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -56997,237 +56997,245 @@ class Test_TC_WNCV_2_1Suite : public TestCommand err = Test3aWriteAValueIntoTheRoMandatoryAttributeType_2(); break; case 3: - ChipLogProgress(chipTool, " ***** Test Step 3 : 2: read the RO mandatory attribute default: ConfigStatus\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_3(); + ChipLogProgress(chipTool, " ***** Test Step 3 : 3b: reads back the RO mandatory attribute: Type\n"); + err = Test3bReadsBackTheRoMandatoryAttributeType_3(); break; case 4: - ChipLogProgress(chipTool, " ***** Test Step 4 : 3a: write a value into the RO mandatory attribute: ConfigStatus\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_4(); + ChipLogProgress(chipTool, " ***** Test Step 4 : 2: read the RO mandatory attribute default: ConfigStatus\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_4(); break; case 5: - ChipLogProgress(chipTool, " ***** Test Step 5 : 3b: reads back the RO mandatory attribute: ConfigStatus\n"); - err = Test3bReadsBackTheRoMandatoryAttributeConfigStatus_5(); + ChipLogProgress(chipTool, " ***** Test Step 5 : 3a: write a value into the RO mandatory attribute: ConfigStatus\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_5(); break; case 6: - ChipLogProgress(chipTool, " ***** Test Step 6 : 2: read the RO mandatory attribute default: OperationalStatus\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_6(); + ChipLogProgress(chipTool, " ***** Test Step 6 : 3b: reads back the RO mandatory attribute: ConfigStatus\n"); + err = Test3bReadsBackTheRoMandatoryAttributeConfigStatus_6(); break; case 7: - ChipLogProgress(chipTool, - " ***** Test Step 7 : 3a: write a value into the RO mandatory attribute: OperationalStatus\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_7(); + ChipLogProgress(chipTool, " ***** Test Step 7 : 2: read the RO mandatory attribute default: OperationalStatus\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_7(); break; case 8: - ChipLogProgress(chipTool, " ***** Test Step 8 : 3b: reads back the RO mandatory attribute: OperationalStatus\n"); - err = Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_8(); + ChipLogProgress(chipTool, + " ***** Test Step 8 : 3a: write a value into the RO mandatory attribute: OperationalStatus\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_8(); break; case 9: - ChipLogProgress(chipTool, " ***** Test Step 9 : 2: read the RO mandatory attribute default: EndProductType\n"); - err = Test2ReadTheRoMandatoryAttributeDefaultEndProductType_9(); + ChipLogProgress(chipTool, " ***** Test Step 9 : 3b: reads back the RO mandatory attribute: OperationalStatus\n"); + err = Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_9(); break; case 10: - ChipLogProgress(chipTool, " ***** Test Step 10 : 3a: write a value into the RO mandatory attribute: EndProductType\n"); - err = Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_10(); + ChipLogProgress(chipTool, " ***** Test Step 10 : 2: read the RO mandatory attribute default: EndProductType\n"); + err = Test2ReadTheRoMandatoryAttributeDefaultEndProductType_10(); break; case 11: - ChipLogProgress(chipTool, " ***** Test Step 11 : 2: read the RW mandatory attribute default: Mode\n"); - err = Test2ReadTheRwMandatoryAttributeDefaultMode_11(); + ChipLogProgress(chipTool, " ***** Test Step 11 : 3a: write a value into the RO mandatory attribute: EndProductType\n"); + err = Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_11(); break; case 12: - ChipLogProgress(chipTool, " ***** Test Step 12 : 3a: write a value into the RW mandatory attribute:: Mode\n"); - err = Test3aWriteAValueIntoTheRwMandatoryAttributeMode_12(); + ChipLogProgress(chipTool, " ***** Test Step 12 : 3b: reads back the RO mandatory attribute: EndProductType\n"); + err = Test3bReadsBackTheRoMandatoryAttributeEndProductType_12(); break; case 13: - ChipLogProgress(chipTool, " ***** Test Step 13 : 3b: reads back the RW mandatory attribute: Mode\n"); - err = Test3bReadsBackTheRwMandatoryAttributeMode_13(); + ChipLogProgress(chipTool, " ***** Test Step 13 : 2: read the RW mandatory attribute default: Mode\n"); + err = Test2ReadTheRwMandatoryAttributeDefaultMode_13(); break; case 14: - ChipLogProgress(chipTool, - " ***** Test Step 14 : 2: read the RO optional attribute default: TargetPositionLiftPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_14(); + ChipLogProgress(chipTool, " ***** Test Step 14 : 3a: write a value into the RW mandatory attribute:: Mode\n"); + err = Test3aWriteAValueIntoTheRwMandatoryAttributeMode_14(); break; case 15: - ChipLogProgress( - chipTool, - " ***** Test Step 15 : 3a: write a value into the RO optional attribute: TargetPositionLiftPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_15(); + ChipLogProgress(chipTool, " ***** Test Step 15 : 3b: reads back the RW mandatory attribute: Mode\n"); + err = Test3bReadsBackTheRwMandatoryAttributeMode_15(); break; case 16: ChipLogProgress(chipTool, - " ***** Test Step 16 : 3b: reads back the RO optional attribute: TargetPositionLiftPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_16(); + " ***** Test Step 16 : 2: read the RO optional attribute default: TargetPositionLiftPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_16(); break; case 17: - ChipLogProgress(chipTool, - " ***** Test Step 17 : 2: read the RO optional attribute default: TargetPositionTiltPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_17(); - break; - case 18: ChipLogProgress( chipTool, - " ***** Test Step 18 : 3a: write a value into the RO optional attribute: TargetPositionTiltPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_18(); + " ***** Test Step 17 : 3a: write a value into the RO optional attribute: TargetPositionLiftPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_17(); break; - case 19: + case 18: ChipLogProgress(chipTool, - " ***** Test Step 19 : 3b: reads back the RO optional attribute: TargetPositionTiltPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_19(); + " ***** Test Step 18 : 3b: reads back the RO optional attribute: TargetPositionLiftPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_18(); break; - case 20: + case 19: ChipLogProgress(chipTool, - " ***** Test Step 20 : 2: read the RO optional attribute default: CurrentPositionLiftPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_20(); + " ***** Test Step 19 : 2: read the RO optional attribute default: TargetPositionTiltPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_19(); break; - case 21: + case 20: ChipLogProgress( chipTool, - " ***** Test Step 21 : 3a: write a value into the RO optional attribute: CurrentPositionLiftPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_21(); + " ***** Test Step 20 : 3a: write a value into the RO optional attribute: TargetPositionTiltPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_20(); break; - case 22: + case 21: ChipLogProgress(chipTool, - " ***** Test Step 22 : 3b: reads back the RO optional attribute: CurrentPositionLiftPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_22(); + " ***** Test Step 21 : 3b: reads back the RO optional attribute: TargetPositionTiltPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_21(); break; - case 23: + case 22: ChipLogProgress(chipTool, - " ***** Test Step 23 : 2: read the RO optional attribute default: CurrentPositionTiltPercent100ths\n"); - err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_23(); + " ***** Test Step 22 : 2: read the RO optional attribute default: CurrentPositionLiftPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_22(); break; - case 24: + case 23: ChipLogProgress( chipTool, - " ***** Test Step 24 : 3a: write a value into the RO optional attribute: CurrentPositionTiltPercent100ths\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_24(); + " ***** Test Step 23 : 3a: write a value into the RO optional attribute: CurrentPositionLiftPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_23(); + break; + case 24: + ChipLogProgress(chipTool, + " ***** Test Step 24 : 3b: reads back the RO optional attribute: CurrentPositionLiftPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_24(); break; case 25: ChipLogProgress(chipTool, - " ***** Test Step 25 : 3b: reads back the RO optional attribute: CurrentPositionTiltPercent100ths\n"); - err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_25(); + " ***** Test Step 25 : 2: read the RO optional attribute default: CurrentPositionTiltPercent100ths\n"); + err = Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_25(); break; case 26: - ChipLogProgress(chipTool, " ***** Test Step 26 : 2: read the RO optional attribute default: InstalledOpenLimitLift\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_26(); + ChipLogProgress( + chipTool, + " ***** Test Step 26 : 3a: write a value into the RO optional attribute: CurrentPositionTiltPercent100ths\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_26(); break; case 27: ChipLogProgress(chipTool, - " ***** Test Step 27 : 3a: write a value into the RO optional attribute: InstalledOpenLimitLift\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_27(); + " ***** Test Step 27 : 3b: reads back the RO optional attribute: CurrentPositionTiltPercent100ths\n"); + err = Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_27(); break; case 28: - ChipLogProgress(chipTool, " ***** Test Step 28 : 3b: reads back the RO optional attribute: InstalledOpenLimitLift\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_28(); + ChipLogProgress(chipTool, " ***** Test Step 28 : 2: read the RO optional attribute default: InstalledOpenLimitLift\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_28(); break; case 29: ChipLogProgress(chipTool, - " ***** Test Step 29 : 2: read the RO optional attribute default: InstalledClosedLimitLift\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_29(); + " ***** Test Step 29 : 3a: write a value into the RO optional attribute: InstalledOpenLimitLift\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_29(); break; case 30: - ChipLogProgress(chipTool, - " ***** Test Step 30 : 3a: write a value into the RO optional attribute: InstalledClosedLimitLift\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_30(); + ChipLogProgress(chipTool, " ***** Test Step 30 : 3b: reads back the RO optional attribute: InstalledOpenLimitLift\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_30(); break; case 31: - ChipLogProgress(chipTool, " ***** Test Step 31 : 3b: reads back the RO optional attribute: InstalledClosedLimitLift\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_31(); + ChipLogProgress(chipTool, + " ***** Test Step 31 : 2: read the RO optional attribute default: InstalledClosedLimitLift\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_31(); break; case 32: - ChipLogProgress(chipTool, " ***** Test Step 32 : 2: read the RO optional attribute default: InstalledOpenLimitTilt\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_32(); + ChipLogProgress(chipTool, + " ***** Test Step 32 : 3a: write a value into the RO optional attribute: InstalledClosedLimitLift\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_32(); break; case 33: - ChipLogProgress(chipTool, - " ***** Test Step 33 : 3a: write a value into the RO optional attribute: InstalledOpenLimitTilt\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_33(); + ChipLogProgress(chipTool, " ***** Test Step 33 : 3b: reads back the RO optional attribute: InstalledClosedLimitLift\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_33(); break; case 34: - ChipLogProgress(chipTool, " ***** Test Step 34 : 3b: reads back the RO optional attribute: InstalledOpenLimitTilt\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_34(); + ChipLogProgress(chipTool, " ***** Test Step 34 : 2: read the RO optional attribute default: InstalledOpenLimitTilt\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_34(); break; case 35: ChipLogProgress(chipTool, - " ***** Test Step 35 : 2: read the RO optional attribute default: InstalledClosedLimitTilt\n"); - err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_35(); + " ***** Test Step 35 : 3a: write a value into the RO optional attribute: InstalledOpenLimitTilt\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_35(); break; case 36: - ChipLogProgress(chipTool, - " ***** Test Step 36 : 3a: write a value into the RO optional attribute: InstalledClosedLimitTilt\n"); - err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_36(); + ChipLogProgress(chipTool, " ***** Test Step 36 : 3b: reads back the RO optional attribute: InstalledOpenLimitTilt\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_36(); break; case 37: - ChipLogProgress(chipTool, " ***** Test Step 37 : 3b: reads back the RO optional attribute: InstalledClosedLimitTilt\n"); - err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_37(); + ChipLogProgress(chipTool, + " ***** Test Step 37 : 2: read the RO optional attribute default: InstalledClosedLimitTilt\n"); + err = Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_37(); break; case 38: - ChipLogProgress(chipTool, " ***** Test Step 38 : 4: read the RO mandatory attribute default: SafetyStatus\n"); - err = Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_38(); + ChipLogProgress(chipTool, + " ***** Test Step 38 : 3a: write a value into the RO optional attribute: InstalledClosedLimitTilt\n"); + err = Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_38(); break; case 39: - ChipLogProgress(chipTool, " ***** Test Step 39 : 5a: write a value into the RO mandatory attribute: SafetyStatus\n"); - err = Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_39(); + ChipLogProgress(chipTool, " ***** Test Step 39 : 3b: reads back the RO optional attribute: InstalledClosedLimitTilt\n"); + err = Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_39(); break; case 40: - ChipLogProgress(chipTool, " ***** Test Step 40 : 5b: reads back the RO mandatory attribute: SafetyStatus\n"); - err = Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_40(); + ChipLogProgress(chipTool, " ***** Test Step 40 : 4: read the RO mandatory attribute default: SafetyStatus\n"); + err = Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_40(); break; case 41: - ChipLogProgress(chipTool, " ***** Test Step 41 : 4: read the RO optional attribute default: CurrentPositionLift\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_41(); + ChipLogProgress(chipTool, " ***** Test Step 41 : 5a: write a value into the RO mandatory attribute: SafetyStatus\n"); + err = Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_41(); break; case 42: - ChipLogProgress(chipTool, - " ***** Test Step 42 : 5a: write a value into the RO optional attribute: CurrentPositionLift\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_42(); + ChipLogProgress(chipTool, " ***** Test Step 42 : 5b: reads back the RO mandatory attribute: SafetyStatus\n"); + err = Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_42(); break; case 43: - ChipLogProgress(chipTool, " ***** Test Step 43 : 5b: reads back the RO optional attribute: CurrentPositionLift\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_43(); + ChipLogProgress(chipTool, " ***** Test Step 43 : 4: read the RO optional attribute default: CurrentPositionLift\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_43(); break; case 44: - ChipLogProgress(chipTool, " ***** Test Step 44 : 4: read the RO optional attribute default: CurrentPositionTilt\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_44(); + ChipLogProgress(chipTool, + " ***** Test Step 44 : 5a: write a value into the RO optional attribute: CurrentPositionLift\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_44(); break; case 45: - ChipLogProgress(chipTool, - " ***** Test Step 45 : 5a: write a value into the RO optional attribute: CurrentPositionTilt\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_45(); + ChipLogProgress(chipTool, " ***** Test Step 45 : 5b: reads back the RO optional attribute: CurrentPositionLift\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_45(); break; case 46: - ChipLogProgress(chipTool, " ***** Test Step 46 : 5b: reads back the RO optional attribute: CurrentPositionTilt\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_46(); + ChipLogProgress(chipTool, " ***** Test Step 46 : 4: read the RO optional attribute default: CurrentPositionTilt\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_46(); break; case 47: ChipLogProgress(chipTool, - " ***** Test Step 47 : 4: read the RO optional attribute default: CurrentPositionLiftPercentage\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_47(); + " ***** Test Step 47 : 5a: write a value into the RO optional attribute: CurrentPositionTilt\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_47(); break; case 48: - ChipLogProgress( - chipTool, - " ***** Test Step 48 : 5a: write a value into the RO optional attribute: CurrentPositionLiftPercentage\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_48(); + ChipLogProgress(chipTool, " ***** Test Step 48 : 5b: reads back the RO optional attribute: CurrentPositionTilt\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_48(); break; case 49: ChipLogProgress(chipTool, - " ***** Test Step 49 : 5b: reads back the RO optional attribute: CurrentPositionLiftPercentage\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_49(); + " ***** Test Step 49 : 4: read the RO optional attribute default: CurrentPositionLiftPercentage\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_49(); break; case 50: - ChipLogProgress(chipTool, - " ***** Test Step 50 : 4: read the RO optional attribute default: CurrentPositionTiltPercentage\n"); - err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_50(); + ChipLogProgress( + chipTool, + " ***** Test Step 50 : 5a: write a value into the RO optional attribute: CurrentPositionLiftPercentage\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_50(); break; case 51: + ChipLogProgress(chipTool, + " ***** Test Step 51 : 5b: reads back the RO optional attribute: CurrentPositionLiftPercentage\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_51(); + break; + case 52: + ChipLogProgress(chipTool, + " ***** Test Step 52 : 4: read the RO optional attribute default: CurrentPositionTiltPercentage\n"); + err = Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_52(); + break; + case 53: ChipLogProgress( chipTool, - " ***** Test Step 51 : 5a: write a value into the RO optional attribute: CurrentPositionTiltPercentage\n"); - err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_51(); + " ***** Test Step 53 : 5a: write a value into the RO optional attribute: CurrentPositionTiltPercentage\n"); + err = Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_53(); break; - case 52: + case 54: ChipLogProgress(chipTool, - " ***** Test Step 52 : 5b: reads back the RO optional attribute: CurrentPositionTiltPercentage\n"); - err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_52(); + " ***** Test Step 54 : 5b: reads back the RO optional attribute: CurrentPositionTiltPercentage\n"); + err = Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_54(); break; } @@ -57245,7 +57253,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand private: std::atomic_uint16_t mTestIndex; - const uint16_t mTestCount = 53; + const uint16_t mTestCount = 55; chip::Optional mNodeId; chip::Optional mCluster; @@ -57294,9 +57302,9 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_3(error); } - static void OnSuccessCallback_3(void * context, uint8_t configStatus) + static void OnSuccessCallback_3(void * context, chip::app::Clusters::WindowCovering::Type type) { - (static_cast(context))->OnSuccessResponse_3(configStatus); + (static_cast(context))->OnSuccessResponse_3(type); } static void OnFailureCallback_4(void * context, CHIP_ERROR error) @@ -57304,26 +57312,26 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_4(error); } - static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } + static void OnSuccessCallback_4(void * context, uint8_t configStatus) + { + (static_cast(context))->OnSuccessResponse_4(configStatus); + } static void OnFailureCallback_5(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_5(error); } - static void OnSuccessCallback_5(void * context, uint8_t configStatus) - { - (static_cast(context))->OnSuccessResponse_5(configStatus); - } + static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } static void OnFailureCallback_6(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_6(error); } - static void OnSuccessCallback_6(void * context, uint8_t operationalStatus) + static void OnSuccessCallback_6(void * context, uint8_t configStatus) { - (static_cast(context))->OnSuccessResponse_6(operationalStatus); + (static_cast(context))->OnSuccessResponse_6(configStatus); } static void OnFailureCallback_7(void * context, CHIP_ERROR error) @@ -57331,26 +57339,26 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_7(error); } - static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } + static void OnSuccessCallback_7(void * context, uint8_t operationalStatus) + { + (static_cast(context))->OnSuccessResponse_7(operationalStatus); + } static void OnFailureCallback_8(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_8(error); } - static void OnSuccessCallback_8(void * context, uint8_t operationalStatus) - { - (static_cast(context))->OnSuccessResponse_8(operationalStatus); - } + static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } static void OnFailureCallback_9(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_9(error); } - static void OnSuccessCallback_9(void * context, chip::app::Clusters::WindowCovering::EndProductType endProductType) + static void OnSuccessCallback_9(void * context, uint8_t operationalStatus) { - (static_cast(context))->OnSuccessResponse_9(endProductType); + (static_cast(context))->OnSuccessResponse_9(operationalStatus); } static void OnFailureCallback_10(void * context, CHIP_ERROR error) @@ -57358,24 +57366,27 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_10(error); } - static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } + static void OnSuccessCallback_10(void * context, chip::app::Clusters::WindowCovering::EndProductType endProductType) + { + (static_cast(context))->OnSuccessResponse_10(endProductType); + } static void OnFailureCallback_11(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_11(error); } - static void OnSuccessCallback_11(void * context, uint8_t mode) - { - (static_cast(context))->OnSuccessResponse_11(mode); - } + static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } static void OnFailureCallback_12(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_12(error); } - static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } + static void OnSuccessCallback_12(void * context, chip::app::Clusters::WindowCovering::EndProductType endProductType) + { + (static_cast(context))->OnSuccessResponse_12(endProductType); + } static void OnFailureCallback_13(void * context, CHIP_ERROR error) { @@ -57392,18 +57403,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_14(error); } - static void OnSuccessCallback_14(void * context, - const chip::app::DataModel::Nullable & targetPositionLiftPercent100ths) - { - (static_cast(context))->OnSuccessResponse_14(targetPositionLiftPercent100ths); - } + static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } static void OnFailureCallback_15(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_15(error); } - static void OnSuccessCallback_15(void * context) { (static_cast(context))->OnSuccessResponse_15(); } + static void OnSuccessCallback_15(void * context, uint8_t mode) + { + (static_cast(context))->OnSuccessResponse_15(mode); + } static void OnFailureCallback_16(void * context, CHIP_ERROR error) { @@ -57421,18 +57431,18 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_17(error); } - static void OnSuccessCallback_17(void * context, - const chip::app::DataModel::Nullable & targetPositionTiltPercent100ths) - { - (static_cast(context))->OnSuccessResponse_17(targetPositionTiltPercent100ths); - } + static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } static void OnFailureCallback_18(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_18(error); } - static void OnSuccessCallback_18(void * context) { (static_cast(context))->OnSuccessResponse_18(); } + static void OnSuccessCallback_18(void * context, + const chip::app::DataModel::Nullable & targetPositionLiftPercent100ths) + { + (static_cast(context))->OnSuccessResponse_18(targetPositionLiftPercent100ths); + } static void OnFailureCallback_19(void * context, CHIP_ERROR error) { @@ -57450,18 +57460,18 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_20(error); } - static void OnSuccessCallback_20(void * context, - const chip::app::DataModel::Nullable & currentPositionLiftPercent100ths) - { - (static_cast(context))->OnSuccessResponse_20(currentPositionLiftPercent100ths); - } + static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } static void OnFailureCallback_21(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_21(error); } - static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } + static void OnSuccessCallback_21(void * context, + const chip::app::DataModel::Nullable & targetPositionTiltPercent100ths) + { + (static_cast(context))->OnSuccessResponse_21(targetPositionTiltPercent100ths); + } static void OnFailureCallback_22(void * context, CHIP_ERROR error) { @@ -57479,18 +57489,18 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_23(error); } - static void OnSuccessCallback_23(void * context, - const chip::app::DataModel::Nullable & currentPositionTiltPercent100ths) - { - (static_cast(context))->OnSuccessResponse_23(currentPositionTiltPercent100ths); - } + static void OnSuccessCallback_23(void * context) { (static_cast(context))->OnSuccessResponse_23(); } static void OnFailureCallback_24(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_24(error); } - static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } + static void OnSuccessCallback_24(void * context, + const chip::app::DataModel::Nullable & currentPositionLiftPercent100ths) + { + (static_cast(context))->OnSuccessResponse_24(currentPositionLiftPercent100ths); + } static void OnFailureCallback_25(void * context, CHIP_ERROR error) { @@ -57508,17 +57518,18 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_26(error); } - static void OnSuccessCallback_26(void * context, uint16_t installedOpenLimitLift) - { - (static_cast(context))->OnSuccessResponse_26(installedOpenLimitLift); - } + static void OnSuccessCallback_26(void * context) { (static_cast(context))->OnSuccessResponse_26(); } static void OnFailureCallback_27(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_27(error); } - static void OnSuccessCallback_27(void * context) { (static_cast(context))->OnSuccessResponse_27(); } + static void OnSuccessCallback_27(void * context, + const chip::app::DataModel::Nullable & currentPositionTiltPercent100ths) + { + (static_cast(context))->OnSuccessResponse_27(currentPositionTiltPercent100ths); + } static void OnFailureCallback_28(void * context, CHIP_ERROR error) { @@ -57535,17 +57546,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_29(error); } - static void OnSuccessCallback_29(void * context, uint16_t installedClosedLimitLift) - { - (static_cast(context))->OnSuccessResponse_29(installedClosedLimitLift); - } + static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } static void OnFailureCallback_30(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_30(error); } - static void OnSuccessCallback_30(void * context) { (static_cast(context))->OnSuccessResponse_30(); } + static void OnSuccessCallback_30(void * context, uint16_t installedOpenLimitLift) + { + (static_cast(context))->OnSuccessResponse_30(installedOpenLimitLift); + } static void OnFailureCallback_31(void * context, CHIP_ERROR error) { @@ -57562,17 +57573,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_32(error); } - static void OnSuccessCallback_32(void * context, uint16_t installedOpenLimitTilt) - { - (static_cast(context))->OnSuccessResponse_32(installedOpenLimitTilt); - } + static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } static void OnFailureCallback_33(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_33(error); } - static void OnSuccessCallback_33(void * context) { (static_cast(context))->OnSuccessResponse_33(); } + static void OnSuccessCallback_33(void * context, uint16_t installedClosedLimitLift) + { + (static_cast(context))->OnSuccessResponse_33(installedClosedLimitLift); + } static void OnFailureCallback_34(void * context, CHIP_ERROR error) { @@ -57589,17 +57600,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_35(error); } - static void OnSuccessCallback_35(void * context, uint16_t installedClosedLimitTilt) - { - (static_cast(context))->OnSuccessResponse_35(installedClosedLimitTilt); - } + static void OnSuccessCallback_35(void * context) { (static_cast(context))->OnSuccessResponse_35(); } static void OnFailureCallback_36(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_36(error); } - static void OnSuccessCallback_36(void * context) { (static_cast(context))->OnSuccessResponse_36(); } + static void OnSuccessCallback_36(void * context, uint16_t installedOpenLimitTilt) + { + (static_cast(context))->OnSuccessResponse_36(installedOpenLimitTilt); + } static void OnFailureCallback_37(void * context, CHIP_ERROR error) { @@ -57616,17 +57627,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_38(error); } - static void OnSuccessCallback_38(void * context, uint16_t safetyStatus) - { - (static_cast(context))->OnSuccessResponse_38(safetyStatus); - } + static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } static void OnFailureCallback_39(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_39(error); } - static void OnSuccessCallback_39(void * context) { (static_cast(context))->OnSuccessResponse_39(); } + static void OnSuccessCallback_39(void * context, uint16_t installedClosedLimitTilt) + { + (static_cast(context))->OnSuccessResponse_39(installedClosedLimitTilt); + } static void OnFailureCallback_40(void * context, CHIP_ERROR error) { @@ -57643,17 +57654,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_41(error); } - static void OnSuccessCallback_41(void * context, const chip::app::DataModel::Nullable & currentPositionLift) - { - (static_cast(context))->OnSuccessResponse_41(currentPositionLift); - } + static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } static void OnFailureCallback_42(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_42(error); } - static void OnSuccessCallback_42(void * context) { (static_cast(context))->OnSuccessResponse_42(); } + static void OnSuccessCallback_42(void * context, uint16_t safetyStatus) + { + (static_cast(context))->OnSuccessResponse_42(safetyStatus); + } static void OnFailureCallback_43(void * context, CHIP_ERROR error) { @@ -57670,17 +57681,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_44(error); } - static void OnSuccessCallback_44(void * context, const chip::app::DataModel::Nullable & currentPositionTilt) - { - (static_cast(context))->OnSuccessResponse_44(currentPositionTilt); - } + static void OnSuccessCallback_44(void * context) { (static_cast(context))->OnSuccessResponse_44(); } static void OnFailureCallback_45(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_45(error); } - static void OnSuccessCallback_45(void * context) { (static_cast(context))->OnSuccessResponse_45(); } + static void OnSuccessCallback_45(void * context, const chip::app::DataModel::Nullable & currentPositionLift) + { + (static_cast(context))->OnSuccessResponse_45(currentPositionLift); + } static void OnFailureCallback_46(void * context, CHIP_ERROR error) { @@ -57697,18 +57708,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_47(error); } - static void OnSuccessCallback_47(void * context, - const chip::app::DataModel::Nullable & currentPositionLiftPercentage) - { - (static_cast(context))->OnSuccessResponse_47(currentPositionLiftPercentage); - } + static void OnSuccessCallback_47(void * context) { (static_cast(context))->OnSuccessResponse_47(); } static void OnFailureCallback_48(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_48(error); } - static void OnSuccessCallback_48(void * context) { (static_cast(context))->OnSuccessResponse_48(); } + static void OnSuccessCallback_48(void * context, const chip::app::DataModel::Nullable & currentPositionTilt) + { + (static_cast(context))->OnSuccessResponse_48(currentPositionTilt); + } static void OnFailureCallback_49(void * context, CHIP_ERROR error) { @@ -57726,18 +57736,18 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnFailureResponse_50(error); } - static void OnSuccessCallback_50(void * context, - const chip::app::DataModel::Nullable & currentPositionTiltPercentage) - { - (static_cast(context))->OnSuccessResponse_50(currentPositionTiltPercentage); - } + static void OnSuccessCallback_50(void * context) { (static_cast(context))->OnSuccessResponse_50(); } static void OnFailureCallback_51(void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_51(error); } - static void OnSuccessCallback_51(void * context) { (static_cast(context))->OnSuccessResponse_51(); } + static void OnSuccessCallback_51(void * context, + const chip::app::DataModel::Nullable & currentPositionLiftPercentage) + { + (static_cast(context))->OnSuccessResponse_51(currentPositionLiftPercentage); + } static void OnFailureCallback_52(void * context, CHIP_ERROR error) { @@ -57750,6 +57760,24 @@ class Test_TC_WNCV_2_1Suite : public TestCommand (static_cast(context))->OnSuccessResponse_52(currentPositionTiltPercentage); } + static void OnFailureCallback_53(void * context, CHIP_ERROR error) + { + (static_cast(context))->OnFailureResponse_53(error); + } + + static void OnSuccessCallback_53(void * context) { (static_cast(context))->OnSuccessResponse_53(); } + + static void OnFailureCallback_54(void * context, CHIP_ERROR error) + { + (static_cast(context))->OnFailureResponse_54(error); + } + + static void OnSuccessCallback_54(void * context, + const chip::app::DataModel::Nullable & currentPositionTiltPercentage) + { + (static_cast(context))->OnSuccessResponse_54(currentPositionTiltPercentage); + } + // // Tests methods // @@ -57808,13 +57836,13 @@ class Test_TC_WNCV_2_1Suite : public TestCommand void OnSuccessResponse_2() { ThrowSuccessResponse(); } - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_3() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeType_3() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); - ReturnErrorOnFailure(cluster.ReadAttribute( + ReturnErrorOnFailure(cluster.ReadAttribute( this, OnSuccessCallback_3, OnFailureCallback_3, true)); return CHIP_NO_ERROR; } @@ -57825,7 +57853,32 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ThrowFailureResponse(); } - void OnSuccessResponse_3(uint8_t configStatus) + void OnSuccessResponse_3(chip::app::Clusters::WindowCovering::Type type) + { + VerifyOrReturn(CheckConstraintType("type", "", "enum8")); + VerifyOrReturn(CheckConstraintNotValue("type", type, 250)); + + NextTest(); + } + + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultConfigStatus_4() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::WindowCoveringClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_4, OnFailureCallback_4, true)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } + + void OnSuccessResponse_4(uint8_t configStatus) { VerifyOrReturn(CheckConstraintType("configStatus", "", "map8")); VerifyOrReturn(CheckConstraintMinValue("configStatus", configStatus, 0)); @@ -57833,7 +57886,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_4() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeConfigStatus_5() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -57843,37 +57896,37 @@ class Test_TC_WNCV_2_1Suite : public TestCommand configStatusArgument = 128; ReturnErrorOnFailure(cluster.WriteAttribute( - configStatusArgument, this, OnSuccessCallback_4, OnFailureCallback_4)); + configStatusArgument, this, OnSuccessCallback_5, OnFailureCallback_5)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(CHIP_ERROR error) + void OnFailureResponse_5(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_4() { ThrowSuccessResponse(); } + void OnSuccessResponse_5() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeConfigStatus_5() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeConfigStatus_6() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_5, OnFailureCallback_5, true)); + this, OnSuccessCallback_6, OnFailureCallback_6, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(CHIP_ERROR error) + void OnFailureResponse_6(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_5(uint8_t configStatus) + void OnSuccessResponse_6(uint8_t configStatus) { VerifyOrReturn(CheckConstraintType("configStatus", "", "map8")); VerifyOrReturn(CheckConstraintNotValue("configStatus", configStatus, 128)); @@ -57881,24 +57934,24 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_6() + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultOperationalStatus_7() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_6, OnFailureCallback_6, true)); + this, OnSuccessCallback_7, OnFailureCallback_7, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(CHIP_ERROR error) + void OnFailureResponse_7(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_6(uint8_t operationalStatus) + void OnSuccessResponse_7(uint8_t operationalStatus) { VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); VerifyOrReturn(CheckConstraintMinValue("operationalStatus", operationalStatus, 0)); @@ -57906,7 +57959,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_7() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeOperationalStatus_8() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -57916,37 +57969,37 @@ class Test_TC_WNCV_2_1Suite : public TestCommand operationalStatusArgument = 128; ReturnErrorOnFailure(cluster.WriteAttribute( - operationalStatusArgument, this, OnSuccessCallback_7, OnFailureCallback_7)); + operationalStatusArgument, this, OnSuccessCallback_8, OnFailureCallback_8)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(CHIP_ERROR error) + void OnFailureResponse_8(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_7() { ThrowSuccessResponse(); } + void OnSuccessResponse_8() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_8() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeOperationalStatus_9() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_8, OnFailureCallback_8, true)); + this, OnSuccessCallback_9, OnFailureCallback_9, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(CHIP_ERROR error) + void OnFailureResponse_9(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_8(uint8_t operationalStatus) + void OnSuccessResponse_9(uint8_t operationalStatus) { VerifyOrReturn(CheckConstraintType("operationalStatus", "", "map8")); VerifyOrReturn(CheckConstraintNotValue("operationalStatus", operationalStatus, 128)); @@ -57954,24 +58007,24 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultEndProductType_9() + CHIP_ERROR Test2ReadTheRoMandatoryAttributeDefaultEndProductType_10() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_9, OnFailureCallback_9, true)); + this, OnSuccessCallback_10, OnFailureCallback_10, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(CHIP_ERROR error) + void OnFailureResponse_10(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_9(chip::app::Clusters::WindowCovering::EndProductType endProductType) + void OnSuccessResponse_10(chip::app::Clusters::WindowCovering::EndProductType endProductType) { VerifyOrReturn(CheckConstraintType("endProductType", "", "enum8")); VerifyOrReturn(CheckConstraintMinValue("endProductType", endProductType, 0)); @@ -57979,7 +58032,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_10() + CHIP_ERROR Test3aWriteAValueIntoTheRoMandatoryAttributeEndProductType_11() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -57989,37 +58042,62 @@ class Test_TC_WNCV_2_1Suite : public TestCommand endProductTypeArgument = static_cast(250); ReturnErrorOnFailure(cluster.WriteAttribute( - endProductTypeArgument, this, OnSuccessCallback_10, OnFailureCallback_10)); + endProductTypeArgument, this, OnSuccessCallback_11, OnFailureCallback_11)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(CHIP_ERROR error) + void OnFailureResponse_11(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_10() { ThrowSuccessResponse(); } + void OnSuccessResponse_11() { ThrowSuccessResponse(); } - CHIP_ERROR Test2ReadTheRwMandatoryAttributeDefaultMode_11() + CHIP_ERROR Test3bReadsBackTheRoMandatoryAttributeEndProductType_12() + { + const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; + chip::Controller::WindowCoveringClusterTest cluster; + cluster.Associate(mDevices[kIdentityAlpha], endpoint); + + ReturnErrorOnFailure(cluster.ReadAttribute( + this, OnSuccessCallback_12, OnFailureCallback_12, true)); + return CHIP_NO_ERROR; + } + + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } + + void OnSuccessResponse_12(chip::app::Clusters::WindowCovering::EndProductType endProductType) + { + VerifyOrReturn(CheckConstraintType("endProductType", "", "enum8")); + VerifyOrReturn(CheckConstraintNotValue("endProductType", endProductType, 250)); + + NextTest(); + } + + CHIP_ERROR Test2ReadTheRwMandatoryAttributeDefaultMode_13() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_11, OnFailureCallback_11, true)); + this, OnSuccessCallback_13, OnFailureCallback_13, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(CHIP_ERROR error) + void OnFailureResponse_13(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_11(uint8_t mode) + void OnSuccessResponse_13(uint8_t mode) { VerifyOrReturn(CheckConstraintType("mode", "", "map8")); VerifyOrReturn(CheckConstraintMinValue("mode", mode, 0)); @@ -58027,7 +58105,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRwMandatoryAttributeMode_12() + CHIP_ERROR Test3aWriteAValueIntoTheRwMandatoryAttributeMode_14() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58037,43 +58115,43 @@ class Test_TC_WNCV_2_1Suite : public TestCommand modeArgument = 8; ReturnErrorOnFailure(cluster.WriteAttribute( - modeArgument, this, OnSuccessCallback_12, OnFailureCallback_12)); + modeArgument, this, OnSuccessCallback_14, OnFailureCallback_14)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(CHIP_ERROR error) + void OnFailureResponse_14(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_12() { NextTest(); } + void OnSuccessResponse_14() { NextTest(); } - CHIP_ERROR Test3bReadsBackTheRwMandatoryAttributeMode_13() + CHIP_ERROR Test3bReadsBackTheRwMandatoryAttributeMode_15() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_13, OnFailureCallback_13, true)); + this, OnSuccessCallback_15, OnFailureCallback_15, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(CHIP_ERROR error) + void OnFailureResponse_15(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_13(uint8_t mode) + void OnSuccessResponse_15(uint8_t mode) { VerifyOrReturn(CheckValue("mode", mode, 8)); NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_14() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_16() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58081,17 +58159,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_14, OnFailureCallback_14, true)); + this, OnSuccessCallback_16, OnFailureCallback_16, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(CHIP_ERROR error) + void OnFailureResponse_16(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_14(const chip::app::DataModel::Nullable & targetPositionLiftPercent100ths) + void OnSuccessResponse_16(const chip::app::DataModel::Nullable & targetPositionLiftPercent100ths) { VerifyOrReturn(CheckConstraintType("targetPositionLiftPercent100ths", "", "Percent100ths")); VerifyOrReturn(CheckConstraintMinValue("targetPositionLiftPercent100ths", targetPositionLiftPercent100ths, 0U)); @@ -58099,7 +58177,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_15() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionLiftPercent100ths_17() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58111,20 +58189,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - targetPositionLiftPercent100thsArgument, this, OnSuccessCallback_15, OnFailureCallback_15)); + targetPositionLiftPercent100thsArgument, this, OnSuccessCallback_17, OnFailureCallback_17)); return CHIP_NO_ERROR; } - void OnFailureResponse_15(CHIP_ERROR error) + void OnFailureResponse_17(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_15() { ThrowSuccessResponse(); } + void OnSuccessResponse_17() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_16() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionLiftPercent100ths_18() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58132,17 +58210,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_16, OnFailureCallback_16, true)); + this, OnSuccessCallback_18, OnFailureCallback_18, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_16(CHIP_ERROR error) + void OnFailureResponse_18(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_16(const chip::app::DataModel::Nullable & targetPositionLiftPercent100ths) + void OnSuccessResponse_18(const chip::app::DataModel::Nullable & targetPositionLiftPercent100ths) { VerifyOrReturn(CheckConstraintType("targetPositionLiftPercent100ths", "", "Percent100ths")); VerifyOrReturn(CheckConstraintNotValue("targetPositionLiftPercent100ths", targetPositionLiftPercent100ths, 20000U)); @@ -58150,7 +58228,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_17() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_19() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58158,17 +58236,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_17, OnFailureCallback_17, true)); + this, OnSuccessCallback_19, OnFailureCallback_19, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_17(CHIP_ERROR error) + void OnFailureResponse_19(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_17(const chip::app::DataModel::Nullable & targetPositionTiltPercent100ths) + void OnSuccessResponse_19(const chip::app::DataModel::Nullable & targetPositionTiltPercent100ths) { VerifyOrReturn(CheckConstraintType("targetPositionTiltPercent100ths", "", "Percent100ths")); VerifyOrReturn(CheckConstraintMinValue("targetPositionTiltPercent100ths", targetPositionTiltPercent100ths, 0U)); @@ -58176,7 +58254,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_18() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeTargetPositionTiltPercent100ths_20() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58188,20 +58266,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - targetPositionTiltPercent100thsArgument, this, OnSuccessCallback_18, OnFailureCallback_18)); + targetPositionTiltPercent100thsArgument, this, OnSuccessCallback_20, OnFailureCallback_20)); return CHIP_NO_ERROR; } - void OnFailureResponse_18(CHIP_ERROR error) + void OnFailureResponse_20(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_18() { ThrowSuccessResponse(); } + void OnSuccessResponse_20() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_19() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeTargetPositionTiltPercent100ths_21() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58209,17 +58287,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_19, OnFailureCallback_19, true)); + this, OnSuccessCallback_21, OnFailureCallback_21, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_19(CHIP_ERROR error) + void OnFailureResponse_21(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_19(const chip::app::DataModel::Nullable & targetPositionTiltPercent100ths) + void OnSuccessResponse_21(const chip::app::DataModel::Nullable & targetPositionTiltPercent100ths) { VerifyOrReturn(CheckConstraintType("targetPositionTiltPercent100ths", "", "Percent100ths")); VerifyOrReturn(CheckConstraintNotValue("targetPositionTiltPercent100ths", targetPositionTiltPercent100ths, 20000U)); @@ -58227,7 +58305,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_20() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_22() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58235,17 +58313,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_20, OnFailureCallback_20, true)); + this, OnSuccessCallback_22, OnFailureCallback_22, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_20(CHIP_ERROR error) + void OnFailureResponse_22(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_20(const chip::app::DataModel::Nullable & currentPositionLiftPercent100ths) + void OnSuccessResponse_22(const chip::app::DataModel::Nullable & currentPositionLiftPercent100ths) { VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "Percent100ths")); VerifyOrReturn(CheckConstraintMinValue("currentPositionLiftPercent100ths", currentPositionLiftPercent100ths, 0U)); @@ -58253,7 +58331,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_21() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercent100ths_23() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58265,20 +58343,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - currentPositionLiftPercent100thsArgument, this, OnSuccessCallback_21, OnFailureCallback_21)); + currentPositionLiftPercent100thsArgument, this, OnSuccessCallback_23, OnFailureCallback_23)); return CHIP_NO_ERROR; } - void OnFailureResponse_21(CHIP_ERROR error) + void OnFailureResponse_23(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_21() { ThrowSuccessResponse(); } + void OnSuccessResponse_23() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_22() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercent100ths_24() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58286,17 +58364,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_22, OnFailureCallback_22, true)); + this, OnSuccessCallback_24, OnFailureCallback_24, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_22(CHIP_ERROR error) + void OnFailureResponse_24(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_22(const chip::app::DataModel::Nullable & currentPositionLiftPercent100ths) + void OnSuccessResponse_24(const chip::app::DataModel::Nullable & currentPositionLiftPercent100ths) { VerifyOrReturn(CheckConstraintType("currentPositionLiftPercent100ths", "", "Percent100ths")); VerifyOrReturn(CheckConstraintNotValue("currentPositionLiftPercent100ths", currentPositionLiftPercent100ths, 20000U)); @@ -58304,7 +58382,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_23() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_25() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58312,17 +58390,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_23, OnFailureCallback_23, true)); + this, OnSuccessCallback_25, OnFailureCallback_25, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_23(CHIP_ERROR error) + void OnFailureResponse_25(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_23(const chip::app::DataModel::Nullable & currentPositionTiltPercent100ths) + void OnSuccessResponse_25(const chip::app::DataModel::Nullable & currentPositionTiltPercent100ths) { VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "Percent100ths")); VerifyOrReturn(CheckConstraintMinValue("currentPositionTiltPercent100ths", currentPositionTiltPercent100ths, 0U)); @@ -58330,7 +58408,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_24() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercent100ths_26() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58342,20 +58420,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - currentPositionTiltPercent100thsArgument, this, OnSuccessCallback_24, OnFailureCallback_24)); + currentPositionTiltPercent100thsArgument, this, OnSuccessCallback_26, OnFailureCallback_26)); return CHIP_NO_ERROR; } - void OnFailureResponse_24(CHIP_ERROR error) + void OnFailureResponse_26(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_24() { ThrowSuccessResponse(); } + void OnSuccessResponse_26() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_25() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercent100ths_27() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58363,17 +58441,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_25, OnFailureCallback_25, true)); + this, OnSuccessCallback_27, OnFailureCallback_27, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_25(CHIP_ERROR error) + void OnFailureResponse_27(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_25(const chip::app::DataModel::Nullable & currentPositionTiltPercent100ths) + void OnSuccessResponse_27(const chip::app::DataModel::Nullable & currentPositionTiltPercent100ths) { VerifyOrReturn(CheckConstraintType("currentPositionTiltPercent100ths", "", "Percent100ths")); VerifyOrReturn(CheckConstraintNotValue("currentPositionTiltPercent100ths", currentPositionTiltPercent100ths, 20000U)); @@ -58381,7 +58459,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_26() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_28() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58389,17 +58467,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_26, OnFailureCallback_26, true)); + this, OnSuccessCallback_28, OnFailureCallback_28, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_26(CHIP_ERROR error) + void OnFailureResponse_28(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_26(uint16_t installedOpenLimitLift) + void OnSuccessResponse_28(uint16_t installedOpenLimitLift) { VerifyOrReturn(CheckConstraintType("installedOpenLimitLift", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("installedOpenLimitLift", installedOpenLimitLift, 0U)); @@ -58407,7 +58485,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_27() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitLift_29() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58418,20 +58496,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - installedOpenLimitLiftArgument, this, OnSuccessCallback_27, OnFailureCallback_27)); + installedOpenLimitLiftArgument, this, OnSuccessCallback_29, OnFailureCallback_29)); return CHIP_NO_ERROR; } - void OnFailureResponse_27(CHIP_ERROR error) + void OnFailureResponse_29(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_27() { ThrowSuccessResponse(); } + void OnSuccessResponse_29() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_28() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitLift_30() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58439,17 +58517,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_28, OnFailureCallback_28, true)); + this, OnSuccessCallback_30, OnFailureCallback_30, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_28(CHIP_ERROR error) + void OnFailureResponse_30(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_28(uint16_t installedOpenLimitLift) + void OnSuccessResponse_30(uint16_t installedOpenLimitLift) { VerifyOrReturn(CheckConstraintType("installedOpenLimitLift", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("installedOpenLimitLift", installedOpenLimitLift, 0U)); @@ -58457,7 +58535,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_29() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_31() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58465,17 +58543,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_29, OnFailureCallback_29, true)); + this, OnSuccessCallback_31, OnFailureCallback_31, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_29(CHIP_ERROR error) + void OnFailureResponse_31(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_29(uint16_t installedClosedLimitLift) + void OnSuccessResponse_31(uint16_t installedClosedLimitLift) { VerifyOrReturn(CheckConstraintType("installedClosedLimitLift", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("installedClosedLimitLift", installedClosedLimitLift, 0U)); @@ -58483,7 +58561,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_30() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitLift_32() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58494,20 +58572,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - installedClosedLimitLiftArgument, this, OnSuccessCallback_30, OnFailureCallback_30)); + installedClosedLimitLiftArgument, this, OnSuccessCallback_32, OnFailureCallback_32)); return CHIP_NO_ERROR; } - void OnFailureResponse_30(CHIP_ERROR error) + void OnFailureResponse_32(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_30() { ThrowSuccessResponse(); } + void OnSuccessResponse_32() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_31() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitLift_33() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58515,17 +58593,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_31, OnFailureCallback_31, true)); + this, OnSuccessCallback_33, OnFailureCallback_33, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_31(CHIP_ERROR error) + void OnFailureResponse_33(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_31(uint16_t installedClosedLimitLift) + void OnSuccessResponse_33(uint16_t installedClosedLimitLift) { VerifyOrReturn(CheckConstraintType("installedClosedLimitLift", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("installedClosedLimitLift", installedClosedLimitLift, 0U)); @@ -58533,7 +58611,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_32() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_34() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58541,17 +58619,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_32, OnFailureCallback_32, true)); + this, OnSuccessCallback_34, OnFailureCallback_34, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_32(CHIP_ERROR error) + void OnFailureResponse_34(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_32(uint16_t installedOpenLimitTilt) + void OnSuccessResponse_34(uint16_t installedOpenLimitTilt) { VerifyOrReturn(CheckConstraintType("installedOpenLimitTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("installedOpenLimitTilt", installedOpenLimitTilt, 0U)); @@ -58559,7 +58637,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_33() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledOpenLimitTilt_35() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58570,20 +58648,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - installedOpenLimitTiltArgument, this, OnSuccessCallback_33, OnFailureCallback_33)); + installedOpenLimitTiltArgument, this, OnSuccessCallback_35, OnFailureCallback_35)); return CHIP_NO_ERROR; } - void OnFailureResponse_33(CHIP_ERROR error) + void OnFailureResponse_35(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_33() { ThrowSuccessResponse(); } + void OnSuccessResponse_35() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_34() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledOpenLimitTilt_36() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58591,17 +58669,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_34, OnFailureCallback_34, true)); + this, OnSuccessCallback_36, OnFailureCallback_36, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_34(CHIP_ERROR error) + void OnFailureResponse_36(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_34(uint16_t installedOpenLimitTilt) + void OnSuccessResponse_36(uint16_t installedOpenLimitTilt) { VerifyOrReturn(CheckConstraintType("installedOpenLimitTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("installedOpenLimitTilt", installedOpenLimitTilt, 0U)); @@ -58609,7 +58687,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_35() + CHIP_ERROR Test2ReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_37() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58617,17 +58695,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_35, OnFailureCallback_35, true)); + this, OnSuccessCallback_37, OnFailureCallback_37, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_35(CHIP_ERROR error) + void OnFailureResponse_37(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_35(uint16_t installedClosedLimitTilt) + void OnSuccessResponse_37(uint16_t installedClosedLimitTilt) { VerifyOrReturn(CheckConstraintType("installedClosedLimitTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("installedClosedLimitTilt", installedClosedLimitTilt, 0U)); @@ -58635,7 +58713,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_36() + CHIP_ERROR Test3aWriteAValueIntoTheRoOptionalAttributeInstalledClosedLimitTilt_38() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58646,20 +58724,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - installedClosedLimitTiltArgument, this, OnSuccessCallback_36, OnFailureCallback_36)); + installedClosedLimitTiltArgument, this, OnSuccessCallback_38, OnFailureCallback_38)); return CHIP_NO_ERROR; } - void OnFailureResponse_36(CHIP_ERROR error) + void OnFailureResponse_38(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_36() { ThrowSuccessResponse(); } + void OnSuccessResponse_38() { ThrowSuccessResponse(); } - CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_37() + CHIP_ERROR Test3bReadsBackTheRoOptionalAttributeInstalledClosedLimitTilt_39() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58667,17 +58745,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_37, OnFailureCallback_37, true)); + this, OnSuccessCallback_39, OnFailureCallback_39, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_37(CHIP_ERROR error) + void OnFailureResponse_39(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_37(uint16_t installedClosedLimitTilt) + void OnSuccessResponse_39(uint16_t installedClosedLimitTilt) { VerifyOrReturn(CheckConstraintType("installedClosedLimitTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("installedClosedLimitTilt", installedClosedLimitTilt, 0U)); @@ -58685,24 +58763,24 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_38() + CHIP_ERROR Test4ReadTheRoMandatoryAttributeDefaultSafetyStatus_40() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_38, OnFailureCallback_38, true)); + this, OnSuccessCallback_40, OnFailureCallback_40, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_38(CHIP_ERROR error) + void OnFailureResponse_40(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_38(uint16_t safetyStatus) + void OnSuccessResponse_40(uint16_t safetyStatus) { VerifyOrReturn(CheckConstraintType("safetyStatus", "", "map16")); VerifyOrReturn(CheckConstraintMinValue("safetyStatus", safetyStatus, 0U)); @@ -58710,7 +58788,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_39() + CHIP_ERROR Test5aWriteAValueIntoTheRoMandatoryAttributeSafetyStatus_41() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58720,37 +58798,37 @@ class Test_TC_WNCV_2_1Suite : public TestCommand safetyStatusArgument = 4096U; ReturnErrorOnFailure(cluster.WriteAttribute( - safetyStatusArgument, this, OnSuccessCallback_39, OnFailureCallback_39)); + safetyStatusArgument, this, OnSuccessCallback_41, OnFailureCallback_41)); return CHIP_NO_ERROR; } - void OnFailureResponse_39(CHIP_ERROR error) + void OnFailureResponse_41(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_39() { ThrowSuccessResponse(); } + void OnSuccessResponse_41() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_40() + CHIP_ERROR Test5bReadsBackTheRoMandatoryAttributeSafetyStatus_42() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_40, OnFailureCallback_40, true)); + this, OnSuccessCallback_42, OnFailureCallback_42, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_40(CHIP_ERROR error) + void OnFailureResponse_42(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_40(uint16_t safetyStatus) + void OnSuccessResponse_42(uint16_t safetyStatus) { VerifyOrReturn(CheckConstraintType("safetyStatus", "", "map16")); VerifyOrReturn(CheckConstraintNotValue("safetyStatus", safetyStatus, 4096U)); @@ -58758,24 +58836,24 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_41() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLift_43() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_41, OnFailureCallback_41, true)); + this, OnSuccessCallback_43, OnFailureCallback_43, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_41(CHIP_ERROR error) + void OnFailureResponse_43(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_41(const chip::app::DataModel::Nullable & currentPositionLift) + void OnSuccessResponse_43(const chip::app::DataModel::Nullable & currentPositionLift) { VerifyOrReturn(CheckConstraintType("currentPositionLift", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("currentPositionLift", currentPositionLift, 0U)); @@ -58783,7 +58861,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_42() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLift_44() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58794,37 +58872,37 @@ class Test_TC_WNCV_2_1Suite : public TestCommand currentPositionLiftArgument.Value() = 255U; ReturnErrorOnFailure(cluster.WriteAttribute( - currentPositionLiftArgument, this, OnSuccessCallback_42, OnFailureCallback_42)); + currentPositionLiftArgument, this, OnSuccessCallback_44, OnFailureCallback_44)); return CHIP_NO_ERROR; } - void OnFailureResponse_42(CHIP_ERROR error) + void OnFailureResponse_44(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_42() { ThrowSuccessResponse(); } + void OnSuccessResponse_44() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_43() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLift_45() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_43, OnFailureCallback_43, true)); + this, OnSuccessCallback_45, OnFailureCallback_45, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_43(CHIP_ERROR error) + void OnFailureResponse_45(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_43(const chip::app::DataModel::Nullable & currentPositionLift) + void OnSuccessResponse_45(const chip::app::DataModel::Nullable & currentPositionLift) { VerifyOrReturn(CheckConstraintType("currentPositionLift", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("currentPositionLift", currentPositionLift, 0U)); @@ -58832,24 +58910,24 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_44() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTilt_46() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_44, OnFailureCallback_44, true)); + this, OnSuccessCallback_46, OnFailureCallback_46, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_44(CHIP_ERROR error) + void OnFailureResponse_46(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_44(const chip::app::DataModel::Nullable & currentPositionTilt) + void OnSuccessResponse_46(const chip::app::DataModel::Nullable & currentPositionTilt) { VerifyOrReturn(CheckConstraintType("currentPositionTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("currentPositionTilt", currentPositionTilt, 0U)); @@ -58857,7 +58935,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_45() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTilt_47() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58868,37 +58946,37 @@ class Test_TC_WNCV_2_1Suite : public TestCommand currentPositionTiltArgument.Value() = 255U; ReturnErrorOnFailure(cluster.WriteAttribute( - currentPositionTiltArgument, this, OnSuccessCallback_45, OnFailureCallback_45)); + currentPositionTiltArgument, this, OnSuccessCallback_47, OnFailureCallback_47)); return CHIP_NO_ERROR; } - void OnFailureResponse_45(CHIP_ERROR error) + void OnFailureResponse_47(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_45() { ThrowSuccessResponse(); } + void OnSuccessResponse_47() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_46() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTilt_48() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevices[kIdentityAlpha], endpoint); ReturnErrorOnFailure(cluster.ReadAttribute( - this, OnSuccessCallback_46, OnFailureCallback_46, true)); + this, OnSuccessCallback_48, OnFailureCallback_48, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_46(CHIP_ERROR error) + void OnFailureResponse_48(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_46(const chip::app::DataModel::Nullable & currentPositionTilt) + void OnSuccessResponse_48(const chip::app::DataModel::Nullable & currentPositionTilt) { VerifyOrReturn(CheckConstraintType("currentPositionTilt", "", "uint16")); VerifyOrReturn(CheckConstraintMinValue("currentPositionTilt", currentPositionTilt, 0U)); @@ -58906,7 +58984,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_47() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_49() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58914,17 +58992,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_47, OnFailureCallback_47, true)); + this, OnSuccessCallback_49, OnFailureCallback_49, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_47(CHIP_ERROR error) + void OnFailureResponse_49(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_47(const chip::app::DataModel::Nullable & currentPositionLiftPercentage) + void OnSuccessResponse_49(const chip::app::DataModel::Nullable & currentPositionLiftPercentage) { VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "Percent")); VerifyOrReturn(CheckConstraintMinValue("currentPositionLiftPercentage", currentPositionLiftPercentage, 0)); @@ -58932,7 +59010,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_48() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionLiftPercentage_50() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58944,20 +59022,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - currentPositionLiftPercentageArgument, this, OnSuccessCallback_48, OnFailureCallback_48)); + currentPositionLiftPercentageArgument, this, OnSuccessCallback_50, OnFailureCallback_50)); return CHIP_NO_ERROR; } - void OnFailureResponse_48(CHIP_ERROR error) + void OnFailureResponse_50(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_48() { ThrowSuccessResponse(); } + void OnSuccessResponse_50() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_49() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionLiftPercentage_51() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58965,17 +59043,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_49, OnFailureCallback_49, true)); + this, OnSuccessCallback_51, OnFailureCallback_51, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_49(CHIP_ERROR error) + void OnFailureResponse_51(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_49(const chip::app::DataModel::Nullable & currentPositionLiftPercentage) + void OnSuccessResponse_51(const chip::app::DataModel::Nullable & currentPositionLiftPercentage) { VerifyOrReturn(CheckConstraintType("currentPositionLiftPercentage", "", "Percent")); VerifyOrReturn(CheckConstraintNotValue("currentPositionLiftPercentage", currentPositionLiftPercentage, 200)); @@ -58983,7 +59061,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_50() + CHIP_ERROR Test4ReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_52() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -58991,17 +59069,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_50, OnFailureCallback_50, true)); + this, OnSuccessCallback_52, OnFailureCallback_52, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_50(CHIP_ERROR error) + void OnFailureResponse_52(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_50(const chip::app::DataModel::Nullable & currentPositionTiltPercentage) + void OnSuccessResponse_52(const chip::app::DataModel::Nullable & currentPositionTiltPercentage) { VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "Percent")); VerifyOrReturn(CheckConstraintMinValue("currentPositionTiltPercentage", currentPositionTiltPercentage, 0)); @@ -59009,7 +59087,7 @@ class Test_TC_WNCV_2_1Suite : public TestCommand NextTest(); } - CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_51() + CHIP_ERROR Test5aWriteAValueIntoTheRoOptionalAttributeCurrentPositionTiltPercentage_53() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -59021,20 +59099,20 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.WriteAttribute( - currentPositionTiltPercentageArgument, this, OnSuccessCallback_51, OnFailureCallback_51)); + currentPositionTiltPercentageArgument, this, OnSuccessCallback_53, OnFailureCallback_53)); return CHIP_NO_ERROR; } - void OnFailureResponse_51(CHIP_ERROR error) + void OnFailureResponse_53(CHIP_ERROR error) { chip::app::StatusIB status(error); VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } - void OnSuccessResponse_51() { ThrowSuccessResponse(); } + void OnSuccessResponse_53() { ThrowSuccessResponse(); } - CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_52() + CHIP_ERROR Test5bReadsBackTheRoOptionalAttributeCurrentPositionTiltPercentage_54() { const chip::EndpointId endpoint = mEndpoint.HasValue() ? mEndpoint.Value() : 1; chip::Controller::WindowCoveringClusterTest cluster; @@ -59042,17 +59120,17 @@ class Test_TC_WNCV_2_1Suite : public TestCommand ReturnErrorOnFailure( cluster.ReadAttribute( - this, OnSuccessCallback_52, OnFailureCallback_52, true)); + this, OnSuccessCallback_54, OnFailureCallback_54, true)); return CHIP_NO_ERROR; } - void OnFailureResponse_52(CHIP_ERROR error) + void OnFailureResponse_54(CHIP_ERROR error) { chip::app::StatusIB status(error); ThrowFailureResponse(); } - void OnSuccessResponse_52(const chip::app::DataModel::Nullable & currentPositionTiltPercentage) + void OnSuccessResponse_54(const chip::app::DataModel::Nullable & currentPositionTiltPercentage) { VerifyOrReturn(CheckConstraintType("currentPositionTiltPercentage", "", "Percent")); VerifyOrReturn(CheckConstraintNotValue("currentPositionTiltPercentage", currentPositionTiltPercentage, 200));