Skip to content

Commit 561e8a3

Browse files
committed
Add event support and fix tank percentage steps
1 parent 8d3cbc6 commit 561e8a3

File tree

2 files changed

+163
-197
lines changed

2 files changed

+163
-197
lines changed

src/python_testing/TC_EWATERHTR_2_1.py

+13-14
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,19 @@ def pics_TC_EWATERHTR_2_1(self):
5050

5151
def steps_TC_EWATERHTR_2_1(self) -> list[TestStep]:
5252
steps = [
53-
TestStep("1", "Commissioning, already done",
54-
is_commissioning=True),
55-
TestStep("2", "TH reads HeaterTypes attribute.",
56-
"DUT as Server replies with a WaterHeaterHeatSourceBitmap (enum8) greater than 0x00 (at least one type supported), and less than 0x20 (no undefined types supported)."),
57-
TestStep("3", "TH reads HeatDemand attribute.",
58-
"DUT as Server replies with a WaterHeaterHeatSourceBitmap (enum8)."),
59-
TestStep("4", "TH reads TankVolume attribute.",
60-
"DUT as Server replies with a uint16 value."),
61-
TestStep("5", "TH reads EstimatedHeatRequired attribute.",
62-
"DUT as Server replies with an energy-mWh value."),
63-
TestStep("6", "TH reads TankPercentage attribute.",
64-
"DUT as Server replies with a percent value."),
65-
TestStep("7", "TH reads BoostState attribute.",
66-
"DUT as Server replies with a BoostStateEnum (enum8) value."),
53+
TestStep("1", "Commission DUT to TH (can be skipped if done in a preceding test)."),
54+
TestStep("2", "TH reads from the DUT the HeaterTypes attribute.",
55+
"Verify that the DUT response contains a WaterHeaterTypeBitmap (enum8) greater than 0x00 (at least one type supported), and less than 0x20 (no undefined types supported)"),
56+
TestStep("3", "TH reads from the DUT the HeatDemand attribute.",
57+
"Verify that the DUT response contains a WaterHeaterDemandBitmap (enum8)."),
58+
TestStep("4", "TH reads from the DUT the TankVolume attribute.",
59+
"Verify that the DUT response contains a uint16 value."),
60+
TestStep("5", "TH reads from the DUT the EstimatedHeatRequired attribute.",
61+
"Verify that the DUT response contains an energy-mWh value."),
62+
TestStep("6", "TH reads from the DUT the TankPercentage attribute.",
63+
"Verify that the DUT response contains a percent value."),
64+
TestStep("7", "TH reads from the DUT the BoostState attribute.",
65+
"Verify that the DUT response contains a BoostStateEnum (enum8) value."),
6766
]
6867

6968
return steps

0 commit comments

Comments
 (0)