open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/test/load_delta_sql/sql/mor_eleven_extend |
|
waitForElementPresent |
//body |
|
open |
/billing/currencies/currencies |
|
clickAndWait |
//a[contains(@href, '/billing/currencies/currencies_change_update_status/2')] |
|
assertTextPresent |
Currency update disabled |
|
open |
/billing/currencies/edit/2 |
|
type |
id=exchange_rate |
2 |
clickAndWait |
css=input[type="image"] |
|
assertTextPresent |
Currency details updated |
|
clickAndWait |
id=icon_cross_curr_upd_enable_2 |
|
assertText |
id=icon_chech_curr_upd_disable_2 |
|
open |
/billing/cardgroups/edit/1 |
|
type |
id=tax1_value |
10.0 |
type |
name=price_with_vat |
100 |
type |
id=cardgroup_setup_fee |
10.0 |
type |
id=cardgroup_daily_charge |
10 |
select |
id=cardgroup_tell_balance_in_currency |
label=USD |
clickAndWait |
name=commit |
|
waitForTextPresent |
Card group was successfully updated |
|
open |
/billing/functions/settings |
|
click |
id=allow_api |
|
click |
id=allow_get_api |
|
type |
id=api_secret_key |
123456 |
click |
id=xml_api_extension |
|
click |
id=api_login_redirect_to_main |
|
click |
id=api_allow_registration |
|
clickAndWait |
name=commit |
|
waitForTextPresent |
Settings saved |
|
open |
/billing/cardgroups/new |
|
type |
id=cardgroup_name |
cardgroup 3 |
type |
id=price_with_vat |
25 |
select |
id=cardgroup_tell_balance_in_currency |
label=EUR |
type |
id=cardgroup_number_length |
5 |
type |
id=cardgroup_pin_length |
3 |
type |
id=tax1_value |
10 |
type |
id=tax2_name |
tax2 |
check |
id=tax2_enabled |
|
type |
id=tax2_value |
10.0 |
type |
id=tax3_name |
tax3 |
check |
id=tax3_enabled |
|
type |
id=tax3_value |
10.0 |
check |
id=tax4_enabled |
|
type |
id=tax4_value |
10.0 |
clickAndWait |
name=commit |
|
waitForTextPresent |
Card group was successfully created |
|
open |
/billing/users/edit/3 |
|
type |
id=tax1_value |
10.0 |
type |
id=tax4_name |
tax4 |
type |
id=tax2_value |
10.0 |
type |
id=tax3_value |
10.0 |
type |
id=tax4_value |
10.0 |
type |
id=tax2_name |
a |
type |
id=tax3_name |
b |
type |
id=tax4_name |
c |
click |
id=tax2_enabled |
|
click |
id=tax3_enabled |
|
click |
id=tax4_enabled |
|
clickAndWait |
css=#confirm_without_message > input[name="commit"] |
|
waitForTextPresent |
User's settings succesfully changed: |
|
open |
/billing/users/edit/2 |
|
type |
id=tax1_value |
10.0 |
type |
id=tax4_value |
10.0 |
type |
id=tax4_name |
c |
click |
id=tax4_enabled |
|
clickAndWait |
css=#confirm_without_message > input[name="commit"] |
|
waitForTextPresent |
User's settings succesfully changed: |
|
open |
/billing/devices/device_edit/2 |
|
type |
id=cid_number |
4444 |
type |
id=cid_name |
4444 |
type |
id=device_secret |
104uyjhtfdd |
clickAndWait |
name=commit |
|
waitForTextPresent |
Device's settings updated |
|
open |
/billing/devices/device_clis/2 |
|
type |
id=cli |
4444 |
clickAndWait |
css=input[type="image"] |
|
waitForTextPresent |
CLI created |
|
open |
/billing/test/test_api?cardgroup_id=1&callerid=4444&amount=100 |
|
waitForTextPresent |
d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
open |
/billing/cards/new?cg=3 |
|
type |
id=start_number |
10002 |
type |
id=end_number |
10010 |
clickAndWait |
name=commit |
|
waitForTextPresent |
Cards created: 9 |
|
open |
/billing/devices/device_edit/6 |
|
type |
id=cid_number |
5555 |
type |
id=cid_name |
5555 |
type |
id=device_secret |
104uyjhtfdd |
clickAndWait |
name=commit |
|
waitForTextPresent |
Device's settings updated |
|
open |
/billing/devices/device_clis/6 |
|
type |
id=cli |
5555 |
clickAndWait |
css=input[type="image"] |
|
waitForTextPresent |
CLI created |
|
open |
/billing/test/test_api?cardgroup_id=3&callerid=5555&amount=300 |
|
waitForTextPresent |
b0faeac147951820a747b35fbccba653cda876d1 |
|
open |
/billing/callc/logout |
|
open |
/billing/api/cc_by_cli?u=admin&p=admin1&cardgroup_id=1&callerid=4444&amount=100&test=1&hash=d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
verifyText |
css=status |
ok |
assertText |
css=device_id |
2 |
assertText |
css=user_id |
2 |
assertText |
css=new_balance |
82.6446 |
assertText |
css=new_balance_with_vat |
100.0000 |
verifyElementNotPresent |
css=cardgroup_id |
|
open |
/billing/api/cc_by_cli?u=admin&p=admin1&cardgroup_id=3&callerid=5555&amount=300&test=1&hash=b0faeac147951820a747b35fbccba653cda876d1 |
|
verifyText |
css=status |
ok |
assertText |
css=device_id |
6 |
assertText |
css=user_id |
3 |
assertText |
css=new_balance |
204.9040 |
assertText |
css=new_balance_with_vat |
300.0000 |
verifyElementNotPresent |
css=cardgroup_id |
|
open |
/billing/api/cc_by_cli?u=accountant&p=accountant1&cardgroup_id=1&callerid=4444&amount=100&test=1&hash=d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
waitForTextPresent |
Dont be so smart |
|
open |
/billing/api/cc_by_cli?u=accountant&p=accountant1&cardgroup_id=3&callerid=5555&amount=300&test=1&hash=b0faeac147951820a747b35fbccba653cda876d1 |
|
waitForTextPresent |
Dont be so smart |
|
open |
/billing/api/cc_by_cli?u=reseller&p=reseller1&cardgroup_id=1&callerid=4444&amount=100&test=1&hash=d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
waitForTextPresent |
Dont be so smart |
|
open |
/billing/api/cc_by_cli?u=101&p=1011&cardgroup_id=1&callerid=4444&amount=100&test=1&hash=d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
waitForTextPresent |
Dont be so smart |
|
open |
/billing/api/cc_by_cli?u=user_reseller&p=user_reseller1&cardgroup_id=1&callerid=4444&amount=100&test=1&hash=d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
waitForTextPresent |
Dont be so smart |
|
open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/payments/list |
|
assertText |
id=amount_10 |
82.6446 |
assertText |
id=amount_11 |
204.9040 |
assertText |
id=amount_10 |
82.6446 |
assertText |
id=amout_with_tax_10 |
82.6446 |
assertText |
id=amount_11 |
204.9040 |
assertText |
id=amout_with_tax_11 |
204.9040 |
verifyText |
id=currency_10 |
USD |
verifyText |
id=currency_11 |
USD |
open |
/billing/users/list |
|
verifyText |
id=balance_0 |
0.0000 |
verifyText |
id=balance_4 |
0.0000 |
assertText |
id=balance_3 |
204.9040 |
assertText |
id=balance_2 |
82.6446 |
open |
/billing/cards/list?cg=3&clean=1 |
|
storeText |
id=pin_23 |
pin1 |
open |
/billing/cards/card_pay/23?cg=3 |
|
clickAndWait |
name=commit |
|
clickAndWait |
name=commit |
|
waitForTextPresent |
The card was sold |
|
open |
/billing/cards/card_pay/23?cg=3 |
|
type |
id=amount |
100 |
select |
name=currency |
label=EUR |
clickAndWait |
name=commit |
|
clickAndWait |
name=commit |
|
waitForTextPresent |
Payment added |
|
open |
/billing/test/test_api?cardgroup_id=1&callerid=4444&amount=100&pin=7856 |
|
waitForTextPresent |
118f394ea0b031da71270d528fdfd7464e24d799 |
|
open |
/billing/test/test_api?cardgroup_id=1&callerid=5555&amount=300&pin=1111 |
|
waitForTextPresent |
c1cd383224e94abfdfb8a742191fe44d9a2dc70e |
|
open |
/billing/test/test_api?cardgroup_id=3&callerid=5555&amount=300&pin=${pin1} |
|
storeText |
css=body |
hash1 |
open |
/billing/callc/logout |
|
open |
/billing/api/cc_by_cli?u=admin&p=admin1&cardgroup_id=3&callerid=4444&amount=100&pin=7856&test=1&hash=613d121a397050e80af0f556ed696c0395c803d2 |
|
verifyText |
css=status |
ok |
verifyText |
css=device_id |
2 |
verifyText |
css=user_id |
2 |
assertText |
css=new_balance |
92.7287 |
assertText |
css=new_balance_with_vat |
112.2017 |
open |
/billing/api/cc_by_cli?u=admin&p=admin1&cardgroup_id=1&callerid=4444&amount=100&pin=7856&test=1&hash=118f394ea0b031da71270d528fdfd7464e24d799 |
|
verifyTextPresent |
PIN number balance is zero |
|
open |
/billing/api/cc_by_cli?u=admin&p=admin1&cardgroup_id=1&callerid=5555&amount=300&pin=1111&test=1&hash=c1cd383224e94abfdfb8a742191fe44d9a2dc70e |
|
waitForTextPresent |
PIN number not found |
|
open |
/billing/api/cc_by_cli?u=admin&p=admin1&cardgroup_id=1&callerid=5555&amount=300&pin=${pin1}&test=1&hash=${hash1} |
|
waitForTextPresent |
Incorrect hash |
|
open |
/billing/api/cc_by_cli?u=admin&p=admin1&cardgroup_id=3&callerid=5555&amount=300&pin=${pin1}&test=1&hash=${hash1} |
|
verifyText |
css=status |
ok |
verifyText |
css=device_id |
6 |
verifyText |
css=user_id |
3 |
assertText |
css=new_balance |
239.0547 |
assertText |
css=new_balance_with_vat |
350.0000 |
open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/payments/list |
|
verifyText |
id=amount_14 |
10.0840 |
verifyText |
id=amout_with_tax_14 |
10.0840 |
assertText |
id=currency_14 |
USD |
assertText |
id=amount_15 |
34.1507 |
verifyText |
id=amout_with_tax_15 |
34.1507 |
assertText |
id=currency_15 |
USD |
open |
/billing/users/list |
|
verifyText |
id=balance_0 |
0.0000 |
verifyText |
id=balance_4 |
0.0000 |
assertText |
id=balance_3 |
239.0547 |
assertText |
id=balance_2 |
92.7287 |
open |
/billing/cards/list?cg=3&clean=1 |
|
verifyText |
id=callerid_23 |
|
verifyText |
id=balance_23 |
0.0000 |
verifyElementPresent |
css=#sold_23 > img[alt="Cross"] |
|
open |
/billing/test/load_delta_sql/acc_groups |
|
waitForElementPresent |
//body |
|
open |
/billing/permissions/edit/12?group_type=reseller |
|
click |
id=calling_cards_2 |
|
clickAndWait |
name=commit |
|
waitForTextPresent |
Group was updated |
|
open |
/billing/users/edit/3 |
|
clickAndWait |
css=#confirm_without_message > input[name="commit"] |
|
waitForTextPresent |
User's settings succesfully changed: Test Reseller |
|
open |
/billing/permissions/edit/11?group_type=accountant |
|
click |
id=callingcard_pin_2 |
|
click |
id=callingcard_manage_2 |
|
click |
id=see_financial_data_2 |
|
click |
id=cli_ivr_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=monitorings_manage_2 |
|
click |
id=payments_manage_2 |
|
click |
id=services_manage_2 |
|
click |
id=manage_subscriptions_opt_1_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_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=vouchers_manage_2 |
|
click |
id=user_manage_2 |
|
clickAndWait |
name=commit |
|
waitForTextPresent |
Group was updated |
|
open |
/billing/users/edit/4 |
|
clickAndWait |
css=#confirm_without_message > input[name="commit"] |
|
waitForTextPresent |
User's settings succesfully changed: Test |
|
open |
/billing/callc/logout |
|
open |
/billing/api/cc_by_cli?u=accountant&p=accountant1&cardgroup_id=1&callerid=4444&amount=100&test=1&hash=d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
verifyText |
css=status |
ok |
verifyElementNotPresent |
css=cardgroup_id |
|
assertText |
css=new_balance |
175.3733 |
assertText |
css=new_balance_with_vat |
212.2017 |
verifyElementNotPresent |
css=cardgroup_id |
|
open |
/billing/api/cc_by_cli?u=accountant&p=accountant1&cardgroup_id=3&callerid=5555&amount=300&test=1&hash=b0faeac147951820a747b35fbccba653cda876d1 |
|
verifyText |
css=status |
ok |
verifyElementNotPresent |
css=cardgroup_id |
|
assertText |
css=device_id |
6 |
assertText |
css=user_id |
3 |
assertText |
css=new_balance |
443.9587 |
assertText |
css=new_balance_with_vat |
650.0000 |
open |
/billing/api/cc_by_cli?u=reseller&p=reseller1&cardgroup_id=1&callerid=4444&amount=100&test=1&hash=d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
waitForTextPresent |
You do not have permission to add to user's balance |
|
open |
/billing/api/cc_by_cli?u=101&p=1011&cardgroup_id=1&callerid=4444&amount=100&test=1&hash=d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
waitForTextPresent |
Dont be so smart |
|
open |
/billing/api/cc_by_cli?u=user_reseller&p=user_reseller1&cardgroup_id=1&callerid=4444&amount=100&test=1&hash=d703d39e26dd770b614d3e0786373aecb4378fa3 |
|
waitForTextPresent |
Dont be so smart |
|
open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/users/list |
|
assertText |
id=balance_3 |
443.9587 |
assertText |
id=balance_2 |
175.3733 |
open |
/billing/callc/logout |
|
type |
login_username |
accountant |
type |
login_psw |
accountant1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/payments/list |
|
assertText |
id=amount_16 |
82.6446 |
assertText |
id=amout_with_tax_16 |
82.6446 |
assertText |
id=amount_17 |
204.9040 |
assertText |
id=amount_17 |
204.9040 |
assertText |
id=amout_with_tax_17 |
204.9040 |
verifyText |
id=currency_16 |
USD |
verifyText |
id=currency_17 |
USD |
open |
/billing/callc/logout |
|
type |
login_username |
reseller |
type |
login_psw |
reseller1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/cardgroups/new |
|
type |
id=cardgroup_name |
cardgroup |
type |
id=cardgroup_setup_fee |
10.0 |
type |
name=price_with_vat |
20.0000 |
select |
id=cardgroup_tell_balance_in_currency |
label=EUR |
type |
id=tax1_value |
50 |
clickAndWait |
name=commit |
|
waitForTextPresent |
Card group was successfully created |
|
open |
/billing/cards/new?cg=4 |
|
type |
id=start_number |
1111111114 |
type |
id=end_number |
1111111119 |
clickAndWait |
name=commit |
|
waitForTextPresent |
Cards created: 6 |
|
storeText |
id=pin_31 |
pinre1 |
open |
/billing/devices/device_edit/7 |
|
type |
id=cid_number |
09090909 |
type |
id=cid_name |
09090909 |
type |
id=device_secret |
104uyjhtfdd |
clickAndWait |
name=commit |
|
waitForTextPresent |
Device's settings updated |
|
open |
/billing/devices/device_clis/7 |
|
type |
id=cli |
09090909 |
clickAndWait |
css=input[type="image"] |
|
waitForTextPresent |
CLI created |
|
open |
/billing/devices/new?return_to_action=list&return_to_controller=users&user_id=5 |
|
type |
id=device_description |
zxc |
clickAndWait |
name=commit |
|
waitForTextPresent |
Device created |
|
type |
id=cid_name |
08080808 |
type |
id=cid_number |
08080808 |
clickAndWait |
name=commit |
|
waitForTextPresent |
Device's settings updated |
|
clickAndWait |
css=img[alt="Cli"] |
|
open |
/billing/devices/device_clis/8 |
|
type |
id=cli |
08080808 |
clickAndWait |
css=input[type="image"] |
|
waitForTextPresent |
CLI created |
|
open |
/billing/cards/card_pay/31?cg=4 |
|
clickAndWait |
name=commit |
|
clickAndWait |
name=commit |
|
waitForTextPresent |
The card was sold |
|
open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/test/test_api?cardgroup_id=4&callerid=09090909&amount=55 |
|
waitForTextPresent |
6def0e9d462c376f47f31ab231447263da3c9843 |
|
open |
/billing/test/test_api?cardgroup_id=4&callerid=08080808&amount=50&pin=${pinre1} |
|
storeText |
css=body |
hashre1 |
open |
/billing/stats/action_log |
|
assertText |
id=type_36 |
Added to cards balance |
assertText |
id=type_34 |
Added to cards balance |
assertText |
id=data_36 |
-34.1507 |
assertText |
id=data_34 |
-10.0840 |
open |
/billing/callc/logout |
|
open |
/billing/api/cc_by_cli?u=reseller&p=reseller1&cardgroup_id=4&callerid=09090909&amount=55&test=1&hash=6def0e9d462c376f47f31ab231447263da3c9843 |
|
verifyText |
css=status |
ok |
verifyElementNotPresent |
css=cardgroup_id |
|
open |
/billing/api/cc_by_cli?u=reseller&p=reseller1&cardgroup_id=4&callerid=08080808&amount=50&pin=${pinre1}&test=1&hash=${hashre1} |
|
verifyText |
css=status |
ok |
verifyText |
css=device_id |
8 |
verifyText |
css=user_id |
5 |
assertText |
css=new_balance |
65.0175 |
assertText |
css=new_balance_with_vat |
65.0175 |
open |
/billing/callc/logout |
|
type |
login_username |
reseller |
type |
login_psw |
reseller1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/cards/list?cg=4&clean=1 |
|
verifyText |
id=callerid_31 |
|
verifyText |
id=balance_31 |
0.0000 |
verifyText |
css=#sold_31 > img[alt="Cross"] |
|
open |
/billing/users/list |
|
verifyText |
id=balance_5 |
65.0175 |
open |
/billing/payments/list |
|
verifyText |
id=amount_18 |
10.0175 |
assertText |
id=amout_with_tax_18 |
20.0000 |
assertText |
id=amount_19 |
55.0000 |
assertText |
id=amout_with_tax_19 |
55.0000 |
assertText |
id=amount_20 |
10.0175 |
assertText |
id=amout_with_tax_20 |
10.0175 |
assertText |
id=currency_18 |
USD |
assertText |
id=currency_19 |
USD |
assertText |
id=currency_20 |
USD |
open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/stats/action_log |
|
assertText |
id=user_57 |
Test Reseller |
assertText |
id=type_57 |
Added to cards balance |
assertText |
id=data_57 |
-10.0175 |