Skip to content

[Test Script Issue][TC-SC-5.2] step 15 use OnOff cluster to test group command, if a DUT did not support OnOff cluster, then it would fail to PASS step 16 #966

@Aimeezhang2022

Description

@Aimeezhang2022

[TC-SC-5.2] step 15 use OnOff cluster to test group command, if a DUT did not support OnOff cluster, then it would fail to PASS step 16
           # Step 15: Send group command via GroupID 0x0103
            self.step("15")
            dev_ctrl.SendGroupCommand(0x0103, Clusters.OnOff.Commands.On())
            await asyncio.sleep(3)
            # Step 16: Validate group command received
            self.step("16")
            on_off = await self.read_single_attribute_check_success(endpoint=groups_endpoint,
                                                                    cluster=Clusters.OnOff, attribute=Clusters.OnOff.Attributes.OnOff)

            asserts.assert_true(on_off, "OnOff should be TRUE after group On command")
            await dev_ctrl.SendCommand(node_id, groups_endpoint, Clusters.OnOff.Commands.Off())

            # restore the GroupInfo for groupID 0x0103 to use Per-Group address policy
            dev_ctrl.SetGroupInfo(0x0103, "Group #3")

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions