calling_card_aggregate_re
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/load_delta_sql/calls_for_cardgroup
open /billing/test/load_delta_sql/acc_groups
open /billing/test/load_delta_sql/calls_fix_delta
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/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
assertText id=sreseller_menu_addons3 Aggregate statistics
open /billing/cardgroups/aggregate
assertTextPresent Don't be so smart...
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/edit/3
check id=own_providers
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
assertText id=sreseller_menu_addons3 Aggregate statistics
open /billing/cardgroups/aggregate
assertTextPresent Aggregate
open /billing/cardgroups/aggregate
verifyText page_title_icon Aggregate
waitForElementPresent date_from_year
waitForElementPresent date_from_month
waitForElementPresent date_from_day
waitForElementPresent date_from_hour
waitForElementPresent date_from_minute
waitForElementPresent date_till_year
waitForElementPresent date_till_month
verifyElementPresent date_till_day
waitForElementPresent date_till_hour
waitForElementPresent date_till_minute
waitForElementPresent cardgroup
waitForElementPresent prefix
waitForElementPresent destination_grouping_1
waitForElementPresent destination_grouping_2
select date_from_year label=2007
clickAndWait commit
waitForTextPresent Records: 3
waitForTextPresent Pages: 1
waitForElementPresent link=Prefix
waitForElementPresent link=Card Group
verifyText link=Duration Duration
verifyText link=Answered calls Answered calls
verifyText link=Total calls Total calls
verifyText link=ASR ASR
verifyText link=ACD ACD
verifyText link=Provider price Provider price
verifyText link=User price User price
verifyText link=Margin Margin
click destination_grouping_2
clickAndWait commit
verifyText link=Direction Direction
verifyText total_duration 00:04:00
verifyText total_answ_calls 6
verifyText total_total_calls 7
verifyText total_ast 85.7143 %
verifyText total_acd 00:00:40
verifyText total_provider_price 6.0000
verifyText total_user_price 12.0000
verifyText total_margin 50.0000 %
verifyText total_markup 100.0000 %
verifyText t_dir_name_0 Luxembourg MOB
clickAndWait direction_0
verifyText t_dir_name_0
verifyText t_cardname_0 Test_cardgroup_test_1
clickAndWait cardgroup_1
clickAndWait cardgroup_0
verifyText t_cardname_0 Test_cardgroup
verifyText t_duration_0 00:00:50
clickAndWait duration_1
verifyText t_duration_0 00:03:10
verifyText t_answered_calls_0 4
clickAndWait answered_calls_0
verifyText t_answered_calls_0 1
verifyText t_total_calls_0 1
clickAndWait total_calls_1
verifyText t_total_calls_0 5
verifyText t_asr_0 80.0000 %
clickAndWait asr_0
clickAndWait asr_1
verifyText t_asr_0 100.0000 %
verifyText t_acd_0 00:00:50
clickAndWait acd_0
verifyText t_acd_0
verifyText t_provider_price_0 0.0000
clickAndWait provider_price_1
clickAndWait provider_price_0
verifyText t_provider_price_0 0.0000
verifyText t_user_price_0 0.0000
clickAndWait user_price_1
clickAndWait user_price_0
verifyText t_user_price_0 0.0000
verifyText t_profit_0 0.0000
clickAndWait profit_1
verifyText t_profit_0 8.0000
verifyText t_margin_0 80.0000 %
clickAndWait margin_0
verifyText t_margin_0 -100.0000 %
verifyText t_markup_0 -50.0000 %
clickAndWait markup_1
verifyText t_markup_0 400.0000 %
open /billing/cardgroups/aggregate?csv=1&test=1
verifyTextPresent asr: "80.0000"
waitForTextPresent direct_name: "Lithuania MOB (3706) "
waitForTextPresent acd: "50.0000"
verifyTextPresent margin: "80"
verifyTextPresent profit: "8"
verifyTextPresent markup: "400"
verifyTextPresent total_calls: "1"
verifyTextPresent answered_calls: "1"
verifyTextPresent provider_price: "2"
verifyTextPresent duration: "50"
verifyTextPresent cardgroup_name: Test_cardgroup
verifyTextPresent user_price: "10"
open /billing/cardgroups/aggregate
click destination_grouping_2
type prefix 370
clickAndWait commit
waitForTextNotPresent Luxembourg MOB
open /billing/cardgroups/aggregate?csv=1&test=1
waitForTextNotPresent Luxembourg MOB
open /billing/cardgroups/aggregate
click destination_grouping_1
type prefix 352
clickAndWait commit
verifyTextNotPresent Lithuania MOB
open /billing/cardgroups/aggregate?csv=1&test=1
verifyTextNotPresent Lithuania MOB
open /billing/cardgroups/aggregate
type prefix
clickAndWait commit
verifyValue prefix
verifyText t_dir_name_1 (No prefix found)
select cardgroup label=Test_cardgroup
clickAndWait commit
verifyText t_dir_name_0 Luxembourg MOB Luxembourg Mobile (3526)
type prefix 370
clickAndWait commit
verifyElementNotPresent t_dir_name_0
click destination_grouping_2
clickAndWait commit
verifyElementNotPresent t_dir_name_0
verifyTextPresent Records: 0
verifyTextPresent Pages: 0