monitorings
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/monitorings
click id=bellow_monitoringamount
type amount_bellow 33
waitForTextPresent will be less than 33 USD
click will_be_blocked
click will_be_sent
clickAndWait commit
verifyTextPresent Monitoring created successfully. Applied to all users.
verifyText css=#monit-1 td.period 30 minutes
verifyText css=#monit-1 td.amount 33.0
verifyElementPresent css=#monit-1 td.block img[title="check"]
verifyElementPresent css=#monit-1 td.email img[title="check"]
verifyText //tr[@id='monit-1']/td[3] Drops bellow
open /billing/monitorings/for_user/2
verifyText css=#monit-1 td.period 30 minutes
verifyText css=#monit-1 td.amount 33.0
verifyElementPresent css=#monit-1 td.block img[title="check"]
verifyElementPresent css=#monit-1 td.email img[title="check"]
open /billing/monitorings/for_user/3
verifyText css=#monit-1 td.period 30 minutes
verifyText css=#monit-1 td.amount 33.0
verifyElementPresent css=#monit-1 td.block img[title="check"]
verifyElementPresent css=#monit-1 td.email img[title="check"]
open /billing/monitorings/for_user/4
verifyText css=#monit-1 td.period 30 minutes
verifyText css=#monit-1 td.amount 33.0
verifyElementPresent css=#monit-1 td.block img[title="check"]
verifyElementPresent css=#monit-1 td.email img[title="check"]
open /billing/monitorings/for_user/5
waitForTextPresent User not found
open /billing/monitorings/for_user/0
verifyText css=#monit-1 td.period 30 minutes
verifyText css=#monit-1 td.amount 33.0
verifyElementPresent css=#monit-1 td.block img[title="check"]
verifyElementPresent css=#monit-1 td.email img[title="check"]
click new
type amount_bellow 33
click will_be_blocked
click id=bellow_monitoringamount
clickAndWait commit
waitForTextPresent Monitoring created successfully. Applied to 1 users.
open /billing/monitorings/for_user/4
click new
type amount_bellow 33
click will_be_blocked
click id=bellow_monitoringamount
clickAndWait commit
clickAndWait delete_link_2
assertConfirmation Are you sure that you want to remove this monitoring? It will be removed for admin,accountant users.
verifyElementNotPresent css=#monit-2 td.period
verifyElementNotPresent css=#monit-2 td.amount
verifyElementNotPresent css=#monit-2 td.block img[title="check"]
verifyElementNotPresent css=#monit-2 td.email img[title="cross"]
open /billing/monitorings/for_user/0
verifyText css=#monit-2 td.period 30 minutes
verifyText css=#monit-2 td.amount 33.0
verifyElementPresent css=#monit-2 td.block img[title="check"]
verifyElementPresent css=#monit-2 td.email img[title="cross"]
open /billing/monitorings
verifyText css=#monit-2 td.period 30 minutes
verifyText css=#monit-2 td.amount 33.0
verifyElementPresent css=#monit-2 td.block img[title="check"]
verifyElementPresent css=#monit-2 td.email img[title="cross"]
clickAndWait //img[@alt='Delete']
assertConfirmation Are you sure?
verifyTextNotPresent css=#monit-1 td.period 30 minutes
verifyTextNotPresent css=#monit-1 td.amount 33.0
verifyElementNotPresent css=#monit-1 td.block img[title="check"]
verifyElementNotPresent css=#monit-1 td.email img[title="check"]
open /billing/monitorings/for_user/4
verifyTextNotPresent css=#monit-1 td.period 30 minutes
verifyTextNotPresent css=#monit-1 td.amount 33.0
verifyElementNotPresent css=#monit-1 td.block img[title="check"]
verifyElementNotPresent css=#monit-1 td.email img[title="check"]
open /billing/monitorings
click id=bellow_monitoringamount
clickAndWait commit
verifyTextPresent Amount must be greater than zero
click monitoring_period_in_past_type_days
select monitoring_period_in_past_days label=12
verifyValue id=bellow_monitoringamount on
click will_be_blocked
click will_be_sent
click monitoring_user_type_prepaid
clickAndWait commit
verifyChecked monitoring_period_in_past_type_days
verifySelectedLabel monitoring_period_in_past_days 12
verifyChecked will_be_blocked
verifyChecked will_be_sent
verifyChecked monitoring_user_type_prepaid
open /billing/users/new
click user_postpaid_2
type user_username prepaid_user
type password_password prepaid
clickAndWait commit
open /billing/monitorings
click id=bellow_monitoringamount
type amount_bellow 66
click will_be_blocked
click monitoring_user_type_prepaid
clickAndWait commit
open /billing/monitorings/for_user/6
verifyText css=#monit-3 td.period 30 minutes
verifyText css=#monit-3 td.amount 66.0
verifyElementPresent css=#monit-3 td.block img[title="check"]
verifyElementPresent css=#monit-3 td.email img[title="cross"]
open /billing/monitorings/for_user/4
verifyElementNotPresent css=#monit-3 td.period
verifyElementNotPresent css=#monit-3 td.amount
verifyElementNotPresent css=#monit-3 td.block img[title="cross"]
verifyElementNotPresent css=#monit-3 td.email img[title="cross"]
open /billing/monitorings
type amount_bellow 99
click id=bellow_monitoringamount
click will_be_blocked
click monitoring_user_type_postpaid
clickAndWait commit
open /billing/monitorings/for_user/4
verifyText css=#monit-4 td.period 30 minutes
verifyText css=#monit-4 td.amount 99.0
verifyElementPresent css=#monit-4 td.block img[title="check"]
verifyElementPresent css=#monit-4 td.email img[title="cross"]
open /billing/monitorings/for_user/6
verifyElementNotPresent css=#monit-4 td.period
verifyElementNotPresent css=#monit-4 td.amount
verifyElementNotPresent css=#monit-4 td.block img[title="cross"]
verifyElementNotPresent css=#monit-4 td.email img[title="cross"]
open /billing/monitorings/for_user/6
click new
waitForVisible new_entry
click monitoring_period_in_past_type_hours
type amount_bellow 111
click will_be_sent
click id=bellow_monitoringamount
click will_be_blocked
clickAndWait commit
verifyText css=#monit-5 td.period 1 Hour(s)
verifyText css=#monit-5 td.amount 111.0
verifyElementPresent css=#monit-5 td.block img[title="check"]
verifyElementPresent css=#monit-5 td.email img[title="check"]
open /billing/monitorings/for_user/5
verifyElementNotPresent css=#monit-5 td.period
verifyElementNotPresent css=#monit-5 td.amount
verifyElementNotPresent css=#monit-5 td.block img[title="cross"]
verifyElementNotPresent css=#monit-5 td.email img[title="cross"]
open /billing/monitorings
verifyText css=#monit-5 td.period 1 Hour(s)
verifyText css=#monit-5 td.amount 111.0
verifyElementPresent css=#monit-5 td.block img[title="check"]
verifyElementPresent css=#monit-5 td.email img[title="check"]
open /billing/monitorings
type amount_bellow 222
click id=bellow_monitoringamount
clickAndWait commit
verifyTextPresent Monitoring must either be blocking or notifying or both
open /billing/monitorings/edit/5
type amount_bellow 222
verifyValue id=bellow_monitoringamount on
clickAndWait commit
verifyTextPresent Monitoring updated successfully. Applied to 1 users.
verifyText css=#monit-5 td.period 1 Hour(s)
verifyText css=#monit-5 td.amount 222.0
verifyElementPresent css=#monit-5 td.block img[title="check"]
verifyElementPresent css=#monit-5 td.email img[title="check"]
open /billing/monitorings/for_user/5
verifyElementNotPresent css=#monit-5 td.period
verifyElementNotPresent css=#monit-5 td.amount
verifyElementNotPresent css=#monit-5 td.block img[title="cross"]
verifyElementNotPresent css=#monit-5 td.email img[title="cross"]
open /billing/monitorings/edit/4
type amount_bellow 123
click will_be_blocked
verifyValue id=bellow_monitoringamount on
clickAndWait commit
verifyTextPresent Monitoring updated successfully. Applied to postpaid users.
verifyText css=#monit-4 td.period 30 minutes
verifyText css=#monit-4 td.amount 123.0
verifyElementPresent css=#monit-4 td.block img[title="check"]
verifyElementPresent css=#monit-4 td.email img[title="cross"]
open /billing/monitorings
verifyElementPresent css=#monit-2 td.active img[title="check"]
verifyElementNotPresent css=#monit-2 td.active img[title="cross"]
open /billing/monitorings/update/2?monitoring%5Bactive%5D=false
verifyElementPresent css=#monit-2 td.active img[title="cross"]
verifyElementNotPresent css=#monit-2 td.active img[title="check"]
open /billing/stats/action_log
verifyTextPresent Monitoring created
verifyTextPresent Monitoring updated
verifyTextPresent Monitoring destroyed
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
open /billing/monitorings
verifyTextPresent You are not authorized to view this page
open /billing/monitorings/edit/3
waitForTextPresent You are not authorized to view this page
open /billing/monitorings/for_user/4
verifyTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/permissions/list?group_type=accountant
type name acc
clickAndWait //input[@type='image']
open /billing/permissions/edit/1?group_type=accountant
click monitorings_manage_1
click id=see_financial_data_2
click id=device_edit_opt_1_2
click id=device_edit_opt_2_2
click id=device_edit_opt_3_2
click id=device_edit_opt_4_2
click id=device_pin_2
click id=device_password_2
click id=voicemail_password_2
click id=device_create_2
click id=device_manage_2
click id=manage_dids_opt_1_2
click id=invoices_manage_2
click id=payments_manage_2
click id=services_manage_2
click id=tariff_manage_2
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
clickAndWait commit
open /billing/users/edit/4
clickAndWait //div[@id='confirm_without_message']/input
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
open /billing/monitorings
verifyTextNotPresent You are not authorized to view this page
open /billing/monitorings/edit/3
verifyTextPresent You do not have rights to edit this
open /billing/monitorings/for_user/4
verifyTextNotPresent You are not authorized to view this page
clickAndWait //img[@alt='Delete']
assertConfirmation Are you sure that you want to remove this monitoring? It will be removed for postpaid users.
verifyTextPresent You do not have rights to edit this
open /billing/monitorings/update/3?monitoring%5Bactive%5D=false
verifyTextPresent You do not have rights to edit this
open /billing/monitorings
type amount_bellow 33
clickAndWait commit
verifyTextPresent You do not have rights to edit this
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/permissions/edit/1?group_type=accountant
click monitorings_manage_2
clickAndWait commit
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
open /billing/monitorings
waitForTextPresent Monitoring call price sum over past period
verifyTextNotPresent You are not authorized to view this page
open /billing/monitorings/edit/3
waitForTextPresent Edit monitoring
verifyTextNotPresent You do not have rights to edit this
open /billing/monitorings/for_user/4
waitForTextPresent Monitoring call price sum over past period
verifyTextNotPresent You are not authorized to view this page
clickAndWait //img[@alt='Delete']
assertConfirmation Are you sure that you want to remove this monitoring? It will be removed for postpaid users.
verifyTextPresent Monitoring deleted successfully
open /billing/monitorings/update/3?monitoring%5Bactive%5D=false
verifyTextPresent Monitoring updated successfully. Applied to prepaid users.
open /billing/monitorings
verifyValue id=bellow_monitoringamount off
click id=bellow_monitoringamount
click will_be_blocked
type amount_bellow 33
clickAndWait commit
verifyTextPresent Monitoring created successfully. Applied to all users.
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
open /billing/monitorings
verifyTextPresent You are not authorized to view this page
open /billing/monitorings/new
verifyTextPresent You are not authorized to view this page
open /billing/monitorings/edit/1
verifyTextPresent You are not authorized to view this page
open /billing/monitorings/for_user/1
verifyTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/monitorings
verifyTextPresent You are not authorized to view this page
open /billing/monitorings/new
verifyTextPresent You are not authorized to view this page
open /billing/monitorings/edit/1
verifyTextPresent You are not authorized to view this page
open /billing/monitorings/for_user/1
verifyTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/users/edit/3
click user_postpaid_2
clickAndWait //div[@id='confirm_without_message']/input
open /billing/monitorings
click will_be_blocked
click id=bellow_monitoringamount
type amount_bellow 123
click monitoring_user_type_prepaid
clickAndWait commit
verifyTextPresent Monitoring created successfully. Applied to prepaid users.
clickAndWait edit_link_7
type amount_bellow 33
click monitoring_user_type_all
clickAndWait commit
verifyTextPresent Such monitoring already exists, users were associated. Applied to all users.
verifyTextPresent 33.0
open /billing/monitorings/for_user/6
waitForTextPresent Monitoring call price sum over past period
clickAndWait //a[@id='edit_link_5']/img
verifyTextPresent Edit monitoring for user: prepaid_user
open /billing/monitorings/for_user/6
waitForTextPresent Monitoring call price sum over past period
click new
waitForElementPresent amount_bellow
click monitoring_period_in_past_type_hours
click monitoring_period_in_past_type_minutes
type amount_bellow 222
click id=bellow_monitoringamount
click will_be_blocked
click will_be_sent
clickAndWait commit
clickAndWait //a[@id='edit_link_8']/img
click monitoring_period_in_past_type_hours
clickAndWait commit
verifyTextPresent Such monitoring already exists, users were associated. Applied to 1 users.
open /billing/monitorings/edit/2
verifyTextPresent Edit monitoring for user: System Admin
open /billing/monitorings
clickAndWait css=#monit-8 > td.user_type > a
verifyValue user_username prepaid_user
open /billing/monitorings
click monitoring_user_type_single
click id=bellow_monitoringamount
select user_id label=prepaid_user
verifyTextPresent This monitoring will be applied to prepaid_user
click will_be_blocked
type amount_bellow 70
clickAndWait commit
clickAndWait css=#monit-9 > td.user_type > a
verifyValue user_username prepaid_user
waitForElementPresent ignore_global_monitorings
verifyValue ignore_global_monitorings off
check ignore_global_monitorings
waitForValue ignore_global_monitorings on
clickAndWait //div[@id='confirm_without_message']/input
open /billing/users/edit/6
waitForElementPresent ignore_global_monitorings
verifyValue ignore_global_monitorings on