Skip to content

Commit 36c0824

Browse files
manjunath-grlerwinpan1
authored andcommitted
Modifed test july 14 (project-chip#27960)
* 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
1 parent 8a7fec9 commit 36c0824

File tree

11 files changed

+539
-4133
lines changed

11 files changed

+539
-4133
lines changed

examples/darwin-framework-tool/templates/tests/ciTests.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@
114114
"Test_TC_ACFREMON_2_1",
115115
"Disabled due to HEPAFilterMonitoring not being enabled in Matter.framework for now:",
116116
"Test_TC_HEPAFREMON_1_1",
117-
"Test_TC_HEPAFREMON_2_1"
117+
"Test_TC_HEPAFREMON_2_1",
118+
"Disabled due to Events verification not supported",
119+
"Test_TC_BINFO_2_2"
118120
]
119121
}

src/app/tests/suites/certification/Test_TC_ACL_2_2.yaml

+16-69
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ config:
2222
nodeId: 0x12344321
2323
cluster: "Access Control"
2424
endpoint: 0
25+
#Configurable endpoint except 0
26+
Endpoint_Except_Zero: 1
2527

2628
tests:
27-
- label: "Wait for the commissioned device to be retrieved"
29+
- label: "Step 1: Wait for the commissioned device to be retrieved"
2830
cluster: "DelayCommands"
2931
command: "WaitForCommissionee"
3032
arguments:
@@ -33,79 +35,24 @@ tests:
3335
value: nodeId
3436

3537
- label:
36-
"TH1 reads DUT Descriptor cluster ServerList attribute from Endpoint 0"
37-
command: "readAttribute"
38+
"Step 2: TH reads DUT Descriptor cluster ServerList attribute from
39+
Endpoint 0"
3840
cluster: "Descriptor"
41+
command: "readAttribute"
3942
attribute: "ServerList"
4043
response:
4144
constraints:
4245
type: list
4346
contains: [31]
4447

45-
#Endpoint configuration is not supported in YAML
4648
- label:
47-
"TH1 reads DUT Descriptor cluster ServerList attribute from every
48-
Endpoint except 0"
49-
verification: |
50-
./chip-tool descriptor read server-list 1 1
51-
52-
53-
On TH1(Chiptool) ,Verify the serverList attribute of Descriptor Cluster without an element of 31( 0x001F)
54-
55-
[1676442452.204523][8902:8904] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_001D Attribute 0x0000_0001 DataVersion: 1718800852
56-
[1676442452.204637][8902:8904] CHIP:TOO: ServerList: 45 entries
57-
[1676442452.204655][8902:8904] CHIP:TOO: [1]: 3
58-
[1676442452.204670][8902:8904] CHIP:TOO: [2]: 4
59-
[1676442452.204685][8902:8904] CHIP:TOO: [3]: 5
60-
[1676442452.204700][8902:8904] CHIP:TOO: [4]: 6
61-
[1676442452.204715][8902:8904] CHIP:TOO: [5]: 7
62-
[1676442452.204729][8902:8904] CHIP:TOO: [6]: 8
63-
[1676442452.204744][8902:8904] CHIP:TOO: [7]: 15
64-
[1676442452.204759][8902:8904] CHIP:TOO: [8]: 29
65-
[1676442452.204774][8902:8904] CHIP:TOO: [9]: 30
66-
[1676442452.204789][8902:8904] CHIP:TOO: [10]: 37
67-
[1676442452.204804][8902:8904] CHIP:TOO: [11]: 47
68-
[1676442452.204820][8902:8904] CHIP:TOO: [12]: 59
69-
[1676442452.204835][8902:8904] CHIP:TOO: [13]: 64
70-
[1676442452.204849][8902:8904] CHIP:TOO: [14]: 65
71-
[1676442452.204864][8902:8904] CHIP:TOO: [15]: 69
72-
[1676442452.204879][8902:8904] CHIP:TOO: [16]: 80
73-
[1676442452.204894][8902:8904] CHIP:TOO: [17]: 257
74-
[1676442452.204909][8902:8904] CHIP:TOO: [18]: 258
75-
[1676442452.204923][8902:8904] CHIP:TOO: [19]: 259
76-
[1676442452.204938][8902:8904] CHIP:TOO: [20]: 512
77-
[1676442452.204953][8902:8904] CHIP:TOO: [21]: 513
78-
[1676442452.204968][8902:8904] CHIP:TOO: [22]: 514
79-
[1676442452.204983][8902:8904] CHIP:TOO: [23]: 516
80-
[1676442452.204998][8902:8904] CHIP:TOO: [24]: 768
81-
[1676442452.205013][8902:8904] CHIP:TOO: [25]: 769
82-
[1676442452.205028][8902:8904] CHIP:TOO: [26]: 1024
83-
[1676442452.205043][8902:8904] CHIP:TOO: [27]: 1026
84-
[1676442452.205058][8902:8904] CHIP:TOO: [28]: 1027
85-
[1676442452.205072][8902:8904] CHIP:TOO: [29]: 1028
86-
[1676442452.205088][8902:8904] CHIP:TOO: [30]: 1029
87-
[1676442452.205103][8902:8904] CHIP:TOO: [31]: 1030
88-
[1676442452.205117][8902:8904] CHIP:TOO: [32]: 1283
89-
[1676442452.205133][8902:8904] CHIP:TOO: [33]: 1284
90-
[1676442452.205148][8902:8904] CHIP:TOO: [34]: 1285
91-
[1676442452.205168][8902:8904] CHIP:TOO: [35]: 1286
92-
[1676442452.205185][8902:8904] CHIP:TOO: [36]: 1287
93-
[1676442452.205199][8902:8904] CHIP:TOO: [37]: 1288
94-
[1676442452.205215][8902:8904] CHIP:TOO: [38]: 1289
95-
[1676442452.205230][8902:8904] CHIP:TOO: [39]: 1290
96-
[1676442452.205245][8902:8904] CHIP:TOO: [40]: 1291
97-
[1676442452.205260][8902:8904] CHIP:TOO: [41]: 1292
98-
[1676442452.205275][8902:8904] CHIP:TOO: [42]: 1293
99-
[1676442452.205290][8902:8904] CHIP:TOO: [43]: 1294
100-
[1676442452.205319][8902:8904] CHIP:TOO: [44]: 2820
101-
[1676442452.205331][8902:8904] CHIP:TOO: [45]: 4294048773
102-
[1676442452.205454][8902:8904] CHIP:EM: <<< [E:56665i M:248848283 (Ack:9298405)] (S) Msg TX to 1:00000000
103-
cluster: "LogCommands"
104-
command: "UserPrompt"
105-
PICS: PICS_USER_PROMPT
106-
arguments:
107-
values:
108-
- name: "message"
109-
value: "Factory Reset the DUT and enter 'y' after success"
110-
- name: "expectedValue"
111-
value: "y"
49+
"Step 3: TH reads DUT Descriptor cluster ServerList attribute from
50+
every Endpoint except 0"
51+
endpoint: Endpoint_Except_Zero
52+
cluster: "Descriptor"
53+
command: "readAttribute"
54+
attribute: "ServerList"
55+
response:
56+
constraints:
57+
type: list
58+
excludes: [31]

src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_8.yaml

+11-24
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,19 @@ config:
2727
applicationId:
2828
type: char_string
2929
defaultValue: "exampleid"
30+
#ApplicationBasic cluster endpoint
31+
ApplicationBasic.Endpoint: 3
3032

3133
tests:
32-
- label: "Wait for the commissioned device to be retrieved"
34+
- label: "Step 0: Wait for the commissioned device to be retrieved"
3335
cluster: "DelayCommands"
3436
command: "WaitForCommissionee"
3537
arguments:
3638
values:
3739
- name: "nodeId"
3840
value: nodeId
3941

40-
- label: "Stop an app with the provided application ID"
42+
- label: "Step 1: Stop an app with the provided application ID"
4143
PICS: APPLAUNCHER.S.C01.Rsp
4244
command: "StopApp"
4345
arguments:
@@ -53,25 +55,10 @@ tests:
5355
- name: "Status"
5456
value: 0
5557

56-
#Endpoint configuration is not supported in YAML
57-
- label: "Reads the Status attribute"
58-
PICS: PICS_USER_PROMPT
59-
verification: |
60-
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):
61-
./chip-tool applicationbasic read status 1 3
62-
./chip-tv-casting-app applicationbasic read status 1 3
63-
64-
On TH verify that the Status attribute value as 0
65-
[1658208937.049446][2428:2433] CHIP:DMG: InteractionModelRevision = 1
66-
[1658208937.049483][2428:2433] CHIP:DMG: }
67-
[1658208937.049690][2428:2433] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_050D Attribute 0x0000_0005 DataVersion: 3850684771
68-
[1658208937.049809][2428:2433] CHIP:TOO: Status: 0
69-
[1658208937.049922][2428:2433] CHIP:EM: Sending Standalone Ack for MessageCounter:75774840 on exchange 3041i
70-
cluster: "LogCommands"
71-
command: "UserPrompt"
72-
arguments:
73-
values:
74-
- name: "message"
75-
value: "Please enter 'y' after success"
76-
- name: "expectedValue"
77-
value: "y"
58+
- label: "Step 2: Reads the Status attribute"
59+
endpoint: ApplicationBasic.Endpoint
60+
cluster: "Application Basic"
61+
command: "readAttribute"
62+
attribute: "Status"
63+
response:
64+
value: 0

src/app/tests/suites/certification/Test_TC_APPLAUNCHER_3_9.yaml

+12-23
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,19 @@ config:
2727
applicationId:
2828
type: char_string
2929
defaultValue: "exampleid"
30+
#ApplicationBasic cluster endpoint
31+
ApplicationBasic.Endpoint: 3
3032

3133
tests:
32-
- label: "Wait for the commissioned device to be retrieved"
34+
- label: "Step 0: Wait for the commissioned device to be retrieved"
3335
cluster: "DelayCommands"
3436
command: "WaitForCommissionee"
3537
arguments:
3638
values:
3739
- name: "nodeId"
3840
value: nodeId
3941

40-
- label: "TH sends HideApp command to DUT"
42+
- label: "Step 1: TH sends HideApp command to DUT"
4143
PICS: APPLAUNCHER.S.C02.Rsp
4244
command: "HideApp"
4345
arguments:
@@ -49,24 +51,11 @@ tests:
4951
ApplicationID: applicationId,
5052
}
5153

52-
#Expected status attribute response ACTIVE_HIDDEN or STOPPED 'OR' condition is not supported in YAML
53-
- label: "Reads the Status attribute"
54-
verification: |
55-
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):
56-
./chip-tool applicationbasic read status 1 3
57-
./chip-tool applicationbasic read status 1 3
58-
59-
On TH verify that the Status attribute value as 0
60-
[1658209002.942766][2442:2447] CHIP:DMG: }
61-
[1658209002.942976][2442:2447] CHIP:TOO: Endpoint: 3 Cluster: 0x0000_050D Attribute 0x0000_0005 DataVersion: 3850684771
62-
[1658209002.943067][2442:2447] CHIP:TOO: Status: 0
63-
[1658209002.943177][2442:2447] CHIP:EM: Sending Standalone Ack for MessageCounter:54939405 on exchange 63408i"
64-
cluster: "LogCommands"
65-
command: "UserPrompt"
66-
PICS: PICS_USER_PROMPT
67-
arguments:
68-
values:
69-
- name: "message"
70-
value: "Enter 'y' after success"
71-
- name: "expectedValue"
72-
value: "y"
54+
- label: "Step 2: Reads the Status attribute"
55+
endpoint: ApplicationBasic.Endpoint
56+
cluster: "Application Basic"
57+
command: "readAttribute"
58+
attribute: "Status"
59+
response:
60+
constraints:
61+
anyOf: [0, 2]

0 commit comments

Comments
 (0)