Skip to content

Commit

Permalink
Fixed the differences with the VS Documents (#32183)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs authored Feb 16, 2024
1 parent 8937d27 commit 977d90e
Show file tree
Hide file tree
Showing 4 changed files with 247 additions and 145 deletions.
54 changes: 12 additions & 42 deletions src/app/tests/suites/certification/Test_TC_S_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -643,48 +643,18 @@ tests:
to 60 000 000 (60 000s) and a set of extension fields appropriate to
AC1."
verification: |
./chip-tool scenes add-scene 0x0001 1 60000000 "Test Name" '[{"clusterId": value, "attributeValueList":[{"attributeId": value, "attributeValue": value}]}' nodeId endpointId
Note: The number of ExtensionFieldSets, the value of clusterId of each ExtensionFieldSet, the number of attributes in attributeValueList and their values varies for each application
Verify the "status is success" on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1670970505.887060][5742:5744] CHIP:DMG: InvokeResponseMessage =
[1670970505.887118][5742:5744] CHIP:DMG: {
[1670970505.887172][5742:5744] CHIP:DMG: suppressResponse = false,
[1670970505.887231][5742:5744] CHIP:DMG: InvokeResponseIBs =
[1670970505.887307][5742:5744] CHIP:DMG: [
[1670970505.887366][5742:5744] CHIP:DMG: InvokeResponseIB =
[1670970505.887444][5742:5744] CHIP:DMG: {
[1670970505.887507][5742:5744] CHIP:DMG: CommandDataIB =
[1670970505.887576][5742:5744] CHIP:DMG: {
[1670970505.887713][5742:5744] CHIP:DMG: CommandPathIB =
[1670970505.887804][5742:5744] CHIP:DMG: {
[1670970505.887940][5742:5744] CHIP:DMG: EndpointId = 0x1,
[1670970505.888093][5742:5744] CHIP:DMG: ClusterId = 0x5,
[1670970505.888242][5742:5744] CHIP:DMG: CommandId = 0x0,
[1670970505.888385][5742:5744] CHIP:DMG: },
[1670970505.888692][5742:5744] CHIP:DMG:
[1670970505.888769][5742:5744] CHIP:DMG: CommandFields =
[1670970505.888852][5742:5744] CHIP:DMG: {
[1670970505.889030][5742:5744] CHIP:DMG: 0x0 = 0,
[1670970505.889183][5742:5744] CHIP:DMG: 0x1 = 1,
[1670970505.889406][5742:5744] CHIP:DMG: 0x2 = 1,
[1670970505.889515][5742:5744] CHIP:DMG: },
[1670970505.889603][5742:5744] CHIP:DMG: },
[1670970505.889684][5742:5744] CHIP:DMG:
[1670970505.889745][5742:5744] CHIP:DMG: },
[1670970505.889821][5742:5744] CHIP:DMG:
[1670970505.889878][5742:5744] CHIP:DMG: ],
[1670970505.889953][5742:5744] CHIP:DMG:
[1670970505.890009][5742:5744] CHIP:DMG: InteractionModelRevision = 1
[1670970505.890066][5742:5744] CHIP:DMG: },
[1670970505.890212][5742:5744] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0005 Command=0x0000_0000
[1670970505.890328][5742:5744] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0005 Command 0x0000_0000
[1670970505.890458][5742:5744] CHIP:TOO: AddSceneResponse: {
[1670970505.890551][5742:5744] CHIP:TOO: status: 0
[1670970505.890608][5742:5744] CHIP:TOO: groupId: 1
[1670970505.890717][5742:5744] CHIP:TOO: sceneId: 1
[1670970505.890774][5742:5744] CHIP:TOO: }
./chip-tool scenesmanagement add-scene 0x0001 0x01 60000000 "scene name" '[{"clusterID": "0x0300", "attributeValueList":[{"attributeID": "0x4001", "attributeValue": "0x01"}]}]' 1 1
Verify DUT sends a AddSceneResponse command to TH with the Status field set to 0x00 (SUCCESS), the GroupID field set to G1 and the SceneID field set to 0x01 on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
[1706763610.675038][4232:4234] CHIP:DMG: },
[1706763610.675108][4232:4234] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0062 Command=0x0000_0000
[1706763610.675134][4232:4234] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Command 0x0000_0000
[1706763610.675187][4232:4234] CHIP:TOO: AddSceneResponse: {
[1706763610.675215][4232:4234] CHIP:TOO: status: 0
[1706763610.675229][4232:4234] CHIP:TOO: groupID: 1
[1706763610.675244][4232:4234] CHIP:TOO: sceneID: 1
[1706763610.675258][4232:4234] CHIP:TOO: }
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
Expand Down
77 changes: 33 additions & 44 deletions src/app/tests/suites/certification/Test_TC_S_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -376,50 +376,39 @@ tests:
set to G1 and the SceneID field set to 0x01."
PICS: S.S.C01.Rsp && PICS_SKIP_SAMPLE_APP
verification: |
./chip-tool scenesmanagement view-scene GroupId SceneId Node-Id EndpointId
Note: The number of ExtensionFieldSets, the value of clusterId of each ExtensionFieldSet, the number of attributes in attributeValueList and their values varies for each application
Verify that the extension fields in the log match the ones expected in the following log:
[1705680224.968551][5827:5829] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0062 Command=0x0000_0001
[1705680224.968559][5827:5829] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Command 0x0000_0001
CHIP:TOO: ViewSceneResponse: {
CHIP:TOO: status: 0
CHIP:TOO: groupID: 1
CHIP:TOO: sceneID: 1
CHIP:TOO: transitionTime: 1000
CHIP:TOO: sceneName:
CHIP:TOO: extensionFieldSets: 3 entries
CHIP:TOO: [1]: {
CHIP:TOO: ClusterID: XX
CHIP:TOO: AttributeValueList: X entries
CHIP:TOO: [1]: {
CHIP:TOO: AttributeID: XX
CHIP:TOO: AttributeValue:XX
CHIP:TOO: }
CHIP:TOO: }
CHIP:TOO: [2]: {
CHIP:TOO: ClusterID: XX
CHIP:TOO: AttributeValueList: X entries
CHIP:TOO: [1]: {
CHIP:TOO: AttributeID: XX
CHIP:TOO: AttributeValue: XX
CHIP:TOO: }
CHIP:TOO: }
CHIP:TOO: [3]: {
CHIP:TOO: ClusterID: XX
CHIP:TOO: AttributeValueList: XX entries
CHIP:TOO: [X]: {
CHIP:TOO: AttributeID: XX
CHIP:TOO: AttributeValue: XX
CHIP:TOO: }
...
CHIP:TOO: [X]: {
CHIP:TOO: AttributeID: XX
CHIP:TOO: AttributeValue: XX
CHIP:TOO: }
CHIP:TOO: }
CHIP:TOO: }
./chip-tool scenesmanagement view-scene 0x0101 0x01 1 1
Verify DUT sends a ViewSceneResponse command to TH with the Status field set to 0x00 (SUCCESS), the GroupID field set to G1, the SceneID field set to 0x01, the TransitionTime field set to 1000 and a set of extension fields appropriate to AC1 on the TH(Chip-tool) Log and below is the sample log provided for the raspi platform:
NOTE: The values below are expected to match the values from the specific AC tested
[1708071897.294470][7731:7733] CHIP:DMG: Received Command Response Data, Endpoint=1 Cluster=0x0000_0062 Command=0x0000_0001
[1708071897.294486][7731:7733] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Command 0x0000_0001
[1708071897.294520][7731:7733] CHIP:TOO: ViewSceneResponse: {
[1708071897.294527][7731:7733] CHIP:TOO: status: 0
[1708071897.294530][7731:7733] CHIP:TOO: groupID: 257
[1708071897.294533][7731:7733] CHIP:TOO: sceneID: 1
[1708071897.294536][7731:7733] CHIP:TOO: transitionTime: 1000
[1708071897.294540][7731:7733] CHIP:TOO: sceneName: scene name
[1708071897.294554][7731:7733] CHIP:TOO: extensionFieldSets: 2 entries
[1708071897.294569][7731:7733] CHIP:TOO: [1]: {
[1708071897.294574][7731:7733] CHIP:TOO: ClusterID: 6
[1708071897.294580][7731:7733] CHIP:TOO: AttributeValueList: 1 entries
[1708071897.294589][7731:7733] CHIP:TOO: [1]: {
[1708071897.294593][7731:7733] CHIP:TOO: AttributeID: 1
[1708071897.294596][7731:7733] CHIP:TOO: AttributeValue: 1
[1708071897.294599][7731:7733] CHIP:TOO: }
[1708071897.294603][7731:7733] CHIP:TOO: }
[1708071897.294611][7731:7733] CHIP:TOO: [2]: {
[1708071897.294615][7731:7733] CHIP:TOO: ClusterID: 8
[1708071897.294621][7731:7733] CHIP:TOO: AttributeValueList: 1 entries
[1708071897.294628][7731:7733] CHIP:TOO: [1]: {
[1708071897.294633][7731:7733] CHIP:TOO: AttributeID: 0
[1708071897.294636][7731:7733] CHIP:TOO: AttributeValue: 100
[1708071897.294639][7731:7733] CHIP:TOO: }
[1708071897.294643][7731:7733] CHIP:TOO: }
[1708071897.294647][7731:7733] CHIP:TOO: }
cluster: "LogCommands"
command: "UserPrompt"
arguments:
Expand Down
4 changes: 2 additions & 2 deletions src/app/tests/suites/certification/Test_TC_S_2_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ tests:
to 20000 (20s) and no extension field sets."
PICS: S.S.C00.Rsp
verification: |
scenesmanagement add-scene 0x0001 0x01 20 scene1 [] 1 1
./chip-tool scenesmanagement add-scene 0x0001 0x01 20000 scene1 [] 1 1
Verify the AddSceneResponse with following fields:
Status is SUCCESS
Expand Down Expand Up @@ -412,7 +412,7 @@ tests:
field sets. If RemainingCapacity is 0, continue to Step 8a."
PICS: S.S.C00.Rsp
verification: |
./chip-tool scenesmanagement add-scene 0x0001 0x03 20 scene1 [] 1 1
./chip-tool scenesmanagement add-scene 0x0001 0x03 20000 scene1 [] 1 1
Verify the AddSceneResponse with following fields:
Status is SUCCESS
Expand Down
Loading

0 comments on commit 977d90e

Please sign in to comment.