warning_email
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/test/load_delta_sql/warning_email
open /billing/functions/settings
click //div[@name='emails']
click email_sending_enabled
clickAndWait commit
open /billing/users/list
clickAndWait //a[@id='edit_link_3']/img
type address_email
click warning_active
type user[warning_email_balance] 1000
clickAndWait //div[@id='confirm_without_message']/input
open /billing/users/list
clickAndWait //a[@id='edit_link_2']/img
click warning_active
type user[warning_email_balance] 10000
clickAndWait //div[@id='confirm_without_message']/input
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/users/edit/5
click warning_active
type user[warning_email_balance] 1000
clickAndWait //div[@id='confirm_without_message']/input
open /billing/callc/logout
open /billing/callc/hourly_actions
pause
verifyTextPresent Mission complete
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/stats/action_log
open /billing/users/edit/16
verifyElementPresent email_warning_sent_test
verifyValue email_warning_sent_test 1
click warning_active
type user[warning_email_balance] 56
clickAndWait //div[@id='confirm_without_message']/input
open /billing/users/edit/16
verifyElementPresent email_warning_sent_test
verifyValue email_warning_sent_test 0