New Test
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent logged in
open /billing/permissions/list?group_type=reseller
type name Resellers_Permissions
clickAndWait //input[@type='image']
waitForTextPresent Group was created
open /billing/permissions/edit/1?group_type=reseller
click sms_addon_2
clickAndWait commit
waitForTextPresent Group was updated
open /billing/users/edit/3
clickAndWait //div[@id='confirm_without_message']/input
waitForTextPresent User's settings succesfully changed: Test Reseller
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent logged in
open /billing/sms/tariff_new
type tariff_name sms_tariff
clickAndWait commit
waitForTextPresent SMS Tariff created
open /billing/sms/rate_new/1?st=A
type 2 2
type 18 3
type 19 3
type 28 4
type 43 5
clickAndWait commit
waitForTextPresent Rates updated
type rate_3_price 6.0
clickAndWait commit
waitForTextPresent SMS Rate updated
open /billing/sms/users
clickAndWait commit
waitForTextPresent No available SMS LCR. Please contact Administrator
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/sms/lcr_new
type lcr_name sms_lcr
pause
clickAndWait commit
waitForTextPresent LCR was successfully created
open /billing/callc/logout
type login_username reseller
type login_psw reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/sms/users
clickAndWait commit
waitForTextPresent User subscribed to SMS service: User Resellers
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
verifyTextPresent logged in
assertElementPresent //a[contains(@href, '/billing/sms/sms_list')]
assertElementPresent xpath=(//a[contains(@href, '/billing/sms/sms')])[2]
open /billing/sms/sms_list
waitForTextPresent SMS list
verifyTextPresent Send Date
verifyTextPresent Status
verifyTextPresent Status Code
verifyTextPresent Number
verifyTextPresent Rate (USD)
verifyTextPresent Quantity
verifyTextPresent Price (USD)
open /billing/sms/sms
verifyTextNotPresent Albania FIX Albania proper / 1 SMS: 3.0 USD
verifyTextNotPresent Total SMS Price : 3 USD
verifyTextNotPresent Can not send SMS - no rate for this Destination
waitForTextPresent No available SMS Provider
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/sms/tariff_new
type tariff_name sms_tariff_admin_prov
select tariff[tariff_type] label=Provider
clickAndWait commit
waitForTextPresent SMS Tariff created
open /billing/sms/provider_new
type provider_name sms_prov
type provider_sms_provider_domain @333.lt
clickAndWait commit
waitForTextPresent SMS Provider created
open /billing/sms/lcr_providers/1
select select_prov label=sms_prov
clickAndWait commit
waitForTextPresent Provider added
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/sms/sms
verifyTextNotPresent Albania FIX Albania proper / 1 SMS: 3.0 USD
verifyTextNotPresent Total SMS Price : 3 USD
verifyTextNotPresent Can not send SMS - no rate for this Destination
verifyElementPresent search
verifyElementPresent 38
verifyValue remLen1 160
verifyValue sms_counter 1
type search 3550017219
keyUp search w
waitForTextPresent Albania FIX Albania proper / 1 SMS: 3.0 USD
type 38 Pranesimas
keyUp 38 w
waitForTextPresent Total SMS Price : 3 USD
verifyValue remLen1 150
verifyValue sms_counter 1
type 38 Pranesimas Pranesimas Pranesimas Pranesimas Pranesimas Pranesimas PranesimasPranesimasPranesimasPranesimasPranesimasPranesimas Pranesimas Pranesimas Pranesimas Pranesimas Pranesimas PranesimasPranesimasPranesimasPranesimasPranesimasPranesimas
keyUp 38 w
waitForTextPresent Total SMS Price : 6 USD
verifyValue sms_counter 2
type 38 Pranesimas Pranesimas Pranesimas Pranesimas Pranesimas PranesimasPranesimasPranesimasPranesimasPranesimasPranesimas Pranesimas Pranesimas Pranesimas Pranesimas Pranesimas Pranesimas PranesimasPranesimasPranesimasPranesimasPranesimasPranesimas Pranesimas Pranesimas Pranesimas Pranesimas Pranesimas PranesimasPranesimasPranesimasPranesimasPranesimasPranesimas
keyUp 38 w
waitForTextPresent Total SMS Price : 9 USD
verifyValue sms_counter 3
clickAndWait commit
waitForTextPresent 1 - failed, system owner does not have rate for this destination
verifyText status_5 failed
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/sms/tariff_new
type tariff_name sms_tariff_admin
clickAndWait commit
waitForTextPresent SMS Tariff created
open /billing/sms/rate_new/2?st=A
type 18 1
type 11339 6
clickAndWait commit
waitForTextPresent Rates updated
open /billing/sms/users
select name=user_id label=Test Reseller
clickAndWait name=commit
waitForTextPresent User subscribed to SMS service: Test Reseller
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/sms/sms
type search 3556717219
keyUp search w
waitForTextPresent Albania MOB Albania mobile / 1 SMS: 6.0 USD
type 38 Pranesimas
keyUp 38 w
waitForTextPresent Total SMS Price : 6 USD
clickAndWait commit
waitForTextPresent 2 - failed, reseller does not have rate for this destination
open /billing/sms/sms
type search 3553817219
keyUp search w
waitForTextPresent Albania MOB Albania Mobile / 1 SMS: 3.0 USD
type 38 Pranesimas
keyUp 38 w
waitForTextPresent Total SMS Price : 3 USD
clickAndWait commit
waitForTextPresent 2 - failed, reseller does not have rate for this destination
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/sms/rate_new/3?st=A
type 18 2
type 11339 5
clickAndWait commit
waitForTextPresent Rates updated
open /billing/callc/logout
type login_username user_reseller
type login_psw user_reseller1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/sms/sms
type search 3556717219
keyUp search w
waitForTextPresent Albania MOB Albania mobile / 1 SMS: 6.0 USD
type 38 Pranesimas
keyUp 38 w
waitForTextPresent Total SMS Price : 6 USD
open /billing/sms/sms
type search 3553817219
keyUp search w
waitForTextPresent Albania MOB Albania Mobile / 1 SMS: 3.0 USD
type 38 Pranesimas
keyUp 38 w
waitForTextPresent Total SMS Price : 3 USD
open /billing/sms/sms
type search 1000
keyUp search w
waitForTextPresent Can not send SMS - no rate for this Destination
type 38 Pranesimas
keyUp 38 w
waitForTextPresent Total SMS Price : 0 USD