Test_SNF_KS_52_ksdemo_BanIP
open /portal/public/intranet/
windowMaximize
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
waitForElementPresent password
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
open /portal/private/intranet/forum
echo -Add IP Ban-
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
waitForElementPresent link=Logout
clickAndWait link=Logout
waitForTextPresent Sign in