Skip to content

Commit

Permalink
TC_EEVSE_2.2 through 2.5 python script has to be updated as per the t…
Browse files Browse the repository at this point in the history
…est plan changes (#35399)

* Updated 2.2 test steps - autogen'd from test plan. No functional changes.

* Update TC EEVSE 2.3 with autogen'd test steps. No functional code change.

* Updated TC_EEVSE_2.4 test steps - no functional code changes.

* TC_EEVSE_2.5 - updated test steps - no functional changes.

* TC_EEVSE_2.5 added new step 8 (try to send Enable Charge Command when in diagnostics mode which should return failure).
  • Loading branch information
jamesharrow authored and pull[bot] committed Dec 18, 2024
1 parent fae423c commit 2701737
Show file tree
Hide file tree
Showing 4 changed files with 263 additions and 243 deletions.
174 changes: 89 additions & 85 deletions src/python_testing/TC_EEVSE_2_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,93 +52,97 @@ def pics_TC_EEVSE_2_2(self):

def steps_TC_EEVSE_2_2(self) -> list[TestStep]:
steps = [
TestStep("1", "Commissioning, already done",
is_commissioning=True),
TestStep("2", "TH reads TestEventTriggersEnabled attribute from General Diagnostics Cluster.",
"Verify that TestEventTriggersEnabled attribute has a value of 1 (True)"),
TestStep("3", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for Basic Functionality Test Event"),
TestStep("3a", "After a few seconds TH reads from the DUT the State attribute.",
"Verify value is 0x00 (NotPluggedIn)"),
TestStep("3b", "TH reads from the DUT the SupplyState attribute.",
"Verify value is 0x00 (Disabled)"),
TestStep("3c", "TH reads from the DUT the FaultState attribute.",
"Verify value is 0x00 (NoError)"),
TestStep("4", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Plugged-in Test Event.",
"Verify Event EEVSE.S.E00(EVConnected) sent"),
TestStep("4a", "TH reads from the DUT the State attribute.",
"Verify value is 0x01 (PluggedInNoDemand)"),
TestStep("4b",
"TH reads from the DUT the SessionID attribute. Value is noted for later"),
TestStep("5", "TH sends command EnableCharging with ChargingEnabledUntil=2 minutes in the future, minimumChargeCurrent=6000, maximumChargeCurrent=60000"),
TestStep("6", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Charge Demand Test Event.",
"Verify Event EEVSE.S.E02(EnergyTransferStarted) sent."),
TestStep("6a", "TH reads from the DUT the State attribute.",
"Verify value is 0x3 (PluggedInCharging)"),
TestStep("6b", "TH reads from the DUT the SupplyState attribute.",
"Verify value is 0x1 (ChargingEnabled)"),
TestStep("6c", "TH reads from the DUT the ChargingEnabledUntil attribute.",
"Verify value is the commanded value"),
TestStep("6d", "TH reads from the DUT the MinimumChargeCurrent attribute.",
"Verify value is the commanded value (6000)"),
TestStep("6e", "TH reads from the DUT the MaximumChargeCurrent attribute.",
"Verify value is the min(command value (60000), CircuitCapacity)"),
TestStep("7", "Wait 2 minutes.",
"Verify Event EEVSE.S.E03(EnergyTransferStopped) sent with reason EvseStopped"),
TestStep("7a", "TH reads from the DUT the State attribute.",
"Verify value is 0x02 (PluggedInDemand)"),
TestStep("7b", "TH reads from the DUT the SupplyState attribute.",
"Verify value is 0x00 (Disabled)"),
TestStep("8", "TH sends command EnableCharging with ChargingEnabledUntil=NULL, minimumChargeCurrent = 6000, maximumChargeCurrent=12000"),
TestStep("8a", "TH reads from the DUT the State attribute.",
"Verify value is 0x03 (PluggedInCharging)"),
TestStep("8b", "TH reads from the DUT the SupplyState attribute.",
"Verify value is 1 (ChargingEnabled)"),
TestStep("8c", "TH reads from the DUT the ChargingEnabledUntil attribute",
"Verify value is the commanded value (NULL)"),
TestStep("8d", "TH reads from the DUT the MinimumChargeCurrent attribute",
"Verify value is the commanded value (6000)"),
TestStep("8e", "TH reads from the DUT the MaximumChargeCurrent attribute",
"Verify value is the MIN(command value (60000), CircuitCapacity)"),
TestStep("9",
"If the optional attribute is supported TH writes to the DUT UserMaximumChargeCurrent=6000"),
TestStep("1", "Commission DUT to TH (can be skipped if done in a preceding test)"),
TestStep("2", "TH reads TestEventTriggersEnabled attribute from General Diagnostics Cluster",
"Value has to be 1 (True)"),
TestStep("3", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for Basic Functionality Test Event",
"Verify DUT responds w/ status SUCCESS(0x00)"),
TestStep("3a", "After a few seconds TH reads from the DUT the State",
"Value has to be 0x00 (NotPluggedIn)"),
TestStep("3b", "TH reads from the DUT the SupplyState",
"Value has to be 0x00 (Disabled)"),
TestStep("3c", "TH reads from the DUT the FaultState",
"Value has to be 0x00 (NoError)"),
TestStep("4", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Plugged-in Test Event",
"Verify DUT responds w/ status SUCCESS(0x00) and event EEVSE.S.E00(EVConnected) sent"),
TestStep("4a", "TH reads from the DUT the State",
"Value has to be 0x01 (PluggedInNoDemand)"),
TestStep("4b", "TH reads from the DUT the SessionID",
"Value is noted for later"),
TestStep("5", "TH sends command EnableCharging with ChargingEnabledUntil=2 minutes in the future, minimumChargeCurrent=6000, maximumChargeCurrent=60000",
"Verify DUT responds w/ status SUCCESS(0x00)"),
TestStep("6", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Charge Demand Test Event",
"Verify DUT responds w/ status SUCCESS(0x00) and event EEVSE.S.E02(EnergyTransferStarted) sent"),
TestStep("6a", "TH reads from the DUT the State",
"Value has to be 0x03 (PluggedInCharging)"),
TestStep("6b", "TH reads from the DUT the SupplyState",
"Value has to be 0x01 (ChargingEnabled)"),
TestStep("6c", "TH reads from the DUT the ChargingEnabledUntil",
"Value has to be the ChargingEnabledUntil commanded value"),
TestStep("6d", "TH reads from the DUT the MinimumChargeCurrent",
"Value has to be the minimumChargeCurrent commanded value"),
TestStep("6e", "TH reads from the DUT the MaximumChargeCurrent",
"Value has to be the min(maximumChargeCurrent commanded value,CircuitCapacity)"),
TestStep("7", "Wait 2 minutes",
"Event EEVSE.S.E03(EnergyTransferStopped) sent with reason EvseStopped"),
TestStep("7a", "TH reads from the DUT the State",
"Value has to be 0x02 (PluggedInDemand)"),
TestStep("7b", "TH reads from the DUT the SupplyState",
"Value has to be 0x00 (Disabled)"),
TestStep("8", "TH sends command EnableCharging with ChargingEnabledUntil=null, minimumChargeCurrent=6000, maximumChargeCurrent=12000",
"Verify DUT responds w/ status SUCCESS(0x00) and Event EEVSE.S.E02(EnergyTransferStarted) sent"),
TestStep("8a", "TH reads from the DUT the State",
"Value has to be 0x03 (PluggedInCharging)"),
TestStep("8b", "TH reads from the DUT the SupplyState",
"Value has to be 0x01 (ChargingEnabled)"),
TestStep("8c", "TH reads from the DUT the ChargingEnabledUntil",
"Value has to be the ChargingEnabledUntil commanded value"),
TestStep("8d", "TH reads from the DUT the MinimumChargeCurrent",
"Value has to be the minimumChargeCurrent commanded value"),
TestStep("8e", "TH reads from the DUT the MaximumChargeCurrent",
"Value has to be the min(maximumChargeCurrent commanded value,CircuitCapacity)"),
TestStep("9", "If the optional attribute is supported, TH writes to the DUT the UserMaximumChargeCurrent=6000",
"Charging rate reduced to 6A"),
TestStep("9a", "After a few seconds TH reads from the DUT the MaximumChargeCurrent",
"Verify value is UserMaximumChargeCurrent value (6000)"),
TestStep("10", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Charge Demand Test Event Clear",
"Verify Event EEVSE.S.E03(EnergyTransferStopped) sent with reason EvStopped"),
TestStep("10a", "TH reads from the DUT the State attribute",
"Verify value is 0x01 (PluggedInNoDemand)"),
TestStep("11", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Charge Demand Test Event",
"Verify Event EEVSE.S.E02(EnergyTransferStarted) sent."),
TestStep("11a", "TH reads from the DUT the State attribute",
"Verify value is 0x03 (PluggedInCharging)"),
TestStep("12", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Charge Demand Test Event Clear",
"Verify Event EEVSE.S.E03(EnergyTransferStopped) sent with reason EvStopped"),
TestStep("12a", "TH reads from the DUT the State attribute",
"Verify value is 0x01 (PluggedInNoDemand)"),
TestStep("13", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Plugged-in Test Event Clear",
"Verify Event EEVSE.S.E01(EVNotDetected) sent"),
TestStep("13a", "TH reads from the DUT the State attribute",
"Verify value is 0x00 (NotPluggedIn)"),
TestStep("13b", "TH reads from the DUT the SupplyState attribute",
"Verify value is 0x01 (ChargingEnabled)"),
TestStep("13c", "TH reads from the DUT the SessionID attribute",
"Verify value is the same value noted in 4b"),
TestStep("13d", "TH reads from the DUT the SessionDuration attribute",
"Verify value is greater than 120 (and match the time taken for the tests from step 4 to step 13)"),
TestStep("14", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Plugged-in Test Event",
"Verify Event EEVSE.S.E00(EVConnected) sent"),
TestStep("14a", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Charge Demand Test Event",
"Verify Event EEVSE.S.E02(EnergyTransferStarted) sent."),
TestStep("14b", "TH reads from the DUT the SessionID attribute",
"Verify value is 1 more than the value noted in 4b"),
"Value has to be the configured UserMaximumChargeCurrent value"),
TestStep("10", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Charge Demand Test Event Clear",
"Verify DUT responds w/ status SUCCESS(0x00) and event EEVSE.S.E03(EnergyTransferStopped) sent with reason EvStopped"),
TestStep("10a", "TH reads from the DUT the State",
"Value has to be 0x01 (PluggedInNoDemand)"),
TestStep("11", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Charge Demand Test Event",
"Verify DUT responds w/ status SUCCESS(0x00) and event EEVSE.S.E02(EnergyTransferStarted) sent"),
TestStep("11a", "TH reads from the DUT the State",
"Value has to be 0x03 (PluggedInCharging)"),
TestStep("12", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Charge Demand Test Event Clear",
"Verify DUT responds w/ status SUCCESS(0x00) and event EEVSE.S.E03(EnergyTransferStopped) sent with reason EvStopped"),
TestStep("12a", "TH reads from the DUT the State",
"Value has to be 0x01 (PluggedInNoDemand)"),
TestStep("13", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Plugged-in Test Event Clear",
"Verify DUT responds w/ status SUCCESS(0x00) and event EEVSE.S.E01(EVNotDetected) sent"),
TestStep("13a", "TH reads from the DUT the State",
"Value has to be 0x00 (NotPluggedIn)"),
TestStep("13b", "TH reads from the DUT the SupplyState",
"Value has to be 0x01 (ChargingEnabled)"),
TestStep("13c", "TH reads from the DUT the SessionID",
"Value has to be the same value noted in 4b"),
TestStep("13d", "TH reads from the DUT the SessionDuration",
"Value has to be greater than 120 (and match the time taken for the tests from step 4 to step 13)"),
TestStep("14", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Plugged-in Test Event",
"Verify DUT responds w/ status SUCCESS(0x00) and event EEVSE.S.E00(EVConnected) sent"),
TestStep("14a", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Charge Demand Test Event",
"Verify DUT responds w/ status SUCCESS(0x00) and event EEVSE.S.E02(EnergyTransferStarted) sent"),
TestStep("14b", "TH reads from the DUT the SessionID",
"Value has to be 1 more than the value noted in 4b"),
TestStep("15", "TH sends command Disable",
"Verify Event EEVSE.S.E03(EnergyTransferStopped) sent with reason EvseStopped"),
TestStep("15a", "TH reads from the DUT the SupplyState attribute",
"Verify value is 0x00 (Disabled)"),
TestStep("16", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Charge Demand Test Event Clear."),
TestStep("17", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for EV Plugged-in Test Event Clear",
"Verify Event EEVSE.S.E01(EVNotDetected) sent"),
TestStep("18", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER_KEY and EventTrigger field set to PIXIT.EEVSE.TEST_EVENT_TRIGGER for Basic Functionality Test Event Clear."),
"Verify DUT responds w/ status SUCCESS(0x00) and Event EEVSE.S.E03(EnergyTransferStopped) sent with reason EvseStopped"),
TestStep("15a", "TH reads from the DUT the SupplyState",
"Value has to be 0x00 (Disabled)"),
TestStep("16", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Charge Demand Test Event Clear",
"Verify DUT responds w/ status SUCCESS(0x00)"),
TestStep("17", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for EV Plugged-in Test Event Clear",
"Verify DUT responds w/ status SUCCESS(0x00) and event EEVSE.S.E01(EVNotDetected) sent"),
TestStep("18", "TH sends TestEventTrigger command to General Diagnostics Cluster on Endpoint 0 with EnableKey field set to PIXIT.EEVSE.TESTEVENT_TRIGGERKEY and EventTrigger field set to PIXIT.EEVSE.TESTEVENTTRIGGER for Basic Functionality Test Event Clear",
"Verify DUT responds w/ status SUCCESS(0x00)"),
]

return steps
Expand Down
Loading

0 comments on commit 2701737

Please sign in to comment.