-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test]Creating TC_MOD_1_2 python module: #37349
base: master
Are you sure you want to change the base?
Conversation
- Creating TC_MOD_1_2 python module based on task by Cecille @ project-chip/matter-test-scripts#483
- Resolving linting errors
PR #37349: Size comparison from 95d5de5 to d652160 Full report (72 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
- Updated to include ref links for info on StandardNamespace and OnMode values
src/python_testing/TC_MOD_1_2.py
Outdated
attributes = MOD_cluster.Attributes | ||
|
||
if await self.attribute_guard(endpoint=self.endpoint, attribute=attributes.SupportedModes): | ||
mode_options = await self.read_single_attribute(dev_ctrl=self.th1, node_id=self.dut_node_id, endpoint=self.endpoint, attribute=attributes.SupportedModes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The checks in the test plan are more in depth here. I don't think we have a machine-readable version of the standard namespaces right now, so leave that piece for now, but there are some checks that should be in here. See test plan. In particular, unique modes.
src/python_testing/TC_MOD_1_2.py
Outdated
if await self.attribute_guard(endpoint=self.endpoint, attribute=attributes.StandardNamespace): | ||
# Currently appears to return a 0 by default, need to check on this to make sure it is acceptable | ||
#Ref Link: https://github.com/CHIP-Specifications/connectedhomeip-spec/blob/06c4d55962954546ecf093c221fe1dab57645028/src/app_clusters/ModeSelect.adoc#62-standardnamespace-attribute | ||
Standard_Namespace = await self.read_single_attribute(dev_ctrl=self.th1, node_id=self.dut_node_id, endpoint=self.endpoint, attribute=attributes.StandardNamespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Standard_Namespace = await self.read_single_attribute(dev_ctrl=self.th1, node_id=self.dut_node_id, endpoint=self.endpoint, attribute=attributes.StandardNamespace) | |
standard_namespace = await self.read_single_attribute(dev_ctrl=self.th1, node_id=self.dut_node_id, endpoint=self.endpoint, attribute=attributes.StandardNamespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The verification here should be that this is actually a real namespace, which I don't think 0 is. But also, we don't have a machine-readable source yet, so let's handle that in a follow up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just talked to hasty, and we have a scraper for these. I won't have a chance to do anything about it for a few days, but let me see about grabbing the data. Maybe you can be the person who writes the parser - that's more fun than test cases for the most part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds great to me, I would enjoy if I was able to be the one who got to write the parser here!
- Updating test code based on recent suggestions from Cecille Co-authored-by: C Freeman <[email protected]>
- Updating test module to remove checks for mandatory attributes
- Readding missing test step identifiers
- Re-input missing test step numbers
- Added check to make sure that all values for modes in SupportedModes are unique values
Testing