./basic.case
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/load_delta_sql/acc_groups
waitForElementPresent //body
open /billing/cards/edit/1
type id=card_callerid 1234
clickAndWait name=commit
waitForTextPresent CallerID : 1234
open /billing/cards/edit/3
type id=card_callerid 1234
clickAndWait name=commit
waitForTextPresent Card was not updated
waitForTextPresent Callerid must be unique
open /billing/cards/edit/6
type id=card_callerid           
clickAndWait name=commit
waitForElementPresent link=Manual
assertTextPresent Card was successfully updated
open /billing/cards/edit/8
type id=card_callerid          
clickAndWait name=commit
waitForElementPresent link=Manual
assertTextPresent Card was successfully updated
verifyTextNotPresent Card was not updated
verifyTextNotPresent Callerid must be unique
open /billing/cards/list?cg=1&clean=1
assertText id=callerid_1 1234
assertText id=callerid_6
assertText id=callerid_8
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=0
type id=device_description Sip1234
clickAndWait name=commit
waitForTextPresent Device created
type id=cid_name Naujas
type id=cid_number 1234
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=4
type id=device_description antrasSip1234
clickAndWait name=commit
waitForTextPresent Device created
type id=cid_name Naujas
type id=cid_number 1234
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/cards/edit/8
type id=card_callerid          
select id=card[user_id] label=Test Accountant
clickAndWait name=commit
waitForTextPresent Card was successfully updated
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
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=5
type id=device_description reSip1234
clickAndWait name=commit
waitForTextPresent Device created
type id=cid_name Naujas
type id=cid_number 1234
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=5
type id=device_description reantrasSip1234
clickAndWait name=commit
waitForTextPresent Device created
type id=cid_name Naujas
type id=cid_number 1234
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/cardgroups/new
type id=cardgroup_name regr
type id=cardgroup_number_length 6
type id=cardgroup_pin_length 6
clickAndWait name=commit
waitForTextPresent Card group was successfully created
open /billing/cards/new?cg=3
type id=start_number 000001
type id=end_number 000005
clickAndWait name=commit
waitForTextPresent Cards created: 5
open /billing/cards/edit/22
type id=card_callerid 1234
clickAndWait name=commit
waitForTextPresent Card was not updated
waitForTextPresent Callerid must be unique
open /billing/cards/edit/23
type id=card_callerid 21234
clickAndWait name=commit
waitForTextPresent Card was successfully updated
open /billing/cards/edit/24
type id=card_callerid 21234
clickAndWait name=commit
waitForTextPresent Card was not updated
waitForTextPresent Callerid must be unique
open /billing/cards/edit/25
type id=card_callerid           
clickAndWait name=commit
waitForTextPresent Card was successfully updated
open /billing/cards/edit/26
type id=card_callerid           
clickAndWait name=commit
waitForTextPresent Card was successfully updated
verifyTextNotPresent Card was not updated
verifyTextNotPresent Callerid must be unique