cdr
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/functions/settings
type csv_separator ,
type csv_decimal .
clickAndWait commit
open /billing/cdr/import_csv
clickAndWait commit
verifyTextPresent Please select file
waitForElementPresent file
type file /home/mor/selenium/files/csv/example_cdr.csv
clickAndWait commit
waitForTextPresent Please confirm Column Separator and Decimal Separator for CSV file
clickAndWait commit
select billsec_id label=Billsec
select src_number_id label=Source
select dst_id label=Destination
clickAndWait commit
verifyElementNotPresent conf
verifyTextPresent Please select columns
open /billing/cdr/import_csv
clickAndWait commit
verifyTextPresent Please select file
waitForElementPresent file
type file /home/mor/selenium/files/csv/example_cdr.csv
clickAndWait commit
waitForTextPresent Please confirm Column Separator and Decimal Separator for CSV file
clickAndWait commit
select calldate_id label=Date
select billsec_id label=Billsec
select src_number_id label=Source
select dst_id label=Destination
clickAndWait commit
verifyTextPresent Columns assigned
clickAndWait id=conf
click id=import_type_0
select id=user label=Test User #1
click css=option[value="2"]
waitForElementPresent id=device_id
select id=device_id label=IAX2/101
clickAndWait name=commit
clickAndWait name=commit
verifyTextPresent Congratulations, successfully imported CSV file!
open /billing/stats/resellers
open /billing/users/reseller_users/3
open /billing/stats/call_list/5?calltype=answered
verifyTextPresent No calls...
open /billing/functions/settings
click //div[@id='tabTabdhtmlgoodies_tabView1_5']/span
type csv_separator ;
type csv_decimal ,
clickAndWait commit
open /billing/cdr/import_csv
clickAndWait commit
verifyTextPresent Please select file
waitForElementPresent file
type file /home/mor/selenium/files/csv/example_cdr2.csv
clickAndWait commit
clickAndWait name=commit
select calldate_id label=2009-09-02 10:37:38
select dst_id label=0037052058500
select billsec_id label=106
clickAndWait commit
clickAndWait //input[@name='commit' and @value='Confirm columns']
verifyTextPresent Columns assigned
waitForTextPresent Next step: Analysis
click id=import_type_0
select id=user label=Test Reseller
click css=option[value="3"]
waitForElementPresent id=device_id
select id=device_id label=IAX2/104
clickAndWait name=commit
verifyTextPresent Next step: Import CDR
clickAndWait commit
verifyText id=total_calls 14
verifyTextPresent Congratulations, successfully imported CSV file!
open /billing/cdr/import_csv?step=8
waitForTextPresent Import from CSV
open /billing/cdr/rerating?step=2&user=9999
verifyTextPresent User not found
open /billing/cdr/rerating?step=3&user=9999
verifyTextPresent User not found
select date_from_month label=January
select date_from_day label=1
select date_from_year label=2009
select date_till_year label=2009
select date_till_day label=31
select date_till_month label=December
select user label=Test User #1
click rerating_testing
select test_tariff_id label=Test Tariff + 0.1 (Retail)
clickAndWait commit
verifyTextPresent User: Test User #1
verifyTextPresent Total calls: 35
clickAndWait commit
verifyTextPresent Rerating completed