@@ -16,168 +16,209 @@ name: 3.2.4. [TC-OO-2.4] Startup functionality with server as DUT
16
16
17
17
config :
18
18
nodeId : 0x12344321
19
- cluster : " Basic"
20
- endpoint : 0
19
+ cluster : " On/Off"
20
+ endpoint : 1
21
+ discriminator :
22
+ type : INT16U
23
+ defaultValue : 3840
21
24
22
25
tests :
23
- - label : " Commission DUT to TH"
24
- verification : |
25
-
26
- disabled : true
26
+ - label : " Wait for the commissioned device to be retrieved"
27
+ cluster : " DelayCommands"
28
+ command : " WaitForCommissionee"
29
+ arguments :
30
+ values :
31
+ - name : " nodeId"
32
+ value : nodeId
27
33
28
34
- label : " TH sends On command to DUT"
29
- verification : |
30
- ./chip-tool onoff on 1 1
31
-
32
- StatusIB =
33
- {
34
- status = 0x00,
35
- },
36
- disabled : true
35
+ command : " On"
37
36
38
37
- label : " TH writes a value of 0 to StartUpOnOff attribute of DUT"
39
- verification : |
40
- ./chip-tool onoff write start-up-on-off 0 1 1
38
+ command : " writeAttribute"
39
+ attribute : " StartUpOnOff"
40
+ arguments :
41
+ value : 0
41
42
42
- StatusIB =
43
- {
44
- status = 0x00,
45
- },
46
- disabled : true
43
+ - label : " TH reads the StartUpOnOff attribute from the DUT "
44
+ command : " readAttribute "
45
+ attribute : " StartUpOnOff "
46
+ response :
47
+ value : 0
47
48
48
49
- label : " Power off DUT"
49
- verification : |
50
-
51
- disabled : true
50
+ cluster : " SystemCommands"
51
+ endpoint : 0
52
+ command : " Reboot"
53
+ arguments :
54
+ values :
55
+ - name : " discriminator"
56
+ value : discriminator
57
+
58
+ - label : " Wait for the commissioned device to be retrieved"
59
+ cluster : " DelayCommands"
60
+ command : " WaitForCommissionee"
61
+ arguments :
62
+ values :
63
+ - name : " nodeId"
64
+ value : nodeId
52
65
53
66
- label : " Power on DUT"
54
- verification : |
55
-
56
67
disabled : true
57
68
58
69
- label : " TH reads the OnOff attribute from the DUT"
59
- verification : |
60
- ./chip-tool onoff read on-off 1 1
61
-
62
- OnOff: FALSE
63
- disabled : true
70
+ command : " readAttribute"
71
+ attribute : " OnOff"
72
+ response :
73
+ value : 0
64
74
65
75
- label : " TH writes a value of 1 to StartUpOnOff attribute of DUT"
66
- verification : |
67
- ./chip-tool onoff write start-up-on-off 1 1 1
68
-
69
- StatusIB =
70
- {
71
- status = 0x00,
72
- },
73
- disabled : true
76
+ command : " writeAttribute"
77
+ attribute : " StartUpOnOff"
78
+ arguments :
79
+ value : 1
74
80
75
81
- label : " Power off DUT"
76
- verification : |
77
-
78
- disabled : true
82
+ cluster : " SystemCommands"
83
+ endpoint : 0
84
+ command : " Reboot"
85
+ arguments :
86
+ values :
87
+ - name : " discriminator"
88
+ value : discriminator
89
+
90
+ - label : " Wait for the commissioned device to be retrieved"
91
+ cluster : " DelayCommands"
92
+ command : " WaitForCommissionee"
93
+ arguments :
94
+ values :
95
+ - name : " nodeId"
96
+ value : nodeId
79
97
80
98
- label : " Power on DUT"
81
- verification : |
82
-
83
99
disabled : true
84
100
85
101
- label : " TH reads the OnOff attribute from the DUT"
86
- verification : |
87
- ./chip-tool onoff read on-off 1 1
88
-
89
- OnOff: TRUE
90
- disabled : true
102
+ command : " readAttribute"
103
+ attribute : " OnOff"
104
+ response :
105
+ value : 1
91
106
92
107
- label : " TH writes a value of 2 to StartUpOnOff attribute of DUT"
93
- verification : |
94
- ./chip-tool onoff write start-up-on-off 2 1 1
95
-
96
- StatusIB =
97
- {
98
- status = 0x00,
99
- },
100
- disabled : true
108
+ command : " writeAttribute"
109
+ attribute : " StartUpOnOff"
110
+ arguments :
111
+ value : 2
101
112
102
113
- label : " Power off DUT"
103
- verification : |
104
-
105
- disabled : true
114
+ cluster : " SystemCommands"
115
+ endpoint : 0
116
+ command : " Reboot"
117
+ arguments :
118
+ values :
119
+ - name : " discriminator"
120
+ value : discriminator
121
+
122
+ - label : " Wait for the commissioned device to be retrieved"
123
+ cluster : " DelayCommands"
124
+ command : " WaitForCommissionee"
125
+ arguments :
126
+ values :
127
+ - name : " nodeId"
128
+ value : nodeId
106
129
107
130
- label : " Power on DUT"
108
- verification : |
109
-
110
131
disabled : true
111
132
112
133
- label : " TH reads the OnOff attribute from the DUT"
113
- verification : |
114
- ./chip-tool onoff read on-off 1 1
115
-
116
- OnOff: FALSE
117
- disabled : true
134
+ command : " readAttribute"
135
+ attribute : " OnOff"
136
+ response :
137
+ value : 0
118
138
119
139
- label : " Power off DUT"
120
- verification : |
121
-
122
- disabled : true
140
+ cluster : " SystemCommands"
141
+ endpoint : 0
142
+ command : " Reboot"
143
+ arguments :
144
+ values :
145
+ - name : " discriminator"
146
+ value : discriminator
147
+
148
+ - label : " Wait for the commissioned device to be retrieved"
149
+ cluster : " DelayCommands"
150
+ command : " WaitForCommissionee"
151
+ arguments :
152
+ values :
153
+ - name : " nodeId"
154
+ value : nodeId
123
155
124
156
- label : " Power on DUT"
125
- verification : |
126
-
127
157
disabled : true
128
158
129
159
- label : " TH reads the OnOff attribute from the DUT"
130
- verification : |
131
- ./chip-tool onoff read on-off 1 1
132
-
133
- OnOff: TRUE
134
- disabled : true
160
+ command : " readAttribute"
161
+ attribute : " OnOff"
162
+ response :
163
+ value : 1
135
164
136
165
- label : " TH writes NULL to StartUpOnOff attribute of DUT"
137
- verification : |
138
- (how to perform this in chip-tool?)
139
- disabled : true
166
+ command : " writeAttribute"
167
+ attribute : " StartUpOnOff"
168
+ arguments :
169
+ value : null
140
170
141
171
- label : " Power off DUT"
142
- verification : |
143
-
144
- disabled : true
172
+ cluster : " SystemCommands"
173
+ endpoint : 0
174
+ command : " Reboot"
175
+ arguments :
176
+ values :
177
+ - name : " discriminator"
178
+ value : discriminator
179
+
180
+ - label : " Wait for the commissioned device to be retrieved"
181
+ cluster : " DelayCommands"
182
+ command : " WaitForCommissionee"
183
+ arguments :
184
+ values :
185
+ - name : " nodeId"
186
+ value : nodeId
145
187
146
188
- label : " Power on DUT"
147
- verification : |
148
-
149
189
disabled : true
150
190
151
191
- label : " TH reads the OnOff attribute from the DUT"
152
- verification : |
153
- ./chip-tool onoff read on-off 1 1
154
-
155
- OnOff: TRUE
156
- disabled : true
192
+ command : " readAttribute"
193
+ attribute : " OnOff"
194
+ response :
195
+ value : 1
157
196
158
197
- label : " TH sends Off command to DUT"
159
- verification : |
160
- ./chip-tool onoff off 1 1
161
-
162
- StatusIB =
163
- {
164
- status = 0x00,
165
- },
166
- disabled : true
198
+ command : " Off"
167
199
168
200
- label : " Power off DUT"
169
- verification : |
170
-
171
- disabled : true
201
+ cluster : " SystemCommands"
202
+ endpoint : 0
203
+ command : " Reboot"
204
+ arguments :
205
+ values :
206
+ - name : " discriminator"
207
+ value : discriminator
208
+
209
+ - label : " Wait for the commissioned device to be retrieved"
210
+ cluster : " DelayCommands"
211
+ command : " WaitForCommissionee"
212
+ arguments :
213
+ values :
214
+ - name : " nodeId"
215
+ value : nodeId
172
216
173
217
- label : " Power on DUT"
174
- verification : |
175
-
176
218
disabled : true
177
219
178
220
- label : " TH reads the OnOff attribute from the DUT"
179
- verification : |
180
- ./chip-tool onoff read on-off 1 1
181
-
182
- OnOff: FALSE
183
- disabled : true
221
+ command : " readAttribute"
222
+ attribute : " OnOff"
223
+ response :
224
+ value : 0
0 commit comments