./basic.case
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/providers/new
type id=provider_name provider_id_2
check id=add_to_servers[1]
clickAndWait name=commit
waitForTextPresent Provider was successfully created
verifyTextPresent IP Authentication:
verifyValue id=ip_authentication off
verifyVisible id=provider_login
verifyVisible id=provider_password
verifyVisible id=register
click id=ip_authentication
waitForValue id=ip_authentication on
verifyNotVisible id=provider_login
verifyNotVisible id=provider_password
verifyNotVisible id=register
click id=ip_authentication
waitForValue id=ip_authentication off
verifyVisible id=provider_login
verifyVisible id=provider_password
verifyVisible id=register
click id=ip_authentication
waitForValue id=ip_authentication on
verifyNotVisible id=provider_login
verifyNotVisible id=provider_password
verifyNotVisible id=register
type id=provider_server_ip 4.4.4.4
type id=device_ipaddr 2.2.2.2
clickAndWait name=commit
waitForTextPresent Provider was successfully updated
verifyText id=ani_2 provider_id_2
open /billing/providers/edit/2
waitForElementPresent id=ip_authentication
verifyValue id=ip_authentication on
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=4
waitForElementPresent id=device_description
type id=device_description device_id_9
clickAndWait name=commit
waitForTextPresent Device created
click id=dynamic_check
waitForValue id=dynamic_check off
click id=ip_authentication
waitForValue id=ip_authentication on
clickAndWait name=commit
waitForTextPresent You must specify proper host name in case IP authentication is used
click id=dynamic_check
click id=ip_authentication
type id=host La
keyUp id=host w
fireEvent id=host blur
waitForText id=view_ip La
type id=host Labas
keyUp id=host w
fireEvent id=host blur
waitForText id=view_ip Labas
type id=host
keyUp id=host w
fireEvent id=host blur
type id=host 4.4.4.4
keyUp id=host w
fireEvent id=host blur
waitForText id=view_ip 4.4.4.4
clickAndWait name=commit
waitForTextPresent Device not updated
waitForTextPresent Provider with such IP and Port already exist. Please check this link to see how it can be resolved:
verifyElementPresent css=img[alt="Help"]
type id=port 5061
clickAndWait name=commit
waitForTextPresent Device's settings updated
verifyText id=extension_9 1001
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=4
waitForElementPresent id=device_description
type id=device_description device_id_10
clickAndWait name=commit
waitForTextPresent Device created
click id=dynamic_check
waitForValue id=dynamic_check off
click id=ip_authentication
waitForValue id=ip_authentication on
clickAndWait name=commit
waitForTextPresent You must specify proper host name in case IP authentication is used
click id=dynamic_check
click id=ip_authentication
type id=host 2.2.2.2
clickAndWait name=commit
waitForTextPresent Device not updated
waitForTextPresent Provider with such IP and Port already exist. Please check this link to see how it can be resolved:
verifyElementPresent css=img[alt="Help"]
type id=port 5061
clickAndWait name=commit
waitForTextPresent Device's settings updated
verifyText id=extension_10 1003
open /billing/providers/new
type id=provider_name provider_id_3
click id=add_to_servers[1]
clickAndWait name=commit
waitForTextPresent Provider was successfully created
type id=provider_server_ip 4.4.4.4
verifyTextPresent IP Authentication:
verifyValue id=ip_authentication off
click id=ip_authentication
waitForValue id=ip_authentication on
type id=provider_server_ip 4.4.4.4
type id=device_ipaddr 2.2.2.2
clickAndWait name=commit
waitForTextPresent Provider was successfully updated
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=4
type id=device_description device4.4
clickAndWait name=commit
waitForTextPresent Device created
verifyValue id=dynamic_check on
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/devices/device_edit/12
click id=dynamic_check
waitForValue id=dynamic_check off
waitForValue id=ip_authentication off
click id=ip_authentication
waitForValue id=ip_authentication on
click id=dynamic_check
waitForValue id=dynamic_check off
click id=ip_authentication
waitForText id=ip_authentication
verifyValue id=device_name 1004
verifyValue id=device_secret
click id=dynamic_check
waitForValue id=dynamic_check on
clickAndWait name=commit
waitForTextPresent Device not updated
waitForTextPresent Password is too short
click id=dynamic_check
waitForValue id=dynamic_check off
waitForValue id=ip_authentication off
click id=ip_authentication
waitForValue id=ip_authentication on
click id=dynamic_check
waitForValue id=dynamic_check off
click id=ip_authentication
waitForValue id=ip_authentication off
waitForValue id=dynamic_check off
type id=device_secret 111111111
click id=qualify_yes
clickAndWait name=commit
waitForTextPresent Must set either ip auth either dynamic host
waitForValue id=dynamic_check on
clickAndWait name=commit
waitForTextPresent Device's settings updated
verifyText id=description_12 device4.4
verifyText id=name_12 1004
open /billing/users/edit/3
check id=own_providers
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/tariffs/new
type id=tariff_name pro_tariff
click id=tariff[purpose]_provider
clickAndWait name=commit
waitForTextPresent Tariff was successfully created
open /billing/providers/new
type id=provider_name provider_id_4
clickAndWait name=commit
waitForTextPresent Provider was successfully created
verifyTextPresent IP Authentication:
verifyValue id=ip_authentication off
click id=ip_authentication
waitForValue id=ip_authentication on
type id=provider_server_ip 4.4.4.4
type id=device_ipaddr 2.2.2.2
clickAndWait name=commit
waitForTextPresent Provider's settings bad
verifyTextPresent This IP is not available
verifyElementPresent css=img[alt="Help"]
click css=img[alt="Help"]
waitForTextPresent Authentication
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=5
type id=device_description device4.4
clickAndWait name=commit
waitForTextPresent Device created
verifyValue id=dynamic_check on
click id=dynamic_check
waitForValue id=dynamic_check off
waitForValue id=ip_authentication off
type id=host 4.4.4.4
clickAndWait name=commit
waitForTextPresent This IP is not available.
verifyText css=img[alt="Help"]
waitForValue id=ip_authentication on
waitForValue id=dynamic_check off
click id=dynamic_check
waitForValue id=dynamic_check on
clickAndWait name=commit
waitForTextPresent Device not updated
verifyTextPresent Password is too short
type id=device_secret .oyik,gtfbrvdc
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/providers/new
type id=provider_name prov5.5
clickAndWait name=commit
waitForTextPresent Provider was successfully created
click id=ip_authentication
waitForValue id=ip_authentication on
type id=provider_server_ip 5.5.5.5
type id=device_ipaddr 6.6.6.6
clickAndWait name=commit
waitForTextPresent Provider was successfully updated
open /billing/providers/edit/5
waitForValue id=provider_server_ip 5.5.5.5
waitForValue id=device_ipaddr 6.6.6.6
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=5
type id=device_description dev5.5
clickAndWait name=commit
waitForTextPresent Device created
click id=dynamic_check
waitForValue id=dynamic_check off
waitForValue id=ip_authentication off
verifyValue id=ip_authentication off
check id=ip_authentication
waitForValue id=ip_authentication on
type id=host 5.5.5.5
clickAndWait name=commit
waitForTextPresent Device not updated
verifyTextPresent This IP and port is not available.
type id=port 5061
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/devices/device_edit/16
type id=host 6.6.6.6
waitForValue id=host 6.6.6.6
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/devices/device_all_details/10
storeText id=name_value ipauth1
open /billing/devices/device_edit/10
click id=ip_authentication
waitForValue id=ip_authentication off
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/devices/device_edit/10
click id=ip_authentication
waitForValue id=ip_authentication off
click id=dynamic_check
waitForValue id=dynamic_check on
clickAndWait name=commit
waitForTextPresent Device not updated
waitForTextPresent Password is too short
waitForValue id=ip_authentication off
type id=device_secret 111111111
clickAndWait name=commit
waitForTextPresent Provider with such IP and Port already exist. Please check this link to see how it can be resolved:
verifyText css=img[alt="Help"]
open /billing/devices/device_all_details/9
storeText id=name_value ipauth2
open /billing/devices/device_edit/9
click id=ip_authentication
waitForValue id=ip_authentication off
clickAndWait name=commit
waitForTextPresent Device's settings updated
open /billing/devices/device_edit/9
click id=ip_authentication
waitForValue id=ip_authentication off
verifyValue id=dynamic_check off
click id=dynamic_check
clickAndWait name=commit
waitForTextPresent Device not updated
waitForTextPresent Password is too short
waitForValue id=ip_authentication off
type id=device_secret 111111111
clickAndWait name=commit
waitForTextPresent Device's settings updated
verifyText id=name_9 1001
verifyText id=name_10
verifyNotText id=name_9 ${ipauth1}
verifyNotText id=name_10 ${ipauth2}
open /billing/providers/new
type id=provider_name prov
check id=add_to_servers[1]
clickAndWait name=commit
waitForTextPresent Provider was successfully created
click id=ip_authentication
waitForValue id=ip_authentication on
waitForNotEditable id=qualify_yes
clickAndWait name=commit
waitForTextPresent Provider was successfully updated
open /billing/test/make_select
verifyElementPresent id=table
verifyTextPresent Table
verifyTextPresent ID
verifyElementPresent id=id
verifyElementPresent id=search_devices_all
verifyTextPresent Not found
select id=table label=devices
type id=id 15
clickAndWait id=search_devices_all
waitForTextPresent Field
waitForTextPresent Value
assertText css=td id
assertText css=tr.row2 > td name
verifyNotText id=name_value prov15
storeText id=name_value ipauth3
verifyText id=nat_value no
open /billing/test/make_select
select id=table label=devices
type id=id 17
clickAndWait id=search_devices_all
waitForTextPresent Field
storeText name_value ipauth4
verifyNotText id=name_value prov17
verifyText id=qualify_value no
open /billing/providers/edit/6
click id=ip_authentication
waitForValue id=ip_authentication off
verifyValue id=provider_login
verifyValue id=provider_password
click id=qualify_yes
waitForValue id=provider_login
waitForValue id=provider_login
clickAndWait name=commit
waitForTextPresent Provider should have login
click id=ip_authentication
waitForValue id=ip_authentication off
verifyValue id=provider_login
verifyValue id=provider_password
click id=qualify_yes
waitForValue id=provider_login
type id=provider_login prov
clickAndWait name=commit
waitForTextPresent Provider was successfully updated
open /billing/test/make_select
select id=table label=devices
type id=id 17
clickAndWait id=search_devices_all
waitForTextPresent Field
verifyNotText id=name_value ${ipauth4}
verifyText id=name_value prov17
verifyText id=qualify_value 2000
open /billing/callc/logout
type login_username 101
type login_psw 1011
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/make_select
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/test/make_select
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/test/make_select
waitForTextPresent You are not authorized to view this page
open /billing/callc/logout
type login_username accountant
type login_psw accountant1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/make_select
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/providers/new
type id=provider_name prov5.5a
check id=add_to_servers[1]
clickAndWait name=commit
waitForTextPresent Provider was successfully created
click id=ip_authentication
waitForValue id=ip_authentication on
type id=provider_server_ip 5.5.5.5
verifyValue id=provider_password
clickAndWait name=commit
waitForTextPresent Provider's settings bad
verifyTextPresent When IP Authentication checked IP must be unique
open /billing/devices/new?return_to_action=list&return_to_controller=users&user_id=4
type id=device_description dev5.5
clickAndWait name=commit
waitForTextPresent Device created
click id=dynamic_check
waitForValue id=dynamic_check off
waitForValue id=ip_authentication off
check id=ip_authentication
waitForValue id=ip_authentication on
type id=host 5.5.5.5
clickAndWait name=commit
waitForTextPresent Device not updated
verifyTextPresent When IP Authentication checked IP must be unique
verifyValue id=host 5.5.5.5
type id=host
keyUp id=host w
fireEvent id=host blur
waitForText id=view_ip
type id=host La
keyUp id=host w
fireEvent id=host blur
waitForText id=view_ip La
type id=host Labas
keyUp id=host w
fireEvent id=host blur
waitForText id=view_ip Labas
open /billing/users/edit/3
verifyChecked own_providers
open /billing/callc/logout
type id=login_username reseller
type id=login_psw reseller1
clickAndWait commit
open /billing/providers/new
type id=provider_name test_provider1
clickAndWait commit
type id=provider_server_ip 5.5.5.5
type id=device_ipaddr 5.5.5.5
type id=provider_port 5555
clickAndWait commit
open /billing/providers/new
type id=provider_name test_provider2
clickAndWait commit
type id=provider_server_ip 5.5.5.5
type id=device_ipaddr 5.5.5.5
type id=provider_port 5555
clickAndWait commit
open /billing/providers/edit/4
type id=provider_server_ip 5.5.5.5
type id=device_ipaddr 5.5.5.5
type id=provider_port 5555
clickAndWait commit