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

Thermostat Test Scripts #21068

Merged
merged 9 commits into from
Jul 21, 2022
Merged
Show file tree
Hide file tree
Changes from 4 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
34 changes: 17 additions & 17 deletions src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tests:
response:
constraints:
type: map32
minValue: 0
minValue: 1
maxValue: 63

- label: "Read the global attribute: AttributeList"
Expand All @@ -56,6 +56,16 @@ tests:
type: list
contains: [0, 27, 28, 65528, 65529, 65531, 65532, 65533]

- label:
"Read the Feature dependent(TSTAT.S.F00(HEAT)) attribute in
AttributeList"
PICS: TSTAT.S.F00
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [18]
- label:
"Read the Feature dependent(TSTAT.S.F01(COOL)) attribute in
AttributeList"
Expand All @@ -79,15 +89,15 @@ tests:
contains: [2]

- label:
"Read the Feature dependent(TSTAT.S.F00(HEAT)) attribute in
AttributeList"
PICS: TSTAT.S.F00
"Read the Feature dependent(TSTAT.S.F00(HEAT) & TSTAT.S.F02(OCC))
attribute in AttributeList"
PICS: TSTAT.S.F00 && TSTAT.S.F02
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [18]
contains: [20]

- label:
"Read the Feature dependent(TSTAT.S.F01(COOL) & TSTAT.S.F02(OCC))
Expand All @@ -100,17 +110,6 @@ tests:
type: list
contains: [19]

- label:
"Read the Feature dependent(TSTAT.S.F00(HEAT) & TSTAT.S.F02(OCC))
attribute in AttributeList"
PICS: TSTAT.S.F00 && TSTAT.S.F02
command: "readAttribute"
attribute: "AttributeList"
response:
constraints:
type: list
contains: [20]

- label:
"Read the Feature dependent(TSTAT.S.F05(AUTO)) attribute in
AttributeList"
Expand All @@ -120,7 +119,7 @@ tests:
response:
constraints:
type: list
contains: [25]
contains: [17, 18, 25]

- label:
"Read the Feature dependent(TSTAT.S.F03(SCH)) attribute in
Expand Down Expand Up @@ -182,6 +181,7 @@ tests:

#issue #15011 disabled steps below Global attributes missing from YAML framework
- label: "Read the global attribute: EventList"
disabled: true
verification: |
Not implemented in chip-tool
cluster: "LogCommands"
Expand Down
105 changes: 28 additions & 77 deletions src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ tests:
- label: "Reads mandatory attributes from DUT: LocalTemperature"
command: "readAttribute"
attribute: "LocalTemperature"
PICS: TSTAT.S.A0000
response:
constraints:
type: int16
Expand All @@ -49,7 +48,7 @@ tests:
maxValue: 32767

- label: "Read Occupancy attribute from the DUT"
PICS: TSTAT.S.A0002
PICS: TSTAT.S.F02
command: "readAttribute"
attribute: "Occupancy"
response:
Expand Down Expand Up @@ -139,56 +138,56 @@ tests:
maxValue: -25

- label: "Reads optional attributes from DUT: OccupiedCoolingSetpoint"
PICS: TSTAT.S.A0011
PICS: TSTAT.S.F01
command: "readAttribute"
attribute: "OccupiedCoolingSetpoint"
response:
constraints:
type: int16
minValue: -27315
maxValue: 32767
minValue: 1600
maxValue: 3200
chrisbeach59 marked this conversation as resolved.
Show resolved Hide resolved

- label: "Reads mandatory attributes from DUT: OccupiedHeatingSetpoint"
PICS: TSTAT.S.A0012
PICS: TSTAT.S.F00
command: "readAttribute"
attribute: "OccupiedHeatingSetpoint"
response:
constraints:
type: int16
minValue: -27315
maxValue: 32767
minValue: 700
maxValue: 3000

- label: "Read UnoccupiedCoolingSetpoint attribute from the DUT"
PICS: TSTAT.S.A0013
PICS: TSTAT.S.F01 && TSTAT.S.F02
command: "readAttribute"
attribute: "UnoccupiedCoolingSetpoint"
response:
constraints:
type: int16
minValue: -27315
maxValue: 32767
minValue: 1600
maxValue: 3200

- label: "Read UnoccupiedHeatingSetpoint attribute from the DUT"
PICS: TSTAT.S.A0014
PICS: TSTAT.S.F00 && TSTAT.S.F02
command: "readAttribute"
attribute: "UnoccupiedHeatingSetpoint"
response:
constraints:
type: int16
minValue: -27315
maxValue: 32767
minValue: 700
maxValue: 3000

- label: "Reads mandatory attributes from DUT: MinHeatSetpointLimit"
- label: "Reads attribute from DUT: MinHeatSetpointLimit"
PICS: TSTAT.S.A0015
command: "readAttribute"
attribute: "MinHeatSetpointLimit"
response:
constraints:
type: int16
minValue: -27315
maxValue: 32767
minValue: 700
maxValue: 3000

- label: "Reads mandatory attributes from DUT: MaxHeatSetpointLimit"
- label: "Reads attribute from DUT: MaxHeatSetpointLimit"
PICS: TSTAT.S.A0016
command: "readAttribute"
attribute: "MaxHeatSetpointLimit"
Expand Down Expand Up @@ -219,7 +218,7 @@ tests:
maxValue: 32767

- label: "Reads optional attributes from DUT: MinSetpointDeadBand"
PICS: TSTAT.S.A0019
PICS: TSTAT.S.F05
command: "readAttribute"
attribute: "MinSetpointDeadBand"
response:
Expand All @@ -239,7 +238,6 @@ tests:
maxValue: 7

- label: "Reads mandatory attributes from DUT: ControlSequenceOfOperation"
PICS: TSTAT.S.A001b
command: "readAttribute"
attribute: "ControlSequenceOfOperation"
response:
Expand All @@ -249,7 +247,6 @@ tests:
maxValue: 5

- label: "Reads mandatory attributes from DUT: SystemMode"
PICS: TSTAT.S.A001c
command: "readAttribute"
attribute: "SystemMode"
response:
Expand All @@ -258,52 +255,6 @@ tests:
minValue: 0
maxValue: 9

- label:
"Read AlarmMask attribute from the DUT and Verify that the DUT
responds with a map8 value.The value has to be in the range of 0x00 to
0x07."
verification: |
./apps/chip-tool thermostat read alarm-mask 54321 1
[1651147597.962878][10583:10588] CHIP:DMG: ReportDataMessage =
[1651147597.962928][10583:10588] CHIP:DMG: {
[1651147597.962957][10583:10588] CHIP:DMG: AttributeReportIBs =
[1651147597.963014][10583:10588] CHIP:DMG: [
[1651147597.963047][10583:10588] CHIP:DMG: AttributeReportIB =
[1651147597.963103][10583:10588] CHIP:DMG: {
[1651147597.963138][10583:10588] CHIP:DMG: AttributeStatusIB =
[1651147597.963177][10583:10588] CHIP:DMG: {
[1651147597.963226][10583:10588] CHIP:DMG: AttributePathIB =
[1651147597.963286][10583:10588] CHIP:DMG: {
[1651147597.963329][10583:10588] CHIP:DMG: Endpoint = 0x1,
[1651147597.963389][10583:10588] CHIP:DMG: Cluster = 0x201,
[1651147597.963449][10583:10588] CHIP:DMG: Attribute = 0x0000_001D,
[1651147597.963575][10583:10588] CHIP:DMG: }
[1651147597.963641][10583:10588] CHIP:DMG:
[1651147597.963683][10583:10588] CHIP:DMG: StatusIB =
[1651147597.963724][10583:10588] CHIP:DMG: {
[1651147597.963785][10583:10588] CHIP:DMG: status = 0x86 (UNSUPPORTED_ATTRIBUTE),
[1651147597.963846][10583:10588] CHIP:DMG: },
[1651147597.963892][10583:10588] CHIP:DMG:
[1651147597.963945][10583:10588] CHIP:DMG: },
[1651147597.963991][10583:10588] CHIP:DMG:
[1651147597.964040][10583:10588] CHIP:DMG: },
[1651147597.964092][10583:10588] CHIP:DMG:
[1651147597.964125][10583:10588] CHIP:DMG: ],
[1651147597.964180][10583:10588] CHIP:DMG:
[1651147597.964213][10583:10588] CHIP:DMG: SuppressResponse = true,
[1651147597.964258][10583:10588] CHIP:DMG: InteractionModelRevision = 1
[1651147597.964290][10583:10588] CHIP:DMG: }
[1651147597.964450][10583:10588] CHIP:TOO: Response Failure: IM Error 0x00000586: General error: 0x86 (UNSUPPORTED_ATTRIBUTE)
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT && TSTAT.S.A001d
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read ThermostatRunningMode attribute from the DUT"
PICS: TSTAT.S.A001e
command: "readAttribute"
Expand All @@ -312,10 +263,10 @@ tests:
constraints:
type: enum8
minValue: 0
maxValue: 4
maxValue: 9

- label: "Reads constraints of optional attributes from DUT: StartOfWeek"
PICS: TSTAT.S.A0020
PICS: TSTAT.S.F03
command: "readAttribute"
attribute: "StartOfWeek"
response:
Expand All @@ -325,7 +276,7 @@ tests:
maxValue: 6

- label: "Reads optional attributes from DUT: NumberOfWeeklyTransitions"
PICS: TSTAT.S.A0021
PICS: TSTAT.S.F03
command: "readAttribute"
attribute: "NumberOfWeeklyTransitions"
response:
Expand All @@ -335,7 +286,7 @@ tests:
maxValue: 255

- label: "Reads optional attributes from DUT: NumberOfDailyTransitions"
PICS: TSTAT.S.A0022
PICS: TSTAT.S.F03
command: "readAttribute"
attribute: "NumberOfDailyTransitions"
response:
Expand Down Expand Up @@ -413,7 +364,7 @@ tests:
type: utc

- label: "Read OccupiedSetback attribute from the DUT"
PICS: TSTAT.S.A0034
PICS: TSTAT.S.F02
command: "readAttribute"
attribute: "OccupiedSetback"
response:
Expand All @@ -423,7 +374,7 @@ tests:
maxValue: 255

- label: "Read OccupiedSetbackMin attribute from the DUT"
PICS: TSTAT.S.A0035
PICS: TSTAT.S.F02
command: "readAttribute"
attribute: "OccupiedSetbackMin"
response:
Expand All @@ -433,7 +384,7 @@ tests:
maxValue: 255

- label: "Read OccupiedSetbackMax attribute from the DUT"
PICS: TSTAT.S.A0036
PICS: TSTAT.S.F02
command: "readAttribute"
attribute: "OccupiedSetbackMax"
response:
Expand All @@ -443,7 +394,7 @@ tests:
maxValue: 255

- label: "Read UnoccupiedSetback attribute from the DUT"
PICS: TSTAT.S.A0037
PICS: TSTAT.S.F02 && TSTAT.S.F04
command: "readAttribute"
attribute: "UnoccupiedSetback"
response:
Expand All @@ -453,7 +404,7 @@ tests:
maxValue: 255

- label: "Read UnoccupiedSetbackMin attribute from the DUT"
PICS: TSTAT.S.A0038
PICS: TSTAT.S.F02 && TSTAT.S.F04
command: "readAttribute"
attribute: "UnoccupiedSetbackMin"
response:
Expand All @@ -463,7 +414,7 @@ tests:
maxValue: 255

- label: "Read UnoccupiedSetbackMax attribute from the DUT"
PICS: TSTAT.S.A0039
PICS: TSTAT.S.F02 && TSTAT.S.F04
command: "readAttribute"
attribute: "UnoccupiedSetbackMax"
response:
Expand Down
Loading