Logo: Relish

  1. Sign in

Project: Sc-portal-bdd

Clear Phone history Label check

Background
Given
We are on the user login page
Scenarios
  • @verify_message
Verify the message of no feature support or no phone numbers
When
We log in to the Self Care page with username and password
And
We are on the Phone Settings Page
And
We select a phone with phone_index from the View dropdown
Then
We verify that history section displays message
Examples: no support
username password phone_index message
"user3" "cisco" 1 "This feature is not supported by the selected device."
"user1" "cisco" 1 "No Phone Numbers available for the selected device."
  • @save_checkbox_state
Change one phone history label, save and verify the changes
When
We log in to the Self Care page with username and password
And
We are on the Phone Settings Page
And
We select a phone with phone_index from the View dropdown
And
We verify that history checkbox for line line_index is checkbox_state
And
We checkbox_new_state the checkbox for the history button for line line_index
And
We click the Save Button for log history modification
And
We refresh the page
And
We select a phone with phone_index from the View dropdown
Then
We verify that history checkbox for line line_index is checkbox_new_state
Examples: no devices
username password phone_index line_index checkbox_state checkbox_new_state
"user2" "cisco" 3 1 "set" "clear"
"user2" "cisco" 3 1 "clear" "set"
  • @cancel_checkbox_state
Change one phone history label, cancel and verify there are no changes
When
We log in to the Self Care page with username and password
And
We are on the Phone Settings Page
And
We select a phone with phone_index from the View dropdown
And
We verify that history checkbox for line line_index is checkbox_state
And
We checkbox_new_state the checkbox for the history button for line line_index
And
We click the Cancel Button for log history modification
And
We refresh the page
And
We select a phone with phone_index from the View dropdown
Then
We verify that history checkbox for line line_index is checkbox_state
Examples: no devices
username password phone_index line_index checkbox_state checkbox_new_state
"user2" "cisco" 3 0 "clear" "set"
"user2" "cisco" 3 1 "set" "clear"
  • @no_line
Select one device with no line appearance and verify that no history exists for that device
When
We log in to the Self Care page with username and password
And
We are on the Phone Settings Page
And
We select a phone with phone_index from the View dropdown
Then
We verify that history section displays "No Phone Numbers available for the selected device."
Examples: no line
username password phone_index
"user1" "cisco" 1
  • @history_table
Verify the contents of the history table on selecting a device with one or more phone lines
When
We log in to the Self Care page with username and password
And
We are on the Phone Settings Page
And
We select a phone with phone_index from the View dropdown
Then
We verify the table length of history page has number_of_lines lines
And
We check the table contents for line_index is phone_number and checkbox exists
Examples: no devices
username password phone_index number_of_lines line_index phone_number
"user2" "cisco" 3 2 0 "1041"
"user2" "cisco" 2 3 2 "1245"

Last published almost 5 years ago by Chris.