Logo: Relish

  1. Sign in

Project: Sc-portal-bdd

Phones-Phone Settings:Edit Speeddials per device(US4441)

Background
Given
We are on the user login page
Scenarios
  • @dialog_popup_add
We click the "Add New Speed Dial" button and the dialog should popup
When
We log in to the Self Care page with username and password
And
We go to the All Phones Settings Page
And
We select a phone with phone_index from the View dropdown
And
We click on Speed Dial link
And
We click "Add New Speed Dial" Button
Then
We should see the modal dialog with title
Examples:
username password phone_index title
"user1" "cisco" 1 "Add Speed Dial"
  • @dialog_popup_edit
edit an existing speed dial dialog popup
When
We log in to the Self Care page with username and password
And
We go to the All Phones Settings Page
And
We select a phone with phone_index from the View dropdown
And
We click on Speed Dial link
And
We click "Edit" Icon of speed_dial_index
Then
We should see the modal dialog with title
Examples: edit an existing speed dial
username password phone_index speed_dial_index title
"user1" "cisco" 1 0 "Edit Speed Dial"
  • @dialog_popup_delete
delete an existing speed dial
When
We log in to the Self Care page with username and password
And
We go to the All Phones Settings Page
And
We select a phone with phone_index from the View dropdown
And
We click on Speed Dial link
And
We click "Delete" Icon of speed_dial_index
Then
We should see the modal dialog with title
And
We should see the delete confirmation message
Examples: delete an existing speed dial
username password phone_index speed_dial_index title message
"user1" "cisco" 2 0 "Delete Speed Dial" "Are you sue you want to delete this speed dial."
  • @add_a_new_speed_dial
We add a new speed dial entry to the table
When
We log in to the Self Care page with username and password
And
We go to the All Phones Settings Page
And
We select a phone with phone_index from the View dropdown
And
We click on Speed Dial link
And
We click "Add New Speed Dial" Button
And
We should see the modal dialog with title
And
We enter number, label and dial in accordingly textfields
And
We click the button_type
Then
We should see the success message
And
We refresh the page
And
We go to the All Phones Settings Page
And
We select a phone with phone_index from the View dropdown
And
We click on Speed Dial link
And
The new entry having dial, label and number should be status in the speed dial table
Examples:
username password phone_index title number label dial button_type status message
"user1" "cisco" 2 "Add Speed Dial" "9792293669" "lynne" "31" "ok" "displayed" "Add Successful"
"user1" "cisco" 2 "Add Speed Dial" "9792293669" "lynne" "32" "ok" "displayed" "Add Successful"
"user1" "cisco" 2 "Add Speed Dial" "9792293669" "lynne1" "3" "cancel" "not displayed" ""
  • @edit_an_existing_speed_dial
We edit an existing speed dial entry of the table
When
We log in to the Self Care page with username and password
And
We go to the All Phones Settings Page
And
We select a phone with phone_index from the View dropdown
And
We click on Speed Dial link
And
We click "Edit" Icon of speed_dial_index
And
We should see the modal dialog with title
And
We edit number, label and dial in accordingly textfields
And
We click the button_type
Then
The edited entry with speed_dial_index having dial, label and number should be status in the speed dial table
And
We should see the success message
Examples:
username password phone_index speed_dial_index title number label dial button_type status message
"user1" "cisco" 2 0 "Edit Speed Dial" "" "lin" "" "ok" "changed" "Update Successful"
"user1" "cisco" 2 1 "Edit Speed Dial" "1234567890" "" "" "ok" "changed" "Update Successful"
"user1" "cisco" 2 2 "Edit Speed Dial" "" "" "99" "cancel" "not changed" ""
  • @delete_an_existing_speed_dial
We delete an existing speed dial entry of the table
When
We log in to the Self Care page with username and password
And
We go to the All Phones Settings Page
And
We select a phone with phone_index from the View dropdown
And
We click on Speed Dial link
And
We click "Delete" Icon of speed_dial_index
And
We should see the modal dialog with title
And
We should see the delete confirmation message
And
We click the button_type
Then
We should see the success message_two
Examples:
username password phone_index speed_dial_index title message button_type message_two
"user1" "cisco" 2 0 "Delete Speed Dial" "Are you sue you want to delete this speed dial." "ok" "Delete Successful"
"user1" "cisco" 2 1 "Delete Speed Dial" "Are you sue you want to delete this speed dial." "ok" "Delete Successful"
"user1" "cisco" 2 0 "Delete Speed Dial" "Are you sue you want to delete this speed dial." "cancel" ""
  • @add_empty_fields
We add a new speed dial entry to the table while failing to fill the required fields
When
We log in to the Self Care page with username and password
And
We go to the All Phones Settings Page
And
We select a phone with phone_index from the View dropdown
And
We click on Speed Dial link
And
We click "Add New Speed Dial" Button
And
We should see the modal dialog with title
And
We enter number, label and dial in accordingly textfields
And
We click the button_type
Then
We should see the tooltip saying message
Examples: invalid label
username password phone_index title number label dial button_type message
"user1" "cisco" 2 "Add Speed Dial" "9792293669" "home"phone" "5" "ok" "Speed dial label is required. Enter up to 30 characters. Any character is valid except quotes(")."
Examples: empty
username password phone_index title number label dial button_type message
"user1" "cisco" 2 "Add Speed Dial" "9792293669" "" "" "ok" "This value is required."
"user1" "cisco" 2 "Add Speed Dial" "" "lynne" "" "ok" "This value is required."
"user1" "cisco" 2 "Add Speed Dial" "" "" "4" "ok" "This value is required."
Examples: invalid number
username password phone_index title number label dial button_type message
"user1" "cisco" 2 "Add Speed Dial" "214a432423" "lynne" "5" "ok" "Speed dial numbers are composed of the characters 0-9, *, #, +, P, p, F, f, C, c, or a comma (,) with a maximum of 50 characters allowed. A directory URI is in the [email protected] format. The username can be a maximum of 47 characters. The host can be an IPv4 address or fully qualified domain name. The full URI can be a maximum of 254 characters."
"user1" "cisco" 2 "Add Speed Dial" "user1#cisco.com" "lynne" "5" "ok" "Speed dial numbers are composed of the characters 0-9, *, #, +, P, p, F, f, C, c, or a comma (,) with a maximum of 50 characters allowed. A directory URI is in the [email protected] format. The username can be a maximum of 47 characters. The host can be an IPv4 address or fully qualified domain name. The full URI can be a maximum of 254 characters."
Examples: invalid index
username password phone_index title number label dial button_type message
"user1" "cisco" 2 "Add Speed Dial" "9792293669" "lynne" "200" "ok" "Speed dial index is required. Please enter a valid number between 0 to 199."
"user1" "cisco" 2 "Add Speed Dial" "9792293669" "lynne" "32" "ok" "Speed dial index is already in use. Please enter a valid speed dial index."

Last published over 4 years ago by Chris.