tariff_import_new_method
open /billing/callc/logout
type login_username admin
type login_psw admin
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/tariffs/import_csv/1?step=0
waitForTextPresent Import from CSV   -   Step: 1   -   File upload
verifyTextPresent Test Tariff
type file /home/mor/selenium/files/pics/big_test_image.jpg
clickAndWait commit
waitForTextPresent Please select CSV file
type file /home/mor/selenium/files/csv/empty_file.csv
clickAndWait commit
type file /home/mor/selenium/files/csv/empty_file.csv
clickAndWait commit
waitForTextPresent Please upload file
type file /home/mor/selenium/files/csv/invalid_numbers.csv
clickAndWait commit
verifyTextPresent Please upload one file at a time. Please do not upload a file when another Tariff import operation is not completed.
type file /home/mor/selenium/files/csv/invalid_numbers.csv
clickAndWait commit
waitForTextPresent Please confirm Column Separator and Decimal Separator for CSV file
open /billing/tariffs/import_csv/1?step=0
type file /home/mor/selenium/files/csv/tariff_import2.csv
clickAndWait commit
waitForTextPresent Please upload one file at a time. Please do not upload a file when another Tariff import operation is not completed.
type file /home/mor/selenium/files/csv/tariff_import2.csv
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 2   -   Column asignment
waitForTextPresent Please confirm Column Separator and Decimal Separator for CSV file
verifyValue sepn2 ;
verifyValue decn2 .
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 2   -   Column asignment
verifyElementPresent commit
verifyTextPresent File uploaded
verifyTextPresent Afghanistan Mobile Roshan
verifyTextPresent Albania Mobile
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 3   -   Column confirmation
waitForElementPresent commit
clickAndWait commit
select prefix_id label=Prefix
select rate_id label=Price
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 3   -   Column confirmation
verifyTextPresent Columns assigned
clickAndWait //input[@name='commit' and @value='Confirm columns']
waitForTextPresent Import from CSV   -   Step: 4   -   Analysis
verifyTextPresent Analysis completed
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 5   -   Creating destinations
verifyTextPresent Created destinations: 1
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 6   -   Updating rates
verifyTextPresent Rates updated:
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 7   -   Creating new rates
waitForTextPresent New rates created: 11
clickAndWait link=Back to Tariffs
waitForTextPresent Tariffs
open /billing/test/load_delta_sql/localization/delete_all_destinations
open /billing/tariffs/import_csv/1?step=0
waitForTextPresent Import from CSV   -   Step: 1   -   File upload
verifyTextPresent Test Tariff
type file /home/mor/selenium/files/pics/big_test_image.jpg
clickAndWait commit
waitForTextPresent Please select CSV file
type file /home/mor/selenium/files/csv/empty_file.csv
clickAndWait commit
waitForTextPresent Please select file
type file /home/mor/selenium/files/csv/invalid_numbers.csv
clickAndWait commit
waitForTextPresent Please upload one file at a time. Please do not upload a file when another Tariff import operation is not completed.
type file /home/mor/selenium/files/csv/invalid_numbers.csv
clickAndWait commit
waitForTextPresent Please confirm Column Separator and Decimal Separator for CSV file
open /billing/tariffs/import_csv/1?step=0
type file /home/mor/selenium/files/csv/tariff_import2.csv
clickAndWait commit
waitForTextPresent Please upload one file at a time. Please do not upload a file when another Tariff import operation is not completed.
type file /home/mor/selenium/files/csv/tariff_import2.csv
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 2   -   Column asignment
waitForTextPresent Please confirm Column Separator and Decimal Separator for CSV file
verifyValue sepn2 ;
verifyValue decn2 .
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 2   -   Column asignment
verifyElementPresent commit
verifyTextPresent File uploaded
verifyTextPresent Afghanistan Mobile Roshan
verifyTextPresent Albania Mobile
click update_dest_names
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 3   -   Column confirmation
waitForElementPresent commit
clickAndWait commit
select prefix_id label=Prefix
select rate_id label=Price
click update_dest_names
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 3   -   Column confirmation
verifyTextPresent Columns assigned
clickAndWait //input[@name='commit' and @value='Confirm columns']
waitForTextPresent Import from CSV   -   Step: 4   -   Analysis
verifyTextPresent Analysis completed
waitForTextPresent 12 bad destination(s)(Press here to get the list)
verifyTextPresent (Press here to get the list)
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 5   -   Creating destinations
verifyTextPresent Created destinations
verifyTextNotPresent Rates updated
verifyTextNotPresent New rates created
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 6   -   Updating rates
verifyTextPresent Rates updated:
verifyTextPresent Created destinations
verifyTextPresent Rates updated
verifyTextNotPresent New rates created
clickAndWait commit
waitForTextPresent Import from CSV   -   Step: 7   -   Creating new rates
verifyTextPresent Created destinations
verifyTextPresent Rates updated
verifyTextPresent New rates created
waitForTextPresent New rates created: 0
verifyTextPresent Created destinations
verifyTextPresent Rates updated
verifyTextPresent New rates created
clickAndWait link=Back to Tariffs
waitForTextPresent Tariffs