Skip to content

Commit

Permalink
Modified TSTAT sep 21 (#22800)
Browse files Browse the repository at this point in the history
* Fixed issue #561and #562
TSTAT-2.1
TSTAT-2.2

* Auto generated files

* Restyled by whitespace

* Disabled TSTAT tests in Darwin

* Auto generated files

* Restyled by whitespace

* Fix #2296

* Auto generated files

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Aug 7, 2023
1 parent a65c958 commit 2206801
Show file tree
Hide file tree
Showing 8 changed files with 3,287 additions and 6,413 deletions.
4 changes: 3 additions & 1 deletion examples/darwin-framework-tool/templates/tests/ciTests.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"Test_TC_BINFO_2_1",
"Test_TC_SWTCH_2_1",
"Test_TC_G_2_1",
"Test_TC_FLABEL_2_1"
"Test_TC_FLABEL_2_1",
"Test_TC_TSTAT_2_1",
"Test_TC_TSTAT_2_2"
]
}
74 changes: 66 additions & 8 deletions src/app/tests/suites/certification/Test_TC_ACL_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,72 @@ tests:
type: list
contains: [31]

#Endpoint configuration is not supported in YAML
- label:
"TH1 reads DUT Descriptor cluster ServerList attribute from every
Endpoint except 0"
command: "readAttribute"
cluster: "Descriptor"
endpoint: 1
attribute: "ServerList"
response:
constraints:
type: list
excludes: [31]
verification: |
./chip-tool descriptor read server-list 1 1
On TH1(Chiptool) ,Verify the serverList attribute of Descriptor Cluster without an element of 31( 0x001F)
[1656412927.698026][3383:3388] CHIP:DMG: SuppressResponse = true,
[1656412927.698052][3383:3388] CHIP:DMG: InteractionModelRevision = 1
[1656412927.698076][3383:3388] CHIP:DMG: }
[1656412927.698852][3383:3388] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 239898735
[1656412927.698963][3383:3388] CHIP:TOO: server list: 44 entries
[1656412927.698997][3383:3388] CHIP:TOO: [1]: 3
[1656412927.699023][3383:3388] CHIP:TOO: [2]: 4
[1656412927.699050][3383:3388] CHIP:TOO: [3]: 5
[1656412927.699075][3383:3388] CHIP:TOO: [4]: 6
[1656412927.699101][3383:3388] CHIP:TOO: [5]: 7
[1656412927.699127][3383:3388] CHIP:TOO: [6]: 8
[1656412927.699153][3383:3388] CHIP:TOO: [7]: 15
[1656412927.699179][3383:3388] CHIP:TOO: [8]: 29
[1656412927.699205][3383:3388] CHIP:TOO: [9]: 30
[1656412927.699231][3383:3388] CHIP:TOO: [10]: 37
[1656412927.699258][3383:3388] CHIP:TOO: [11]: 47
[1656412927.699284][3383:3388] CHIP:TOO: [12]: 59
[1656412927.699310][3383:3388] CHIP:TOO: [13]: 64
[1656412927.699336][3383:3388] CHIP:TOO: [14]: 65
[1656412927.699361][3383:3388] CHIP:TOO: [15]: 69
[1656412927.699387][3383:3388] CHIP:TOO: [16]: 80
[1656412927.699414][3383:3388] CHIP:TOO: [17]: 257
[1656412927.699440][3383:3388] CHIP:TOO: [18]: 258
[1656412927.699466][3383:3388] CHIP:TOO: [19]: 259
[1656412927.699492][3383:3388] CHIP:TOO: [20]: 512
[1656412927.699518][3383:3388] CHIP:TOO: [21]: 513
[1656412927.699544][3383:3388] CHIP:TOO: [22]: 514
[1656412927.699571][3383:3388] CHIP:TOO: [23]: 516
[1656412927.699596][3383:3388] CHIP:TOO: [24]: 768
[1656412927.699623][3383:3388] CHIP:TOO: [25]: 1024
[1656412927.699649][3383:3388] CHIP:TOO: [26]: 1026
[1656412927.699675][3383:3388] CHIP:TOO: [27]: 1027
[1656412927.699701][3383:3388] CHIP:TOO: [28]: 1028
[1656412927.699727][3383:3388] CHIP:TOO: [29]: 1029
[1656412927.699754][3383:3388] CHIP:TOO: [30]: 1030
[1656412927.699780][3383:3388] CHIP:TOO: [31]: 1283
[1656412927.699806][3383:3388] CHIP:TOO: [32]: 1284
[1656412927.699832][3383:3388] CHIP:TOO: [33]: 1285
[1656412927.699858][3383:3388] CHIP:TOO: [34]: 1286
[1656412927.699884][3383:3388] CHIP:TOO: [35]: 1287
[1656412927.699911][3383:3388] CHIP:TOO: [36]: 1288
[1656412927.699937][3383:3388] CHIP:TOO: [37]: 1289
[1656412927.699963][3383:3388] CHIP:TOO: [38]: 1290
[1656412927.700002][3383:3388] CHIP:TOO: [39]: 1291
[1656412927.700029][3383:3388] CHIP:TOO: [40]: 1292
[1656412927.700056][3383:3388] CHIP:TOO: [41]: 1293
[1656412927.700082][3383:3388] CHIP:TOO: [42]: 1294
[1656412927.700108][3383:3388] CHIP:TOO: [43]: 2820
[1656412927.700134][3383:3388] CHIP:TOO: [44]: 4294048773
[1656412927.700251][3383:3388] CHIP:EM: Sending Standalone Ack for MessageCounter:186152197 on exchange 39489i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Factory Reset the DUT and enter 'y' after success"
- name: "expectedValue"
value: "y"
27 changes: 21 additions & 6 deletions src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,25 @@ tests:
- name: "status"
value: 0

#Endpoint configuration is not supported in YAML
- label: "Reads the Status attribute"
cluster: "Application Basic"
endpoint: 3
command: "readAttribute"
attribute: "Status"
response:
value: 0
PICS: PICS_USER_PROMPT
verification: |
The TH commands for this test step can be invoked using chip-tool (when DUT is a commissionee) or tv-casting-app (when DUT is a commissioner):
./chip-tool applicationbasic read status 1 3
./chip-tv-casting-app applicationbasic read status 1 3
On TH verify that the Status attribute value as 0
[1658208937.049446][2428:2433] CHIP:DMG: InteractionModelRevision = 1
[1658208937.049483][2428:2433] CHIP:DMG: }
[1658208937.049690][2428:2433] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_050D Attribute 0x0000_0005 DataVersion: 3850684771
[1658208937.049809][2428:2433] CHIP:TOO: Status: 0
[1658208937.049922][2428:2433] CHIP:EM: Sending Standalone Ack for MessageCounter:75774840 on exchange 3041i
cluster: "LogCommands"
command: "UserPrompt"
arguments:
values:
- name: "message"
value: "Please enter 'y' after success"
- name: "expectedValue"
value: "y"
10 changes: 0 additions & 10 deletions src/app/tests/suites/certification/Test_TC_AUDIOOUTPUT_1_8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,6 @@ tests:
contains: [0]

- label: "Read the global attribute: GeneratedCommandList"
PICS: AUDIOOUTPUT.S.NU
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: [1]
constraints:
type: list

- label: "Read the global attribute: GeneratedCommandList"
PICS: " !AUDIOOUTPUT.S.NU "
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
Expand Down
Loading

0 comments on commit 2206801

Please sign in to comment.