New Test
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/dids/new
type did_start 37060012345
type did_end 37060012350
clickAndWait document.forms[1].elements[4]
waitForTextPresent Are you sure?
clickAndWait commit
open /billing/dialplans/new
type dialplan[name] aaaaaaaaaaa
click dialplan[data7]
click dialplan[data8]
click dialplan[data3]
click dialplan[data4]
clickAndWait add_calling_card
waitForTextPresent Dialplan successfully created
open /billing/dialplans/new
type document.forms[1].elements[1] bbbbbbbbbbbb
click document.forms[1].elements[2]
click document.forms[1].elements[5]
clickAndWait dp_PIN_add
waitForTextPresent Dialplan successfully created
open /billing/dids/edit/3
clickAndWait //input[@type='image']
waitForElementPresent //input[@name='commit' and @value='Make DID free']
open /billing/dids/edit/4
clickAndWait assign_to_dp_pin
waitForElementPresent //input[@name='commit' and @value='Make DID free']
open /billing/dialplans/new
waitForElementPresent callback_dp_name
verifyElementPresent //select[@name='dialplan[data1]']
verifyElementPresent //select[@name='dialplan[data6]']
verifyText //select[@name='dialplan[data6]'] Leave as it is 1 unallocated number / 404 Not Found 2 no route to network / 404 Not Found 3 no route to destination / 404 Not Found 17 user busy / 486 Busy here 18 no user responding / 408 Request Timeout 19 no answer from the user / 480 Temporarily unavailable 20 subscriber absent / 480 Temporarily unavailable 21 call rejected / 403 Forbidden 22 number changed (w/ diagnostic) / 301 Moved Permanently 23 redirection to new destination / 410 Gone 26 non-selected user clearing / 404 Not Found 27 destination out of order / 502 Bad Gateway 28 address incomplete / 484 Address incomplete 29 facility rejected / 501 Not implemented 31 normal unspecified / 480 Temporarily unavailable
mouseOver hangup_cause_codes
verifyElementPresent WzBoDyI
waitForTextPresent How to terminate Callback initiation Call (ISDN/SIP)
verifyText ask_for_card Ask for Card?
verifyText wait_time Wait (s)
mouseOver wait_time
verifyElementPresent WzBoDyI
waitForTextPresent How many seconds to wait after initiation call to callback
check document.forms[2].elements[6]
type callback_dp_name ccccccccccccccccccc
clickAndWait cb_add
open /billing/dialplans/edit/4
waitForElementPresent dp_not_assign_4
verifyElementPresent link=Add new DID
verifyTextPresent Call ends with such Hangup Cause Code:
verifyText name=dialplan[data6] Leave as it is 1 unallocated number / 404 Not Found 2 no route to network / 404 Not Found 3 no route to destination / 404 Not Found 17 user busy / 486 Busy here 18 no user responding / 408 Request Timeout 19 no answer from the user / 480 Temporarily unavailable 20 subscriber absent / 480 Temporarily unavailable 21 call rejected / 403 Forbidden 22 number changed (w/ diagnostic) / 301 Moved Permanently 23 redirection to new destination / 410 Gone 26 non-selected user clearing / 404 Not Found 27 destination out of order / 502 Bad Gateway 28 address incomplete / 484 Address incomplete 29 facility rejected / 501 Not implemented 31 normal unspecified / 480 Temporarily unavailable
select dialplan[data6] label=21 call rejected / 403 Forbidden
clickAndWait commit
open /billing/dialplans/edit/4
waitForSelectedLabel dialplan[data6] 21 call rejected / 403 Forbidden
clickAndWait ssettings_menu27
open /billing/dialplans/dialplans
verifyText c_dp_hgc_4 21 call rejected / 403 Forbidden
open /billing/dialplans/edit/4
verifySelectedLabel dialplan[data6] 21 call rejected / 403 Forbidden
select dialplan[data6] label=29 facility rejected / 501 Not implemented
select dialplan[data3] label=Test Device for Admin IAX2/103
select dialplan[data1] label=37060012346 - bbbbbbbbbbbb
clickAndWait commit
waitForTextPresent Dial Plan successfully updated
verifyText c_dp_did_4 37060012346
verifyText c_dp_hgc_4 29 facility rejected / 501 Not implemented
verifyTextPresent bbbbbbbbbbbb
verifyTextPresent Test Device for Admin IAX2/103
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/dialplans/destroy/4
waitForTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/dialplans/destroy/4
waitForTextPresent Don't be so smart...
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/dialplans/destroy/4
waitForTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/dialplans/destroy/4
waitForTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/dialplans/new
verifyText //select[@name='dialplan[data6]'] Leave as it is 1 unallocated number / 404 Not Found 2 no route to network / 404 Not Found 3 no route to destination / 404 Not Found 17 user busy / 486 Busy here 18 no user responding / 408 Request Timeout 19 no answer from the user / 480 Temporarily unavailable 20 subscriber absent / 480 Temporarily unavailable 21 call rejected / 403 Forbidden 22 number changed (w/ diagnostic) / 301 Moved Permanently 23 redirection to new destination / 410 Gone 26 non-selected user clearing / 404 Not Found 27 destination out of order / 502 Bad Gateway 28 address incomplete / 484 Address incomplete 29 facility rejected / 501 Not implemented 31 normal unspecified / 480 Temporarily unavailable
select //select[@name='dialplan[data6]'] label=23 redirection to new destination / 410 Gone
click callback_dialplan[data4]_
type id=callback_dp_name aaa
clickAndWait id=cb_add
waitForTextPresent Dialplan successfully created
verifyText id=c_dp_hgc_5 23 redirection to new destination / 410 Gone
open /billing/dialplans/edit/5
verifySelectedLabel name=dialplan[data6] 23 redirection to new destination / 410 Gone