Skip to content

Commit 87ce2a4

Browse files
progress
1 parent 078ed6b commit 87ce2a4

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

src/python_testing/TC_IDM_4_3.py

+21-8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import copy
1919
import logging
2020
import queue
21+
import threading
2122
import time
2223

2324
import chip.clusters as Clusters
@@ -90,12 +91,13 @@ def steps_TC_IDM_4_3(self):
9091
# TestStep(21, "TH sends a subscription request to subscribe to all attributes from a specific cluster on all endpoints. AttributePath = [[Cluster = ClusterID]]. Set the MinIntervalFloor to some value say \"N\"(seconds). Change all or few of the attributes on the DUT",
9192
# "Verify that the DUT sends reports for all the attributes that have changed after N seconds.")
9293
]
93-
94+
9495
@async_test_body
9596
async def test_TC_IDM_4_3(self):
9697

9798
# Test setup
9899
node_label_attr = Clusters.BasicInformation.Attributes.NodeLabel
100+
# node_label_attr = Clusters.OnOff
99101
node_label_attr_path = [(0, node_label_attr)]
100102
TH: ChipDeviceController = self.default_controller
101103

@@ -107,9 +109,20 @@ async def test_TC_IDM_4_3(self):
107109
sub_th_step1a = await TH.ReadAttribute(
108110
nodeid=self.dut_node_id,
109111
attributes=node_label_attr_path,
110-
reportInterval=(3, 10),
112+
reportInterval=(3, 5),
111113
keepSubscriptions=False
112114
)
115+
116+
117+
118+
119+
120+
121+
122+
123+
124+
125+
113126

114127
# Verify that the subscription is activated between TH and DUT
115128
# Verify on the TH, a report data message is received.
@@ -130,12 +143,12 @@ async def test_TC_IDM_4_3(self):
130143
# Turning on/off on a light bulb.
131144
self.step("1b")
132145

133-
# Modify attribute value
134-
new_node_label_write = "NewNodeLabel_11001100"
135-
await TH.WriteAttribute(
136-
self.dut_node_id,
137-
[(0, node_label_attr(value=new_node_label_write))]
138-
)
146+
# # Modify attribute value
147+
# new_node_label_write = "NewNodeLabel_11001100"
148+
# await TH.WriteAttribute(
149+
# self.dut_node_id,
150+
# [(0, node_label_attr(value=new_node_label_write))]
151+
# )
139152

140153

141154
if __name__ == "__main__":

0 commit comments

Comments
 (0)