Skip to content

Commit b5af86a

Browse files
kowsisoundhar12restyled-commits
authored andcommitted
Test added sep12 (#22563)
* Added updated scripts * Added Auto generated files * Restyled by whitespace * Restyled by clang-format Co-authored-by: Restyled.io <commits@restyled.io>
1 parent c929d6e commit b5af86a

32 files changed

+1921
-349
lines changed

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

-10
Original file line numberDiff line numberDiff line change
@@ -2051,11 +2051,6 @@ PICS:
20512051
feature?"
20522052
id: MEDIAPLAYBACK.S.VS
20532053

2054-
- label:
2055-
"Does the DUT support the Media Input server cluster, Name Updates
2056-
feature?"
2057-
id: MEDIAINPUT.S.NU
2058-
20592054
- label:
20602055
"Does the DUT support the Target Navigator server cluster
20612056
CurrentTarget attribute?"
@@ -2131,11 +2126,6 @@ PICS:
21312126
"Does the DUT support the Media Input server cluster Rename command?"
21322127
id: MEDIAINPUT.S.C03.Rsp
21332128

2134-
- label:
2135-
"Does the DUT support the Media Input server cluster Name Updates
2136-
feature?"
2137-
id: MEDIAINPUT.S.NU
2138-
21392129
- label:
21402130
"Does the DUT support the Media Input client cluster SelectInput
21412131
command?"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ tests:
6464
type: list
6565
contains: [2]
6666

67-
# Checking only type check all attributes are optional
67+
# Checking only type check all commands are optional
6868
- label: "Read the global attribute: AcceptedCommandList"
6969
command: "readAttribute"
7070
attribute: "AcceptedCommandList"

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

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ config:
2424
endpoint: 0
2525

2626
tests:
27+
- label: "Note"
28+
verification: |
29+
Chip-tool command used below are an example to verify the DUT as controller test cases. For certification test, we expect DUT should have a capability or way to run the equivalent command.
30+
disabled: true
31+
2732
- label: "Pre-Conditions"
2833
verification: |
2934
TH2 supports On/Off server on Endpoint 1.

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

+18-17
Original file line numberDiff line numberDiff line change
@@ -261,24 +261,8 @@ tests:
261261
"TH1 writes Binding entry into DUT with Entry 1: Group = The Group ID
262262
in the AddGroup command sent from DUT to TH2"
263263
verification: |
264-
Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:
265-
266-
./chip-tool binding write binding "[{"group" : "0x0001"}]" 74 1
267-
268-
On TH, Verify the success response for binding entry
264+
Before write the binding entries run the ACL Commands:
269265
270-
[1657717436.184899][4353:4358] CHIP:DMG: StatusIB =
271-
[1657717436.184940][4353:4358] CHIP:DMG: {
272-
[1657717436.184981][4353:4358] CHIP:DMG: status = 0x00 (SUCCESS),
273-
[1657717436.185022][4353:4358] CHIP:DMG: },
274-
[1657717436.185062][4353:4358] CHIP:DMG:
275-
disabled: true
276-
277-
- label:
278-
"DUT is triggered to send Multicast message On command to its binding
279-
entries"
280-
PICS: OO.C.C01.Tx
281-
verification: |
282266
Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:
283267
284268
./chip-tool accesscontrol write acl "[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null },{"fabricIndex": 1, "privilege": 4, "authMode": 3, "subjects": [1], "targets": null }]" 74 0
@@ -298,7 +282,24 @@ tests:
298282
[1659075680.943991][2687:2692] CHIP:DMG: StatusIB =
299283
[1659075680.944052][2687:2692] CHIP:DMG: {
300284
[1659075680.944116][2687:2692] CHIP:DMG: status = 0x00 (SUCCESS),
285+
Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:
286+
287+
./chip-tool binding write binding "[{"group" : "0x0001"}]" 74 1
288+
289+
On TH, Verify the success response for binding entry
301290
291+
[1657717436.184899][4353:4358] CHIP:DMG: StatusIB =
292+
[1657717436.184940][4353:4358] CHIP:DMG: {
293+
[1657717436.184981][4353:4358] CHIP:DMG: status = 0x00 (SUCCESS),
294+
[1657717436.185022][4353:4358] CHIP:DMG: },
295+
[1657717436.185062][4353:4358] CHIP:DMG:
296+
disabled: true
297+
298+
- label:
299+
"DUT is triggered to send Multicast message On command to its binding
300+
entries"
301+
PICS: OO.C.C01.Tx
302+
verification: |
302303
Press button no.2 on [ nRF52840-DK ]thread board
303304
disabled: true
304305

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

+11-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ tests:
4949
constraints:
5050
type: bitmap32
5151

52-
- label: "Given CHANNEL.S.CL) ensure featuremap has the correct bit set"
52+
- label: "Given CHANNEL.S.CL ensure featuremap has the correct bit set"
5353
PICS: CHANNEL.S.CL
5454
command: "readAttribute"
5555
attribute: "FeatureMap"
@@ -58,7 +58,7 @@ tests:
5858
type: bitmap32
5959
hasMasksSet: [0x1]
6060

61-
- label: "Given CHANNEL.S.LI) ensure featuremap has the correct bit set"
61+
- label: "Given CHANNEL.S.LI ensure featuremap has the correct bit set"
6262
PICS: CHANNEL.S.LI
6363
command: "readAttribute"
6464
attribute: "FeatureMap"
@@ -131,6 +131,15 @@ tests:
131131
type: list
132132
contains: [3]
133133

134+
- label: "Read the global attribute: GeneratedCommandList"
135+
PICS: ( !CHANNEL.S.CL && !CHANNEL.S.LI )
136+
command: "readAttribute"
137+
attribute: "GeneratedCommandList"
138+
response:
139+
value: []
140+
constraints:
141+
type: list
142+
134143
- label: "Read the global attribute: GeneratedCommandList"
135144
PICS: CHANNEL.S.CL || CHANNEL.S.LI
136145
command: "readAttribute"

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

+91
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,97 @@ tests:
7575
type: list
7676
contains: [65528, 65529, 65531, 65532, 65533]
7777

78+
- label: "TH reads optional attribute(PHYRate) in AttributeList"
79+
PICS: DGETH.S.A0000
80+
command: "readAttribute"
81+
attribute: "AttributeList"
82+
response:
83+
constraints:
84+
type: list
85+
contains: [0]
86+
87+
- label: "TH reads optional attribute(FullDuplex) in AttributeList"
88+
PICS: DGETH.S.A0001
89+
command: "readAttribute"
90+
attribute: "AttributeList"
91+
response:
92+
constraints:
93+
type: list
94+
contains: [1]
95+
96+
- label:
97+
"TH reads optional attribute(PacketRxCount) and Feature
98+
dependent(DGETH.S.F00(PKTCNT)) in AttributeList"
99+
PICS: DGETH.S.A0002
100+
command: "readAttribute"
101+
attribute: "AttributeList"
102+
response:
103+
constraints:
104+
type: list
105+
contains: [2]
106+
107+
- label:
108+
"TH reads optional attribute(PacketRxCount) and Feature
109+
dependent(DGETH.S.F00(PKTCNT)) in AttributeList"
110+
PICS: DGETH.S.A0003
111+
command: "readAttribute"
112+
attribute: "AttributeList"
113+
response:
114+
constraints:
115+
type: list
116+
contains: [3]
117+
118+
- label:
119+
"TH reads optional attribute(PacketRxCount) and Feature
120+
dependent(DGETH.S.F01(ERRCNT)) in AttributeList"
121+
PICS: DGETH.S.A0004
122+
command: "readAttribute"
123+
attribute: "AttributeList"
124+
response:
125+
constraints:
126+
type: list
127+
contains: [4]
128+
129+
- label:
130+
"TH reads optional attribute(PacketRxCount) and Feature
131+
dependent(DGETH.S.F01(ERRCNT)) in AttributeList"
132+
PICS: DGETH.S.A0005
133+
command: "readAttribute"
134+
attribute: "AttributeList"
135+
response:
136+
constraints:
137+
type: list
138+
contains: [5]
139+
140+
- label:
141+
"TH reads optional attribute(PacketRxCount) and Feature
142+
dependent(DGETH.S.F01(ERRCNT)) in AttributeList"
143+
PICS: DGETH.S.A0006
144+
command: "readAttribute"
145+
attribute: "AttributeList"
146+
response:
147+
constraints:
148+
type: list
149+
contains: [6]
150+
151+
- label: "TH reads optional attribute(CarrierDetect) in AttributeList"
152+
PICS: DGETH.S.A0007
153+
command: "readAttribute"
154+
attribute: "AttributeList"
155+
response:
156+
constraints:
157+
type: list
158+
contains: [7]
159+
160+
- label: "TH reads optional attribute(TimeSinceReset) in AttributeList"
161+
PICS: DGETH.S.A0008
162+
command: "readAttribute"
163+
attribute: "AttributeList"
164+
response:
165+
constraints:
166+
type: list
167+
contains: [8]
168+
78169
- label: "TH reads AcceptedCommandList from DUT"
79170
PICS: DGETH.S.F00 || DGETH.S.F01
80171
command: "readAttribute"

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

+54
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,60 @@ tests:
5656
type: list
5757
contains: [0, 1, 8, 65528, 65529, 65531, 65532, 65533]
5858

59+
- label: "Read optional attribute(UpTime) in AttributeList"
60+
PICS: DGGEN.S.A0002
61+
command: "readAttribute"
62+
attribute: "AttributeList"
63+
response:
64+
constraints:
65+
type: list
66+
contains: [2]
67+
68+
- label: "Read optional attribute(TotalOperationalHours) in AttributeList"
69+
PICS: DGGEN.S.A0003
70+
command: "readAttribute"
71+
attribute: "AttributeList"
72+
response:
73+
constraints:
74+
type: list
75+
contains: [3]
76+
77+
- label: "Read optional attribute(BootReason) in AttributeList"
78+
PICS: DGGEN.S.A0004
79+
command: "readAttribute"
80+
attribute: "AttributeList"
81+
response:
82+
constraints:
83+
type: list
84+
contains: [4]
85+
86+
- label: "Read optional attribute(ActiveHardwareFaults) in AttributeList"
87+
PICS: DGGEN.S.A0005
88+
command: "readAttribute"
89+
attribute: "AttributeList"
90+
response:
91+
constraints:
92+
type: list
93+
contains: [5]
94+
95+
- label: "Read optional attribute(ActiveRadioFaults) in AttributeList"
96+
PICS: DGGEN.S.A0006
97+
command: "readAttribute"
98+
attribute: "AttributeList"
99+
response:
100+
constraints:
101+
type: list
102+
contains: [6]
103+
104+
- label: "Read optional attribute(ActiveNetworkFaults) in AttributeList"
105+
PICS: DGGEN.S.A0007
106+
command: "readAttribute"
107+
attribute: "AttributeList"
108+
response:
109+
constraints:
110+
type: list
111+
contains: [7]
112+
59113
- label: "Read the global attribute: AcceptedCommandList"
60114
command: "readAttribute"
61115
attribute: "AcceptedCommandList"

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

+13-2
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,24 @@ tests:
4141
type: int16u
4242

4343
- label: "TH reads the FeatureMap from DUT"
44+
PICS: " !DGSW.S.F00 "
45+
command: "readAttribute"
46+
attribute: "FeatureMap"
47+
response:
48+
value: 0
49+
constraints:
50+
type: bitmap32
51+
52+
- label:
53+
"Given DGSW.S.F00(Watermarks) ensure featuremap has the correct bit
54+
set"
55+
PICS: DGSW.S.F00
4456
command: "readAttribute"
4557
attribute: "FeatureMap"
4658
response:
4759
constraints:
4860
type: bitmap32
49-
minValue: 0
50-
maxValue: 1
61+
hasMasksSet: [0x1]
5162

5263
- label: "TH reads AttributeList from DUT"
5364
command: "readAttribute"

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ tests:
3939
- label: "Reads a list of ThreadMetrics struct attribute from DUT."
4040
command: "readAttribute"
4141
attribute: "ThreadMetrics"
42-
PICS: DGSW.S.A0000
42+
PICS: DGSW.S.A0000 && DGSW.S.C00.Rsp
4343
response:
4444
constraints:
4545
type: list
@@ -48,7 +48,7 @@ tests:
4848
- label: "Reads CurrentHeapUsed attribute value from DUT"
4949
command: "readAttribute"
5050
attribute: "CurrentHeapUsed"
51-
PICS: DGSW.S.A0002
51+
PICS: DGSW.S.A0002 && DGSW.S.C00.Rsp
5252
response:
5353
constraints:
5454
type: int64u
@@ -57,7 +57,7 @@ tests:
5757
- label: "Reads CurrentHeapHighWaterMark attribute value from DUT"
5858
command: "readAttribute"
5959
attribute: "CurrentHeapHighWatermark"
60-
PICS: DGSW.S.A0003
60+
PICS: DGSW.S.A0003 && DGSW.S.C00.Rsp
6161
response:
6262
constraints:
6363
type: int64u

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ tests:
3939
command: "ResetCounts"
4040

4141
- label: "Reads BeaconLostCount attribute from DUT"
42-
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp
42+
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp && DGWIFI.S.A0005
4343
command: "readAttribute"
4444
attribute: "BeaconLostCount"
4545
response:
@@ -49,7 +49,7 @@ tests:
4949
maxValue: 4294967295
5050

5151
- label: "Reads BeaconRxCount attribute from DUT"
52-
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp
52+
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp && DGWIFI.S.A0006
5353
command: "readAttribute"
5454
attribute: "BeaconRxCount"
5555
response:
@@ -59,7 +59,7 @@ tests:
5959
maxValue: 4294967295
6060

6161
- label: "Reads PacketMulticastRxCount attribute from DUT"
62-
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp
62+
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp && DGWIFI.S.A0007
6363
command: "readAttribute"
6464
attribute: "PacketMulticastRxCount"
6565
response:
@@ -69,7 +69,7 @@ tests:
6969
maxValue: 4294967295
7070

7171
- label: "Reads PacketMulticastTxCount attribute from DUT"
72-
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp
72+
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp && DGWIFI.S.A0008
7373
command: "readAttribute"
7474
attribute: "PacketMulticastTxCount"
7575
response:
@@ -79,7 +79,7 @@ tests:
7979
maxValue: 4294967295
8080

8181
- label: "Reads PacketUnicastRxCount attribute from DUT"
82-
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp
82+
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp && DGWIFI.S.A0009
8383
command: "readAttribute"
8484
attribute: "PacketUnicastRxCount"
8585
response:
@@ -89,7 +89,7 @@ tests:
8989
maxValue: 4294967295
9090

9191
- label: "Reads PacketUnicastTxCount attribute from DUT"
92-
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp
92+
PICS: PICS_SKIP_SAMPLE_APP && DGWIFI.S.C00.Rsp && DGWIFI.S.A000a
9393
command: "readAttribute"
9494
attribute: "PacketUnicastTxCount"
9595
response:

0 commit comments

Comments
 (0)