open |
/billing/callc/logout |
|
type |
login_username |
admin |
type |
login_psw |
admin1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/functions/pbx_functions |
|
type |
ext |
1 |
type |
name |
voicemail |
clickAndWait |
//input[@type='image'] |
|
type |
ext |
2 |
select |
type_id |
label=Dial Local |
type |
name |
dial local |
clickAndWait |
//input[@type='image'] |
|
type |
ext |
3 |
select |
type_id |
label=DTMF Test |
type |
name |
dtmf |
clickAndWait |
//input[@type='image'] |
|
type |
ext |
4 |
select |
type_id |
label=Milliwatt |
type |
name |
millwatt |
clickAndWait |
//input[@type='image'] |
|
type |
ext |
5 |
select |
type_id |
label=Tell balance |
type |
name |
tell balance |
clickAndWait |
//input[@type='image'] |
|
type |
ext |
6 |
select |
type_id |
label=Use Voucher |
type |
name |
voucher |
clickAndWait |
//input[@type='image'] |
|
clickAndWait |
//input[@type='image'] |
|
verifyTextPresent |
Enter extension |
|
type |
ext |
7 |
clickAndWait |
//input[@type='image'] |
|
verifyTextPresent |
PBX function created |
|
open |
/billing/functions/pbx_function_edit/8 |
|
type |
dialplan[name] |
new name |
type |
dialplan[ext] |
99 |
select |
dialplan[type_id] |
label=Dial Local |
clickAndWait |
//input[@type='image'] |
|
verifyTextPresent |
PBX function updated |
|
verifyTextPresent |
99 |
|
verifyTextPresent |
new name |
|
open |
/billing/functions/pbx_function_edit/6 |
|
type |
dialplan[language] |
lt |
clickAndWait |
//input[@type='image'] |
|
verifyTextPresent |
PBX function updated |
|
verifyTextPresent |
USD lt user |
|
open |
/billing/functions/pbx_function_edit/6 |
|
click |
card_tell_balance |
|
clickAndWait |
//input[@type='image'] |
|
verifyTextPresent |
PBX function updated |
|
verifyTextPresent |
USD lt card |
|
open |
/billing/functions/pbx_function_edit/6 |
|
select |
currency_tell_balance |
label=EUR |
clickAndWait |
//input[@type='image'] |
|
verifyTextPresent |
PBX function updated |
|
verifyTextPresent |
EUR lt card |
|
open |
/billing/functions/pbx_function_edit/7 |
|
select |
currency_tell_balance |
label=EUR |
type |
dialplan[language] |
fr |
clickAndWait |
//input[@type='image'] |
|
verifyTextPresent |
PBX function updated |
|
verifyTextPresent |
EUR fr |
|
open |
/billing/functions/pbx_function_edit/3 |
|
select |
dialplan_sound_file_id |
label=zn/cc_goodbye.wav |
clickAndWait |
//input[@type='image'] |
|
waitForTextPresent |
PBX function updated |
|
verifyTextPresent |
zn/cc_goodbye.wav |
|
open |
/billing/functions/pbx_function_edit/3 |
|
select |
dialplan_sound_file_id |
label=None |
clickAndWait |
//input[@type='image'] |
|
verifyTextPresent |
PBX function updated |
|
verifyTextNotPresent |
zn/cc_goodbye.wav |
|
open |
/billing/functions/pbx_function_edit/3 |
|
verifySelectedLabel |
dialplan_sound_file_id |
None |
open |
/billing/functions/pbx_function_edit/8 |
|
type |
dialplan[ext] |
|
clickAndWait |
//input[@type='image'] |
|
verifyTextPresent |
Enter extension |
|
type |
dialplan[name] |
|
clickAndWait |
//input[@type='image'] |
|
verifyTextNotPresent |
new name |
|
open |
/billing/functions/pbx_function_destroy/8 |
|
verifyTextPresent |
PBX function deleted |
|
verifyTextNotPresent |
99 |
|
open |
/billing/functions/pbx_function_destroy/100 |
|
verifyTextPresent |
Dial Plan was not found |
|
open |
/billing/functions/pbx_function_edit/3 |
|
verifyVisible |
dialplan_sound_file_id |
|
select |
dp_type |
label=Tell balance |
verifyNotVisible |
dialplan_sound_file_id |
|
verifyVisible |
currency_tell_balance |
|
verifyVisible |
language_tell_balance |
|
verifyVisible |
user_tell_balance |
|
verifyVisible |
card_tell_balance |
|
select |
dp_type |
label=Use Voucher |
verifyNotVisible |
dialplan_sound_file_id |
|
verifyNotVisible |
user_tell_balance |
|
verifyNotVisible |
card_tell_balance |
|
verifyVisible |
currency_tell_balance |
|
verifyVisible |
language_tell_balance |
|
select |
dp_type |
label=Dial Local |
verifyVisible |
dialplan_sound_file_id |
|
verifyNotVisible |
currency_tell_balance |
|
verifyNotVisible |
language_tell_balance |
|
verifyNotVisible |
user_tell_balance |
|
verifyNotVisible |
card_tell_balance |
|
select |
dp_type |
label=DTMF Test |
verifyNotVisible |
dialplan_sound_file_id |
|
verifyNotVisible |
currency_tell_balance |
|
verifyNotVisible |
language_tell_balance |
|
verifyNotVisible |
user_tell_balance |
|
verifyNotVisible |
card_tell_balance |
|
select |
dp_type |
label=External DID |
waitForTextPresent |
Call will be billed to User/Device |
|
waitForTextPresent |
User: |
|
waitForText |
id=s_user |
System Admin Test Accountant Test Reseller Test User #1 |
select |
s_user |
label=System Admin |
click |
//option[@value='0'] |
|
select |
s_user |
label=Test User #1 |
click |
//select[@id='s_user']/option[4] |
|
select |
s_user |
label=Test Reseller |
click |
//select[@id='s_user']/option[3] |
|
clickAndWait |
//input[@type='image'] |
|
waitForText |
pbxfunction_3 |
External DID |
waitForText |
link=Test Reseller |
Test Reseller |
waitForTextPresent |
Call will be billed to User/Device |
|
clickAndWait |
//img[@alt='Edit'] |
|
waitForElementPresent |
dp_type |
|
waitForSelectedLabel |
dp_type |
External DID |
waitForElementPresent |
s_user |
|
waitForSelectedLabel |
s_user |
Test Reseller |
open |
/billing/dids/edit/1 |
|
waitForElementPresent |
//select[@name='dp_id'] |
|
select |
xpath=(//select[@name='dp_id'])[2] |
label=2 - External DID |
clickAndWait |
//td/form[2]/input |
|
waitForTextPresent |
DID assigned to Dial Plan: dial local |
|
open |
/billing/dids/list |
|
waitForText |
link=dial local (pbxfunction) |
dial local (pbxfunction) |
clickAndWait |
link=dial local (pbxfunction) |
|
waitForText |
page_title |
PBX function edit |
waitForTextPresent |
PBX Function |
|
waitForTextPresent |
Call will be billed to User/Device |
|
open |
/billing/functions/pbx_functions |
|
type |
id=ext |
7 |
type |
id=name |
aaaaaaaaaa |
select |
name=type_id |
label=External DID |
clickAndWait |
css=input[type="image"] |
|
waitForTextPresent |
PBX function created |
|
verifyText |
id=device_9 |
System Admin |
open |
/billing/functions/pbx_function_edit/9 |
|
verifyText |
id=s_user |
System Admin Test Accountant Test Reseller Test User #1 |
open |
/billing/test/fake_form?path_to_action=/billing/functions/pbx_function_update/9 |
|
type |
id=c_1 |
s_user |
keyUp |
id=c_1 |
w |
type |
id=n_c_1 |
5 |
keyUp |
id=n_c_1 |
w |
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
type |
id=c_2 |
dialplan[ext] |
keyUp |
id=c_2 |
w |
type |
id=n_c_2 |
9 |
keyUp |
id=n_c_2 |
w |
type |
id=c_3 |
dialplan[name] |
keyUp |
id=c_3 |
w |
type |
id=n_c_3 |
fakeFORMele |
keyUp |
id=n_c_3 |
w |
type |
id=c_4 |
dialplan[type_id] |
keyUp |
id=c_4 |
w |
type |
id=n_c_4 |
8 |
keyUp |
id=n_c_4 |
w |
type |
id=c_5 |
dialplan[language] |
keyUp |
id=c_5 |
w |
type |
id=c_6 |
dialplan[sound_file_id] |
keyUp |
id=c_6 |
w |
type |
id=c_7 |
dialplan[currency] |
keyUp |
id=c_7 |
w |
type |
id=n_c_7 |
USD |
keyUp |
id=n_c_7 |
w |
clickAndWait |
name=commit |
|
waitForTextPresent |
Don't be so smart... |
|
open |
/billing/callc/logout |
|
type |
login_username |
reseller |
type |
login_psw |
reseller1 |
clickAndWait |
commit |
|
verifyTextPresent |
Succesfully logged in |
|
open |
/billing/functions/pbx_functions |
|
type |
id=ext |
8 |
type |
id=name |
aaaaaaaaaa |
select |
name=type_id |
label=External DID |
clickAndWait |
css=input[type="image"] |
|
waitForTextPresent |
PBX function created |
|
verifyText |
id=device_10 |
Test Reseller |
open |
/billing/functions/pbx_function_edit/10 |
|
verifyText |
id=s_user |
Test Reseller User Resellers |
open |
/billing/test/fake_form?path_to_action=/billing/functions/pbx_function_update/10 |
|
type |
id=c_1 |
s_user |
keyUp |
id=c_1 |
w |
type |
id=n_c_1 |
0 |
keyUp |
id=n_c_1 |
w |
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
click |
css=input[type="button"] |
|
type |
id=c_2 |
dialplan[ext] |
keyUp |
id=c_2 |
w |
type |
id=n_c_2 |
8 |
keyUp |
id=n_c_2 |
w |
type |
id=c_3 |
dialplan[name] |
keyUp |
id=c_3 |
w |
type |
id=n_c_3 |
fakeFORM |
keyUp |
id=n_c_3 |
w |
type |
id=c_4 |
dialplan[type_id] |
keyUp |
id=c_4 |
w |
type |
id=n_c_4 |
8 |
keyUp |
id=n_c_4 |
w |
type |
id=c_5 |
dialplan[language] |
keyUp |
id=c_5 |
w |
type |
id=c_6 |
dialplan[sound_file_id] |
keyUp |
id=c_6 |
w |
type |
id=c_7 |
dialplan[currency] |
keyUp |
id=c_7 |
w |
type |
id=n_c_7 |
EUR |
keyUp |
id=n_c_7 |
w |
clickAndWait |
name=commit |
|
waitForTextPresent |
Don't be so smart... |
|
open |
/billing/functions/pbx_functions |
|
waitForText |
link=Test Reseller |
Test Reseller |