Skip to content

Commit

Permalink
Modified script july 27 (#21276)
Browse files Browse the repository at this point in the history
* Modified scripts
TC-DRLK-2.5
TC-DRLK-2.7
TC-DRLK-2.9
TC-LVL-5.1

* Added auto generated files

* Auto generated files
  • Loading branch information
manjunath-grl authored Jul 28, 2022
1 parent e56c2ce commit ee22786
Show file tree
Hide file tree
Showing 6 changed files with 1,405 additions and 602 deletions.
53 changes: 17 additions & 36 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ tests:
- name: "nextUserIndex"
value: null

- label: "Get Max number of Week Day schedules for user"
- label: "TH reads NumberOfWeekDay SchedulesSupportedPerUser attribute"
PICS: DRLK.S.F04 && DRLK.S.A0014
command: "readAttribute"
attribute: "NumberOfWeekDaySchedulesSupportedPerUser"
Expand All @@ -90,7 +90,7 @@ tests:
minValue: 0
maxValue: 255

- label: "Get number of supported users"
- label: "TH reads NumberOfTotalUsers Supported attribute"
PICS: DRLK.S.F08 && DRLK.S.A0011
command: "readAttribute"
attribute: "NumberOfTotalUsersSupported"
Expand All @@ -100,7 +100,7 @@ tests:
minValue: 0
maxValue: 65534

- label: "Send Set Week Day Schedule Command to DUT"
- label: "TH send Set Week Day Schedule Command"
PICS: DRLK.S.F04 && DRLK.S.C0b.Rsp
command: "SetWeekDaySchedule"
arguments:
Expand All @@ -121,7 +121,7 @@ tests:
value: 55

#issue #18591
- label: "send GetWeekDay Schedule Command "
- label: "TH send Get Week Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0c.Rsp && DRLK.S.C0c.Tx
command: "GetWeekDaySchedule"
arguments:
Expand All @@ -133,44 +133,27 @@ tests:
response:
values:
- name: "weekDayIndex"
constraints:
minValue: 1
maxValue: NumberOfWeekDaySchedulesSupportedPerUser
value: 1
- name: "userIndex"
constraints:
minValue: 1
maxValue: NumberOfTotalUsersSupported
value: 1
- name: "status"
value: 0x0
- name: "daysMask"
constraints:
hasValue: true
minValue: 0
maxValue: 6
value: 2
- name: "startHour"
constraints:
hasValue: true
minValue: 0
maxValue: 23
value: 15
- name: "startMinute"
constraints:
hasValue: true
minValue: 0
maxValue: 59
value: 45
- name: "endHour"
constraints:
hasValue: true
minValue: 0
maxValue: 23
minValue: 16
- name: "endMinute"
constraints:
hasValue: true
minValue: 0
maxValue: 59
minValue: 55

- label:
"Send Set Week Day Schedule Command to DUT and verify INVALID_COMMAND
response"
- label: "TH send Set Week Day Schedule Command"
PICS: DRLK.S.F04 && DRLK.S.C0b.Rsp
command: "SetWeekDaySchedule"
arguments:
Expand All @@ -192,9 +175,7 @@ tests:
response:
error: INVALID_COMMAND

- label:
"send GetWeekDay Schedule Command to DUT and verify INVALID_COMMAND
response"
- label: "TH send Get Week Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0c.Rsp && DRLK.S.C0c.Tx
command: "GetWeekDaySchedule"
arguments:
Expand Down Expand Up @@ -227,7 +208,7 @@ tests:
constraints:
hasValue: false

- label: "Clear all week day schedules for the first user"
- label: "TH sends Clear Week Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0d.Rsp
command: "ClearWeekDaySchedule"
arguments:
Expand All @@ -237,19 +218,19 @@ tests:
- name: "userIndex"
value: 1

- label: "send GetWeekDay Schedule Command "
- label: "TH sends Get Week Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0c.Rsp && DRLK.S.C0c.Tx
command: "GetWeekDaySchedule"
arguments:
values:
- name: "weekDayIndex"
value: 2
value: 1
- name: "userIndex"
value: 1
response:
values:
- name: "weekDayIndex"
value: 2
value: 1
- name: "userIndex"
value: 1
- name: "status"
Expand Down
82 changes: 51 additions & 31 deletions src/app/tests/suites/certification/Test_TC_DRLK_2_7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ tests:
- name: "nextUserIndex"
value: null

- label: "Get Max number of year Day schedules for user"
- label: "TH reads NumberOfYearDay SchedulesSupportedPerUser attribute"
PICS: DRLK.S.F04 && DRLK.S.A0015
command: "readAttribute"
attribute: "NumberOfYearDaySchedulesSupportedPerUser"
Expand All @@ -90,7 +90,7 @@ tests:
minValue: 0
maxValue: 255

- label: "Get number of supported users"
- label: "TH reads NumberOfTotalUsers Supported attribute"
PICS: DRLK.C.F08 && DRLK.S.A0011
command: "readAttribute"
attribute: "NumberOfTotalUsersSupported"
Expand All @@ -100,7 +100,7 @@ tests:
minValue: 0
maxValue: 65534

- label: "Send Set Year Day Schedule Command to DUT"
- label: "TH sends Set Year Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0e.Rsp
command: "SetYearDaySchedule"
arguments:
Expand All @@ -115,7 +115,7 @@ tests:
value: 1980

#issue #18591
- label: "send Get Year Day Schedule Command"
- label: "TH sends Get Year Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
command: "GetYearDaySchedule"
arguments:
Expand All @@ -127,27 +127,19 @@ tests:
response:
values:
- name: "YearDayIndex"
constraints:
minValue: 1
maxValue: NumberOfYearDaySchedulesSupportedPerUser
value: 1
- name: "userIndex"
constraints:
minValue: 1
maxValue: NumberOfTotalUsersSupported
value: 1
- name: "status"
value: 0x0
- name: "LocalStartTime"
constraints:
hasValue: true
type: epoch-s
value: 960
- name: "LocalEndTime"
value: 1980
constraints:
hasValue: true
type: epoch-s
minValue: 961

- label:
"Send Set Year Day Schedule Command to DUT and verify INVALID_COMMAND
response"
- label: "TH send Set Year Day Schedule Command to DUT"
PICS: DRLK.S.C0e.Rsp
command: "SetYearDaySchedule"
arguments:
Expand All @@ -163,9 +155,7 @@ tests:
response:
error: INVALID_COMMAND

- label:
"send Get Year Day Schedule Command to DUT and Verify INVALID_FIELD
response"
- label: "TH sends Get Year Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
command: "GetYearDaySchedule"
arguments:
Expand All @@ -189,10 +179,28 @@ tests:
constraints:
hasValue: false

- label:
"send Get Year Day Schedule Command to DUT and verify FAILURE response"
PICS:
PICS_SKIP_SAMPLE_APP && DRLK.S.F04 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
- label: "Create a user with userIndex as 5"
command: "SetUser"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "operationType"
value: 0
- name: "userIndex"
value: 5
- name: "userName"
value: "xxx"
- name: "userUniqueId"
value: 6452
- name: "userStatus"
value: 1
- name: "userType"
value: 0
- name: "credentialRule"
value: 0

- label: "TH sends Get Year Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
command: "GetYearDaySchedule"
arguments:
values:
Expand All @@ -215,7 +223,7 @@ tests:
constraints:
hasValue: false

- label: "Clear a year day schedule for the first user"
- label: "TH sends Clear Year Day Schedule to DUT"
PICS: DRLK.S.C10.Rsp
command: "ClearYearDaySchedule"
arguments:
Expand All @@ -225,9 +233,7 @@ tests:
- name: "userIndex"
value: 1

- label:
"send Get Year Day Schedule Command to DUT and verify NOT_FOUND
response"
- label: "TH sends Get Year Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx && DRLK.S.C10.Rsp
command: "GetYearDaySchedule"
arguments:
Expand All @@ -251,7 +257,7 @@ tests:
constraints:
hasValue: false

- label: "Send Set Year Day Schedule Command to DUT "
- label: "TH sends Set Year Day Schedule Command to DUT"
PICS: DRLK.S.C0e.Rsp
command: "SetYearDaySchedule"
arguments:
Expand All @@ -265,7 +271,7 @@ tests:
- name: "LocalEndTime"
value: 2100

- label: "send Get Year Day Schedule Command"
- label: "TH sends Get Year Day Schedule Command to DUT"
PICS: DRLK.S.F04 && DRLK.S.C0f.Rsp && DRLK.S.C0f.Tx
command: "GetYearDaySchedule"
arguments:
Expand All @@ -286,6 +292,20 @@ tests:
value: 1080
- name: "LocalEndTime"
value: 2100
constraints:
minValue: 1081

- label: "TH sends Clear Year Day Schedule to DUT"
PICS: DRLK.S.F04 && DRLK.S.C10.Rsp
command: "ClearYearDaySchedule"
arguments:
values:
- name: "yearDayIndex"
value: 0
- name: "userIndex"
value: 0
response:
error: INVALID_COMMAND

- label: "Clear a year day schedule for the first user"
PICS: DRLK.S.F04 && DRLK.S.C10.Rsp
Expand Down
Loading

0 comments on commit ee22786

Please sign in to comment.