settings
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
clickAndWait company_logo
verifyElementPresent //a[@title='KolmiSoft']
open /billing/test/load_delta_sql/acc_groups
waitForElementPresent //body
open /billing/functions/settings
click //div[@name='visual']
waitForTextPresent Hide Quick Stats in Start page:
waitForElementPresent hide_quick_stats
verifyValue id=hide_quick_stats off
click hide_quick_stats
assertChecked hide_quick_stats
clickAndWait commit
verifyTextPresent Settings saved
open /billing/callc/main
waitForTextNotPresent This month:
verifyTextPresent Quick stats
open /billing/functions/settings
waitForElementPresent hide_quick_stats
click hide_quick_stats
assertNotChecked hide_quick_stats
clickAndWait commit
waitForTextPresent Settings saved
open /billing/callc/main
waitForTextPresent This month:
verifyTextPresent Quick stats
open /billing/functions/settings
verifyValue hide_help_banner off
click hide_help_banner
verifyText //img[@alt='Help_banner']
verifyTextNotPresent //div[@id='page_title_icon']/a/span
clickAndWait commit
verifyTextPresent Settings saved
verifyValue hide_help_banner on
verifyTextNotPresent //img[@alt='Help_banner']
verifyText //div[@id='page_title_icon']/a/span
open /billing/functions/settings
uncheck show_rates_for_users
clickAndWait commit
verifyTextPresent Settings saved
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/tariffs/user_rates
verifyTextPresent Don't be so smart...
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/functions/settings
check show_rates_for_users
clickAndWait commit
verifyTextPresent Settings saved
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/tariffs/user_rates
verifyTextNotPresent Don't be so smart...
verifyTextNotPresent INTERNAL ERROR
verifyTextPresent Currency
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/functions/settings
type device_range_min 4
type device_range_max 10
clickAndWait commit
verifyTextPresent Settings saved
type device_range_min 10
type device_range_max 4
clickAndWait commit
verifyTextPresent Device Range interval is not valid
open /billing/functions/settings_logo
type logo /home/mor/selenium/files/pics/admin_logo.png
clickAndWait commit
verifyTextPresent Logo uploaded
verifyText //img[@alt='Admin_logo']
open /billing/functions/settings
type company ADMIN
type company_email ADMIN
type version ADMIN
type copyright_title ADMIN
type admin_browser_title ADMIN
type frontpage_text ADMIN
clickAndWait commit
verifyTextPresent Settings saved
verifyValue company ADMIN
verifyValue company_email ADMIN
verifyValue version ADMIN
verifyValue copyright_title ADMIN
verifyValue admin_browser_title ADMIN
verifyValue frontpage_text ADMIN
verifyText //div[@id='footerbox']/div[1] ADMIN ADMIN
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/functions/reseller_settings_logo
type logo /home/mor/selenium/files/pics/reseller_logo.jpg
clickAndWait commit
verifyTextPresent Logo uploaded
verifyText //img[@alt='Logo_3']
open /billing/functions/reseller_settings
type reseller_company reseller
type reseller_company_email reseller
type reseller_version reseller
type reseller_copyright_title reseller
type reseller_admin_browser_title reseller
type frontpage_text reseller
check registration_enabled
check show_logo_on_register_page
clickAndWait commit
verifyTextPresent Settings saved
verifyValue reseller_company reseller
verifyValue reseller_company_email reseller
verifyValue reseller_version reseller
verifyValue reseller_copyright_title reseller
verifyValue reseller_admin_browser_title reseller
verifyChecked registration_enabled
verifyChecked show_logo_on_register_page
verifyTextPresent reseller
open /billing/callc/logout
open /billing/callc/signup_start/qg2audn8qa
verifyTextPresent reseller reseller
verifyText //img[@alt='Logo_3']
open /billing/callc/logout
clickAndWait link=here
verifyTextPresent ADMIN ADMIN
verifyText //img[@alt='Admin_logo']
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
verifyTextPresent ADMIN ADMIN
verifyText //img[@alt='Admin_logo']
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
verifyTextPresent reseller reseller
verifyText //img[@alt='Logo_3']
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/functions/settings
uncheck show_logo_on_register_page
clickAndWait commit
verifyTextPresent Settings saved
open /billing/callc/logout
verifyTextNotPresent //img[@alt='Admin_logo']
verifyTextNotPresent ADMIN ADMIN
clickAndWait link=here
verifyTextNotPresent ADMIN ADMIN
verifyTextNotPresent //img[@alt='Admin_logo']
open /billing/callc/signup_start/qg2audn8qa
verifyTextNotPresent ADMIN ADMIN
verifyTextNotPresent //img[@alt='Admin_logo']
verifyText //img[@alt='Logo_3']
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
verifyTextPresent ADMIN ADMIN
verifyText //img[@alt='Admin_logo']
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
verifyTextPresent reseller reseller
verifyText //img[@alt='Logo_3']
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/functions/settings_payments
click vouchers_enabled
check paypal_enabled
type paypal_email tetstt@testew.ocr
check webmoney_enabled
check linkpoint_enabled
check cyberplat_enabled
check ouroboros_enabled
clickAndWait commit
verifyTextPresent Settings saved
verifyValue vouchers_enabled on
verifyValue paypal_enabled on
verifyValue webmoney_enabled on
verifyValue linkpoint_enabled on
verifyValue cyberplat_enabled on
verifyValue ouroboros_enabled on
open /billing/callc/main
verifyText //img[@alt='Paypal_logo']
verifyText //img[@alt='Webmoney_logo']
verifyText //a[contains(@href, '/billing/payments/linkpoint')]
verifyText //img[@alt='Cyberplat_logo']
verifyText //img[@alt='Ouroboros_logo']
verifyText //img[@alt='Vouchers_logo']
open /billing/users/edit/3
check cyberplat_active
clickAndWait //div[@id='confirm_without_message']/input
verifyTextPresent User's settings suc
open /billing/users/edit/2
check cyberplat_active
clickAndWait //div[@id='confirm_without_message']/input
verifyTextPresent User's setting
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
verifyText //img[@alt='Paypal_logo']
verifyText //img[@alt='Webmoney_logo']
verifyText //img[@alt='Linkpoint_logo']
verifyText //img[@alt='Cyberplat_logo']
verifyText //img[@alt='Ouroboros_logo']
verifyText //img[@alt='Vouchers_logo']
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
verifyText //img[@alt='Paypal_logo']
verifyText //img[@alt='Webmoney_logo']
verifyText //img[@alt='Linkpoint_logo']
verifyText //img[@alt='Cyberplat_logo']
verifyText //img[@alt='Ouroboros_logo']
verifyText //img[@alt='Vouchers_logo']
open /billing/functions/reseller_settings_payments
check reseller_paypal_enabled
type reseller_paypal_email resel_test_@ooo.ort
type reseller_paypal_default_amount 12
type reseller_paypal_min_amount 12
check reseller_webmoney_enabled
type reseller_webmoney_purse 98
type reseller_webmoney_default_amount 65
type reseller_webmoney_min_amount 54
clickAndWait commit
verifyTextPresent Settings saved
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
verifyText //img[@alt='Paypal_logo']
verifyText //img[@alt='Webmoney_logo']
verifyText //img[@alt='Logo_3']
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/functions/settings
click //div[@name='emails']
check email_sending_enabled
clickAndWait commit
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/functions/reseller_settings
click //div[@name='emails']
type email_password bad_pass
verifyVisible email_message
type email_password goodpass
verifyNotVisible email_message
verifyTextPresent Test email will be sent to: test_reseller@email.test
open /billing/users/personal_details
verifyValue address_email test_reseller@email.test
type address_email
clickAndWait commit
verifyTextPresent Personal details changed
open /billing/functions/reseller_settings
click //div[@name='emails']
verifyTextPresent Cannot send test email because your(admin) email address is empty
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/functions/reseller_settings
click //div[@name='emails']
verifyTextPresent Cannot send test email because your(admin) email address is empty
open /billing/users/personal_details
verifyValue address_email
type address_email admin_test@email.test
clickAndWait commit
verifyTextPresent Personal details changed
open /billing/functions/reseller_settings
click //div[@name='emails']
type email_password bad_pass
verifyVisible email_message
type email_password goodpass
verifyNotVisible email_message
verifyTextPresent Test email will be sent to: admin_test@email.test
open /billing/users/list
clickAndWait link=Add new
type user_username invoice_reseller
type password_password invoice_reseller1
select user_usertype label=reseller
clickAndWait commit
open /billing/callc/logout
type login_username invoice_reseller
type login_psw invoice_reseller1
clickAndWait commit
open /billing/functions/reseller_settings
verifyValue invoice_address_format_1 off
verifyValue invoice_address_format_2 off
type invoice_number_start 2
type invoice_number_length 3
click invoice_number_type_1
check invoice_show_calls_in_detailed
check invoice_show_balance_line
type invoice_address1 invoice_reseller
type invoice_address2 invoice_reseller
type invoice_address3 invoice_reseller
type invoice_address4 invoice_reseller
type invoice_bank_details_line1 invoice_reseller
type invoice_bank_details_line2 invoice_reseller
type invoice_bank_details_line3 invoice_reseller
type invoice_bank_details_line4 invoice_reseller
type invoice_bank_details_line5 invoice_reseller
type invoice_balance_line invoice_reseller
type invoice_end_title invoice_reseller
clickAndWait commit
verifyTextPresent Settings saved
verifyValue invoice_address_format_2 on
verifyValue invoice_number_start 2
verifyValue invoice_number_length 3
verifyValue invoice_show_calls_in_detailed on
verifyValue invoice_show_balance_line on
verifyValue invoice_address1 invoice_reseller
verifyValue invoice_address2 invoice_reseller
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/functions/settings
verifyValue csv_file_size 0
type csv_file_size 200
clickAndWait commit
verifyTextPresent Settings saved
verifyValue csv_file_size 200
open /billing/resellers/settings
verifyValue show_hgc_for_resellers off
check show_hgc_for_resellers
clickAndWait commit
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/stats/last_calls_stats
select date_from_year label=2007
clickAndWait commit
selectWindow null
verifyText disposition_27 ANSWERED (16)
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/resellers/settings
verifyValue show_hgc_for_resellers on
uncheck show_hgc_for_resellers
clickAndWait commit
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/stats/last_calls_stats
select date_from_year label=2007
clickAndWait commit
verifyTextPresent ANSWERED
verifyTextNotPresent ANSWERED (16)
clickAndWait company_logo
verifyElementPresent //a[@title='reseller']
open /billing/callc/logout
verifyText link=here here
clickAndWait link=here
storeValue id iiii
open /billing/callc/login
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/functions/settings
click //div[@name='registration']
verifyValue hide_registration_link off
check hide_registration_link
clickAndWait commit
open /billing/callc/logout
verifyElementNotPresent link=here
open /billing/callc/signup_start/${iiii}
verifyElementPresent address
verifyElementPresent first_name
open /billing/callc/login
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/currencies/currencies_change_default/1?ok=1&title=Enable
open /billing/users/list
verifyTextPresent Balance(USD)
open /billing/currencies/currencies_change_default/2?ok=1&title=Enable
open /billing/users/list
verifyTextPresent Balance(EUR)
open /billing/users/edit/0
click user_postpaid_1
verifyVisible credit-row
click user_postpaid_2
verifyNotVisible credit-row
clickAndWait //div[@id='confirm_without_message']/input
open /billing/users/edit/0
verifyNotVisible credit-row
open /billing/users/edit/0
click user_postpaid_1
verifyVisible credit-row
clickAndWait //div[@id='confirm_without_message']/input
open /billing/users/edit/0
verifyVisible credit-row
open /billing/permissions/list?group_type=accountant
type name accountant
clickAndWait //input[@type='image']
open /billing/permissions/edit/13?group_type=accountant
click callingcard_pin_2
click callingcard_manage_2
click see_financial_data_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 device_manage_2
click manage_dids_opt_1_2
click invoices_manage_2
click payments_manage_2
click services_manage_2
click manage_subscriptions_opt_1_2
click tariff_manage_2
click vouchers_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_6_2
click user_create_opt_7_2
click user_create_2
click user_create_opt_5_2
click user_manage_2
clickAndWait commit
open /billing/users/edit/4
select id=accountant_type_select label=accountant
clickAndWait //div[@id='confirm_without_message']/input
waitForTextPresent User's settings succesfully changed: Test Accountant
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
open /billing/users/edit/2
click user_postpaid_1
verifyVisible credit-row
click user_postpaid_2
verifyNotVisible credit-row
clickAndWait //div[@id='confirm_without_message']/input
open /billing/users/edit/2
verifyNotVisible credit-row
open /billing/users/edit/2
click user_postpaid_1
verifyVisible credit-row
clickAndWait //div[@id='confirm_without_message']/input
open /billing/users/edit/2
verifyVisible credit-row
open /billing/callc/logout
open /billing/callc/login/qg2audn8qa
verifyText link=here here
clickAndWait link=here
verifyTextPresent Sign up
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/functions/reseller_settings
uncheck registration_enabled
uncheck show_logo_on_register_page
clickAndWait commit
open /billing/callc/logout
open /billing/callc/login/qg2audn8qa
verifyElementNotPresent link=here
open /billing/callc/signup_start/qg2audn8qa
verifyTextPresent Don't be so smart...