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
Updated TC_DEM_2.10 (Q Quality) Basic structure is there - steps need tidying up and fails due to powerAdjustmentCapability not being updated as expected.
"""Return the PICS definitions associated with this test."""
55
56
pics= [
56
-
# Depends on Feature 05 (ForecastAdjustment) & Feature 02 (StateForecastReporting)
57
-
"DEM.S.F05", "DEM.S.F02"
57
+
"DEM.S"
58
58
]
59
59
returnpics
60
60
61
61
defsteps_TC_DEM_2_10(self) ->list[TestStep]:
62
62
"""Execute the test steps."""
63
63
steps= [
64
-
TestStep("1", "Commission DUT to TH"),
65
-
TestStep("2", "TH reads from the DUT the Featuremap attribute",
66
-
"Verify that the DUT response contains the Featuremap attribute. Verify ForecastAdjustment and StateForecastReporting is supported. Verify PowerForecastReporting is not supported."),
64
+
TestStep("1", "Commission DUT to TH (can be skipped if done in a preceding test)"),
65
+
TestStep("2", "TH reads from the DUT the FeatureMap attribute",
66
+
"Verify that the DUT response contains the FeatureMap attribute. Store the value as FeatureMap."),
67
67
TestStep("3", "TH reads TestEventTriggersEnabled attribute from General Diagnostics Cluster",
68
68
"Value has to be 1 (True)"),
69
-
TestStep("4", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.DEM.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.DEM.TESTEVENTTRIGGER for Forecast Adjustment Test Event",
69
+
TestStep("4", "Set up a subscription to the DeviceEnergyManagement cluster, with MinIntervalFloor set to 0, MaxIntervalCeiling set to 10 and KeepSubscriptions set to false",
70
+
"Subscription successfully established"),
71
+
TestStep("5", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.DEM.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.DEM.TESTEVENTTRIGGER for User Opt-out Test Event Clear",
70
72
"Verify DUT responds w/ status SUCCESS(0x00)"),
71
-
TestStep("4a", "TH reads from the DUT the ESAState",
72
-
"Value has to be 0x01 (Online)"),
73
-
TestStep("4b", "TH reads from the DUT the Forecast",
74
-
"Value has to include slots[0].MinDurationAdjustment, slots[0].MaxDurationAdjustment"),
75
-
TestStep("4c", "TH reads from the DUT the OptOutState",
73
+
TestStep("5a", "TH reads from the DUT the OptOutState",
76
74
"Value has to be 0x00 (NoOptOut)"),
77
-
TestStep("5", "Set up a subscription to the Forecast attribute, with MinIntervalFloor set to 0, MaxIntervalCeiling set to 10 and KeepSubscriptions set to false",
78
-
"Subscription successfully established"),
79
-
TestStep("6", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.DEM.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.DEM.TESTEVENTTRIGGER for User Opt-out Local Optimization Test Event",
75
+
TestStep("6", "If {PICS_S_FA} {featIsNotSupported} skip to step 14",
76
+
"Value has to be 0x00 (NoOptOut)"),
77
+
78
+
TestStep("7", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.DEM.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.DEM.TESTEVENTTRIGGER for Forecast Adjustment Test Event",
80
79
"Verify DUT responds w/ status SUCCESS(0x00)"),
81
-
TestStep("6a", "TH reads from the DUT the ESAState",
80
+
TestStep("7a", "TH reads from the DUT the ESAState",
82
81
"Value has to be 0x01 (Online)"),
83
-
TestStep("6b", "TH reads from the DUT the OptOutState",
84
-
"Value has to be 0x02 (LocalOptOut)"),
85
-
TestStep("7", "TH sends command ModifyForecastRequest with ForecastID=Forecast.ForecastID, SlotAdjustments[0].{SlotIndex=0, Duration=Forecast.Slots[0].MinDurationAdjustment}, Cause=GridOptimization",
82
+
TestStep("8", "Reset all accumulated report counts, then wait 12 seconds"),
83
+
TestStep("9", "TH counts all report transactions with an attribute report for the Forecast attribute",
84
+
"TH verifies that numberOfReportsReceived \<= 2"),
85
+
TestStep("10", "TH reads from the DUT the Forecast",
86
+
"Value has to include slots[0].MinDurationAdjustment, slots[0].MaxDurationAdjustment"),
TestStep("8", "TH counts all report transactions with an attribute report for the Forecast attribute over the next Forecast.Slots[0].MinDurationAdjustment}",
88
-
"TH verifies that numberOfReportsReceived <= 2 + Forecast.Slots[0].MinDurationAdjustment}"),
89
-
TestStep("9", "Cancel the subscription to the Forecast attribute",
90
-
"The subscription is cancelled successfully"),
91
-
TestStep("10", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.DEM.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.DEM.TESTEVENTTRIGGER for Forecast Adjustment Test Event Clear",
89
+
90
+
TestStep("12", "TH resets all accumulated report counts, then TH sends command CancelRequest//// TODO"),
91
+
92
+
TestStep("13", "Wait 5 seconds"),
93
+
94
+
TestStep("13a", "TH counts all report transactions with an attribute report for the Forecast attribute_",
95
+
"TH verifies that numberOfReportsReceived >= 1 and Value has to include ForecastUpdateReason=InternalOptimization in the last attribute report received."),
TestStep("16", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.DEM.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.DEM.TESTEVENTTRIGGER for Power Adjustment Test Event",
100
+
"Verify DUT responds w/ status SUCCESS(0x00)"),
101
+
TestStep("16b", "TH reads from the DUT the PowerAdjustmentCapability",
102
+
"Value has to include Cause=NoAdjustment."),
103
+
TestStep("17", "TH resets all accumulated report counts, then TH sends command PowerAdjustRequest with Power=PowerAdjustmentCapability[0].MaxPower, Duration=20, Cause=LocalOptimization",
104
+
"Verify DUT responds w/ status SUCCESS(0x00)"),
105
+
TestStep("18", "Wait 12 seconds"),
106
+
TestStep("18a", "TH counts all report transactions with an attribute report for the PowerAdjustmentCapability attribute",
107
+
"TH verifies that numberOfReportsReceived \<= 2"),
108
+
TestStep("19", "TH resets all accumulated report counts, then TH sends command CancelPowerAdjustment",
109
+
"Verify DUT responds w/ status SUCCESS(0x00)"),
110
+
TestStep("20", "Wait 5 seconds"),
111
+
TestStep("20a", "TH counts all report transactions with an attribute report for the PowerAdjustmentCapability attribute",
112
+
"TH verifies that numberOfReportsReceived >=1"),
113
+
114
+
TestStep("21", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.DEM.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.DEM.TESTEVENTTRIGGER for Power Adjustment Test Event Clear",
92
115
"Verify DUT responds w/ status SUCCESS(0x00)"),
116
+
TestStep("22", "Cancel the subscription to the Device Energy Management cluster",
0 commit comments