Test_SNF_KS_52_ksdemo_BanIP
open /ksdemo/public/classic/
windowMaximize
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
echo -Add IP Ban-
open /ksdemo/private/classic/forum
waitForElementPresent //div[@id='Administrations']//a[text()='Administration']
click //div[@id='Administrations']//a[text()='Administration']
waitForElementPresent //div[@id='Administrations']//span[text()='Banned IPs']
click //div[@id='Administrations']//span[text()='Banned IPs']
waitForElementPresent newIpBan1
type newIpBan1 192
type newIpBan2 168
type newIpBan3 1
type newIpBan4 64
waitForElementPresent link=[Add]
click link=[Add]
waitForTextPresent 192.168.1.64
verifyTextPresent 192.168.1.64
type newIpBan1 192
type newIpBan2 168
type newIpBan3 1
type newIpBan4 65
waitForElementPresent link=[Add]
click link=[Add]
waitForTextPresent 192.168.1.65
verifyTextPresent 192.168.1.65
echo -View posts form-
waitForElementPresent link=Posts
click link=Posts
waitForElementPresent //form[@id='UIPageListPostByIP']//a[text()='Close']
click //form[@id='UIPageListPostByIP']//a[text()='Close']
echo -Delete IP-
waitForElementPresent link=X
click link=X
verifyConfirmation This IP will no longer be banned. Do you confirm?
waitForTextNotPresent 192.168.1.64
verifyTextNotPresent 192.168.1.64
waitForElementPresent link=X
click link=X
verifyConfirmation This IP will no longer be banned. Do you confirm?
waitForTextNotPresent 192.168.1.65
verifyTextNotPresent 192.168.1.65
waitForElementPresent link=Close
click link=Close
clickAndWait link=Sign out
waitForTextPresent Sign in