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
Copy file name to clipboardexpand all lines: src/python_testing/TC_CC_2_2.py
+28-24
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,17 @@
39
39
40
40
41
41
classTC_CC_2_3(MatterBaseTest):
42
+
43
+
# Test includes several long waits, adjust timeout to accommodate.
44
+
@property
45
+
defdefault_timeout(self) ->int:
46
+
return180
47
+
42
48
defsteps_TC_CC_2_2(self):
43
49
THcommand="Test Harness sends the"
44
50
45
51
defstore_values(attr: str) ->str:
46
-
returnf"TH stores the reported values of _{attr}_ in all incoming reports for _{attr}_ attribute, that contains data in _reportedCurrentHueValuesList_, over a period of 30 seconds."
52
+
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."
47
53
48
54
defverify_entry_count(attr: str) ->str:
49
55
returnf'TH verifies that _reportedCurrentHueValuesList_ does not contain more than 10 entries for _{attr}_'
TestStep(16, 'If XY feature is not supported, skip steps 17-21'),
74
80
TestStep(
75
-
17, f"{THcommand} MoveToColor with _ColorX_ field set to 13107, _ColorY_ set to 13107, _TransitionTime_ field set to 100 and remaining fields set to 0"),
81
+
"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"),
82
+
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(26, "If the RemainingTime attribute is not supported, skip the remaining steps and end test case"),
85
93
TestStep(27, store_values('RemainingTime')),
86
94
TestStep(
87
-
28, f"If HS feature is supported and XY feature is not supported, {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()),
88
-
TestStep(
89
-
29, 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 100 and remaining fields set to 0", verify_success()),
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()),
90
96
TestStep(30, "Wait for 5 seconds"),
91
-
TestStep(
92
-
31, f"If HS feature is supported and XY feature is not supported, {THcommand} MoveToHue with _Hue_ field set to 254, _TransitionTime_ field set to 150, _Direction_ field set to Shortest and remaining fields set to 0", verify_success()),
93
97
TestStep(
94
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()),
0 commit comments