chanspy
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=4
type id=device_description dev_acc
clickAndWait name=commit
clickAndWait name=commit
open /billing/test/load_delta_sql/active_call_accountant
open /billing/functions/settings
click css=#tabTabdhtmlgoodies_tabView1_10 > span
check id=show_active_calls_for_users
clickAndWait name=commit
open /billing/users/edit/4
select id=user[spy_device_id] label=SIP/1001
clickAndWait css=#confirm_without_message > input[name="commit"]
open /billing/stats/active_calls
waitForElementPresent css=img[alt="Sound"]
click css=img[alt="Sound"]
waitForPopUp new_window 30000
open /billing/users/edit/0
waitForTextPresent ChanSpy Device:
waitForElementPresent id=user[spy_device_id]
waitForText id=user[spy_device_id] Not selected IAX2/103
select id=user[spy_device_id] label=IAX2/103
mouseOver id=user[spy_device_id]
waitForTextPresent Allows listening Calls
mouseOut id=user[spy_device_id]
waitForTextNotPresent Allows listening Calls
clickAndWait css=#confirm_without_message > input[name="commit"]
verifySelected id=user[spy_device_id] IAX2/103
open /billing/stats/active_calls
click css=img[alt="Sound"]
waitForPopUp new_window 30000
open /billing/users/edit/2
waitForElementPresent id=user[spy_device_id]
select id=user[spy_device_id] label=FAX/102
clickAndWait css=#confirm_without_message > input[name="commit"]
open /billing/users/edit/3
waitForElementPresent id=user[spy_device_id]
select id=user[spy_device_id] label=IAX2/104
clickAndWait css=#confirm_without_message > input[name="commit"]
open /billing/devices/show_devices/4
clickAndWait link=Add new device
type id=device_description device_acc
clickAndWait name=commit
open /billing/users/edit/4
waitForElementPresent id=user[spy_device_id]
select id=user[spy_device_id] label=SIP/1001
clickAndWait css=#confirm_without_message > input[name="commit"]
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
open /billing/users/personal_details
waitForTextPresent ChanSpy Device:
waitForElementPresent id=user[spy_device_id]
verifySelected id=user[spy_device_id] FAX/102
select id=user[spy_device_id] label=IAX2/1002
clickAndWait name=commit
open /billing/users/personal_details
verifySelected id=user[spy_device_id] IAX2/1002
open /billing/stats/active_calls
waitForElementPresent css=img[alt="Sound"]
click css=img[alt="Sound"]
waitForPopUp new_window 30000
open /billing/functions/spy_channel/5?channel=SIP%2F10.219.62.200-c40daf10
waitForText css=td Don't be so smart...
open /billing/functions/spy_channel/2?channel=SIP%2F10.219.62.200-c40daf10
waitForText css=td Don't be so smart...
open /billing/functions/spy_channel/211?channel=SIP%2F10.219.62.201-c40daf10
waitForText css=td Don't be so smart...
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/users/personal_details
waitForTextPresent ChanSpy Device:
waitForElementPresent id=user[spy_device_id]
verifySelected id=user[spy_device_id] IAX2/104
click css=form > table > tbody > tr > td
select id=user[spy_device_id] label=IAX2/105
click css=option[value="7"]
clickAndWait name=commit
open /billing/stats/active_calls
waitForElementPresent css=img[alt="Sound"]
click css=img[alt="Sound"]
waitForPopUp new_window 30000
open /billing/functions/spy_channel/3?channel=SIP%2F10.219.62.200-c40daf10
waitForText css=td Don't be so smart...
open /billing/functions/spy_channel/2?channel=SIP%2F10.219.62.200-c40daf10
waitForText css=td Don't be so smart...
open /billing/functions/spy_channel/211?channel=SIP%2F10.219.62.201-c40daf10
waitForText css=td Don't be so smart...
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
open /billing/functions/spy_channel/3?channel=SIP%2F10.219.62.200-c40daf10
verifyTextNotPresent css=td Don't be so smart...
open /billing/functions/spy_channel/2?channel=SIP%2F10.219.62.200-c40daf10
verifyTextNotPresent css=td Don't be so smart...
open /billing/functions/spy_channel/5?channel=SIP%2F10.219.62.200-c40daf10
verifyTextNotPresent css=td Don't be so smart...
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
waitForTextPresent Succesfully logged in
open /billing/functions/settings
click css=#tabTabdhtmlgoodies_tabView1_9 > span
uncheck id=show_active_calls_for_users
clickAndWait name=commit
waitForTextPresent Settings saved
open /billing/users/edit/4
verifyTextPresent ChanSpy Device:
verifyElementPresent id=user[spy_device_id]
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyElementNotPresent id=sreseller_menu_addons1
verifyTextNotPresent Monitorings
verifyElementNotPresent id=sreseller_menu_addons2
open /billing/monitorings/settings
verifyTextNotPresent Monitorings
waitForTextPresent You are not authorized to view this page
open /billing/users/personal_details
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]
open /billing/stats/active_calls
waitForTextPresent You are not authorized to view this page
open /billing/users/edit/5
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
waitForTextPresent Succesfully logged in
verifyText id=saddons_menu18 Monitorings
verifyText id=saddons_menu19 Settings
open /billing/monitorings/settings
verifyTextPresent Chanspy is disabled globaly:
verifyText id=page_title Monitorings
verifyValue id=disable_chanspy off
check id=disable_chanspy
waitForValue id=disable_chanspy on
uncheck id=disable_chanspy
waitForValue id=disable_chanspy off
check id=disable_chanspy
waitForValue id=disable_chanspy on
clickAndWait name=commit
waitForTextPresent Monitorings settings were saved
verifyValue id=disable_chanspy on
uncheck id=disable_chanspy
waitForValue id=disable_chanspy off
clickAndWait name=commit
waitForTextPresent Monitorings settings were saved
verifyValue id=disable_chanspy off
click id=disable_chanspy
waitForValue id=disable_chanspy on
clickAndWait name=commit
waitForTextPresent Monitorings settings were saved
open /billing/users/edit/0
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]
open /billing/users/edit/2
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]
open /billing/users/edit/3
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]
open /billing/users/edit/4
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/users/edit/5
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
waitForTextPresent Succesfully logged in
open /billing/monitorings/settings
uncheck id=disable_chanspy
waitForValue id=disable_chanspy off
clickAndWait name=commit
waitForTextPresent Monitorings settings were saved
open /billing/permissions/list?group_type=accountant
type id=name acc
clickAndWait css=input[type="image"]
waitForTextPresent Group was created
open /billing/permissions/edit/1?group_type=accountant
click id=user_create_opt_1_2
click id=user_create_opt_2_2
click id=user_create_opt_3_2
click id=user_create_opt_4_2
click id=user_create_opt_5_2
click id=user_create_opt_6_2
click id=user_create_opt_7_2
click id=user_create_2
click id=user_manage_2
click id=monitorings_manage_2
click id=device_manage_2
clickAndWait name=commit
waitForTextPresent Group was updated
open /billing/users/edit/4
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: Test Accountant
open /billing/permissions/list?group_type=reseller
type id=name res
clickAndWait css=input[type="image"]
waitForTextPresent Group was created
open /billing/permissions/edit/2?group_type=reseller
click id=monitorings_2
clickAndWait name=commit
waitForTextPresent Group was updated
open /billing/users/edit/3
clickAndWait css=#confirm_without_message > input[name="commit"]
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyText id=sreseller_menu_addons1 Monitorings
verifyElementNotPresent id=sreseller_menu_addons2
open /billing/monitorings/settings
waitForTextPresent Don't be so smart...
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
waitForTextPresent Succesfully logged in
open /billing/functions/settings
click css=#tabTabdhtmlgoodies_tabView1_9 > span
click id=show_active_calls_for_users
waitForValue id=show_active_calls_for_users on
clickAndWait name=commit
waitForTextPresent Settings saved
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyText id=sreseller_menu_addons1 Monitorings
verifyElementNotPresent id=sreseller_menu_addons2
open /billing/monitorings/settings
waitForTextPresent Don't be so smart...
verifyElementNotPresent name=commit
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
verifyText link=Addons Addons
verifyText id=sacc_menu4 Monitorings
verifyText id=sacc_menu5 Settings
open /billing/monitorings/settings
verifyTextPresent Chanspy is disabled globaly:
verifyValue id=disable_chanspy off
verifyText id=page_title Monitorings
click id=disable_chanspy
waitForValue id=disable_chanspy on
clickAndWait name=commit
waitForTextPresent Monitorings settings were saved
waitForValue id=disable_chanspy on
uncheck id=disable_chanspy
waitForValue id=disable_chanspy off
clickAndWait name=commit
waitForTextPresent Monitorings settings were saved
verifyValue id=disable_chanspy off
open /billing/users/edit/0
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]
open /billing/users/edit/2
verifyTextPresent ChanSpy Device:
verifyElementPresent id=user[spy_device_id]
open /billing/users/edit/3
verifyTextPresent ChanSpy Device:
verifyElementPresent id=user[spy_device_id]
open /billing/monitorings/settings
click id=disable_chanspy
clickAndWait name=commit
waitForTextPresent Monitorings settings were saved
verifyValue id=disable_chanspy on
open /billing/users/edit/2
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]
open /billing/users/edit/3
verifyTextNotPresent ChanSpy Device:
verifyElementNotPresent id=user[spy_device_id]