calling_cards
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/cardgroups/invoices
waitForTextPresent Action was not found
open /billing/functions/settings
click css=#tabTabdhtmlgoodies_tabView1_5 > span
type total_tax Total_tax
type tax1name First-tax
type tax2name Second-tax
type tax3name Third-tax
type tax4name Forth-tax
click tax2active
click tax3active
click tax4active
type tax1value 10
type tax2value 10
type tax3value 20
type tax4value 30
check compound_tax
clickAndWait commit
verifyTextPresent Settings saved
click tabTabdhtmlgoodies_tabView1_6
clickAndWait link=Apply to all Calling Cards
assertConfirmation Are you sure?
waitForTextPresent Taxes set
open /billing/cardgroups/list
verifyTextPresent Card groups
open /billing/cardgroups/new
type cardgroup_name !!!
type cardgroup_description !!!
type name=price_with_vat 4
type cardgroup_setup_fee 1.1
type cardgroup_daily_charge 1.1
type cardgroup_pin_length 5
type cardgroup_number_length 9
select date_from_year label=2008
select date_from_month label=June
select date_from_day label=6
select date_till_year label=2011
select date_till_month label=June
select date_till_day label=6
clickAndWait commit
verifyTextPresent Card group was successfully created
open /billing/cards/new?cg=3
waitForPageToLoad 30000
type start_number 123456789
type end_number 123456799
clickAndWait commit
verifyTextPresent Cards created: 11
verifyTextPresent 123456789
verifyTextPresent 123456799
clickAndWait //img[@alt='Money']
clickAndWait commit
verifyTextPresent 4.0000 USD
clickAndWait commit
verifyTextPresent The card was sold
clickAndWait //img[@alt='Money']
type amount 123
clickAndWait commit
clickAndWait commit
verifyTextPresent Payment added
open /billing/cards/edit/22
type card_pin 12345
clickAndWait commit
waitForTextPresent Card was successfully updated
open /billing/cards/list?cg=3
open /billing/cards/destroy/23
verifyTextPresent Card was deleted
open /billing/cards/import_csv?cg=3
clickAndWait commit
verifyTextPresent Please select file
open /billing/dialplans/dialplans
verifyTextPresent Dial Plans
open /billing/dialplans/new
type dialplan[name] 12345678901
select dialplan_number_pin_length label=10 / 4
click dialplan[data7]
click dialplan[data3]
click dialplan[data4]
clickAndWait //input[@type='image']
verifyTextPresent Dialplan successfully created
open /billing/ccshop
waitForElementPresent login_num
type login_num 123456789
type login_pin 12345
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/ccshop/card_details
verifyTextPresent First use:
open /billing/ccshop/speeddials
type name policija
type number 112
type speeddial 03
clickAndWait speeddial_add
verifyTextPresent Added
verifyTextPresent policija
verifyTextPresent 112
verifyTextPresent 03
type name 1
type number 1
type speeddial 1
clickAndWait speeddial_add
verifyTextPresent SpeedDial can only consist of 2 or more digits
open /billing/ccshop/speeddial_edit/1
type phonebook_speeddial 1
clickAndWait commit
verifyTextPresent SpeedDial can only consist of 2 or more digits
open /billing/ccshop/speeddial_edit/1
clickAndWait commit
verifyTextPresent Updated
clickAndWait delete_link_1
assertConfirmation Are you sure?
open /billing/ccshop/speeddial_edit/1
verifyTextPresent Don't be so smart...
open /billing/ccshop/speeddial_destroy/1
verifyTextPresent Don't be so smart...
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/permissions/list?group_type=reseller
type name Reseller_permission
clickAndWait //input[@type='image']
clickAndWait //img[@alt='Edit']
click calling_cards_2
click call_shop_2
click sms_addon_2
click payment_gateways_2
clickAndWait commit
verifyTextPresent Group was updated
open /billing/users/edit/3
waitForElementPresent reseller_type_select
waitForElementPresent //option[@value='1']
verifySelectedLabel reseller_type_select Reseller_permission
clickAndWait //div[@id='confirm_without_message']/input
open /billing/functions/login_as_execute?user=3
verifyTextPresent Logged as
open /billing/cardgroups/list
verifyTextPresent Card groups
open /billing/cardgroups/list
verifyTextPresent Card groups
open /billing/cardgroups/new
type cardgroup_name !!!!
type cardgroup_description !!!!
type name=price_with_vat 4
type cardgroup_setup_fee 1.1
type cardgroup_daily_charge 1.1
type cardgroup_pin_length 5
type cardgroup_number_length 9
select date_from_year label=2008
select date_from_month label=June
select date_from_day label=6
select date_till_year label=2011
select date_till_month label=June
select date_till_day label=6
type tax1_value 2.1
type tax2_name mokestis
click tax2_enabled
type tax2_value 3.2
clickAndWait commit
verifyTextPresent Card group was successfully created
open /billing/cards/new?cg=4
type start_number 123456800
type end_number 123456811
clickAndWait commit
verifyTextPresent Cards created: 12
verifyTextPresent 123456800
verifyTextPresent 123456811
clickAndWait //img[@alt='Money']
clickAndWait commit
verifyTextPresent 4.0000 USD
clickAndWait commit
verifyTextPresent The card was sold
clickAndWait //img[@alt='Money']
type amount 123
clickAndWait commit
clickAndWait commit
verifyTextPresent Payment added
open /billing/cards/edit/33
type card_pin 12345678
clickAndWait commit
verifyTextPresent Card was successfully updated
open /billing/cards/destroy/34
verifyTextPresent Card was deleted
open /billing/cards/import_csv?cg=4
clickAndWait commit
verifyTextPresent Please select file
open /billing/cardgroups/edit/4
verifyValue lcr_id 1
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/cards/destroy/40
verifyTextPresent You do not have rights to edit this
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/cardgroups/new
type cardgroup_name asd
type cardgroup_description asd
clickAndWait commit
open /billing/dids/dialplans
open /billing/dialplans/new
storeSelectOptions dialplan_number_pin_length a
verifyExpression ${a} 9 / 510 / 4
open /billing/lcrs/new
type lcr_name Test_LCR
clickAndWait commit
open /billing/users/list
clickAndWait edit_link_3
select user_lcr_id label=Test_LCR
clickAndWait //div[@id='confirm_without_message']/input
verifyTextPresent User's settings succesfully changed: Test Reseller
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/cardgroups/edit/4
verifyValue lcr_id 2
check compound_tax
clickAndWait commit
verifyTextPresent Card group was successfully updated
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 asd
clickAndWait //input[@type='image']
verifyTextPresent Group was created
open /billing/permissions/edit/2?group_type=accountant
check callingcard_pin_2
check callingcard_manage_2
click see_financial_data_2
clickAndWait commit
verifyTextPresent Group was updated
open /billing/users/list
open /billing/users/edit/4
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
verifyTextPresent Succesfully logged in
open /billing/cardgroups/list
open /billing/cardgroups/new
type cardgroup_name accountant_group
type cardgroup_description accountant_group
clickAndWait commit
waitForTextPresent Card group was successfully created
open /billing/cards/show
verifyTextPresent Card was not found
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/cards/act?cg=1
type start_number 1111111000
type end_number 1111111002
click buy
clickAndWait commit
verifyText card_interval Card interval : 1111111000 - 1111111002
verifyText active_cards Active cards : 0
verifyText disabled_cards Disabled cards : 3
verifyText action Action : Buy
verifyText quantity 3
verifyText price 30.2521 USD
verifyText tax_First-tax 3.0252 USD
verifyText tax_Second-tax 3.3277 USD
verifyText tax_Third-tax 7.3210 USD
verifyText tax_Forth-tax 13.1778 USD
verifyText total_tax 26.8518 USD
verifyText total_price 57.1039 USD
clickAndWait commit
verifyTextPresent Cards bought
open /billing/cards/edit/1
verifyText //img[@alt='Check']
open /billing/cards/edit/2
verifyText //img[@alt='Check']
open /billing/cards/edit/3
verifyText //img[@alt='Check']
open /billing/cards/act?cg=1
type start_number 1111111002
type end_number 1111111001
click disable
clickAndWait commit
verifyText card_interval Card interval : 1111111001 - 1111111002
verifyText active_cards Active cards : 2
verifyText disabled_cards Disabled cards : 0
verifyText action Action : Disable
clickAndWait commit
verifyTextPresent Cards were successfully disabled
open /billing/cards/edit/2
verifyText //img[@alt='Cross']
open /billing/cards/edit/3
verifyText //img[@alt='Cross']
open /billing/cards/act?cg=1
type start_number 1111111002
type end_number 1111111001
click delete
clickAndWait commit
verifyText card_interval Card interval : 1111111001 - 1111111002
verifyText active_cards Active cards : 0
verifyText disabled_cards Disabled cards : 2
verifyText action Action : Delete
clickAndWait commit
verifyTextPresent Cards were successfully deleted
verifyTextNotPresent 1111111002
verifyTextNotPresent 1111111001
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/cards/act?cg=4
type start_number 123456800
type end_number 123456805
click buy
clickAndWait commit
verifyText card_interval Card interval : 123456800 - 123456805
verifyText active_cards Active cards : 1
verifyText disabled_cards Disabled cards : 4
verifyValue email test_reseller@email.test
verifyText quantity 4
verifyText price 15.1850 USD
verifyText tax_Tax 0.3189 USD
verifyText tax_mokestis 0.4961 USD
verifyText total_tax 0.8150 USD
verifyText total_price 16.0000 USD
clickAndWait commit
verifyTextPresent Cards bought
open /billing/cards/edit/35
verifyText //img[@alt='Check']
open /billing/cards/act?cg=4
type start_number 123456805
type end_number 123456800
click disable
clickAndWait commit
verifyText card_interval Card interval : 123456800 - 123456805
verifyText active_cards Active cards : 5
verifyText disabled_cards Disabled cards : 0
verifyText action Action : Disable
clickAndWait commit
verifyTextPresent Cards were successfully disabled
open /billing/cards/edit/35
verifyText //img[@alt='Cross']
open /billing/cards/list?cg=4
verifyTextPresent 123456802
open /billing/cards/act?cg=4
type start_number 123456805
type end_number 123456800
click delete
clickAndWait commit
verifyText card_interval Card interval : 123456800 - 123456805
verifyText active_cards Active cards : 0
verifyText disabled_cards Disabled cards : 5
verifyText action Action : Delete
clickAndWait commit
verifyTextPresent Cards were successfully deleted
verifyTextNotPresent 123456802
open /billing/cards/card_pay/39?cg=4
clickAndWait commit
verifyText email
verifyText send_invoices No
verifyText price 3.7962 USD
verifyText tax_Tax 0.0797 USD
verifyText tax_mokestis 0.1240 USD
verifyText total_tax 0.2038 USD
verifyText total_price 4.0000 USD
clickAndWait commit
verifyTextPresent The card was sold
verifyText balance_39 3.7962
open /billing/cardgroups/new
type cardgroup_name test2
type name=price_with_vat 100.0000
type tax1_value 10.0
type total_tax_name Tax_total
clickAndWait commit
clickAndWait link=( Add cards)
type start_number 1234567891
type end_number 1234567892
clickAndWait commit
verifyTextPresent Cards created: 2
open /billing/cards/card_pay/45?cg=7
clickAndWait commit
verifyText email
verifyText send_invoices No
verifyText price 90.9091 USD
verifyText total_tax 9.0909 USD
verifyText total_price 100.0000 USD
clickAndWait commit
verifyTextPresent The card was sold
verifyText balance_45 90.9091
open /billing/cards/card_buy/444?cg=322
verifyTextPresent Card Group not found
open /billing/cards/card_buy/4?xxg=2
verifyTextPresent Card Group not found
open /billing/cardgroups/edit/344444
verifyTextPresent Card Group not found
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/permissions/list?group_type=reseller
clickAndWait //img[@alt='Edit']
click calling_cards_0
click call_shop_0
click sms_addon_0
click payment_gateways_0
clickAndWait commit
open /billing/functions/settings_addons
click //div[@id='tabTabdhtmlgoodies_tabView1_1']/span
uncheck CCShop_show_values_without_VAT_for_user
clickAndWait commit
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/cardgroups/new
verifyTextPresent You do not have rights to edit this
open /billing/cardgroups/list
verifyTextPresent You do not have rights to edit this
open /billing/cardgroups/upload_card_image/1
verifyTextPresent You do not have rights to edit this
open /billing/cardgroups/index
verifyTextPresent You do not have rights to edit this
open /billing/cardgroups/edit
verifyTextPresent You do not have rights to edit this
open /billing/cardgroups/destroy
verifyTextPresent You do not have rights to edit this
open /billing/cardgroups/cards_to_csv/2
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/2?group_type=accountant
click callingcard_pin_0
click callingcard_manage_0
clickAndWait commit
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
open /billing/cardgroups/new
verifyTextPresent You do not have rights to edit this
open /billing/cardgroups/list
verifyTextPresent Don't be so smart...
open /billing/cardgroups/upload_card_image/1
verifyTextPresent Don't be so smart...
open /billing/cardgroups/index
verifyTextPresent Don't be so smart...
open /billing/cardgroups/edit
verifyTextPresent Don't be so smart...
open /billing/cardgroups/destroy
verifyTextPresent Don't be so smart...
open /billing/cardgroups/cards_to_csv/2
verifyTextPresent Don't be so smart...
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/cardgroups/cards_to_csv/1?file=false
verifyTextPresent Number
verifyTextPresent PIN
open /billing/cardgroups/show/1
open /billing/cardgroups/gmp_list/1
type prefix 370
type percent 110
clickAndWait //input[@type='image']
verifyTextPresent Record created
verifyTextPresent 110.0 %
open /billing/cardgroups/gmp_edit/1
type percent 0
clickAndWait //input[@type='image']
verifyTextPresent Bad percent
type percent 110
open /billing/cardgroups/gmp_edit/1
type percent 10000.001
clickAndWait //input[@type='image']
verifyTextPresent Record updated
verifyTextPresent 10000.0 %
open /billing/cardgroups/gmp_destroy/1
verifyTextPresent Record deleted
open /billing/cardgroups/gmp_destroy/9999999
verifyTextPresent Record not found
open /billing/cardgroups/edit/1
type Card_image /home/mor/selenium/files/pics/big_test_image.jpg
clickAndWait //input[@name='commit' and @value='Upload']
verifyTextPresent Image file is too big
open /billing/cardgroups/show/4
verifyTextPresent Don't be so smart...
open /billing/cards/list?cg=4
verifyTextPresent Don't be so smart...
open /billing/cards/new?cg=3
type start_number 123456802
type end_number 123456820
clickAndWait commit
verifyTextPresent Cards created: 13
verifyElementPresent field_123456806_number
verifyElementPresent field_123456807_number
verifyElementPresent field_123456808_number
verifyElementPresent field_123456809_number
verifyElementPresent field_123456810_number
verifyElementPresent field_123456811_number
verifyElementPresent error_123456806
verifyElementPresent error_123456811
clickAndWait //input[@value='Ok']
open /billing/functions/settings_addons
check CCShop_show_values_without_VAT_for_user
clickAndWait commit
open /billing/permissions/edit/1?group_type=reseller
click calling_cards_2
click call_shop_2
click sms_addon_2
click payment_gateways_2
clickAndWait commit
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/cardgroups/new
type cardgroup_name test_cc
type price_with_vat 20.0000
type cardgroup_number_length 9
clickAndWait commit
open /billing/cards/new?cg=8
type start_number 123456802
type end_number 123456825
clickAndWait commit
verifyTextPresent Cards created: 5
verifyElementPresent field_123456806_number
verifyElementPresent field_123456807_number
verifyElementPresent field_123456808_number
verifyElementPresent field_123456809_number
verifyElementPresent field_123456810_number
verifyElementPresent field_123456811_number
verifyElementPresent //input[@value='Ok']
clickAndWait //input[@value='Ok']
verifyElementPresent balance_60
verifyElementPresent number_60
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/stats/cc_call_list/22
verifyTextPresent DID Price
verifyTextPresent 4.0
verifyTextPresent 4.0000
open /billing/cardgroups/gmp_list/3
type id=prefix 379
type id=percent 23.25
clickAndWait css=input[type="image"]
waitForTextPresent Record created
verifyText id=percent_2 23.25 %
type id=percent 10000.041
type id=prefix 9340
clickAndWait css=input[type="image"]
verifyText id=percent_3 10000.0 %
type id=percent 9.987
type id=prefix 3706
clickAndWait css=input[type="image"]
waitForTextPresent Record created
type id=prefix 9320
type id=percent 0.9876599
clickAndWait css=input[type="image"]
type id=percent 23.234567
type id=prefix 73
clickAndWait css=input[type="image"]
type id=prefix 37633
type id=percent 100.444444
clickAndWait css=input[type="image"]
verifyText id=percent_7 100.444 %
verifyText id=percent_6 23.2346 %
verifyText id=percent_5 0.98766 %
verifyText id=percent_4 9.987 %
verifyText id=percent_3 10000.0 %
verifyText id=percent_2 23.25 %
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/cardgroups/edit/3
type id=cardgroup_ghost_min_perc 0.0
clickAndWait commit
verifyText ghost_min_perc Default: 0.0000 %
open /billing/cardgroups/edit/3
type id=cardgroup_ghost_min_perc 55.55
clickAndWait commit
verifyText ghost_min_perc Default: 55.5500 %
open /billing/cardgroups/edit/3
type id=cardgroup_ghost_min_perc 66.666
clickAndWait commit
verifyText ghost_min_perc Default: 66.6660 %
open /billing/cardgroups/edit/3
type id=cardgroup_ghost_min_perc 66666666.666666
clickAndWait commit
verifyText ghost_min_perc Default: 66666666.6667 %
open /billing/cardgroups/edit/3
type id=cardgroup_ghost_min_perc -66.666666
clickAndWait commit
verifyText ghost_min_perc Default: -66.6667 %
open /billing/cardgroups/edit/3
type id=cardgroup_ghost_min_perc 100
clickAndWait commit
verifyText ghost_min_perc Default: 100.0000 %
open /billing/functions/settings
click css=#tabTabdhtmlgoodies_tabView1_11 > span
select name=global_number_decimal label=,
clickAndWait commit
open /billing/cardgroups/edit/3
type id=cardgroup_ghost_min_perc 55,55
clickAndWait commit
verifyText ghost_min_perc Default: 55,5500 %
open /billing/functions/settings
click css=#tabTabdhtmlgoodies_tabView1_11 > span
select name=global_number_decimal label=;
clickAndWait commit
open /billing/cardgroups/edit/3
type id=cardgroup_ghost_min_perc 55;55
clickAndWait commit
verifyText ghost_min_perc Default: 55;5500 %