Skip to content

Commit 5b2bece

Browse files
arkqgmarcosb
authored andcommitted
Add missing commissioning steps to TC.MCORE tests (project-chip#37661)
1 parent 8d3d350 commit 5b2bece

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

src/python_testing/TC_MCORE_FS_1_1.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,14 @@ def teardown_class(self):
126126
super().teardown_class()
127127

128128
def steps_TC_MCORE_FS_1_1(self) -> list[TestStep]:
129-
steps = [TestStep(1, "Enable Fabric Synchronization on DUT_FSA using the manufacturer specified mechanism.", is_commissioning=True),
130-
TestStep(2, "Commission DUT_FSA onto TH_FSA fabric."),
131-
TestStep(3, "Reverse Commission TH_FSAs onto DUT_FSA fabric."),
132-
TestStep("3a", "TH_FSA sends RequestCommissioningApproval"),
133-
TestStep("3b", "TH_FSA sends CommissionNode"),
134-
TestStep("3c", "DUT_FSA commissions TH_FSA")]
135-
return steps
129+
return [
130+
TestStep(1, "Enable Fabric Synchronization on DUT_FSA using the manufacturer specified mechanism.", is_commissioning=True),
131+
TestStep(2, "Commission DUT_FSA onto TH_FSA fabric."),
132+
TestStep(3, "Reverse Commission TH_FSAs onto DUT_FSA fabric."),
133+
TestStep("3a", "TH_FSA sends RequestCommissioningApproval"),
134+
TestStep("3b", "TH_FSA sends CommissionNode"),
135+
TestStep("3c", "DUT_FSA commissions TH_FSA"),
136+
]
136137

137138
# This test has some manual steps and one sleep for up to 30 seconds. Test typically
138139
# runs under 1 mins, so 3 minutes is more than enough.

src/python_testing/TC_MCORE_FS_1_2.py

+13-8
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,16 @@ def _ask_for_vendor_commissioning_ux_operation(self, setup_params: SetupParamete
152152
f">>> pairing onnetwork 111 {setup_params.passcode}")
153153

154154
def steps_TC_MCORE_FS_1_2(self) -> list[TestStep]:
155-
steps = [TestStep(1, "TH subscribes to PartsList attribute of the Descriptor cluster of DUT_FSA endpoint 0."),
156-
TestStep(2, "Follow manufacturer provided instructions to have DUT_FSA commission TH_SERVER"),
157-
TestStep(3, "TH waits up to 30 seconds for subscription report from the PartsList attribute of the Descriptor to contain new endpoint"),
158-
TestStep(4, "TH uses DUT to open commissioning window to TH_SERVER"),
159-
TestStep(5, "TH commissions TH_SERVER"),
160-
TestStep(6, "TH reads all attributes in Basic Information cluster from TH_SERVER directly"),
161-
TestStep(7, "TH reads all attributes in the Bridged Device Basic Information cluster on new endpoint identified in step 3 from the DUT_FSA")]
162-
return steps
155+
return [
156+
TestStep(0, "Commission DUT if not done", is_commissioning=True),
157+
TestStep(1, "TH subscribes to PartsList attribute of the Descriptor cluster of DUT_FSA endpoint 0."),
158+
TestStep(2, "Follow manufacturer provided instructions to have DUT_FSA commission TH_SERVER"),
159+
TestStep(3, "TH waits up to 30 seconds for subscription report from the PartsList attribute of the Descriptor to contain new endpoint"),
160+
TestStep(4, "TH uses DUT to open commissioning window to TH_SERVER"),
161+
TestStep(5, "TH commissions TH_SERVER"),
162+
TestStep(6, "TH reads all attributes in Basic Information cluster from TH_SERVER directly"),
163+
TestStep(7, "TH reads all attributes in the Bridged Device Basic Information cluster on new endpoint identified in step 3 from the DUT_FSA"),
164+
]
163165

164166
# This test has some manual steps, so we need a longer timeout. Test typically runs under 1 mins so 3 mins should
165167
# be enough time for test to run
@@ -170,6 +172,9 @@ def default_timeout(self) -> int:
170172
@async_test_body
171173
async def test_TC_MCORE_FS_1_2(self):
172174

175+
# Commissioning - done
176+
self.step(0)
177+
173178
min_report_interval_sec = self.user_params.get("min_report_interval_sec", 0)
174179
max_report_interval_sec = self.user_params.get("max_report_interval_sec", 30)
175180

src/python_testing/TC_MCORE_FS_1_5.py

+4
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def _ask_for_vendor_commissioning_ux_operation(self, setup_params: SetupParamete
157157

158158
def steps_TC_MCORE_FS_1_5(self) -> list[TestStep]:
159159
return [
160+
TestStep(0, "Commission DUT if not done", is_commissioning=True),
160161
TestStep(1, "TH subscribes to PartsList attribute of the Descriptor cluster of DUT_FSA endpoint 0."),
161162
TestStep(2, "Follow manufacturer provided instructions to have DUT_FSA commission TH_SERVER"),
162163
TestStep(3, "TH waits up to 30 seconds for subscription report from the PartsList attribute of the Descriptor to contain new endpoint"),
@@ -178,6 +179,9 @@ def default_timeout(self) -> int:
178179
@async_test_body
179180
async def test_TC_MCORE_FS_1_5(self):
180181

182+
# Commissioning - done
183+
self.step(0)
184+
181185
min_report_interval_sec = 0
182186
max_report_interval_sec = 30
183187

0 commit comments

Comments
 (0)