-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python testing: Add PICS parser for xml (#31493)
* python testing: Add PICS parser for xml Code blatently stolen from Jon Rhees. * Restyled by isort * remove some debug --------- Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
1 parent
d9460ec
commit fea1604
Showing
3 changed files
with
315 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
250 changes: 250 additions & 0 deletions
250
src/python_testing/test_testing/example_pics_xml_basic_info.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,250 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<!-- | ||
Autogenerated xml file - Version No:V_24_SVE_1.2 | ||
Generated date:2023-09-09 07:41:59 | ||
Cluster Name -Basic Information Test Plan | ||
XML PICS -Ref Document: | ||
version master 0cb6035, | ||
Draft | ||
2023-09-08 12:46:22 -0700 | ||
--> | ||
<clusterPICS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Generic-PICS-XML-Schema.xsd"> | ||
<!--General cluster information--> | ||
<name>Basic Information Test Plan</name> | ||
<clusterId> </clusterId> | ||
<picsRoot> </picsRoot> | ||
<!--Cluster role information--> | ||
<usage> | ||
<picsItem> | ||
<itemNumber>BINFO.S</itemNumber> | ||
<feature>Does the device implement the Basic Information Cluster as a server?</feature> | ||
<reference>9.1. Role - index.html[pdf]</reference> | ||
<status>O</status> | ||
<support>true</support> | ||
</picsItem> | ||
</usage> | ||
<!--PIXIT--> | ||
<pixit> | ||
<pixitItem> | ||
<itemNumber>PIXIT.BINFO.PrimaryColor</itemNumber> | ||
<feature>ProductAppearance.PrimaryColor should reflect the product’s color</feature> | ||
<reference>10. PIXIT Definition - index.html[pdf]</reference> | ||
<status cond="BINFO.S.A0014">M</status> | ||
<support>0x00</support> | ||
</pixitItem> | ||
<pixitItem> | ||
<itemNumber>PIXIT.BINFO.Finish</itemNumber> | ||
<feature>ProductAppearance.Finish should reflect the product’s finish</feature> | ||
<reference>10. PIXIT Definition - index.html[pdf]</reference> | ||
<status cond="BINFO.S.A0014">M</status> | ||
<support>0x00</support> | ||
</pixitItem> | ||
</pixit> | ||
<!--Server side PICS--> | ||
<clusterSide type="Server"> | ||
<!--Attributes PICS write--> | ||
<attributes> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0000</itemNumber> | ||
<feature>Does the DUT(server) support the DataModelRevision attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0001</itemNumber> | ||
<feature>Does the DUT(server) support the VendorName attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0002</itemNumber> | ||
<feature>Does the DUT(server) support the VendorID attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0003</itemNumber> | ||
<feature>Does the DUT(server) support the ProductName attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0004</itemNumber> | ||
<feature>Does the DUT(server) support the ProductID attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0005</itemNumber> | ||
<feature>Does the DUT(server) support the NodeLabel attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0006</itemNumber> | ||
<feature>Does the DUT(server) support the Location attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0007</itemNumber> | ||
<feature>Does the DUT(server) support the HardwareVersion attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0008</itemNumber> | ||
<feature>Does the DUT(server) support the HardwareVersionString attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0009</itemNumber> | ||
<feature>Does the DUT(server) support the SoftwareVersion attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A000a</itemNumber> | ||
<feature>Does the DUT(server) support the SoftwareVersionString attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A000b</itemNumber> | ||
<feature>Does the DUT(server) support the ManufacturingDate attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A000c</itemNumber> | ||
<feature>Does the DUT(server) support the PartNumber attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A000d</itemNumber> | ||
<feature>Does the DUT(server) support the ProductURL attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A000e</itemNumber> | ||
<feature>Does the DUT(server) support the ProductLabel attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A000f</itemNumber> | ||
<feature>Does the DUT(server) support the SerialNumber attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0010</itemNumber> | ||
<feature>Does the DUT(server) support the LocalConfigDisabled attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0011</itemNumber> | ||
<feature>Does the DUT(server) support the Reachable attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>false</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0012</itemNumber> | ||
<feature>Does the DUT(server) support the UniqueID attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0013</itemNumber> | ||
<feature>Does the DUT(server) support the CapabilityMinima attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.A0014</itemNumber> | ||
<feature>Does the DUT(server) support the ProductAppearance attribute?</feature> | ||
<reference>9.2.1. Attributes - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>false</support> | ||
</picsItem> | ||
</attributes> | ||
<!--Events PICS write--> | ||
<events> | ||
<picsItem> | ||
<itemNumber>BINFO.S.E00</itemNumber> | ||
<feature>Does the DUT(server) support the StartUp event?</feature> | ||
<reference>9.2.2. Events - index.html[pdf]</reference> | ||
<status cond="BINFO.S">M</status> | ||
<support>true</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.E01</itemNumber> | ||
<feature>Does the DUT(server) support the ShutDown event?</feature> | ||
<reference>9.2.2. Events - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>false</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.E02</itemNumber> | ||
<feature>Does the DUT(server) support the Leave event?</feature> | ||
<reference>9.2.2. Events - index.html[pdf]</reference> | ||
<status cond="BINFO.S">O</status> | ||
<support>false</support> | ||
</picsItem> | ||
<picsItem> | ||
<itemNumber>BINFO.S.E03</itemNumber> | ||
<feature>Does the DUT(server) support the ReachableChanged event?</feature> | ||
<reference>9.2.2. Events - index.html[pdf]</reference> | ||
<status cond="BINFO.S.A0011">M</status> | ||
<support>false</support> | ||
</picsItem> | ||
</events> | ||
<!--Commands generated PICS write--> | ||
<commandsGenerated /> | ||
<!--Commands received PICS write--> | ||
<commandsReceived /> | ||
<!--Features PICS write--> | ||
<features /> | ||
<!--Manual controllable PICS write--> | ||
<manually /> | ||
</clusterSide> | ||
<!--Client side PICS--> | ||
<clusterSide type="Client"> | ||
<!--Attributes PICS write--> | ||
<attributes /> | ||
<!--Events PICS write--> | ||
<events /> | ||
<!--Commands generated PICS write--> | ||
<commandsGenerated /> | ||
<!--Commands received PICS write--> | ||
<commandsReceived /> | ||
<!--Features PICS write--> | ||
<features /> | ||
<!--Manual controllable PICS write--> | ||
<manually /> | ||
</clusterSide> | ||
</clusterPICS> |