Skip to content

Commit

Permalink
Fixes issue 80 and tolerance issue in CC-3.2 script.
Browse files Browse the repository at this point in the history
  • Loading branch information
manjunath-grl committed Dec 13, 2023
1 parent 9c4206c commit dfa7790
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
16 changes: 10 additions & 6 deletions src/app/tests/suites/certification/Test_TC_CC_3_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,16 @@ tests:
- name: "ms"
value: 10000

#Tolerance to be computed from the range
#Start value 200, expected value 45, 200 - 45 = 155, 155 % 15 = 23 , So 45+/-23
- label: "Step 2d: TH reads CurrentHue attribute from DUT"
PICS: CC.S.F00 && CC.S.A0000
command: "readAttribute"
attribute: "CurrentHue"
response:
constraints:
minValue: 38
maxValue: 52
minValue: 22
maxValue: 68

- label: "Wait 10s"
PICS: CC.S.F00
Expand All @@ -162,14 +164,16 @@ tests:
- name: "OptionsOverride"
value: 0

#Tolerance to be computed from the range
#Start value 200, expected value 95, 200 - 95 = 155, 105 % 15 = 16 , So 95+/-16
- label: "Step 2f: TH reads CurrentHue attribute from DUT"
PICS: CC.S.F00 && CC.S.A0000
command: "readAttribute"
attribute: "CurrentHue"
response:
constraints:
minValue: 80
maxValue: 110
minValue: 79
maxValue: 111

- label: "Wait 2s"
PICS: CC.S.F00
Expand All @@ -186,8 +190,8 @@ tests:
attribute: "CurrentHue"
response:
constraints:
minValue: 80
maxValue: 110
minValue: 79
maxValue: 111

- label:
"Step 3a: TH sends MoveToHue command to DUT with Hue=60,
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_CC_3_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ tests:

#Multiple range not supported in YAML: https://github.com/project-chip/connectedhomeip/issues/23197
- label: "Step 2e: TH reads CurrentHue attribute from DUT"
PICS: CC.S.F00 && CC.S.A0000 PICS_SKIP_SAMPLE_APP
PICS: CC.S.F00 && CC.S.A0000 && PICS_SKIP_SAMPLE_APP
verification: |
./chip-tool colorcontrol read current-hue 1 1
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dfa7790

Please sign in to comment.