./basic.case
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/fake_form?path_to_action=/billing/functions/activate_callback
click css=input[type="button"]
click css=input[type="button"]
type id=c_1 acc
keyUp id=c_1 w
type id=n_c_1 5
type id=c_2 src
keyUp id=c_2 w
type id=n_c_2 1234567890
type id=c_3 dst
keyUp id=c_3 w
type id=n_c_3 0987654321
clickAndWait name=commit
waitForTextPresent Callback activated
open /billing/test/fake_form?path_to_action=/billing/functions/activate_callback
click css=input[type="button"]
click css=input[type="button"]
type id=c_1 acc
keyUp id=c_1 w
type id=n_c_1 2
type id=c_2 src
keyUp id=c_2 w
type id=n_c_2 1234567890
type id=c_3 dst
keyUp id=c_3 w
type id=n_c_3 0987654321
clickAndWait name=commit
waitForTextPresent Device not found
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/fake_form?path_to_action=/billing/functions/activate_callback
click css=input[type="button"]
click css=input[type="button"]
type id=c_1 acc
keyUp id=c_1 w
type id=n_c_1 5
type id=c_2 src
keyUp id=c_2 w
type id=n_c_2 1234567890
type id=c_3 dst
keyUp id=c_3 w
type id=n_c_3 0987654321
clickAndWait name=commit
waitForTextPresent Device not found
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/fake_form?path_to_action=/billing/functions/activate_callback
click css=input[type="button"]
click css=input[type="button"]
type id=c_1 acc
keyUp id=c_1 w
type id=n_c_1 5
type id=c_2 src
keyUp id=c_2 w
type id=n_c_2 1234567890
type id=c_3 dst
keyUp id=c_3 w
type id=n_c_3 0987654321
clickAndWait name=commit
waitForTextPresent Device not found
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/permissions/list?group_type=accountant
type id=name acc
clickAndWait css=input[type="image"]
waitForTextPresent Group was created
open /billing/permissions/edit/1?group_type=accountant
click id=callingcard_pin_2
click id=callingcard_manage_2
click id=cli_ivr_2
click id=device_edit_opt_2_2
click id=device_edit_opt_1_2
click id=device_edit_opt_3_2
click id=device_edit_opt_4_2
click id=device_pin_2
click id=device_password_2
click id=voicemail_password_2
click id=device_create_2
click id=manage_dids_opt_1_2
click id=manage_subscriptions_opt_1_2
click id=tariff_manage_2
click id=user_create_opt_1_2
click id=user_create_opt_2_2
click id=user_create_opt_3_2
click id=user_create_opt_4_2
click id=user_create_opt_5_2
click id=user_create_opt_6_2
click id=user_create_opt_7_2
click id=user_create_2
clickAndWait name=commit
waitForTextPresent Group was updated
open /billing/users/edit/3
check id=own_providers
waitForValue id=own_providers on
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: Test Reseller
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/fake_form?path_to_action=/billing/functions/activate_callback
click css=input[type="button"]
click css=input[type="button"]
type id=c_1 acc
keyUp id=c_1 w
type id=n_c_1 5
type id=c_2 src
keyUp id=c_2 w
type id=n_c_2 1234567890
type id=c_3 dst
keyUp id=c_3 w
type id=n_c_3 0987654321
clickAndWait name=commit
waitForTextPresent You don't have devices. Callback not possible.
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/fake_form?path_to_action=/billing/functions/activate_callback
click css=input[type="button"]
click css=input[type="button"]
type id=c_1 acc
keyUp id=c_1 w
type id=n_c_1 5
type id=c_2 src
keyUp id=c_2 w
type id=n_c_2 1234567890
type id=c_3 dst
keyUp id=c_3 w
type id=n_c_3 0987654321
clickAndWait name=commit
waitForTextPresent Device not found
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/fake_form?path_to_action=/billing/functions/activate_callback
click css=input[type="button"]
click css=input[type="button"]
type id=c_1 acc
keyUp id=c_1 w
type id=n_c_1 5
type id=c_2 src
keyUp id=c_2 w
type id=n_c_2 1234567890
type id=c_3 dst
keyUp id=c_3 w
type id=n_c_3 0987654321
clickAndWait name=commit
waitForTextPresent Device not found