open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/test/load_delta_sql/acc_groups |
|
waitForElementPresent |
//body |
|
open |
/billing/permissions/edit/12?group_type=reseller |
|
verifyText |
id=name_monitorings |
Monitorings |
verifyText |
id=disabled_monitorings |
|
verifyText |
id=read_monitorings |
|
verifyText |
id=write_monitorings |
|
click |
id=monitorings_2 |
|
clickAndWait |
name=commit |
|
waitForTextPresent |
Group was updated |
|
verifyValue |
id=monitorings_2 |
on |
verifyValue |
id=monitorings_1 |
off |
verifyValue |
id=monitorings_0 |
off |
open |
/billing/users/edit/3 |
|
clickAndWait |
css=#confirm_without_message > input[name="commit"] |
|
waitForTextPresent |
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 |
|
verifyTextPresent |
ADDONS |
|
verifyText |
id=sreseller_menu_addons1 |
Monitorings |
open |
/billing/users/list |
|
waitForElementPresent |
css=#monitorings_link_5 > img[alt="Magnifier"] |
|
clickAndWait |
css=#monitorings_link_5 > img[alt="Magnifier"] |
|
waitForTextPresent |
Monitoring call price sum over past period |
|
open |
/billing/monitorings |
|
verifyNotText |
//th[8] |
Log |
verifyValue |
id=bellow_monitoringamount |
off |
verifyValue |
id=above_monitoringamount |
on |
verifyTextPresent |
Drops bellow |
|
verifyTextPresent |
Increases more |
|
type |
amount |
33 |
click |
id=bellow_monitoringamount |
|
waitForTextPresent |
will be less than 33 USD |
|
click |
id=above_monitoringamount |
|
waitForTextPresent |
will be higher than 33 USD |
|
mouseOver |
//thead/tr/th[2] |
|
waitForTextPresent |
If user's call price sum over specified period will be higher/less than this amount monitoring will take action |
|
mouseOut |
//thead/tr/th[2] |
|
click |
will_be_blocked |
|
click |
will_be_sent |
|
clickAndWait |
commit |
|
verifyTextPresent |
Monitoring created successfully. Applied to all users. |
|
verifyText |
css=#monit-1 td.period |
30 minutes |
verifyText |
css=#monit-1 td.amount |
33.0 |
verifyElementPresent |
css=#monit-1 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-1 td.email img[title="check"] |
|
open |
/billing/users/new |
|
type |
id=user_username |
user_reseller2 |
type |
id=password_password |
user |
clickAndWait |
id=commit |
|
waitForTextPresent |
User succesfully created |
|
open |
/billing/monitorings/for_user/2 |
|
waitForTextPresent |
User not found |
|
open |
/billing/monitorings/for_user/5 |
|
verifyText |
css=#monit-1 td.period |
30 minutes |
verifyText |
css=#monit-1 td.amount |
33.0 |
verifyElementPresent |
css=#monit-1 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-1 td.email img[title="check"] |
|
open |
/billing/monitorings/for_user/3 |
|
waitForTextPresent |
User not found |
|
open |
/billing/monitorings/for_user/6 |
|
verifyText |
css=#monit-1 td.period |
30 minutes |
verifyText |
css=#monit-1 td.amount |
33.0 |
verifyElementPresent |
css=#monit-1 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-1 td.email img[title="check"] |
|
open |
/billing/monitorings/for_user/4 |
|
waitForTextPresent |
User not found |
|
open |
/billing/monitorings/for_user/5 |
|
click |
new |
|
type |
amount |
33 |
click |
will_be_blocked |
|
clickAndWait |
commit |
|
open |
/billing/monitorings/for_user/6 |
|
click |
new |
|
type |
amount |
33 |
click |
will_be_blocked |
|
clickAndWait |
commit |
|
clickAndWait |
delete_link_2 |
|
assertConfirmation |
Are you sure that you want to remove this monitoring? It will be removed for user_reseller,user_reseller2 users. |
|
waitForTextPresent |
Monitoring deleted successfully |
|
verifyElementNotPresent |
css=#monit-2 td.period |
|
verifyElementNotPresent |
css=#monit-2 td.amount |
|
verifyElementNotPresent |
css=#monit-2 td.block img[title="check"] |
|
verifyElementNotPresent |
css=#monit-2 td.email img[title="cross"] |
|
open |
/billing/monitorings/for_user/5 |
|
verifyText |
css=#monit-2 td.period |
30 minutes |
verifyText |
css=#monit-2 td.amount |
33.0 |
verifyElementPresent |
css=#monit-2 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-2 td.email img[title="cross"] |
|
open |
/billing/monitorings |
|
verifyText |
css=#monit-2 td.period |
30 minutes |
verifyText |
css=#monit-2 td.amount |
33.0 |
verifyElementPresent |
css=#monit-2 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-2 td.email img[title="cross"] |
|
clickAndWait |
//img[@alt='Delete'] |
|
assertConfirmation |
Are you sure? |
|
verifyTextNotPresent |
css=#monit-1 td.period |
30 minutes |
verifyTextNotPresent |
css=#monit-1 td.amount |
33.0 |
verifyElementNotPresent |
css=#monit-1 td.block img[title="check"] |
|
verifyElementNotPresent |
css=#monit-1 td.email img[title="check"] |
|
open |
/billing/monitorings/for_user/4 |
|
verifyTextNotPresent |
css=#monit-1 td.period |
30 minutes |
verifyTextNotPresent |
css=#monit-1 td.amount |
33.0 |
verifyElementNotPresent |
css=#monit-1 td.block img[title="check"] |
|
verifyElementNotPresent |
css=#monit-1 td.email img[title="check"] |
|
open |
/billing/monitorings |
|
clickAndWait |
commit |
|
verifyTextPresent |
Amount must be greater than zero |
|
click |
monitoring_period_in_past_type_days |
|
select |
monitoring_period_in_past_days |
label=12 |
click |
will_be_blocked |
|
click |
will_be_sent |
|
click |
monitoring_user_type_prepaid |
|
clickAndWait |
commit |
|
verifyChecked |
monitoring_period_in_past_type_days |
|
verifySelectedLabel |
monitoring_period_in_past_days |
12 |
verifyChecked |
will_be_blocked |
|
verifyChecked |
will_be_sent |
|
verifyChecked |
monitoring_user_type_prepaid |
|
open |
/billing/users/new |
|
click |
user_postpaid_2 |
|
type |
user_username |
prepaid_user |
type |
password_password |
prepaid |
clickAndWait |
commit |
|
open |
/billing/monitorings |
|
type |
amount |
66 |
click |
will_be_blocked |
|
click |
monitoring_user_type_prepaid |
|
clickAndWait |
commit |
|
open |
/billing/monitorings/for_user/7 |
|
verifyText |
css=#monit-3 td.period |
30 minutes |
verifyText |
css=#monit-3 td.amount |
66.0 |
verifyElementPresent |
css=#monit-3 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-3 td.email img[title="cross"] |
|
open |
/billing/monitorings/for_user/5 |
|
verifyElementNotPresent |
css=#monit-3 td.period |
|
verifyElementNotPresent |
css=#monit-3 td.amount |
|
verifyElementNotPresent |
css=#monit-3 td.block img[title="cross"] |
|
verifyElementNotPresent |
css=#monit-3 td.email img[title="cross"] |
|
open |
/billing/monitorings |
|
type |
amount |
99 |
click |
will_be_blocked |
|
click |
monitoring_user_type_postpaid |
|
clickAndWait |
commit |
|
open |
/billing/monitorings/for_user/5 |
|
verifyText |
css=#monit-4 td.period |
30 minutes |
verifyText |
css=#monit-4 td.amount |
99.0 |
verifyElementPresent |
css=#monit-4 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-4 td.email img[title="cross"] |
|
open |
/billing/monitorings/for_user/7 |
|
verifyElementNotPresent |
css=#monit-4 td.period |
|
verifyElementNotPresent |
css=#monit-4 td.amount |
|
verifyElementNotPresent |
css=#monit-4 td.block img[title="cross"] |
|
verifyElementNotPresent |
css=#monit-4 td.email img[title="cross"] |
|
open |
/billing/monitorings/for_user/7 |
|
click |
new |
|
waitForVisible |
new_entry |
|
click |
monitoring_period_in_past_type_hours |
|
type |
amount |
111 |
click |
will_be_sent |
|
click |
will_be_blocked |
|
clickAndWait |
commit |
|
verifyText |
css=#monit-5 td.period |
1 Hour(s) |
verifyText |
css=#monit-5 td.amount |
111.0 |
verifyElementPresent |
css=#monit-5 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-5 td.email img[title="check"] |
|
open |
/billing/monitorings/for_user/5 |
|
verifyElementNotPresent |
css=#monit-5 td.period |
|
verifyElementNotPresent |
css=#monit-5 td.amount |
|
verifyElementNotPresent |
css=#monit-5 td.block img[title="cross"] |
|
verifyElementNotPresent |
css=#monit-5 td.email img[title="cross"] |
|
open |
/billing/monitorings |
|
verifyText |
css=#monit-5 td.period |
1 Hour(s) |
verifyText |
css=#monit-5 td.amount |
111.0 |
verifyElementPresent |
css=#monit-5 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-5 td.email img[title="check"] |
|
open |
/billing/monitorings |
|
type |
amount |
222 |
clickAndWait |
commit |
|
verifyTextPresent |
Monitoring must either be blocking or notifying or both |
|
open |
/billing/monitorings/edit/5 |
|
type |
amount |
222 |
clickAndWait |
commit |
|
verifyTextPresent |
Monitoring updated successfully. Applied to 1 users. |
|
verifyText |
css=#monit-5 td.period |
1 Hour(s) |
verifyText |
css=#monit-5 td.amount |
222.0 |
verifyElementPresent |
css=#monit-5 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-5 td.email img[title="check"] |
|
open |
/billing/monitorings/for_user/5 |
|
verifyElementNotPresent |
css=#monit-5 td.period |
|
verifyElementNotPresent |
css=#monit-5 td.amount |
|
verifyElementNotPresent |
css=#monit-5 td.block img[title="cross"] |
|
verifyElementNotPresent |
css=#monit-5 td.email img[title="cross"] |
|
open |
/billing/monitorings/edit/4 |
|
type |
amount |
123 |
click |
will_be_blocked |
|
clickAndWait |
commit |
|
verifyTextPresent |
Monitoring updated successfully. Applied to postpaid users. |
|
verifyText |
css=#monit-4 td.period |
30 minutes |
verifyText |
css=#monit-4 td.amount |
123.0 |
verifyElementPresent |
css=#monit-4 td.block img[title="check"] |
|
verifyElementPresent |
css=#monit-4 td.email img[title="cross"] |
|
open |
/billing/monitorings |
|
verifyElementPresent |
css=#monit-2 td.active img[title="check"] |
|
verifyElementNotPresent |
css=#monit-2 td.active img[title="cross"] |
|
open |
/billing/monitorings/update/2?monitoring%5Bactive%5D=false |
|
verifyElementPresent |
css=#monit-2 td.active img[title="cross"] |
|
verifyElementNotPresent |
css=#monit-2 td.active img[title="check"] |
|
open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/stats/action_log |
|
verifyTextPresent |
Monitoring created |
|
verifyTextPresent |
Monitoring updated |
|
verifyTextPresent |
Monitoring destroyed |
|
open |
/billing/monitorings |
|
verifyElementNotPresent |
css=td.period |
|
verifyElementNotPresent |
css=#monit-3 > td.period |
|
verifyElementNotPresent |
css=#monit-4 > td.period |
|
verifyElementNotPresent |
css=#monit-5 > td.period |
|
open |
/billing/monitorings/edit/3 |
|
waitForTextPresent |
Monitoring was not found |
|
verifyTextNotPresent |
Edit monitoring |
|
open |
/billing/monitorings/for_user/5 |
|
verifyTextNotPresent |
Monitoring call price sum over past period |
|
open |
/billing/callc/logout |
|
type |
login_username |
accountant |
type |
login_psw |
accountant1 |
clickAndWait |
commit |
|
open |
/billing/monitorings |
|
verifyTextPresent |
You are not authorized to view this page |
|
open |
/billing/monitorings/edit/3 |
|
waitForTextPresent |
You are not authorized to view this page |
|
open |
/billing/monitorings/for_user/4 |
|
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/permissions/edit/11?group_type=accountant |
|
click |
monitorings_manage_1 |
|
click |
id=see_financial_data_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=payments_manage_2 |
|
click |
id=services_manage_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_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=user_create_2 |
|
click |
id=user_manage_2 |
|
clickAndWait |
commit |
|
open |
/billing/users/edit/4 |
|
clickAndWait |
//div[@id='confirm_without_message']/input |
|
open |
/billing/callc/logout |
|
type |
login_username |
accountant |
type |
login_psw |
accountant1 |
clickAndWait |
commit |
|
open |
/billing/monitorings |
|
verifyTextNotPresent |
You are not authorized to view this page |
|
open |
/billing/monitorings/edit/3 |
|
waitForTextPresent |
Monitoring was not found |
|
open |
/billing/monitorings/for_user/6 |
|
verifyTextNotPresent |
You are not authorized to view this page |
|
verifyTextPresent |
User not found |
|
open |
/billing/monitorings/update/3?monitoring%5Bactive%5D=false |
|
verifyTextPresent |
Monitoring was not found |
|
open |
/billing/monitorings |
|
type |
amount |
33 |
clickAndWait |
commit |
|
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/11?group_type=accountant |
|
click |
monitorings_manage_2 |
|
clickAndWait |
commit |
|
open |
/billing/callc/logout |
|
type |
login_username |
accountant |
type |
login_psw |
accountant1 |
clickAndWait |
commit |
|
open |
/billing/monitorings |
|
waitForTextPresent |
Monitoring call price sum over past period |
|
verifyTextNotPresent |
You are not authorized to view this page |
|
open |
/billing/monitorings/edit/3 |
|
waitForTextPresent |
Monitoring was not found |
|
open |
/billing/monitorings/for_user/5 |
|
waitForTextPresent |
User not found |
|
open |
/billing/monitorings/update/3?monitoring%5Bactive%5D=false |
|
waitForTextPresent |
Monitoring was not found |
|
open |
/billing/monitorings |
|
click |
will_be_blocked |
|
type |
amount |
33 |
clickAndWait |
commit |
|
verifyTextPresent |
Monitoring created successfully. Applied to all users. |
|
open |
/billing/callc/logout |
|
type |
login_username |
101 |
type |
login_psw |
1011 |
clickAndWait |
commit |
|
open |
/billing/monitorings |
|
verifyTextPresent |
You are not authorized to view this page |
|
open |
/billing/monitorings/new |
|
verifyTextPresent |
You are not authorized to view this page |
|
open |
/billing/monitorings/edit/1 |
|
verifyTextPresent |
You are not authorized to view this page |
|
open |
/billing/monitorings/for_user/5 |
|
verifyTextPresent |
You are not authorized to view this page |
|
open |
/billing/callc/logout |
|
type |
login_username |
reseller |
type |
login_psw |
reseller1 |
clickAndWait |
commit |
|
open |
/billing/users/edit/5 |
|
click |
user_postpaid_2 |
|
clickAndWait |
//div[@id='confirm_without_message']/input |
|
open |
/billing/monitorings |
|
click |
will_be_blocked |
|
type |
amount |
123 |
click |
monitoring_user_type_prepaid |
|
clickAndWait |
commit |
|
verifyTextPresent |
Monitoring created successfully. Applied to prepaid users. |
|
clickAndWait |
css=#edit_link_7 > img |
|
type |
amount |
33 |
click |
monitoring_user_type_all |
|
clickAndWait |
commit |
|
verifyTextPresent |
Such monitoring already exists, users were associated. Applied to all users. |
|
verifyTextPresent |
33.0 |
|
open |
/billing/monitorings/for_user/7 |
|
waitForTextPresent |
Monitoring call price sum over past period |
|
click |
new |
|
waitForElementPresent |
amount |
|
click |
monitoring_period_in_past_type_hours |
|
click |
monitoring_period_in_past_type_minutes |
|
type |
amount |
222 |
click |
will_be_blocked |
|
click |
will_be_sent |
|
clickAndWait |
commit |
|
clickAndWait |
css=img[alt="Edit"] |
|
click |
monitoring_period_in_past_type_hours |
|
clickAndWait |
commit |
|
verifyTextPresent |
Such monitoring already exists, users were associated. Applied to 1 users. |
|
open |
/billing/monitorings/edit/2 |
|
verifyTextPresent |
Edit monitoring for user: User Resellers |
|
open |
/billing/monitorings |
|
clickAndWait |
link=prepaid_user |
|
verifyValue |
user_username |
prepaid_user |
open |
/billing/monitorings |
|
click |
monitoring_user_type_single |
|
select |
user_id |
label=prepaid_user |
verifyTextPresent |
This monitoring will be applied to prepaid_user |
|
click |
will_be_blocked |
|
type |
amount |
70 |
clickAndWait |
commit |
|
clickAndWait |
link=prepaid_user |
|
verifyValue |
user_username |
prepaid_user |
waitForElementPresent |
ignore_global_monitorings |
|
verifyValue |
ignore_global_monitorings |
off |
check |
ignore_global_monitorings |
|
waitForValue |
ignore_global_monitorings |
on |
clickAndWait |
//div[@id='confirm_without_message']/input |
|
open |
/billing/users/edit/7 |
|
waitForElementPresent |
ignore_global_monitorings |
|
verifyValue |
ignore_global_monitorings |
on |
open |
/billing/test/fake_form?path_to_action=/billing/monitorings/create |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
type |
id=c_1 |
monitoring_period_in_past_type_days |
keyUp |
id=c_1 |
w |
type |
id=n_c_1 |
0 |
type |
id=c_2 |
monitoring_period_in_past_type_hours |
keyUp |
id=c_2 |
w |
type |
id=n_c_2 |
0 |
type |
id=c_3 |
monitoring_period_in_past_type_minutes |
keyUp |
id=c_3 |
w |
type |
id=n_c_3 |
1 |
type |
id=c_4 |
monitoring[monitoring_type] |
keyUp |
id=c_4 |
w |
type |
id=n_c_4 |
bellow |
type |
id=c_5 |
monitoring[email] |
keyUp |
id=c_5 |
w |
type |
id=n_c_5 |
true |
type |
id=c_6 |
monitoring[amount] |
keyUp |
id=c_6 |
w |
type |
id=n_c_6 |
100 |
type |
id=c_7 |
monitoring[block] |
keyUp |
id=c_7 |
w |
type |
id=n_c_7 |
true |
type |
id=c_8 |
monitoring[user_type] |
keyUp |
id=c_8 |
w |
type |
id=n_c_8 |
single |
type |
id=c_9 |
user[id] |
keyUp |
id=c_9 |
w |
type |
id=n_c_9 |
2 |
clickAndWait |
name=commit |
|
waitForTextPresent |
Monitoring created successfully. Applied to 1 users. |
|
verifyText |
css=#monit-10 > td.user_type |
Test User #1 |
open |
/billing/monitorings/for_user/5 |
|
verifyElementNotPresent |
//tr[@id='monit-6']/td[2] |
|
open |
/billing/monitorings |
|
verifyElementPresent |
css=#monit-3 > td.period |
|
verifyElementPresent |
css=#monit-7 > td.period |
|
verifyElementNotPresent |
css=#monit-10 > td.period |
|
open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
open |
/billing/monitorings/for_user/0 |
|
verifyElementPresent |
//tr[@id='monit-6']/td[2] |
|
open |
/billing/monitorings/for_user/2 |
|
verifyElementPresent |
//tr[@id='monit-6']/td[2] |
|
verifyElementNotPresent |
css=#monit-10 > td.period |
|
open |
/billing/monitorings/for_user/3 |
|
verifyElementPresent |
//tr[@id='monit-6']/td[2] |
|
open |
/billing/monitorings/for_user/4 |
|
verifyElementPresent |
//tr[@id='monit-6']/td[2] |
|
open |
/billing/monitorings |
|
verifyElementNotPresent |
css=#monit-3 > td.period |
|
verifyElementNotPresent |
css=#monit-7 > td.period |
|
verifyElementNotPresent |
css=#monit-10 > td.period |
|