You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnf"TH stores the reported values of _{attr}_ in all incoming reports for _{attr}_ attribute, that contains data in _reportedCurrentHueValuesList_, over a period of 20 seconds."
returnf"TH stores the reported values of _{attr}_ in all incoming reports for _{attr}_ attribute, that contains data in _{reportList}_, over a period of 20 seconds."
53
53
54
-
defverify_entry_count(attr: str) ->str:
55
-
returnf'TH verifies that _reportedCurrentHueValuesList_ does not contain more than 10 entries for _{attr}_'
5, f"If OnOff cluster is present in _ServerList_, {THcommand} On command on OnOff cluster", verify_success()),
66
-
TestStep(
67
-
6, f'{if_feature_supported("HS")}, {THcommand} MoveHue with _MoveMode_ field set to Down, _Rate_ field set to 255 and remaining fields set to 0', verify_success()),
68
-
TestStep(7, f'{if_feature_supported("HS")}, {THcommand} MoveSaturation with _MoveMode_ field set to Down, _Rate_ field set to 255 and remaining fields set to 0', verify_success()),
69
-
TestStep(8, 'Set up a subscription wildcard subscription for the Color Control Cluster, with MinIntervalFloor set to 0, MaxIntervalCeiling set to 30 and KeepSubscriptions set to false',
66
+
TestStep(6, 'Set up a subscription wildcard subscription for the Color Control Cluster, with MinIntervalFloor set to 0, MaxIntervalCeiling set to 30 and KeepSubscriptions set to false',
70
67
'Subscription successfully established'),
71
-
TestStep(9, 'If the HS feature is not supported, skip step 10 to 15'),
72
-
TestStep(10, f'{THcommand} MoveToHue with _Hue_ field set to 254, _TransitionTime_ field set to 100, _Direction_ field set to Shortest and remaining fields set to 0', verify_success()),
TestStep(7, 'If the CT feature is not supported, skip step 8 to 12'),
69
+
TestStep(
70
+
8, f'{THcommand} MoveColorTemperature with _MoveMode_ field set to Down, _Rate_ field set to 65535 and remaining fields set to 0', verify_success()),
71
+
TestStep(
72
+
9, 'TH reads from the DUT the ColorTempPhysicalMaxMireds and stores the returned value as colorTempPhysicalMaxMireds', verify_success()),
73
+
TestStep(10, f'{THcommand} MoveToColorTemperature with ColorTemperatureMireds field set to the value of colorTempPhysicalMaxMireds, TransitionTime field set to 100, remaining fields set to 0', verify_success()),
TestStep(13, 'If the HS feature is not supported, skip step 14 to 21'),
78
+
TestStep(
79
+
14, f'{THcommand} MoveHue with _MoveMode_ field set to Down, _Rate_ field set to 255 and remaining fields set to 0', verify_success()),
80
+
TestStep(
81
+
15, f'{THcommand} MoveSaturation with _MoveMode_ field set to Down, _Rate_ field set to 255 and remaining fields set to 0', verify_success()),
82
+
TestStep(16, f'{THcommand} MoveToHue with _Hue_ field set to 254, _TransitionTime_ field set to 100, _Direction_ field set to Shortest and remaining fields set to 0', verify_success()),
TestStep(22, 'If XY feature is not supported, skip steps 23-28'),
92
+
TestStep(
93
+
23, f"{THcommand} MoveToColor with _ColorX_ field set to 32768, _ColorY_ set to 19660, _TransitionTime_ field set to 0 and remaining fields set to 0"),
75
94
TestStep(
76
-
13, f"{THcommand} MoveToSaturation with _Saturation_ field set to 254, _TransitionTime_ field set to 100 and remaining fields set to 0"),
TestStep(16, 'If XY feature is not supported, skip steps 17-21'),
95
+
24, f"{THcommand} MoveToColor with _ColorX_ field set to 13107, _ColorY_ set to 13107, _TransitionTime_ field set to 100 and remaining fields set to 0"),
TestStep(29, "If the EHUE feature is not supported, skip steps 30 to 32"),
103
+
TestStep(30, f"{THcommand} EnhancedMoveToHue with _EnhancedHue_ field set to 0, _TransitionTime_ field set to 100, _Direction_ field set to Shortest and remaining fields set to 0", verify_success()),
"17a", f"{THcommand} MoveToColor with _ColorX_ field set to 32768, _ColorY_ set to 19660, _TransitionTime_ field set to 0 and remaining fields set to 0"),
108
+
33, 'If the RemainingTime attribute is not supported or the CT feature is not supported, skip the remaining steps and end test case'),
82
109
TestStep(
83
-
"17b", f"{THcommand} MoveToColor with _ColorX_ field set to 13107, _ColorY_ set to 13107, _TransitionTime_ field set to 100 and remaining fields set to 0"),
TestStep(22, "If the EHUE feature is not supported, skip steps 23 to 25"),
89
-
TestStep(23, f"{THcommand} EnhancedMoveToHue with _EnhancedHue_ field set to 0, _TransitionTime_ field set to 100, _Direction_ field set to Shortest and remaining fields set to 0", verify_success()),
TestStep(26, "If the RemainingTime attribute is not supported, skip the remaining steps and end test case"),
93
-
TestStep(27, store_values('RemainingTime')),
110
+
34, f'{THcommand} MoveColorTemperature with MoveMode field set to Down, Rate field set to 65535 and remaining fields set to 0', verify_success()),
111
+
TestStep(35, 'TH stores the reported values of RemainingTime in all incoming reports for RemainingTime attribute, for steps 36 to 39 that contains data in reportedRemainingTimeValuesList.'),
94
112
TestStep(
95
-
29, f"If the XY feature is supported and the HS feature is not supported, {THcommand}MoveToColor with _ColorX_ field set to 32768, _ColorY_ set to 19660, _TransitionTime_ field set to 100 and remaining fields set to 0", verify_success()),
96
-
TestStep(30, "Wait for 5 seconds"),
113
+
36, f'{THcommand}MoveToColorTemperature with ColorTemperatureMireds field set to the value of colorTempPhysicalMaxMireds / 2, TransitionTime field set to 100, remaining fields set to 0', verify_success()),
114
+
TestStep(37, "Wait for 5 seconds"),
97
115
TestStep(
98
-
32, f"If the XY feature is supported and the HS feature is not supported, {THcommand}MoveToColor with _ColorX_ field set to 13107, _ColorY_ set to 13107, _TransitionTime_ field set to 150 and remaining fields set to 0", verify_success()),
99
-
TestStep(33, "Wait for 20 seconds"),
100
-
TestStep(34, "TH verifies _reportedRemainingTimeValuesList_ contains three entries",
116
+
38, f'{THcommand}MoveToColorTemperature with ColorTemperatureMireds field set to the value of colorTempPhysicalMaxMireds, TransitionTime field set to 150, remaining fields set to 0', verify_success()),
117
+
TestStep(39, "Wait for 20 seconds"),
118
+
TestStep(40, "TH verifies _reportedRemainingTimeValuesList_ contains three entries",
101
119
"_reportedRemainingTimeValuesList_ has 3 entries in the list"),
102
-
TestStep(35, "TH verifies the first entry in _reportedRemainingTimeValuesList_ is 100",
103
-
"The first entry in _reportedRemainingTimeValuesList_ is equal to 100"),
104
-
TestStep(36, "TH verifies the second entry in _reportedRemainingTimeValuesList_ is approximately 150",
105
-
"The second entry in _reportedRemainingTimeValuesList_ is approximately equal to 150"),
106
-
TestStep(37, "TH verifies the third entry in _reportedRemainingTimeValuesList_ is 0",
120
+
TestStep(41, "TH verifies the first entry in _reportedRemainingTimeValuesList_ is 100",
121
+
"The first entry in reportedRemainingTimeValuesList is in the range of 95 to 100"),
122
+
TestStep(42, "TH verifies the second entry in _reportedRemainingTimeValuesList_ is approximately 150",
123
+
"The second entry in reportedRemainingTimeValuesList is in the range of 145 to 150"),
124
+
TestStep(43, "TH verifies the third entry in _reportedRemainingTimeValuesList_ is 0",
107
125
"The third entry in _reportedRemainingTimeValuesList_ is equal to 0")
0 commit comments