recordings_addon
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/recordings/recordings
waitForElementPresent link=Search
click link=Search
waitForElementPresent device_id
select device_id label=IAX2/103
keyUp device_id w
clickAndWait commit
verifySelectedLabel device_id IAX2/103
select date_from_year label=2009
select date_from_month label=January
select date_from_day label=1
select date_till_year label=2009
select date_till_month label=January
select date_till_day label=2
select device_id label=All
clickAndWait commit
waitForElementPresent link=Manual
verifyText rec_date_time_5 2009-01-02 00:00:04
verifyText rec_date_time_6 2009-01-02 00:00:04
verifyText rec_date_time_4 2009-01-02 00:00:02
verifyText rec_date_time_3 2009-01-02 00:00:02
verifyText rec_date_time_1 2009-01-01 00:00:04
verifyText rec_date_time_2 2009-01-01 00:00:04
select user_id label=Test User #1
click //select[@id='user_id']/option[3]
clickAndWait commit
verifyText rec_date_time_1 2009-01-01 00:00:04
verifyText rec_date_time_2 2009-01-01 00:00:04
verifyElementNotPresent rec_date_time_3
verifyElementNotPresent rec_date_time_4
verifyText rec_date_time_6 2009-01-02 00:00:04
verifyElementNotPresent rec_date_time_7
verifyElementNotPresent rec_date_time_8
select device_id label=IAX2/1002
clickAndWait commit
verifyElementNotPresent rec_date_time_1
verifyElementNotPresent rec_date_time_2
verifyElementNotPresent rec_date_time_3
verifyElementNotPresent rec_date_time_4
verifyText rec_date_time_5 2009-01-02 00:00:04
verifyText rec_date_time_6 2009-01-02 00:00:04
verifyElementNotPresent rec_date_time_7
verifyElementNotPresent rec_date_time_8
select user_id label=All
type s_source 101
select device_id label=All
clickAndWait commit
verifyText rec_date_time_1 2009-01-01 00:00:04
verifyText rec_date_time_2 2009-01-01 00:00:04
verifyElementNotPresent rec_date_time_3
verifyElementNotPresent rec_date_time_4
verifyElementNotPresent rec_date_time_5
verifyElementNotPresent rec_date_time_6
type s_source
type s_destination 37063042438
clickAndWait commit
verifyElementNotPresent rec_date_time_1
verifyElementNotPresent rec_date_time_2
verifyText rec_date_time_3 2009-01-02 00:00:02
verifyText rec_date_time_4 2009-01-02 00:00:02
verifyText rec_date_time_5 2009-01-02 00:00:04
verifyText rec_date_time_6 2009-01-02 00:00:04
open /billing/recordings/edit_recording/5
type recording_comment testing comments
clickAndWait commit
verifyText rec_comment_5 testing comments
verifyTextPresent Recording updated
open /billing/recordings/list_users
click link=Search
type s_username Admin
clickAndWait commit
verifyElementPresent link=System Admin
type s_username
type s_first_name Test
clickAndWait commit
verifyElementPresent link=Test Reseller
verifyElementPresent link=Test Accountant
verifyElementPresent link=Test User #1
type s_first_name
type s_last_name Admin
clickAndWait commit
verifyElementPresent link=System Admin
click recording_enabled_0
click recording_forced_enabled_0
type recording_hdd_quota_0 0.0002
type recordings_email_0 example@example.com
clickAndWait //input[@name='commit' and @value='Update']
verifyTextPresent Users updated
verifyChecked recording_enabled_0
verifyChecked recording_forced_enabled_0
verifyValue recording_hdd_quota_0 0.0002
verifyValue recordings_email_0 example@example.com
open /billing/recordings/list/2
click link=Search
type s_source 37046246362
clickAndWait commit
verifyText rec_date_time_5 2009-01-02 00:00:04
verifyText rec_comment_5 testing comments
verifyText rec_date_time_6 2009-01-02 00:00:04
type s_source
type s_destination 123123
clickAndWait commit
verifyText rec_date_time_1 2009-01-01 00:00:04
verifyText rec_date_time_2 2009-01-01 00:00:04
type s_source 101
clickAndWait commit
verifyText rec_date_time_1 2009-01-01 00:00:04
verifyText rec_date_time_2 2009-01-01 00:00:04
verifyText rec_comment_1
verifyText rec_comment_2
open /billing/recordings/edit_recording/1
type recording_comment testing comments2
clickAndWait commit
verifyTextPresent Recording updated
verifyText rec_comment_1 testing comments2
open /billing/recordings/list_users
click recording_enabled_2
clickAndWait //input[@name='commit' and @value='Update']
verifyTextPresent Users updated
uncheck recording_enabled_0
uncheck recording_enabled_2
uncheck recording_forced_enabled_0
clickAndWait //input[@name='commit' and @value='Update']
verifyTextPresent Users updated
open /billing/devices/device_edit/2
verifyChecked device[record_forced]_0
verifyChecked device[recording_to_email]_0
verifyValue device[recording_email]
verifyChecked device[recording_keep]_0
click device[record_forced]_1
click device[recording_to_email]_1
type device[recording_email] example@example.com
click device[recording_keep]_1
type device_secret 1012323232323
clickAndWait commit
verifyTextPresent Device's settings updated
open /billing/devices/device_edit/2
verifyChecked device[record_forced]_1
verifyChecked device[recording_to_email]_1
verifyValue device[recording_email] example@example.com
verifyChecked device[recording_keep]_1
open /billing/users/edit/2
verifyNotChecked recording_enabled
verifyNotChecked recording_forced_enabled
verifyValue user[recording_hdd_quota] 0.0001
verifyText user_recordings_email
click recording_enabled
click recording_forced_enabled
type user[recording_hdd_quota] 5
type user_recordings_email example@example.com
clickAndWait //div[@id='confirm_without_message']/input
verifyTextPresent User's settings succesfully changed: Test User #1
open /billing/users/edit/2
verifyChecked recording_enabled
verifyChecked recording_forced_enabled
verifyValue user[recording_hdd_quota] 5.0000
verifyValue user_recordings_email example@example.com
click recording_enabled
clickAndWait //div[@id='confirm_without_message']/input
verifyTextPresent User's settings succesfully changed: Test User #1
open /billing/users/edit/2
check recording_enabled
clickAndWait //div[@id='confirm_without_message']/input
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/personal_details
assertTextPresent 5.0000 Mb (1.3962 Mb or 27.9245 % Taken)
verifyValue user_recordings_email example@example.com
open /billing/devices/user_device_edit/2
verifyChecked device[record]_0
verifyNotChecked device[recording_to_email]_0
verifyValue device[recording_email] example@example.com
verifyNotChecked device[recording_keep]_0
click device[record]_1
click device[recording_to_email]_1
type device[recording_email] example@example.com
click device[recording_keep]_1
clickAndWait commit
verifyTextPresent Device's settings updated
open /billing/devices/user_device_edit/2
verifyChecked device[record]_1
verifyChecked device[recording_to_email]_1
verifyValue device[recording_email] example@example.com
verifyChecked device[recording_keep]_1
open /billing/recordings/list_recordings
click link=Search
clickAndWait commit
select date_from_year label=2009
select date_from_month label=January
select date_from_day label=1
select date_till_year label=2009
select date_till_month label=January
select date_till_day label=2
clickAndWait commit
verifyTextPresent 2009-01-02 00:00:04
verifyTextPresent 2009-01-02 00:00:02
verifyTextPresent 2009-01-01 00:00:04
type s_source 37046246362
clickAndWait commit
verifyTextPresent 2009-01-02 00:00:04
verifyTextPresent 2009-01-02 00:00:02
verifyTextNotPresent 2009-01-01 00:00:04
type s_source
type s_destination 123123
clickAndWait commit
verifyTextNotPresent 2009-01-02 00:00:04
verifyTextNotPresent 2009-01-02 00:00:02
verifyTextPresent 2009-01-01 00:00:04
clickAndWait link=Clear search
verifyVisible date_from_year
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/edit/2
click recording_enabled
verifyNotChecked recording_enabled
clickAndWait //div[@id='confirm_without_message']/input
assertTextPresent User's settings succesfully changed: Test User #1
open /billing/users/edit/3
click id=recording_enabled
assertValue id=recording_enabled on
clickAndWait css=#confirm_without_message > input[name="commit"]
assertTextPresent User's settings succesfully changed: Test Reseller
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/personal_details
verifyElementNotPresent recording_enabled
verifyElementNotPresent user_recordings_email
open /billing/devices/user_device_edit/2
verifyElementNotPresent device[recording_email]
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/edit/5
verifyElementPresent recording_enabled
verifyElementPresent user_recordings_email
click recording_enabled
click recording_forced_enabled
type user_recording_hdd_quota 10
type user_recordings_email test@emai.com
clickAndWait //div[@id='confirm_without_message']/input
open /billing/users/edit/5
verifyChecked recording_enabled
verifyChecked recording_forced_enabled
verifyValue user_recording_hdd_quota 10.0000
verifyTextPresent Mb (425.2578 Kb or 4.1529% Taken)
open /billing/devices/device_edit/7
verifyElementPresent device[recording_email]
click device[record_forced]_1
waitForValue device[record_forced]_1 on
click device[recording_to_email]_1
waitForValue device[recording_to_email]_1 on
type device[recording_email] test@email.com
click device[recording_keep]_1
waitForValue device[recording_keep]_1 on
type device_secret 1012323232323
clickAndWait commit
open /billing/devices/device_edit/7
verifyChecked device[record_forced]_1
verifyChecked device[recording_to_email]_1
verifyValue device[recording_email] test@email.com
verifyChecked device[recording_keep]_1
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/recordings/recordings
select date_from_year label=2009
select date_from_month label=January
select date_from_day label=1
select date_till_year label=2009
select date_till_month label=January
select date_till_day label=2
select device_id label=All
clickAndWait commit
clickAndWait //a[@id='rec_delete_link_5']/img
assertConfirmation Are you sure?
clickAndWait commit
click link=Search
select date_from_month label=January
select date_from_day label=1
clickAndWait commit
clickAndWait //a[@id='rec_delete_link_4']/img
assertConfirmation Are you sure?
verifyNotText notice Don't be so smart...
verifyTextPresent Recording deleted
open /billing/recordings/recordings
verifyElementNotPresent //a[@id='rec_delete_link_8']/img
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/recordings/list_recordings
click link=Search
select date_from_year label=2009
select date_from_month label=January
select date_from_day label=1
select date_till_year label=2009
select date_till_month label=January
select date_till_day label=2
clickAndWait commit
verifyTextPresent 2009-01-02 00:00:02
verifyTextPresent 2009-01-01 00:00:04
type s_source 101
clickAndWait commit
verifyTextPresent 2009-01-01 00:00:04
verifyTextNotPresent 2009-01-02 00:00:02
type s_source
type s_destination 37063042438
clickAndWait commit
verifyTextPresent 2009-01-02 00:00:02
verifyTextNotPresent 2009-01-01 00:00:04
clickAndWait //img[@alt='Delete']
assertConfirmation Are you sure?
verifyNotText notice Don't be so smart...
verifyTextPresent Recording deleted
verifyTextNotPresent INTERNAL ERROR
open /billing/recordings/recordings
verifyElementNotPresent //a[@id='rec_delete_link_8']/img
open /billing/recordings/list_recordings
clickAndWait //img[@alt='Delete']
assertConfirmation Are you sure?
verifyTextPresent Recording deleted
open /billing/recordings/list_recordings
verifyTextNotPresent 2009-01-01 00:00:04
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/recordings/recordings
verifyTextPresent You are not authorized to view this page
open /billing/recordings/destroy_recording/7
verifyTextPresent smart
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/recordings/recordings
verifyTextPresent You are not authorized to view this page
open /billing/recordings/destroy_recording/7
verifyTextPresent smart
open /billing/recordings/list_users
check recording_enabled_5
clickAndWait //input[@name='commit' and @value='Update']
verifyTextPresent Users updated
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/recordings/list_users
check recording_enabled_2
clickAndWait //input[@name='commit' and @value='Update']
verifyTextPresent Users updated
open /billing/devices/devices_all
open /billing/devices/device_edit/4
check device[record_forced]_1
check device[recording_to_email]_1
check device[recording_keep]_1
type device[recording_email] example@example.com
clickAndWait commit
verifyTextPresent Device's settings updated
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/devices/user_devices
open /billing/devices/user_device_edit/4
check device[record]_0
check device[recording_to_email]_0
check device[recording_keep]_0
clickAndWait commit
verifyTextPresent Device's settings updated
open /billing/recordings/setup
verifyTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/recordings/setup
verifyChecked 4
open /billing/users/list
clickAndWait recordings_link_2
click link=Search
select date_from_year label=2009
select date_from_month label=January
select date_from_day label=1
select date_till_year label=2009
select date_till_month label=January
select date_till_day label=2
clickAndWait commit
verifyText rec_src_6 37046246362
verifyText rec_src_1 101
verifyText rec_src_2 101
open /billing/users/edit/2
verifyTextPresent Mb (1.3020 Mb or 26.0407% Taken)
type user_recording_hdd_quota 0
verifyTextPresent Mb (1.3020 Mb Taken)
type user_recording_hdd_quota 5
verifyTextPresent Mb (1.3020 Mb or 26.0407% Taken)
open /billing/recordings/recordings
verifyElementPresent rec_play_link_6
verifyText rec_status_3 Recording failed
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
open /billing/recordings/list_recordings
select date_from_year label=2010
select date_from_month label=February
select date_from_day label=18
select date_till_year label=2010
select date_till_month label=February
select date_till_day label=18
clickAndWait commit
verifyText calldate_7 2010-02-18 00:00:01
verifyText billsec_7 00:01:28
open /billing/users/personal_details
assertTextPresent 10.0000 Mb (0.4153 Mb or 4.1529 % Taken)
verifyValue user_recordings_email test@emai.com