Skip to content

Commit

Permalink
Modifed test july 14 (#27960)
Browse files Browse the repository at this point in the history
* Semi-Automated ---> Automated
TC-ACL-2.2
TC-APPLAUNCHER-3.8
TC-APPLAUNCHER-3.9
TC-SC-5.1
TC-SC-5.2

Semi-Automated test
TC-BINFO-2.2

* Auto generated files

* Modified endpoint variable to readable format
  • Loading branch information
manjunath-grl authored and pull[bot] committed Aug 16, 2023
1 parent 5bbd411 commit 1381450
Show file tree
Hide file tree
Showing 11 changed files with 539 additions and 4,133 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 @@ -114,6 +114,8 @@
"Test_TC_ACFREMON_2_1",
"Disabled due to HEPAFilterMonitoring not being enabled in Matter.framework for now:",
"Test_TC_HEPAFREMON_1_1",
"Test_TC_HEPAFREMON_2_1"
"Test_TC_HEPAFREMON_2_1",
"Disabled due to Events verification not supported",
"Test_TC_BINFO_2_2"
]
}
85 changes: 16 additions & 69 deletions src/app/tests/suites/certification/Test_TC_ACL_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ config:
nodeId: 0x12344321
cluster: "Access Control"
endpoint: 0
#Configurable endpoint except 0
Endpoint_Except_Zero: 1

tests:
- label: "Wait for the commissioned device to be retrieved"
- label: "Step 1: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
Expand All @@ -33,79 +35,24 @@ tests:
value: nodeId

- label:
"TH1 reads DUT Descriptor cluster ServerList attribute from Endpoint 0"
command: "readAttribute"
"Step 2: TH reads DUT Descriptor cluster ServerList attribute from
Endpoint 0"
cluster: "Descriptor"
command: "readAttribute"
attribute: "ServerList"
response:
constraints:
type: list
contains: [31]

#Endpoint configuration is not supported in YAML
- label:
"TH1 reads DUT Descriptor cluster ServerList attribute from every
Endpoint except 0"
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)
[1676442452.204523][8902:8904] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 1718800852
[1676442452.204637][8902:8904] CHIP:TOO: ServerList: 45 entries
[1676442452.204655][8902:8904] CHIP:TOO: [1]: 3
[1676442452.204670][8902:8904] CHIP:TOO: [2]: 4
[1676442452.204685][8902:8904] CHIP:TOO: [3]: 5
[1676442452.204700][8902:8904] CHIP:TOO: [4]: 6
[1676442452.204715][8902:8904] CHIP:TOO: [5]: 7
[1676442452.204729][8902:8904] CHIP:TOO: [6]: 8
[1676442452.204744][8902:8904] CHIP:TOO: [7]: 15
[1676442452.204759][8902:8904] CHIP:TOO: [8]: 29
[1676442452.204774][8902:8904] CHIP:TOO: [9]: 30
[1676442452.204789][8902:8904] CHIP:TOO: [10]: 37
[1676442452.204804][8902:8904] CHIP:TOO: [11]: 47
[1676442452.204820][8902:8904] CHIP:TOO: [12]: 59
[1676442452.204835][8902:8904] CHIP:TOO: [13]: 64
[1676442452.204849][8902:8904] CHIP:TOO: [14]: 65
[1676442452.204864][8902:8904] CHIP:TOO: [15]: 69
[1676442452.204879][8902:8904] CHIP:TOO: [16]: 80
[1676442452.204894][8902:8904] CHIP:TOO: [17]: 257
[1676442452.204909][8902:8904] CHIP:TOO: [18]: 258
[1676442452.204923][8902:8904] CHIP:TOO: [19]: 259
[1676442452.204938][8902:8904] CHIP:TOO: [20]: 512
[1676442452.204953][8902:8904] CHIP:TOO: [21]: 513
[1676442452.204968][8902:8904] CHIP:TOO: [22]: 514
[1676442452.204983][8902:8904] CHIP:TOO: [23]: 516
[1676442452.204998][8902:8904] CHIP:TOO: [24]: 768
[1676442452.205013][8902:8904] CHIP:TOO: [25]: 769
[1676442452.205028][8902:8904] CHIP:TOO: [26]: 1024
[1676442452.205043][8902:8904] CHIP:TOO: [27]: 1026
[1676442452.205058][8902:8904] CHIP:TOO: [28]: 1027
[1676442452.205072][8902:8904] CHIP:TOO: [29]: 1028
[1676442452.205088][8902:8904] CHIP:TOO: [30]: 1029
[1676442452.205103][8902:8904] CHIP:TOO: [31]: 1030
[1676442452.205117][8902:8904] CHIP:TOO: [32]: 1283
[1676442452.205133][8902:8904] CHIP:TOO: [33]: 1284
[1676442452.205148][8902:8904] CHIP:TOO: [34]: 1285
[1676442452.205168][8902:8904] CHIP:TOO: [35]: 1286
[1676442452.205185][8902:8904] CHIP:TOO: [36]: 1287
[1676442452.205199][8902:8904] CHIP:TOO: [37]: 1288
[1676442452.205215][8902:8904] CHIP:TOO: [38]: 1289
[1676442452.205230][8902:8904] CHIP:TOO: [39]: 1290
[1676442452.205245][8902:8904] CHIP:TOO: [40]: 1291
[1676442452.205260][8902:8904] CHIP:TOO: [41]: 1292
[1676442452.205275][8902:8904] CHIP:TOO: [42]: 1293
[1676442452.205290][8902:8904] CHIP:TOO: [43]: 1294
[1676442452.205319][8902:8904] CHIP:TOO: [44]: 2820
[1676442452.205331][8902:8904] CHIP:TOO: [45]: 4294048773
[1676442452.205454][8902:8904] CHIP:EM: <<< [E:56665i M:248848283 (Ack:9298405)] (S) Msg TX to 1:00000000
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"
"Step 3: TH reads DUT Descriptor cluster ServerList attribute from
every Endpoint except 0"
endpoint: Endpoint_Except_Zero
cluster: "Descriptor"
command: "readAttribute"
attribute: "ServerList"
response:
constraints:
type: list
excludes: [31]
35 changes: 11 additions & 24 deletions src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,19 @@ config:
applicationId:
type: char_string
defaultValue: "exampleid"
#ApplicationBasic cluster endpoint
ApplicationBasic.Endpoint: 3

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

- label: "Stop an app with the provided application ID"
- label: "Step 1: Stop an app with the provided application ID"
PICS: APPLAUNCHER.S.C01.Rsp
command: "StopApp"
arguments:
Expand All @@ -53,25 +55,10 @@ tests:
- name: "Status"
value: 0

#Endpoint configuration is not supported in YAML
- label: "Reads the Status attribute"
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"
- label: "Step 2: Reads the Status attribute"
endpoint: ApplicationBasic.Endpoint
cluster: "Application Basic"
command: "readAttribute"
attribute: "Status"
response:
value: 0
35 changes: 12 additions & 23 deletions src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,19 @@ config:
applicationId:
type: char_string
defaultValue: "exampleid"
#ApplicationBasic cluster endpoint
ApplicationBasic.Endpoint: 3

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

- label: "TH sends HideApp command to DUT"
- label: "Step 1: TH sends HideApp command to DUT"
PICS: APPLAUNCHER.S.C02.Rsp
command: "HideApp"
arguments:
Expand All @@ -49,24 +51,11 @@ tests:
ApplicationID: applicationId,
}

#Expected status attribute response ACTIVE_HIDDEN or STOPPED 'OR' condition is not supported in YAML
- label: "Reads the Status attribute"
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-tool applicationbasic read status 1 3
On TH verify that the Status attribute value as 0
[1658209002.942766][2442:2447] CHIP:DMG: }
[1658209002.942976][2442:2447] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_050D Attribute 0x0000_0005 DataVersion: 3850684771
[1658209002.943067][2442:2447] CHIP:TOO: Status: 0
[1658209002.943177][2442:2447] CHIP:EM: Sending Standalone Ack for MessageCounter:54939405 on exchange 63408i"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
- label: "Step 2: Reads the Status attribute"
endpoint: ApplicationBasic.Endpoint
cluster: "Application Basic"
command: "readAttribute"
attribute: "Status"
response:
constraints:
anyOf: [0, 2]
Loading

0 comments on commit 1381450

Please sign in to comment.