manage_device2
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/devices/device_edit/5
verifyChecked dynamic_check
verifyNotEditable host
verifyNotEditable port
click dynamic_check
verifyEditable host
verifyEditable port
type host 127.0.0.1
type port 4569
type grace_time 14
type device_secret 12345678
click id=ip_authentication
waitForValue id=ip_authentication on
clickAndWait commit
verifyTextPresent settings updated
open /billing/devices/device_edit/5
verifyNotChecked dynamic_check
verifyEditable host
verifyEditable port
check dynamic_check
verifyValue grace_time 14
clickAndWait commit
open /billing/devices/device_edit/5
click device[device_type]_h323
clickAndWait commit
open /billing/devices/device_edit/5
verifyValue device[tell_time]_0 on
click device[tell_time]_1
verifyValue device[tell_time]_1 on
verifyValue device[tell_time]_0 off
clickAndWait commit
open /billing/devices/device_edit/5
verifyValue device[tell_time]_0 off
verifyValue device[tell_time]_1 on
open /billing/devices/create?user_id=5
verifyTextPresent Don't be so smart...
open /billing/devices/device_edit/4
verifyValue device[enable_mwi]_0 on
verifyValue device[enable_mwi]_1 off
click device[enable_mwi]_1
clickAndWait commit
clickAndWait //a[@id='edit_link_4']/img
verifyValue device[enable_mwi]_1 on
clickAndWait link=Device details
verifyText mailbox_value 1002@default
verifyText enable_mwi_value 1
open /billing/devices/device_edit/4
click device[enable_mwi]_0
clickAndWait commit
clickAndWait //a[@id='edit_link_4']/img
assertElementPresent device[enable_mwi]_0
mouseOver device[enable_mwi]_0
waitForElementPresent WzBoDyI
mouseOut device[enable_mwi]_0
waitForElementNotPresent WzBoDyI
verifyValue device[enable_mwi]_0 on
verifyValue device[enable_mwi]_1 off
clickAndWait link=Device details
verifyTextNotPresent mailbox 1002@default
verifyText mailbox_value
verifyText enable_mwi_value 0
open /billing/devices/device_edit/4
click dynamic_check
uncheck dynamic_check
verifyEditable ip_authentication
type host
click ip_authentication
check ip_authentication
clickAndWait commit
waitForTextPresent You must specify proper host name in case IP authentication is used
click dynamic_check
uncheck dynamic_check
verifyEditable ip_authentication
type host 127.0.0.1
verifyEditable ip_authentication
click ip_authentication
check ip_authentication
clickAndWait commit
verifyTextPresent Device's settings updated
open /billing/devices/device_update?487999999
verifyTextPresent Device not found
open /billing/devices/device_edit/2
click css=#item_1 input
check css=#item_1 input
click css=#item_2 input
check css=#item_2 input
waitForValue codec[alaw] on
waitForValue codec[ulaw] on
clickAndWait id=ssettings_menu51
click id=jsettings_menu51
clickAndWait css=img[alt="Device"]
clickAndWait link=Add new device
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=0
type id=device_description testdevice1
clickAndWait commit
click id=dynamic_check
clickAndWait commit
verifyChecked ip_authentication 1
open billing/devices/new?return_to_action=list&return_to_controller=users&user_id=0
type id=device_description testdevice1
clickAndWait commit
click id=dynamic_check
click id=ip_authentication
verifyTextNotPresent Registration will expire: Never