default_user
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/functions/settings
click send_email_to_user_after_registration
click send_email_to_admin_after_registration
clickAndWait commit
open /billing/users/default_user
verifyElementNotPresent call_list_link_0
type password_length 3
select user_tariff_id label=Wholesale - Test Tariff for Users
type user_balance 2.2
type credit 10
click user_postpaid_2
type user_call_limit 10
click warning_email_active
type user[warning_email_balance] 5.5
click sound_file
select user_warning_balance_sound_file_id label=silence/silence9.wav
click i1
click i3
click i5
click cyberplat_active
type user_first_name kompanija
type user_last_name kompanija
type user_clientid kompanija
type user_agreement_number kompanija
type user_language busmenu
select user[taxation_country] label=Barbados
type user_vat_number 1234
type user_accounting_number 1234
type tax1_value 2.1
type address_address asd
type address_postcode asd
type address_city asd
type address_county asd
type address_state asd
select address[direction_id] label=Barbados
type address_phone asd
type address_mob_phone asd
type address_fax asd
type address_email default@example.com
verifyValue user[warning_email_hour]_-1 on
click user[warning_email_hour]_0
select date_user_warning_email_hour label=09
clickAndWait commit
verifyTextPresent Default User saved
open /billing/users/new
verifyValue user_usertype user
verifyValue user_lcr_id 1
verifyValue user_tariff_id 2
verifyValue user_balance 2.2
assertChecked unlimited
verifyNotVisible credit
assertChecked user_postpaid_2
assertChecked user_hidden_1
verifyValue user_call_limit 10
assertChecked warning_email_active
verifyValue user[warning_email_balance] 5.5000
assertChecked sound_file
verifySelectedLabel user_warning_balance_sound_file_id silence/silence9.wav
assertChecked user_generate_invoice
assertChecked i1
assertChecked i3
assertChecked i5
assertChecked show_zero_calls
assertChecked cyberplat_active
verifyValue user_first_name kompanija
verifyValue user_last_name kompanija
verifyValue user_clientid kompanija
verifyValue user_agreement_number 0000000004
verifyValue user_language busmenu
verifyValue user_vat_number 1234
verifyValue user_accounting_number 1234
verifyValue tax1_value 2.1
verifyValue address_address asd
verifyValue address_postcode asd
verifyValue address_city asd
verifyValue address_county asd
verifyValue address_state asd
verifyValue address_phone asd
verifyValue address_mob_phone asd
verifyValue address_fax asd
verifyValue address_email default@example.com
verifyValue user[taxation_country] 19
verifyValue user[warning_email_hour]_0 on
verifySelectedValue date_user_warning_email_hour 09
open /billing/functions/login_as_execute?user=3
open /billing/users/default_user
type password_length 3
type user_balance 2.2
type credit 10
click user_postpaid_2
type user_call_limit 10
click warning_email_active
type user[warning_email_balance] 5.5
click sound_file
select user_warning_balance_sound_file_id label=silence/silence9.wav
click i1
click i3
click i5
type user_first_name kompanija
type user_last_name kompanija
type user_clientid kompanija
type user_agreement_number kompanija
type user_language busmenu
select user[taxation_country] label=Barbados
type user_vat_number 1234
type user_accounting_number 1234
type tax1_value 2.1
type address_address asd
type address_postcode asd
type address_city asd
type address_county asd
type address_state asd
select address[direction_id] label=Barbados
type address_phone asd
type address_mob_phone asd
type address_fax asd
type address_email default@example.com
clickAndWait commit
verifyTextPresent Default User saved
open /billing/users/new
verifyValue user_usertype user
verifyValue user_balance 2.2
assertChecked unlimited
verifyNotVisible credit
assertChecked user_postpaid_2
verifyValue user_call_limit 10
assertChecked warning_email_active
verifyValue user[warning_email_balance] 5.5000
assertChecked sound_file
verifySelectedLabel user_warning_balance_sound_file_id silence/silence9.wav
assertChecked user_generate_invoice
assertChecked i1
assertChecked i3
assertChecked i5
assertChecked show_zero_calls
verifyValue user_first_name kompanija
verifyValue user_last_name kompanija
verifyValue user_clientid kompanija
verifyValue user_agreement_number 0000000004
verifyValue user_language busmenu
verifyValue user_vat_number 1234
verifyValue user_accounting_number 1234
verifyValue tax1_value 2.1
verifyValue address_address asd
verifyValue address_postcode asd
verifyValue address_city asd
verifyValue address_county asd
verifyValue address_state asd
verifyValue address_phone asd
verifyValue address_mob_phone asd
verifyValue address_fax asd
verifyValue address_email default@example.com
verifyValue user[taxation_country] 19
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/permissions/list?group_type=accountant
type name Test_accountant
clickAndWait //input[@type='image']
verifyTextPresent Group was created
clickAndWait //img[@alt='Edit']
verifyValue name Test_accountant
verifyTextPresent Callingcard
verifyTextPresent Device
verifyTextPresent DID
verifyTextPresent Subscription
verifyTextPresent Tariff
verifyTextPresent User
verifyTextPresent Disabled
verifyTextPresent Read
verifyTextPresent Write
click callingcard_pin_2
click callingcard_manage_2
click device_edit_opt_1_2
click device_edit_opt_2_2
click device_edit_opt_3_2
click device_edit_opt_4_2
click device_pin_2
click device_password_2
click voicemail_password_2
click device_create_2
click manage_dids_opt_1_2
click manage_subscriptions_opt_1_2
click tariff_manage_2
click user_create_opt_1_2
click user_create_opt_2_2
click user_create_opt_3_2
click user_create_opt_4_2
click user_create_opt_5_2
click user_create_opt_6_2
click user_create_opt_7_2
click user_create_2
click see_financial_data_2
click invoices_manage_2
click payments_manage_2
click services_manage_2
click user_manage_2
click vouchers_manage_2
click device_manage_2
clickAndWait commit
verifyTextPresent Group was updated
open /billing/users/edit/4
type address_email default@example.com
clickAndWait //div[@id='confirm_without_message']/input
verifyTextPresent User's settings succesfully changed: Test Accountant
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/new
verifyValue user_usertype user
verifyValue user_balance 2.2
assertChecked unlimited
verifyNotVisible credit
assertChecked user_postpaid_2
verifyValue user_call_limit 10
assertChecked warning_email_active
verifyValue user[warning_email_balance] 5.5000
assertChecked sound_file
verifySelectedLabel user_warning_balance_sound_file_id silence/silence9.wav
assertChecked user_generate_invoice
assertChecked i1
assertChecked i3
assertChecked i5
assertChecked show_zero_calls
assertChecked cyberplat_active
verifyValue user_first_name kompanija
verifyValue user_last_name kompanija
verifyValue user_clientid kompanija
verifyValue user_agreement_number 0000000004
verifyValue user_language busmenu
verifyValue user_vat_number 1234
verifyValue user_accounting_number 1234
verifyValue tax1_value 2.1
verifyValue address_address asd
verifyValue address_postcode asd
verifyValue address_city asd
verifyValue address_county asd
verifyValue address_state asd
verifyValue address_phone asd
verifyValue address_mob_phone asd
verifyValue address_fax asd
verifyValue address_email default@example.com
verifyValue user[taxation_country] 19
open /billing/callc/logout
clickAndWait link=here
type username !!!!
type password !!!!!!
type password2 !!!!!!
type first_name !!!!
type last_name !!!!
type email example@example.com
clickAndWait commit
waitForPageToLoad 100000
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/edit/6
verifyValue user_usertype user
verifyValue user_lcr_id 1
verifyValue user_tariff_id 2
verifyText user_balance_value 2.2000 USD
verifyNotVisible credit
assertChecked user_postpaid_2
assertChecked user_hidden_1
verifyValue user_call_limit 10
assertChecked warning_email_active
verifyValue user[warning_email_balance] 5.5000
assertChecked sound_file
verifySelectedLabel user_warning_balance_sound_file_id silence/silence9.wav
assertChecked user_generate_invoice
assertChecked i1
assertChecked i3
assertChecked i5
assertChecked show_zero_calls
assertChecked cyberplat_active
verifyValue user_first_name !!!!
verifyValue user_last_name !!!!
verifyValue user_clientid kompanija
verifyValue user_agreement_number 0000000004
verifyValue user_language busmenu
verifyValue user_vat_number 1234
verifyValue user_accounting_number 1234
verifyValue tax1_value 2.1
verifyValue address_address asd
verifyValue address_postcode asd
verifyValue address_city asd
verifyValue address_county asd
verifyValue address_state asd
verifyValue address_phone asd
verifyValue address_mob_phone asd
verifyValue address_fax asd
verifyValue address_email example@example.com
verifyValue user[taxation_country] 19
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/default_user
uncheck user_generate_invoice
clickAndWait commit
open /billing/callc/logout
clickAndWait link=here
type username !!!!!
type password !!!!!!
type password2 !!!!!!
type first_name !!!!
type last_name !!!!
type email example565@exampl454e.com
clickAndWait commit
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/edit/7
waitForTextPresent General
waitForElementPresent link=Manual
verifyNotChecked user_generate_invoice
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/users/default_user
verifyTextNotPresent notice You are not authorized to view this page
clickAndWait commit
verifyTextNotPresent notice You are not authorized to view this page
verifyTextNotPresent INTERNAL ERROR
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
open /billing/users/default_user
verifyTextPresent You are not authorized to view this page
open /billing/users/default_user_update
verifyTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
open /billing/users/default_user
verifyTextPresent You are not authorized to view this page
open /billing/users/default_user_update
verifyTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username
type login_psw
clickAndWait commit
open /billing/users/default_user
verifyTextPresent You are not authorized to view this page
open /billing/users/default_user_update
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/default_user
verifyElementPresent i7
verifyText user[warning_email_hour]_0
verifySelectedValue date_user_warning_email_hour 09
open /billing/test/fake_form?path_to_action=/billing/users/default_user_update
clickAndWait commit
verifyTextPresent Don't be so smart...