Skip to content

Commit

Permalink
Reverted back changes for tests:
Browse files Browse the repository at this point in the history
TC-DGGEN-2.1
TC-REFALM-2.1
TC-RVCCLEANM-3.3
  • Loading branch information
manjunath-grl committed Sep 29, 2023
1 parent ca46d5f commit e50bcfb
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 785 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 @@ -54,6 +54,8 @@
"Disabled because darwin-framework-tool does not support EqualityCommands pseudo-cluster",
"Test_TC_TCCM_3_1",
"Test_TC_TCTL_2_1",
"Test_TC_RVCCLEANM_3_3"
"Disabled because darwin-framework-tool does not support constraints arithmetic opertaions",
"Test_TC_FLW_2_1",
"Test_TC_RH_2_1"
]
}
24 changes: 0 additions & 24 deletions src/app/tests/suites/certification/Test_TC_DGGEN_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ config:
type: int64u
defaultValue: "0x0000000000000003"

payloadValue:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"

tests:
- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
Expand Down Expand Up @@ -61,16 +57,6 @@ tests:
- name: "expectedValue"
value: "y"

- label: "Recommission the DUT"
cluster: "CommissionerCommands"
command: "PairWithCode"
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: payloadValue

- label: "Step 1b: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
Expand Down Expand Up @@ -450,16 +436,6 @@ tests:
- name: "expectedValue"
value: "y"

- label: "Recommission the DUT"
cluster: "CommissionerCommands"
command: "PairWithCode"
arguments:
values:
- name: "nodeId"
value: nodeId
- name: "payload"
value: payloadValue

- label: "Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
Expand Down
81 changes: 44 additions & 37 deletions src/app/tests/suites/certification/Test_TC_REFALM_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,64 +11,71 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default

name: 223.2.1. [TC-REFALM-2.1] Attributes with DUT as Server
name: 222.2.1. [TC-REFALM-2.1] Attributes with DUT as Server

PICS:
- REFALM.S

config:
nodeId: 0x12344321
cluster: "Refrigerator Alarm"
endpoint: 1
cluster: "Basic Information"
endpoint: 0

tests:
- label: "Step 1: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId
- label: "Note"
verification: |
This is a simulated example log for instructional purposes only. In real scenarios, the actual log may vary depending on the feature implementation in Reference App.
disabled: true

- label:
"Step 1: Commission DUT to TH (can be skipped if done in a preceding
test)"
verification: |
disabled: true

- label:
"Step 2: Ensure that the door alarm is not locally suppressed and the
door is closed"
verification: |
Ensure that the door alarm is not locally suppressed and the door is closed
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
disabled: true

- label: "Step 3: TH reads from the DUT the Mask attribute"
PICS: REFALM.S.A0000
command: "readAttribute"
attribute: "Mask"
response:
constraints:
type: bitmap32
hasMasksSet: [0x1]
verification: |
./chip-tool refrigeratoralarm read mask 1 1
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
[1688447677.832882][4229:4231] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0000 DataVersion: 1795162772
[1688447677.833165][4229:4231] CHIP:TOO: Mask: 1
[1688447677.833494][4229:4231] CHIP:EM: <<< [E:27636i S:5449 M:199797248 (Ack:151091416)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck)
disabled: true

- label: "Step 4: TH reads from the DUT the State attribute"
PICS: REFALM.S.A0002
command: "readAttribute"
attribute: "State"
response:
constraints:
type: bitmap32
hasMasksClear: [0x1]
verification: |
./chip-tool refrigeratoralarm read state 1 1
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 0.
[1688447820.603249][4247:4249] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0002 DataVersion: 1795162772
[1688447820.603415][4247:4249] CHIP:TOO: State: 0
[1688447820.603708][4247:4249] CHIP:EM: <<< [E:2198i S:4260 M:156565261 (Ack:46517349)] (S) Msg TX to 1:0000000000000001 [10DB] --- Type 0000:10 (SecureChannel:StandaloneAck)
disabled: true

- label: "Step 5: TH reads from the DUT the Supported attribute"
PICS: REFALM.S.A0003
command: "readAttribute"
attribute: "Supported"
response:
constraints:
type: bitmap32
hasMasksSet: [0x1]
verification: |
./chip-tool refrigeratoralarm read supported 1 1
On TH(chip-tool), Verify that the DUT response contains a 32-bit value with bit 0 set to 1.
[1689677642.708638][18413:18415] CHIP:DMG: SuppressResponse = true,
[1689677642.708645][18413:18415] CHIP:DMG: InteractionModelRevision = 1
[1689677642.708651][18413:18415] CHIP:DMG: }
[1689677642.708726][18413:18415] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0057 Attribute 0x0000_0003 DataVersion: 1517282962
[1689677642.708773][18413:18415] CHIP:TOO: Supported: 1
[1689677642.708845][18413:18415] CHIP:EM: <<< [E:32432i S:53289 M:29829407 (Ack:142651059)] (S) Msg TX to 1:0000000000000001 [BFDE] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1689677642.708859][18413:18415] CHIP:IN: (S) Sending msg 29829407 on secure session with LSID: 53289
[1689677642.708900][18413:18415] CHIP:EM: Flushed pending ack for MessageCounter:142651059 on exchange 32432i
disabled: true
Loading

0 comments on commit e50bcfb

Please sign in to comment.