Skip to content

Commit

Permalink
Updated user prompt steps (#20209)
Browse files Browse the repository at this point in the history
* Modified tests
TC-CGEN-2.1
TC-FLW-2.2
TC-I-2.3
TC-LVL-4.1
TC-LVL-6.1
TC-OCC-2.2
TC-OO-2.2
TC-RH-2.2
TC-TM-2.2
TC-TSUIC-2.2

* Auto generated files
  • Loading branch information
manjunath-grl authored and pull[bot] committed Jul 5, 2022
1 parent bf19253 commit 1c45baf
Show file tree
Hide file tree
Showing 12 changed files with 572 additions and 290 deletions.
12 changes: 7 additions & 5 deletions src/app/tests/suites/certification/Test_TC_CGEN_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,18 @@ tests:
command: "readAttribute"
attribute: "BasicCommissioningInfo"

- label: "Step 6 TC-CGEN-2.1"
- label:
"Step 6 is implicitly validating the attribute(BasicCommissioningInfo)
constraints, as long as the payload is being parsed successfully"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value:
"Step 6 is implicitly validating the
attribute(BasicCommissioningInfo) constraints, as long as
the payload is being parsed successfully"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "TH1 reads SupportsConcurrentConnection attribute from the DUT"
PICS: CGEN.S.A0004
Expand Down
8 changes: 5 additions & 3 deletions src/app/tests/suites/certification/Test_TC_FLW_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ tests:
type: uint16

- label: "operate on DUT to change the flow significantly"
PICS: MANUAL_FLOW_CHANGE
cluster: "LogCommands"
command: "Log"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Operate on device to change the flow significantly"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "read the mandatory attribute: MeasuredValue"
command: "readAttribute"
Expand Down
76 changes: 49 additions & 27 deletions src/app/tests/suites/certification/Test_TC_I_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,16 @@ tests:
- name: "EffectVariant"
value: 0

- label: "Manually check DUT executes a blink effect"
- label: "DUT executes a blink effect"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "DUT executes a blink effect"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label:
"TH sends TriggerEffect command to DUT with the effect identifier
Expand All @@ -62,13 +65,16 @@ tests:
- name: "EffectVariant"
value: 0

- label: "check DUT executes a breathe effect"
- label: "DUT executes a breathe effect"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "DUT executes a breathe effect"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label:
"TH sends TriggerEffect command to DUT with the effect identifier
Expand All @@ -83,13 +89,16 @@ tests:
- name: "EffectVariant"
value: 0

- label: "check DUT executes an okay effect"
- label: "DUT executes an okay effect"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "DUT executes an okay effect"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label:
"TH sends TriggerEffect command to DUT with the effect identifier
Expand All @@ -104,13 +113,16 @@ tests:
- name: "EffectVariant"
value: 0

- label: "check DUT executes a channel change effect"
- label: "DUT executes a channel change effect"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "DUT executes a channel change effect"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label:
"TH sends TriggerEffect command to DUT with the effect identifier
Expand All @@ -125,13 +137,16 @@ tests:
- name: "EffectVariant"
value: 0

- label: "check DUT executes a breathe effect"
- label: "DUT executes a breathe effect"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "DUT executes a breathe effect"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label:
"TH sends TriggerEffect command to DUT with the effect identifier
Expand All @@ -146,18 +161,16 @@ tests:
- name: "EffectVariant"
value: 0

- label:
"Manually check DUT stops the breathe effect after the current effect
sequence"
PICS: I.S.C40.Rsp
- label: "DUT stops the breathe effect after the current effect sequence"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value:
"DUT stops the breathe effect after the current effect
sequence"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label:
"TH sends TriggerEffect command to DUT with the effect identifier
Expand All @@ -172,13 +185,16 @@ tests:
- name: "EffectVariant"
value: 0

- label: "Manually check DUT executes a breathe effect"
- label: "DUT executes a breathe effect"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "DUT executes a breathe effect"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label:
"TH sends TriggerEffect command to DUT with the effect identifier
Expand All @@ -193,13 +209,16 @@ tests:
- name: "EffectVariant"
value: 0

- label: "Check DUT stops the breathe effect as soon as possible."
- label: "DUT stops the breathe effect as soon as possible."
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "DUT stops the breathe effect as soon as possible"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label:
"TH sends TriggerEffect command to DUT with the effect identifier
Expand All @@ -217,10 +236,13 @@ tests:
- label: "Check DUT executes a blink effect."
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "DUT executes a blink effect"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label:
"TH sends TriggerEffect command to DUT with the effect identifier
Expand All @@ -236,13 +258,13 @@ tests:
value: 0

- label:
"Check DUT stops any effect that may be still running as soon as
possible"
"DUT stops any effect that may be still running as soon as possible"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value:
"DUT stops any effect that may be still running as soon as
possible"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"
38 changes: 23 additions & 15 deletions src/app/tests/suites/certification/Test_TC_LVL_4_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,19 @@ tests:
- name: "optionOverride"
value: 1

- label: "user prompt message"
- label:
"Physically verify that the DUT moves at a rate of 32 units per second
or as close as possible to this rate and completes moving to its
maximum level"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value:
"Physically verify that the DUT moves at a rate of 32 units
per second or as close as possible to this rate and
completes moving to its maximum level"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Wait 9000ms"
cluster: "DelayCommands"
Expand Down Expand Up @@ -109,16 +112,19 @@ tests:
- name: "optionOverride"
value: 1

- label: "user prompt message"
- label:
"Physically verify that the DUT moves at a rate of 64 units per second
or as close as possible to this rate and complete moving to its
minimum level"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value:
"Physically verify that the DUT moves at a rate of 64 units
per second or as close as possible to this rate and complete
moving to its minimum level"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Wait 5000ms"
cluster: "DelayCommands"
Expand Down Expand Up @@ -168,16 +174,18 @@ tests:
- name: "ms"
value: 100

- label: "user prompt message"
- label:
"Physically verify that the device moves at the rate recorded in step
3a and completes moving to its maximum level"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value:
"Physically verify that the device moves at the rate
recorded in step 3a and completes moving to its maximum
level."
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Reset level to 254"
command: "MoveToLevel"
Expand Down
18 changes: 10 additions & 8 deletions src/app/tests/suites/certification/Test_TC_LVL_6_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,16 @@ tests:
- name: "optionOverride"
value: 0

- label: "user prompt message"
- label: "Physically verify that the device has stopped transitioning"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value:
"Physically verify that the device has stopped
transitioning."
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Reads CurrentLevel attribute from DUT"
command: "readAttribute"
Expand Down Expand Up @@ -137,15 +138,16 @@ tests:
- name: "optionOverride"
value: 0

- label: "user prompt message"
- label: "Physically verify that the device has stopped transitioning"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value:
"Physically verify that the device has stopped
transitioning."
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Reads CurrentLevel attribute from DUT"
command: "readAttribute"
Expand Down
6 changes: 4 additions & 2 deletions src/app/tests/suites/certification/Test_TC_OCC_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ tests:
saveAs: OccupancyValue

- label: "Operate on DUT to change the occupancy status"
PICS: MANUAL_OCCUPANCY_CHANGE
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Operate on DUT to change the occupancy status"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Reads back Occupancy attribute from DUT after few seconds"
command: "readAttribute"
Expand Down
Loading

0 comments on commit 1c45baf

Please sign in to comment.