time_zone
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/test/load_delta_sql/sql/various_calls
waitForElementPresent //body
open /billing/test/load_delta_sql/sql/backups
waitForElementPresent //body
open /billing/test/load_delta_sql/sql/cron_actions
waitForElementPresent //body
open /billing/test/load_delta_sql/sql/global_time_zone_plus_two
waitForElementPresent //body
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/personal_details
verifySelectedLabel id=user[time_zone] (GMT+00:00) Casablanca, Dublin, Edinburgh, Lisbon, London, Monrovia
open /billing/backups/backup_manager
verifyText id=time_1 2008-11-22 14:55:53
verifyText id=time_2 2009-11-22 14:55:53
verifyText id=time_3 2010-11-22 14:55:53
verifyText id=time_4 2011-11-22 14:55:53
open /billing/functions/settings
click //div[@name='backups']/span
waitForTextPresent * Value in system time zone: GMT 0
open /billing/cron_actions
open /billing/cron_actions/edit/3
verifyTextPresent * Value in your time zone: GMT 0.0
verifySelectedLabel id=activation_start_day 22
verifySelectedLabel id=activation_start_hour 15
open /billing/stats/last_calls_stats
select id=date_from_year label=2009
select id=date_from_month label=January
select id=date_from_day label=1
select id=date_till_year label=2009
select id=date_till_month label=January
select id=date_till_day label=1
select id=date_till_hour label=00
select id=date_till_minute label=00
select id=date_from_minute label=00
select id=date_from_hour label=00
clickAndWait name=commit
waitForText id=calldate_9 2009-01-01 00:00:01
verifyText id=calldate_12 2009-01-01 00:00:04
open /billing/stats/calls_per_day
select id=date_from_year label=2011
select id=date_from_month label=November
select id=date_from_day label=10
select id=date_till_year label=2011
select id=date_till_month label=November
select id=date_till_day label=13
clickAndWait name=commit
assertText id=date_0 2011-11-10
assertText id=date_1 2011-11-11
assertText id=date_2 2011-11-12
assertText id=calls_0 1
assertText id=calls_1 4
assertText id=calls_2 4
open /billing/users/personal_details
select id=user[time_zone] label=(GMT+05:00) Islamabad, Karachi, Tashkent
clickAndWait name=commit
waitForTextPresent Personal details changed
open /billing/stats/last_calls_stats
select id=date_from_year label=2009
select id=date_from_month label=January
select id=date_from_day label=1
select id=date_till_year label=2009
select id=date_till_month label=January
select id=date_till_day label=1
select id=date_till_hour label=00
select id=date_till_minute label=00
select id=date_from_minute label=00
select id=date_from_hour label=00
clickAndWait name=commit
waitForTextPresent No calls...
verifyTextNotPresent 2009-01-01 00:00:01
verifyTextNotPresent 2009-01-01 00:00:04
select id=date_from_year label=2009
select id=date_from_month label=January
select id=date_from_day label=1
select id=date_from_minute label=00
select id=date_from_hour label=05
select id=date_till_year label=2009
select id=date_till_month label=January
select id=date_till_day label=1
select id=date_till_hour label=05
select id=date_till_minute label=00
clickAndWait name=commit
verifyText id=calldate_9 2009-01-01 05:00:01
verifyText id=calldate_12 2009-01-01 05:00:04
open /billing/users/edit/3
select id=user[time_zone] label=(GMT-02:00) Mid-Atlantic
clickAndWait css=#confirm_without_message > input[name="commit"]
open /billing/backups/backup_manager
waitForTextPresent Value in system time zone: GMT 0
verifyElementPresent css=img[alt="Information"]
verifyText id=time_1 2008-11-22 14:55:53
verifyText id=time_2 2009-11-22 14:55:53
verifyText id=time_3 2010-11-22 14:55:53
verifyText id=time_4 2011-11-22 14:55:53
open /billing/functions/settings
click //div[@name='backups']/span
waitForTextPresent * Value in system time zone: GMT 0
open /billing/cron_actions
open /billing/cron_actions/edit/3
verifyTextPresent * Value in your time zone: GMT +5
verifySelectedLabel id=activation_start_day 22
verifySelectedLabel id=activation_start_hour 20
open /billing/stats/calls_per_day
select id=date_from_year label=2011
select id=date_from_month label=November
select id=date_from_day label=10
select id=date_till_year label=2011
select id=date_till_month label=November
select id=date_till_day label=13
clickAndWait name=commit
assertText id=date_0 2011-11-10
assertText id=date_1 2011-11-11
assertText id=date_2 2011-11-12
assertText id=calls_0 1
assertText id=calls_1 3
assertText id=calls_2 5
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/users/personal_details
verifySelectedLabel id=user[time_zone] (GMT-02:00) Mid-Atlantic
open /billing/stats/last_calls_stats
select id=date_from_year label=2009
select id=date_from_month label=January
select id=date_from_day label=1
select id=date_from_minute label=00
select id=date_from_hour label=00
select id=date_till_year label=2009
select id=date_till_month label=January
select id=date_till_day label=1
select id=date_till_hour label=00
select id=date_till_minute label=30
clickAndWait name=commit
waitForTextPresent No calls...
verifyTextNotPresent 2009-01-01 00:00:01
verifyTextNotPresent 2009-01-01 00:00:04
verifyTextNotPresent 2009-01-01 05:00:01
verifyTextNotPresent 2009-01-01 05:00:04
select id=date_from_year label=2009
select id=date_from_month label=January
select id=date_from_day label=1
select id=date_from_minute label=00
select id=date_from_hour label=05
select id=date_till_year label=2009
select id=date_till_month label=January
select id=date_till_day label=1
select id=date_till_hour label=05
select id=date_till_minute label=00
clickAndWait name=commit
verifyTextPresent No calls...
verifyTextNotPresent 2009-01-01 00:00:01
verifyTextNotPresent 2009-01-01 00:00:04
verifyTextNotPresent 2009-01-01 05:00:01
verifyTextNotPresent 2009-01-01 05:00:04
select id=date_from_year label=2008
select id=date_from_month label=December
select id=date_from_day label=31
select id=date_till_year label=2008
select id=date_till_month label=December
select id=date_till_day label=31
select id=date_from_hour label=22
select id=date_till_hour label=22
select id=date_from_minute label=00
select id=date_till_minute label=00
clickAndWait name=commit
waitForText id=calldate_11 2008-12-31 22:00:03
waitForText id=calldate_12 2008-12-31 22:00:04
verifyTextNotPresent No calls...
verifyTextNotPresent 2009-01-01 00:00:01
verifyTextNotPresent 2009-01-01 00:00:04
verifyTextNotPresent 2009-01-01 05:00:01
verifyTextNotPresent 2009-01-01 05:00:04
open /billing/functions/reseller_settings
click css=#tabTabdhtmlgoodies_tabView1_3 > span
type id=invoice_number_start 03
click id=invoice_number_type_1
clickAndWait name=commit
open /billing/accounting/generate_invoices
select id=date_from_year label=2008
select id=date_from_month label=December
select id=date_from_day label=31
select id=date_till_year label=2008
select id=date_till_month label=December
select id=date_till_day label=31
click id=invoice_type_postpaid
click name=commit
assertConfirmation Are you sure?
waitForTextPresent 2008-12-31 - 2008-12-31
verifyTextPresent Invoices generated: 0
open /billing/accounting/generate_invoices
select id=date_from_year label=2009
select id=date_from_month label=January
select id=date_from_day label=1
select id=date_till_year label=2009
select id=date_till_month label=January
select id=date_till_day label=1
click id=invoice_type_postpaid
select id=date_issue_year label=2011
select id=date_issue_month label=November
select id=date_issue_day label=6
click name=commit
assertConfirmation Are you sure?
waitForTextPresent 2009-01-01 - 2009-01-01
waitForTextPresent Invoices generated: 1
open /billing/accounting/invoices
waitForText id=inv_period_start_1 2009-01-01
waitForText id=inv_period_end_1 2009-01-01
waitForText id=inv_issue_1 2011-11-06
open /billing/accounting/generate_invoice_pdf/1?test=1
waitForTextPresent period_end: "2009-01-01"
waitForTextPresent period_start: "2009-01-01"
waitForTextPresent issue_date: "2011-11-06"
waitForTextPresent price: "5"
open /billing/accounting/generate_invoice_csv/1?test=1
waitForTextPresent 2009-01-01
waitForTextPresent 2011-11-06
waitForTextPresent 5.0000
open /billing/accounting/generate_invoice_detailed_pdf/1?test=1
waitForTextPresent 2011-11-06
waitForTextPresent price: "4"
open /billing/accounting/generate_invoice_detailed_csv/1?test=1
waitForTextPresent 2011-11-06
waitForTextPresent 4.0000
open /billing/accounting/generate_invoice_by_cid_pdf/1?test=1
waitForTextPresent 2009-01-01
waitForTextPresent 2011-11-06
open /billing/accounting/generate_invoice_by_cid_csv/1?test=1
waitForTextPresent 2011-11-06
waitForTextPresent 4.0
open /billing/accounting/generate_invoice_destinations_csv/1?test=1
waitForTextPresent 2011-11-06
waitForTextPresent 2009-01-01
waitForTextPresent 2009-01-01
waitForTextPresent 4.0000
open /billing/services/new
type id=service_name aaaaa
click id=service_servicetype_periodic_fee
verifyValue id=service[price] 0.0
clickAndWait name=commit
open /billing/services/subscription_new/5
select id=activation_end_year label=2013
select id=activation_start_year label=2011
select id=activation_start_month label=November
select id=activation_start_day label=8
select id=activation_start_hour label=16
select id=activation_start_minute label=42
select id=activation_end_month label=November
select id=activation_end_day label=8
select id=activation_end_hour label=16
select id=activation_end_minute label=42
clickAndWait name=commit
waitForTextPresent Subscription added
verifyText id=activation_start_15 2011-11-08 14:42:00
verifyText id=activation_end_15 2013-11-08 14:42:00
open /billing/users/edit/5
select id=user[time_zone] label=(GMT+02:00) Athens, Cairo, Helsinki, Istanbul, Kyiv, Minsk, Riga, Tallinn, Vilnius
clickAndWait css=#confirm_without_message > input[name="commit"]
open /billing/services/subscriptions
select id=date_till_year label=2012
clickAndWait name=commit
waitForText id=activation_start_15 2011-11-08 14:42:00
waitForText id=activation_end_15 2013-11-08 14:42:00
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
open /billing/services/user_subscriptions
waitForTextPresent 2011-11-08 18:42:00
waitForTextPresent 2013-11-08 18:42:00
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/callc/hourly_actions
waitForTextPresent Mission complete
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/users/edit/4
click id=warning_active
type id=user[warning_email_balance] 500.0000
click id=user[warning_email_hour]_0
select id=date_user_warning_email_hour label=01
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: Test Accountant
open /billing/users/edit/3
click id=warning_active
type id=user[warning_email_balance] 10.0000
click id=user[warning_email_hour]_0
select id=date_user_warning_email_hour label=01
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: Test Reseller
open /billing/stats/calls_per_day
select id=date_from_year label=2011
select id=date_from_month label=November
select id=date_from_day label=10
select id=date_till_year label=2011
select id=date_till_month label=November
select id=date_till_day label=13
clickAndWait name=commit
assertText id=date_0 2011-11-10
assertText id=date_1 2011-11-11
assertText id=date_2 2011-11-12
assertText id=date_3 2011-11-13
assertText id=calls_0 2
assertText id=calls_1 3
assertText id=calls_2 5
assertText id=calls_3 4
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/users/edit/5
select id=user[time_zone] label=(GMT-09:00) Alaska
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: User Resellers
open /billing/users/edit/5
click id=warning_active
type id=user[warning_email_balance] 110.0000
click id=user[warning_email_hour]_0
select id=date_user_warning_email_hour label=01
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: User Resellers
open /billing/accounting/invoices
click css=img[alt="Delete"]
assertConfirmation Are you sure?
waitForTextPresent Invoice deleted
open /billing/accounting/generate_invoices
select id=date_from_year label=2009
select id=date_from_month label=January
select id=date_from_day label=1
select id=date_till_year label=2009
select id=date_till_month label=January
select id=date_till_day label=1
click id=invoice_type_postpaid
select id=date_issue_year label=2011
select id=date_issue_month label=November
select id=date_issue_day label=6
click name=commit
assertConfirmation Are you sure?
waitForTextPresent 2009-01-01 - 2009-01-01
waitForTextPresent Invoices generated: 1
open /billing/accounting/invoices
verifyText id=inv_period_start_2 2009-01-01
verifyText id=inv_period_end_2 2009-01-01
verifyText id=inv_issue_2 2011-11-06
open /billing/accounting/generate_invoice_pdf/2?test=1
waitForTextPresent period_end: "2009-01-01"
waitForTextPresent period_start: "2009-01-01"
waitForTextPresent issue_date: "2011-11-06"
waitForTextPresent price: "5"
open /billing/accounting/generate_invoice_csv/2?test=1
waitForTextPresent 2009-01-01
waitForTextPresent 2011-11-06
waitForTextPresent 5.0000
open /billing/accounting/generate_invoice_detailed_pdf/2?test=1
waitForTextPresent 2011-11-06
waitForTextPresent price: "4"
open /billing/accounting/generate_invoice_detailed_csv/2?test=1
waitForTextPresent 2011-11-06
waitForTextPresent 4.0000
open /billing/accounting/generate_invoice_by_cid_pdf/2?test=1
waitForTextPresent 2009-01-01
waitForTextPresent 2011-11-06
open /billing/accounting/generate_invoice_by_cid_csv/2?test=1
waitForTextPresent 2011-11-06
waitForTextPresent 4.0
open /billing/accounting/generate_invoice_destinations_csv/2?test=1
waitForTextPresent 2011-11-06
waitForTextPresent 2009-01-01
waitForTextPresent 2009-01-01
waitForTextPresent 4.0000
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/users/edit/3
select id=date_user_warning_email_hour label=01
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: Test Reseller
open /billing/users/personal_details
select id=user[time_zone] label=(GMT+07:00) Bangkok, Hanoi, Jakarta, Novosibirsk
clickAndWait name=commit
waitForTextPresent Personal details changed
open /billing/backups/backup_manager
waitForElementPresent link=Manual
waitForElementPresent css=img[alt="Information"]
waitForTextPresent Value in system time zone:
verifyElementPresent css=img[alt="Information"]
verifyText id=time_1 2008-11-22 14:55:53
verifyText id=time_2 2009-11-22 14:55:53
verifyText id=time_3 2010-11-22 14:55:53
verifyText id=time_4 2011-11-22 14:55:53
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/functions/settings
click //div[@name='backups']
verifyElementPresent css=img[alt="Information"]
waitForTextPresent * Value in system time zone: GMT +3
open /billing/cron_actions
open /billing/cron_actions/edit/3
verifyElementPresent css=img[alt="Information"]
verifyTextPresent * Value in your time zone: GMT +7
verifySelectedLabel id=activation_start_day 22
verifySelectedLabel id=activation_start_hour 19
open /billing/stats/calls_per_day
select id=date_from_year label=2011
select id=date_from_month label=November
select id=date_from_day label=10
select id=date_till_year label=2011
select id=date_till_month label=November
select id=date_till_day label=13
clickAndWait name=commit
assertText id=date_0 2011-11-10
assertText id=date_1 2011-11-11
assertText id=date_2 2011-11-12
assertText id=date_3 2011-11-13
assertText id=calls_0 2
assertText id=calls_1 3
assertText id=calls_2 5
assertText id=calls_3 3
assertText id=total_calls 13
open /billing/backups/backup_manager
waitForTextPresent GMT +3
verifyElementPresent css=img[alt="Information"]
verifyText id=time_1 2008-11-22 14:55:53
verifyText id=time_2 2009-11-22 14:55:53
verifyText id=time_3 2010-11-22 14:55:53
verifyText id=time_4 2011-11-22 14:55:53