Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding YAML Test Cases - Jan 07th #13379

Merged
merged 6 commits into from Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
This conversation was marked as resolved.
Show resolved Hide resolved
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