Skip to content

Commit

Permalink
Adding YAML Test Cases - Jan 07th (#13379)
Browse files Browse the repository at this point in the history
* Adding following cluster testcases:
1.TC-MC-5.1
2.TC-MC-5.2
3.TC-MC-5.3
4.TC-MC-6.1
5.TC-MC-6.2
6.TC-MC-6.3
7.TC-MC-6.4
8.TC-MC-7.1
9.TC-MC-7.2
10.TC-MC-8.1
11.TC-MC-9.1
12.TC-LVL-2.2
13.TC-LVL-6.1
Modified following Testcases:
1.TC-LVL-2.1
2.TC-LVL-3.1
3.TC-LVL-4.1
4.TC-LVL-5.1

* Addding auto generated files

* Modified Level control testcases

* Adding auto generated files of modified testcases

* Updating auto generated files.

Co-authored-by: Vikram Bhat <vikrambhat@outlook.com>
  • Loading branch information
2 people authored and pull[bot] committed May 7, 2022
1 parent bb2f10e commit f1db160
Show file tree
Hide file tree
Showing 21 changed files with 7,153 additions and 1,411 deletions.
13 changes: 13 additions & 0 deletions examples/chip-tool/templates/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ function getTests()
const LevelControl = [
'Test_TC_LVL_1_1',
'Test_TC_LVL_2_1',
'Test_TC_LVL_2_2',
'Test_TC_LVL_3_1',
'Test_TC_LVL_4_1',
'Test_TC_LVL_5_1',
'Test_TC_LVL_6_1',
];

const MediaControl = [
Expand All @@ -110,6 +112,17 @@ function getTests()
'Test_TC_MC_3_9',
'Test_TC_MC_3_10',
'Test_TC_MC_3_11',
'Test_TC_MC_5_1',
'Test_TC_MC_5_2',
'Test_TC_MC_5_3',
'Test_TC_MC_6_1',
'Test_TC_MC_6_2',
'Test_TC_MC_6_3',
'Test_TC_MC_6_4',
'Test_TC_MC_7_1',
'Test_TC_MC_7_2',
'Test_TC_MC_8_1',
'Test_TC_MC_9_1',
];

const OnOff = [
Expand Down
218 changes: 120 additions & 98 deletions src/app/tests/suites/certification/Test_TC_LVL_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Level Control [TC-LVL-2.1] MoveToLevel Verification with server as DUT
name: 24.2.1. [TC-LVL-2.1] Read cluster attributes (DUT as Server)

config:
cluster: "Level Control"
Expand All @@ -23,116 +23,138 @@ tests:
cluster: "DelayCommands"
command: "WaitForCommissionee"

- label: "reads current Level attribute from DUT"
- label: "Reads the CurrentLevel attribute"
command: "readAttribute"
attribute: "current Level"
attribute: "current level"
response:
value: 254

- label: "sends a Move to level command"
command: "MoveToLevel"
arguments:
values:
- name: "level"
value: 64
- name: "transitionTime"
value: 0
- name: "optionMask"
value: 1
- name: "optionOverride"
value: 1

- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100

- label: "reads current Level attribute from DUT"
command: "readAttribute"
attribute: "current Level"
response:
value: 64

- label: "sends a Move to level command"
command: "MoveToLevel"
arguments:
values:
- name: "level"
value: 128
- name: "transitionTime"
value: 1
- name: "optionMask"
value: 1
- name: "optionOverride"
value: 1

- label: "Wait 200ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 200
- label: "Reads the CurrentLevel attribute"
command: "readAttribute"
attribute: "current level"
response:
constraints:
type: uint8

- label: "reads current Level attribute from DUT"
- label: "Reads the RemainingTime attribute"
command: "readAttribute"
attribute: "current Level"
attribute: "remaining time"
response:
value: 128
value: 0
constraints:
type: uint16

- label: "reads On Off Transition Time attribute from DUT"
- label: "Reads the MinLevel attribute"
command: "readAttribute"
attribute: "On Off Transition Time"
attribute: "min level"
response:
value: 0
constraints:
type: uint8

- label: "sends a Move to level command"
command: "MoveToLevel"
arguments:
values:
- name: "level"
value: 254
- name: "transitionTime"
value: 65535
- name: "optionMask"
value: 1
- name: "optionOverride"
value: 1

- label: "Wait 10ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 10
- label: "Reads the MaxLevel attribute"
command: "readAttribute"
attribute: "max level"
response:
constraints:
type: uint8

- label: "reads current Level attribute from DUT"
- label: "Reads the CurrentFrequency attribute"
command: "readAttribute"
attribute: "current Level"
attribute: "current frequency"
response:
value: 254
value: 0
constraints:
type: uint16

- label: "Reset level to 254"
command: "MoveToLevel"
arguments:
values:
- name: "level"
value: 254
- name: "transitionTime"
value: 0
- name: "optionMask"
value: 1
- name: "optionOverride"
value: 1

- label: "Wait 100ms"
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 100
- label: "Reads the MinFrequency attribute"
command: "readAttribute"
attribute: "min frequency"
response:
value: 0
constraints:
type: uint16

- label: "Reads the MaxFrequency attribute"
command: "readAttribute"
attribute: "max frequency"
response:
value: 0
constraints:
type: uint16

- label: "Reads the OnOffTransitionTime attribute"
command: "readAttribute"
attribute: "on off transition time"
response:
value: 0
constraints:
type: uint16

#Disabled due to issue - #13414
- label: "Reads the OnLevel attribute "
disabled: true
command: "readAttribute"
attribute: "on level"
response:
value: null

- label: "Reads the OnLevel attribute "
command: "readAttribute"
attribute: "on level"
response:
constraints:
type: uint8

#Disabled due to issue - #13414
- label: "Reads the OnTransitionTime attribute "
disabled: true
command: "readAttribute"
attribute: "on transition time"
response:
value: null

- label: "Reads the OnTransitionTime attribute "
command: "readAttribute"
attribute: "on transition time"
response:
constraints:
type: uint16

#Disabled due to issue - #13414
- label: "Reads the OffTransitionTime attribute "
disabled: true
command: "readAttribute"
attribute: "off transition time"
response:
value: null

- label: "Reads the OffTransitionTime attribute "
command: "readAttribute"
attribute: "off transition time"
response:
constraints:
type: uint16

- label: "Reads the DefaultMoveRate attribute "
command: "readAttribute"
attribute: "default move rate"
response:
constraints:
type: uint8

- label: "Reads the Options attribute "
command: "readAttribute"
attribute: "options"
response:
value: 0
constraints:
type: map8

- label: "Reads the StartUpCurrentLevel attribute "
command: "readAttribute"
attribute: "start up current level"
response:
value: 0
constraints:
type: uint8
Loading

0 comments on commit f1db160

Please sign in to comment.