stats2
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/stats/last_calls_stats
select date_from_year label=2008
select date_from_month label=January
select date_from_day label=1
select date_till_year label=2010
select date_till_month label=June
select date_till_day label=21
clickAndWait commit
waitForTextPresent Total calls: 18
select s_call_type label=Busy
clickAndWait commit
verifyTextPresent Total calls: 2
select s_hgc label=3 - No route to destination. This cause indica
clickAndWait commit
verifyTextPresent No calls...
select s_hgc label=16 - Normal call clearing. This cause indicate
clickAndWait commit
verifyTextPresent 37046246362
verifyTextPresent User Resellers
verifyTextPresent Test User #1
open /billing/stats/last_calls_stats/0?csv=1&test=1
verifyTextPresent 37046246362
verifyTextPresent User Resellers
verifyTextPresent Test User #1
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
open /billing/stats/last_calls_stats
select date_from_year label=2008
select date_from_month label=January
select date_from_day label=1
select date_till_year label=2010
select date_till_month label=June
select date_till_day label=21
clickAndWait commit
verifyTextPresent Total calls: 10
verifyElementNotPresent s_hgc
verifyText user_price_26 6.0000
verifyText user_price_23 9.0000
open /billing/stats/last_calls_stats/0?csv=1&test=1
verifyTextPresent /tmp/Last_calls
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
open /billing/stats/last_calls_stats
select date_from_year label=2008
select date_from_month label=January
select date_from_day label=1
select date_till_year label=2010
select date_till_month label=June
select date_till_day label=21
clickAndWait commit
verifyTextPresent Total calls: 4
verifyText rate_22 9.0000
verifyElementNotPresent s_hgc
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/stats/show_user_stats
select date_from_year label=2008
clickAndWait commit
open /billing/stats/last_calls_stats
select date_from_year label=2005
clickAndWait commit
verifyText callinfo_link_16
clickAndWait callinfo_link_16
verifyTextPresent General info
verifyTextPresent Call Log
open /billing/dids/new
type did_did 37067531080
clickAndWait commit
clickAndWait commit
open /billing/dids/edit/3
clickAndWait commit
open /billing/dialplans/new
type dialplan[name] new_dp
clickAndWait add_calling_card
open /billing/dids/edit/3
clickAndWait //input[@type='image']
open /billing/stats/action_log
select did label=37067531080
clickAndWait commit
verifyText type_14 did_assigned_to_dp
verifyText type_10 did_created
verifyText type_11 did_edit_provider
verifyText type_12 did_edited
select action_type label=did_assigned_to_dp
clickAndWait commit
verifyText type_14 did_assigned_to_dp
select action_type label=did_created
clickAndWait commit
verifyText type_10 did_created
select action_type label=did_edited
clickAndWait commit
verifyText type_12 did_edited
select action_type label=did_edit_provider
clickAndWait commit
verifyText type_11 did_edit_provider
select did label=37093042422
storeSelectedValue did did
clickAndWait commit
open /billing/stats/action_log
verifySelectedValue did ${did}
open /billing/stats/resellers
verifyText dids_3 0
open /billing/dids/edit/1
select user_id label=Test Reseller
clickAndWait //input[@name='commit' and @value='Reserve']
verifyTextPresent DID reserved
open /billing/stats/resellers
verifyText dids_3 1
open /billing/stats/last_calls_stats
select date_from_year label=2010
select date_from_month label=January
select date_from_day label=1
select date_till_year label=2010
select date_till_month label=June
select date_till_day label=31
clickAndWait commit
verifyText //td[@id='user_28']/a Test User #1
waitForText calldate_28 2010-06-22 00:00:01
open /billing/stats/show_user_stats
select date_from_year label=2010
select date_till_year label=2010
select date_from_month label=June
select date_from_day label=22
select date_till_month label=June
select date_till_day label=22
clickAndWait commit
clickAndWait //div[@id='table']/table/tbody/tr[5]/td[12]/a
waitForText page_title Last Calls
waitForText link=Test User #1 Test User #1
waitForText calldate_28 2010-06-22 00:00:01
open /billing/stats/show_user_stats
clickAndWait //div[@id='table']/table/tbody/tr[2]/td[12]/a/img
waitForText page_title Last Calls
waitForTextPresent No calls...
open /billing/test/load_delta_sql/stats_user_logins
open /billing/stats/user_logins/0
verifyTextNotPresent INETRNAL ERROR
select date_from_year label=2011
select date_from_month label=May
select date_from_day label=31
select date_till_year label=2011
select date_till_month label=May
select date_till_day label=31
clickAndWait commit
verifyTextNotPresent INETRNAL ERROR
waitForTextPresent 2011-05-31