open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextNotPresent |
Credit notes |
|
open |
/billing/functions/settings |
|
uncheck |
email_sending_enabled |
|
clickAndWait |
commit |
|
waitForTextPresent |
Settings saved |
|
open |
/billing/users/edit/0 |
|
check |
user_postpaid_1 |
|
check |
unlimited |
|
type |
address_email |
non.existing.emai@noneemail.com |
clickAndWait |
//div[@id='confirm_without_message']/input |
|
open |
/billing/users/edit/3 |
|
uncheck |
unlimited |
|
type |
credit |
10 |
click |
user_postpaid_1 |
|
clickAndWait |
//div[@id='confirm_without_message']/input |
|
open |
/billing/users/edit/4 |
|
click |
user_postpaid_2 |
|
check |
unlimited |
|
clickAndWait |
//div[@id='confirm_without_message']/input |
|
open |
/billing/users/edit/2 |
|
uncheck |
unlimited |
|
type |
credit |
10 |
check |
user_postpaid_2 |
|
clickAndWait |
//div[@id='confirm_without_message']/input |
|
open |
/billing/payments/manual_payment |
|
select |
user |
label=System Admin |
type |
amount |
20 |
clickAndWait |
commit |
|
clickAndWait |
commit |
|
verifyTextPresent |
Payment added |
|
open |
/billing/payments/manual_payment |
|
select |
user |
label=Test Reseller |
type |
amount |
20 |
clickAndWait |
commit |
|
clickAndWait |
commit |
|
verifyTextPresent |
Payment added |
|
open |
/billing/payments/manual_payment |
|
waitForElementPresent |
user |
|
select |
user |
label=Test Accountant |
type |
amount |
20 |
clickAndWait |
commit |
|
clickAndWait |
commit |
|
verifyTextPresent |
Payment added |
|
open |
/billing/payments/manual_payment |
|
select |
user |
label=Test User #1 |
type |
amount |
20 |
clickAndWait |
commit |
|
clickAndWait |
commit |
|
verifyTextPresent |
Payment added |
|
open |
/billing/services/list |
|
clickAndWait |
link=New service |
|
type |
service_name |
One_time_fee |
click |
service_servicetype_one_time_fee |
|
type |
service[price] |
5 |
clickAndWait |
commit |
|
verifyTextPresent |
Service was successfully created |
|
clickAndWait |
link=New service |
|
type |
service_name |
Test_flat_rate |
click |
service_servicetype_flat_rate |
|
type |
service[price] |
10 |
type |
service_quantity |
1000 |
clickAndWait |
commit |
|
open |
/billing/services/subscription_new/0 |
|
select |
subscription_service_id |
label=One_time_fee, Price: 5.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=May |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/0 |
|
select |
subscription_service_id |
label=Test_flat_rate, Price: 10.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=January |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
select |
activation_end_year |
label=2009 |
select |
activation_end_month |
label=July |
select |
activation_end_day |
label=31 |
select |
activation_end_hour |
label=23 |
select |
activation_end_minute |
label=59 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/0 |
|
select |
subscription_service_id |
label=Test_periodic_service, Price: 10.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=January |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
select |
activation_end_year |
label=2009 |
select |
activation_end_month |
label=May |
select |
activation_end_day |
label=20 |
select |
activation_end_hour |
label=23 |
select |
activation_end_minute |
label=59 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/3 |
|
select |
subscription_service_id |
label=One_time_fee, Price: 5.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=May |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/3 |
|
select |
subscription_service_id |
label=Test_flat_rate, Price: 10.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=January |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
select |
activation_end_year |
label=2009 |
select |
activation_end_month |
label=July |
select |
activation_end_day |
label=31 |
select |
activation_end_hour |
label=23 |
select |
activation_end_minute |
label=59 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/3 |
|
select |
subscription_service_id |
label=Test_periodic_service, Price: 10.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=January |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
select |
activation_end_year |
label=2009 |
select |
activation_end_month |
label=July |
select |
activation_end_day |
label=31 |
select |
activation_end_hour |
label=23 |
select |
activation_end_minute |
label=59 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/4 |
|
select |
subscription_service_id |
label=One_time_fee, Price: 5.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=May |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/4 |
|
select |
subscription_service_id |
label=Test_flat_rate, Price: 10.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=January |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
select |
activation_end_year |
label=2009 |
select |
activation_end_month |
label=July |
select |
activation_end_day |
label=31 |
select |
activation_end_hour |
label=23 |
select |
activation_end_minute |
label=59 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/4 |
|
select |
subscription_service_id |
label=Test_periodic_service, Price: 10.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=January |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
select |
activation_end_year |
label=2009 |
select |
activation_end_month |
label=July |
select |
activation_end_day |
label=31 |
select |
activation_end_hour |
label=23 |
select |
activation_end_minute |
label=59 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscriptions_list/2 |
|
clickAndWait |
//img[@alt='Delete'] |
|
click |
delete_delete |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted |
|
open |
/billing/services/subscription_new/2 |
|
select |
subscription_service_id |
label=One_time_fee, Price: 5.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=May |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/2 |
|
select |
subscription_service_id |
label=Test_flat_rate, Price: 10.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=January |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
select |
activation_end_year |
label=2009 |
select |
activation_end_month |
label=July |
select |
activation_end_day |
label=31 |
select |
activation_end_hour |
label=23 |
select |
activation_end_minute |
label=59 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscription_new/2 |
|
select |
subscription_service_id |
label=Test_periodic_service, Price: 10.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=January |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
select |
activation_end_year |
label=2009 |
select |
activation_end_month |
label=July |
select |
activation_end_day |
label=31 |
select |
activation_end_hour |
label=23 |
select |
activation_end_minute |
label=59 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/callc/pay_subscriptions_test/2012/12 |
|
verifyTextPresent |
Date is in future |
|
open |
/billing/stats/action_log |
|
verifyTextNotPresent |
Cant_send_email |
|
open |
/billing/callc/pay_subscriptions_test/2009/05 |
|
verifyText |
//year |
2009 |
verifyText |
//month |
5 |
verifyElementPresent |
//user[@username='admin'] |
|
verifyElementNotPresent |
//user[@username='admin']/blocked |
|
verifyText |
//user[@username='admin']/subscription/service/ |
One_time_fee |
verifyText |
//user[@username='admin']/subscription/price |
5.0000 |
verifyText |
//user[@username='admin']/subscription[2]/service/ |
Test_flat_rate |
verifyText |
//user[@username='admin']/subscription[2]/price |
10.0000 |
verifyText |
//user[@username='admin']/subscription[3]/service/ |
Test_periodic_service |
verifyText |
//user[@username='admin']/subscription[3]/price |
6.4516 |
verifyText |
//user[@username='admin']/balance_left |
-1.4516 |
verifyElementPresent |
//user[@username='101'] |
|
verifyElementNotPresent |
//user[@username='101']/blocked |
|
verifyText |
//user[@username='101']/subscription/service/ |
Test_flat_rate |
verifyText |
//user[@username='101']/subscription/price |
10.0000 |
verifyText |
//user[@username='101']/subscription[2]/service/ |
Test_periodic_service |
verifyText |
//user[@username='101']/subscription[2]/price |
10.0000 |
verifyText |
//user[@username='101']/balance_left |
0.0000 |
verifyElementPresent |
//user[@username='reseller'] |
|
verifyText |
//user[@username='reseller']/subscription/service/ |
One_time_fee |
verifyText |
//user[@username='reseller']/subscription/price |
5.0000 |
verifyText |
//user[@username='reseller']/subscription[2]/service/ |
Test_flat_rate |
verifyText |
//user[@username='reseller']/subscription[2]/price |
10.0000 |
verifyText |
//user[@username='reseller']/subscription[3]/service/ |
Test_periodic_service |
verifyText |
//user[@username='reseller']/subscription[3]/price |
10.0000 |
verifyText |
//user[@username='reseller']/balance_left |
-5.0000 |
verifyElementPresent |
//user[@username='accountant'] |
|
verifyElementNotPresent |
//user[@username='accountant']/blocked |
|
verifyText |
//user[@username='accountant']/subscription/service/ |
Test_flat_rate |
verifyText |
//user[@username='accountant']/subscription/price |
10.0000 |
verifyText |
//user[@username='accountant']/subscription[2]/service/ |
Test_periodic_service |
verifyText |
//user[@username='accountant']/subscription[2]/price |
10.0000 |
verifyText |
//user[@username='accountant']/balance_left |
0.0000 |
open |
/billing/stats/action_log |
|
verifyTextNotPresent |
Cant_send_email |
|
open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
open |
/billing/stats/action_log |
|
select |
action_type |
label=subscription_paid |
clickAndWait |
commit |
|
verifyText |
link=System Admin |
System Admin |
verifyTextPresent |
2009-5 |
|
verifyTextPresent |
5.0 |
|
verifyTextPresent |
6.45161290322581 |
|
verifyText |
link=Test User #1 |
Test User #1 |
verifyTextPresent |
2009-6 |
|
verifyTextPresent |
10.0 |
|
verifyText |
link=Test Reseller |
Test Reseller |
verifyTextPresent |
2009-5 |
|
verifyTextPresent |
5.0 |
|
verifyText |
link=Test Accountant |
Test Accountant |
verifyTextPresent |
2009-6 |
|
verifyTextPresent |
10.0 |
|
select |
action_type |
label=user_edited |
clickAndWait |
commit |
|
clickAndWait |
commit |
|
verifyText |
link=Test User #1 |
Test User #1 |
verifyText |
link=Test Accountant |
Test Accountant |
open |
/billing/payments/list |
|
waitForElementPresent |
link=Manual |
|
assertText |
id=user_14 |
System Admin |
verifyText |
paymenttype_14 |
Subscription |
verifyText |
amount_14 |
-5.0000 |
verifyText |
id=user_15 |
System Admin |
verifyText |
paymenttype_15 |
Subscription |
verifyText |
amount_15 |
-10.0000 |
verifyText |
id=user_16 |
System Admin |
verifyText |
paymenttype_16 |
Subscription |
verifyText |
amount_16 |
-6.4516 |
verifyText |
id=user_17 |
Test User #1 |
verifyText |
paymenttype_17 |
Subscription |
verifyText |
amount_17 |
-10.0000 |
verifyText |
id=user_18 |
Test User #1 |
verifyText |
paymenttype_18 |
Subscription |
verifyText |
amount_18 |
-10.0000 |
verifyText |
id=user_19 |
Test Reseller |
verifyText |
paymenttype_19 |
Subscription |
verifyText |
amount_19 |
-5.0000 |
verifyText |
id=user_20 |
Test Reseller |
verifyText |
paymenttype_20 |
Subscription |
verifyText |
amount_20 |
-10.0000 |
verifyText |
id=user_21 |
Test Reseller |
verifyText |
paymenttype_21 |
Subscription |
verifyText |
amount_21 |
-10.0000 |
verifyText |
id=user_22 |
Test Accountant |
verifyText |
paymenttype_22 |
Subscription |
verifyText |
amount_22 |
-10.0000 |
verifyText |
id=user_23 |
Test Accountant |
verifyText |
paymenttype_23 |
Subscription |
verifyText |
amount_23 |
-10.0000 |
open |
/billing/users/edit/2 |
|
click |
user_blocked_1 |
|
clickAndWait |
//div[@id='confirm_without_message']/input |
|
verifyTextPresent |
User's settings succesfully changed: Test User #1 |
|
open |
/billing/services/subscriptions_list/2 |
|
clickAndWait |
add_subscription |
|
clickAndWait |
commit |
|
verifyTextPresent |
Insufficient balance |
|
open |
/billing/users/edit/2 |
|
click |
user_blocked_1 |
|
clickAndWait |
//div[@id='confirm_without_message']/input |
|
verifyTextPresent |
User's settings succesfully changed: Test User #1 |
|
open |
/billing/payments/manual_payment |
|
select |
user |
label=Test User #1 |
type |
amount |
5 |
clickAndWait |
commit |
|
clickAndWait |
commit |
|
verifyTextPresent |
Payment added |
|
open |
/billing/services/subscriptions_list/2 |
|
clickAndWait |
add_subscription |
|
clickAndWait |
commit |
|
open |
/billing/payments/list |
|
verifyTextPresent |
Test User #1 |
|
verifyTextPresent |
-5.0000 |
|
open |
/billing/services/subscriptions_list/2 |
|
clickAndWait |
destroy_link_11 |
|
click |
delete_delete |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted |
|
open |
/billing/services/subscriptions_list/2 |
|
clickAndWait |
destroy_link_13 |
|
click |
delete_return_money_whole |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted and money returned |
|
open |
/billing/users/edit/2 |
|
verifyText |
user_balance_value |
70.0000 USD |
open |
/billing/services/subscriptions_list/2 |
|
clickAndWait |
destroy_link_12 |
|
click |
delete_return_money_whole |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted and money returned |
|
open |
/billing/users/edit/2 |
|
verifyText |
user_balance_value |
140.0000 USD |
open |
/billing/services/subscriptions_list/2 |
|
clickAndWait |
destroy_link_15 |
|
click |
delete_return_money_whole |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted and money returned |
|
open |
/billing/users/edit/2 |
|
verifyText |
user_balance_value |
145.0000 USD |
open |
/billing/services/subscriptions_list/2 |
|
clickAndWait |
add_subscription |
|
select |
subscription_service_id |
label=Test_periodic_service, Price: 10.0 |
select |
activation_end_year |
label=2021 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
clickAndWait |
//img[@alt='Delete'] |
|
click |
delete_return_money_month |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted and money returned |
|
open |
/billing/users/edit/2 |
|
verifyText |
user_balance_value |
145.0000 USD |
open |
/billing/payments/list |
|
verifyText |
paymenttype_26 |
Subscription |
verifyText |
amount_26 |
70.0000 |
verifyText |
completed_26 |
Yes |
verifyText |
paymenttype_27 |
Subscription |
verifyText |
amount_27 |
70.0000 |
verifyText |
completed_27 |
Yes |
verifyText |
paymenttype_28 |
Subscription |
verifyText |
amount_28 |
5.0000 |
verifyText |
completed_28 |
Yes |
open |
/billing/services/subscriptions_list/3 |
|
clickAndWait |
add_subscription |
|
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
open |
/billing/services/subscriptions_list/3 |
|
clickAndWait |
destroy_link_17 |
|
click |
delete_delete |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted |
|
open |
/billing/services/subscriptions_list/3 |
|
clickAndWait |
destroy_link_7 |
|
click |
delete_return_money_whole |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted and money returned |
|
open |
/billing/users/edit/3 |
|
verifyText |
user_balance_value |
65.0000 USD |
open |
/billing/services/subscriptions_list/3 |
|
clickAndWait |
destroy_link_6 |
|
click |
delete_return_money_whole |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted and money returned |
|
open |
/billing/users/edit/3 |
|
verifyText |
user_balance_value |
135.0000 USD |
open |
/billing/services/subscriptions_list/3 |
|
clickAndWait |
destroy_link_5 |
|
click |
delete_return_money_whole |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription deleted and money returned |
|
open |
/billing/users/edit/3 |
|
verifyText |
user_balance_value |
140.0000 USD |
open |
/billing/payments/list |
|
verifyText |
paymenttype_31 |
Subscription |
verifyText |
amount_31 |
70.0000 |
verifyText |
completed_31 |
Yes |
verifyText |
paymenttype_32 |
Subscription |
verifyText |
amount_32 |
70.0000 |
verifyText |
completed_32 |
Yes |
verifyText |
paymenttype_33 |
Subscription |
verifyText |
amount_33 |
5.0000 |
verifyText |
completed_33 |
Yes |
verifyText |
total_amount |
283.5484(USD) |
verifyText |
total_fee |
0.0000(USD) |
verifyText |
total_with_tax |
283.5484(USD) |
open |
/billing/services/subscriptions_list/3 |
|
clickAndWait |
add_subscription |
|
select |
subscription_service_id |
label=Test_flat_rate, Price: 10.0 |
select |
activation_start_year |
label=2009 |
select |
activation_start_month |
label=January |
select |
activation_start_day |
label=1 |
select |
activation_start_hour |
label=00 |
select |
activation_start_minute |
label=00 |
select |
activation_end_year |
label=2009 |
select |
activation_end_month |
label=July |
select |
activation_end_day |
label=31 |
select |
activation_end_hour |
label=23 |
select |
activation_end_minute |
label=59 |
clickAndWait |
commit |
|
verifyTextPresent |
Subscription added |
|
clickAndWait |
destroy_link_18 |
|
click |
delete_disable |
|
clickAndWait |
commit |
|
assertConfirmation |
Are you sure? |
|
verifyTextPresent |
Subscription disabled |
|
open |
/billing/callc/logout |
|
open |
/billing/callc/monthly_actions |
|
verifyText |
//html |
|