Skip to content

Commit

Permalink
Updated Manual scripts verification steps and PICS (#20759)
Browse files Browse the repository at this point in the history
* Added Manual scripts

* Added Auto generated files

* Restyled by whitespace

* Restyled by clang-format

* Added update PICS file

* 1.Removing deprecated PICS definition

* Increasing move command delay.

Co-authored-by: Restyled.io <commits@restyled.io>
Co-authored-by: kvikrambhat <vikrambhat@outlook.com>
  • Loading branch information
3 people authored Jul 16, 2022
1 parent cd42353 commit fd91bea
Show file tree
Hide file tree
Showing 107 changed files with 9,444 additions and 6,351 deletions.
24 changes: 15 additions & 9 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -554,21 +554,21 @@ PICS:

# Temperature Measurement cluster
- label: "Does the device implement the MeasuredValue attribute?"
id: TM.S.A0000
id: TMP.S.A0000

- label: "Does the device implement the MinMeasuredValue attribute?"
id: TM.S.A0001
id: TMP.S.A0001

- label: "Does the device implement the MaxMeasuredValue attribute?"
id: TM.S.A0002
id: TMP.S.A0002

- label: "Does the device implement the Tolerance attribute?"
id: TM.S.A0003
id: TMP.S.A0003

- label:
"Can the MeasuredValue attribute changed by physical control at the
device?"
id: TM.M.ManuallyControlled
id: TMP.M.ManuallyControlled

- label: "Does the device implement the Tolerance attribute?"
id: A_TEMPERATURE_TOLERANCE
Expand Down Expand Up @@ -605,7 +605,7 @@ PICS:
id: DGSW.S.A0003

- label: "Does the device implement the ResetWaterMarks command?"
id: DGSW.S.C00
id: DGSW.S.C00.Rsp

# Thermostat cluster
- label: "Does the device implement the Heating feature"
Expand Down Expand Up @@ -635,6 +635,12 @@ PICS:
- label: "Does the device implement the Tolerance attribute?"
id: A_TEMPERATURE_TOLERANCE

- label: "Does the device implement the OccupiedCoolingSetpoint attribute?"
id: A_OCCUPIEDCOOLINGSETPOINT

- label: "Does the device implement the OccupiedHeatingSetpoint attribute?"
id: A_OCCUPIEDHEATINGSETPOINT

- label: "Does the device implement the LocalTemperature attribute?"
id: TSTAT.S.A0000

Expand Down Expand Up @@ -2390,7 +2396,7 @@ PICS:
id: DGGEN.S.A0008

- label: "Indicates that node is configured for test event triggers."
id: DGGEN.S.C00
id: DGGEN.S.C00.Rsp

- label:
"Indicates a change in the set of hardware faults currently detected
Expand Down Expand Up @@ -2765,7 +2771,7 @@ PICS:

#Ethernet Network Diagnostics Cluster
- label: "Does the device implement the ResetCounts command?"
id: DGETH.S.C00
id: DGETH.S.C00.Rsp

- label: "Does the device implement the PHYRate attribute?"
id: DGETH.S.A0000
Expand Down Expand Up @@ -2891,7 +2897,7 @@ PICS:
"Reset the following attributes to 0; BeaconLostCount, BeaconRxCount,
PacketMulticastRxCount, PacketMulticastTxCount, PacketUnicastRxCount,
PacketUnicastTxCount"
id: DGWIFI.S.C00
id: DGWIFI.S.C00.Rsp
#Actions Cluster
- label: "Does the device implement the ActionList attribute?"
id: ACT.S.A0000
Expand Down
157 changes: 37 additions & 120 deletions src/app/tests/suites/certification/Test_TC_BINFO_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name: 11.2.2. [TC-BINFO-2.2] Events [DUT-Server]

Expand All @@ -20,130 +21,46 @@ config:
endpoint: 0

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Query SoftwareVersion"
command: "readAttribute"
attribute: "SoftwareVersion"
response:
saveAs: SoftwareVersionValue
constraints:
type: uint8

- label: "Query Reachable Fabrics"
command: "readAttribute"
attribute: "Reachable"
response:
constraints:
type: bool

- label: "Reboot target device"
PICS: PICS_SDK_CI_ONLY
cluster: "SystemCommands"
command: "Reboot"

- label: "Reboot target device(DUT)"
- label: "Reboot the DUT TH reads the StartUp event from DUT"
PICS: BINFO.S.E00
verification: |
Not implemented in YAML
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Please reboot the DUT and enter 'y' after DUT starts"
- name: "expectedValue"
value: "y"

- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Query SoftwareVersion"
command: "readAttribute"
attribute: "SoftwareVersion"
response:
value: SoftwareVersionValue

##Event 11343 implementation not done
- label: "Reboot target device"
PICS: PICS_SDK_CI_ONLY
cluster: "SystemCommands"
command: "Reboot"

- label: "Reboot target device(DUT)"
./chip-tool basic read-event start-up 1 0
Verify on the TH Log:
[1657193007.841105][5422:5427] CHIP:DMG: ],
[1657193007.841137][5422:5427] CHIP:DMG:
[1657193007.841162][5422:5427] CHIP:DMG: SuppressResponse = true,
[1657193007.841186][5422:5427] CHIP:DMG: InteractionModelRevision = 1
[1657193007.841209][5422:5427] CHIP:DMG: }
[1657193007.841358][5422:5427] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0000
[1657193007.841387][5422:5427] CHIP:TOO: Event number: 0
[1657193007.841409][5422:5427] CHIP:TOO: Priority: Critical
[1657193007.841431][5422:5427] CHIP:TOO: Timestamp: 132146
[1657193007.841531][5422:5427] CHIP:TOO: StartUp: {
[1657193007.841570][5422:5427] CHIP:TOO: SoftwareVersion: 1
[1657193007.841594][5422:5427] CHIP:TOO: }
[1657193007.841691][5422:5427] CHIP:EM: Sending Standalone Ack for MessageCounter:91740387 on exchange 60385i
disabled: true

- label: "TH subscribes to the ShutDown event on the DUT. Shutdown DUT."
PICS: BINFO.S.E01
verification: |
Not implemented in YAML
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Please reboot the DUT and enter 'y' after DUT starts"
- name: "expectedValue"
value: "y"

- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
1. Launch chip-tool into interactive mode with the command
- label: "Factory Reset the accessory"
cluster: "SystemCommands"
command: "FactoryReset"
./chip-tool interactive start
basic subscribe-event shut-down 20 100 1 0
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
2. Turn down the DUT and run below command in interactive mode shell
- label: "Reboot target device"
PICS: PICS_SDK_CI_ONLY
cluster: "SystemCommands"
command: "Reboot"

- label: "Reboot target device(DUT)"
verification: |
Not implemented in YAML
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Please reboot the DUT and enter 'y' after DUT starts"
- name: "expectedValue"
value: "y"
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
Verify on the TH Log:
###Event 11343 implementation not done
- label: "Query Reachable Fabrics"
command: "readAttribute"
attribute: "Reachable"
response:
constraints:
type: bool
CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0028 Event 0x0000_0001
[1653050528.900202][119367:119372] CHIP:TOO: Event number: 5
[1653050528.900295][119367:119372] CHIP:TOO: Priority: Critical
[1653050528.900386][119367:119372] CHIP:TOO: Timestamp: 289436805
[1653050528.900630][119367:119372] CHIP:TOO: ShutDown: {
[1653050528.900732][119367:119372] CHIP:TOO: }
[1653050528.900892][119367:119372] CHIP:DMG: Refresh LivenessCheckTime for 28000 milliseconds with SubscriptionId = 0x27408c83 Peer = 01:0000000000000001
disabled: true
Loading

0 comments on commit fd91bea

Please sign in to comment.