Skip to content

Commit 01acd65

Browse files
committed
[HVAC] Add test for error raised by SetpointRaiseLower targeting invalid mode
1 parent 3bf596f commit 01acd65

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

src/app/tests/suites/certification/Test_TC_TSTAT_2_2.yaml

+30-6
Original file line numberDiff line numberDiff line change
@@ -1816,21 +1816,21 @@ tests:
18161816
arguments:
18171817
value: 2950
18181818

1819-
- label: "Step 13: Sets OccupiedCoolingSetpoint to default value"
1819+
- label: "Step 13a: Sets OccupiedCoolingSetpoint to default value"
18201820
command: "writeAttribute"
18211821
attribute: "OccupiedCoolingSetpoint"
18221822
PICS: TSTAT.S.F01
18231823
arguments:
18241824
value: 2600
18251825

1826-
- label: "Step 13: Sets OccupiedHeatingSetpoint to default value"
1826+
- label: "Step 13a: Sets OccupiedHeatingSetpoint to default value"
18271827
command: "writeAttribute"
18281828
attribute: "OccupiedHeatingSetpoint"
18291829
PICS: TSTAT.S.F00
18301830
arguments:
18311831
value: 2000
18321832

1833-
- label: "Step 13: Sends SetpointRaise Command Heat Only"
1833+
- label: "Step 13a: Sends SetpointRaise Command Heat Only"
18341834
PICS: TSTAT.S.F00
18351835
command: "SetpointRaiseLower"
18361836
arguments:
@@ -1841,14 +1841,26 @@ tests:
18411841
value: -30
18421842

18431843
- label:
1844-
"Step 13: Test Harness Reads back OccupiedHeatingSetpoint to confirm
1844+
"Step 13a: Test Harness Reads back OccupiedHeatingSetpoint to confirm
18451845
the success of the write"
18461846
command: "readAttribute"
18471847
attribute: "OccupiedHeatingSetpoint"
18481848
PICS: TSTAT.S.F00
18491849
response:
18501850
value: 1700
18511851

1852+
- label: "Step 13b: Sends SetpointRaise Command Heat Only without Heat feature"
1853+
PICS: TSTAT.S.C00.Rsp && !TSTAT.S.F00
1854+
command: "SetpointRaiseLower"
1855+
arguments:
1856+
values:
1857+
- name: "Mode"
1858+
value: 0
1859+
- name: "Amount"
1860+
value: -30
1861+
response:
1862+
error: INVALID_COMMAND
1863+
18521864
- label: "Step 14: Sets OccupiedHeatingSetpoint to default value"
18531865
command: "writeAttribute"
18541866
attribute: "OccupiedHeatingSetpoint"
@@ -1875,7 +1887,7 @@ tests:
18751887
response:
18761888
value: 2300
18771889

1878-
- label: "Step 15: Test Harness Sends SetpointRaise Command Cool Only"
1890+
- label: "Step 15a: Test Harness Sends SetpointRaise Command Cool Only"
18791891
PICS: TSTAT.S.F01
18801892
command: "SetpointRaiseLower"
18811893
arguments:
@@ -1886,14 +1898,26 @@ tests:
18861898
value: -30
18871899

18881900
- label:
1889-
"Step 15: Test Harness Reads back OccupiedCoolingSetpoint to confirm
1901+
"Step 15a: Test Harness Reads back OccupiedCoolingSetpoint to confirm
18901902
the success of the write"
18911903
command: "readAttribute"
18921904
attribute: "OccupiedCoolingSetpoint"
18931905
PICS: TSTAT.S.F01
18941906
response:
18951907
value: 2300
18961908

1909+
- label: "Step 15b: Sends SetpointRaise Command Cool Only without Cool feature"
1910+
PICS: TSTAT.S.C00.Rsp && !TSTAT.S.F01
1911+
command: "SetpointRaiseLower"
1912+
arguments:
1913+
values:
1914+
- name: "Mode"
1915+
value: 1
1916+
- name: "Amount"
1917+
value: -30
1918+
response:
1919+
error: INVALID_COMMAND
1920+
18971921
- label: "Step 16: Sets OccupiedCoolingSetpoint to default value"
18981922
command: "writeAttribute"
18991923
attribute: "OccupiedCoolingSetpoint"

0 commit comments

Comments
 (0)