Test_SNF_KS_45_ksdemo_UserManagement
open /portal/public/intranet/
windowMaximize
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/forum
echo -Add Category for Test-
waitForElementPresent //a/span
click //a/span
waitForElementPresent CategoryTitle
type CategoryTitle Cate1_SNF_KS_45
type Description Category 1
click link=Save
waitForTextPresent Cate1_SNF_KS_45
verifyTextPresent Cate1_SNF_KS_45
echo -Add Forum-
waitForElementPresent //div[3]/div/div/div/div/a/span
click //div[3]/div/div/div/div/a/span
waitForElementPresent ForumTitle
type ForumTitle For1_SNF_KS_45
type Description prepare forum data
waitForElementPresent //form[@id='UIForumForm']/div[4]/table//div[1]/div/div/div
click //form[@id='UIForumForm']/div[4]/table//div[1]/div/div/div
waitForElementPresent link=Cate1_SNF_KS_45
click link=Cate1_SNF_KS_45
waitForTextPresent For1_SNF_KS_45
verifyTextPresent For1_SNF_KS_45
echo -Add Topic-
clickAndWait link=Logout
waitForTextPresent Sign in
open /portal/public/intranet/
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/forum
waitForElementPresent link=For1_SNF_KS_45
click link=For1_SNF_KS_45
waitForElementPresent link=Start topic
click link=Start topic
waitForElementPresent ThreadTitle
type ThreadTitle Demo Topic
waitForElementPresent //iframe[@id='messageContent___Frame']
selectFrame //iframe[@id='messageContent___Frame']
selectFrame //html/body/table/tbody/tr[2]/td/iframe
type //html/body Test
selectFrame relative=top
waitForElementPresent link=Submit
click link=Submit
waitForTextPresent Demo Topic
verifyTextPresent Demo Topic
echo -Add post-
click link=Demo Topic
waitForElementPresent Message
type Message Demo Post
click link=Quick reply
waitForTextPresent Demo Post
verifyTextPresent Demo Post
echo - Login by root to manage-
clickAndWait link=Logout
waitForTextPresent Sign in
open /portal/public/intranet/
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/forum
waitForElementPresent link=Users
click link=Users
waitForElementPresent SearchUser
waitForTextPresent User name
verifyTextPresent demo
verifyTextPresent john
verifyTextPresent mary
verifyTextPresent root
type SearchUser demo
clickAt //form[@id='UIModeratorManagementForm']//a[@title='Search']
waitForText //table[@id='PermissionInfo']/tbody/tr/td[1] demo
verifyText //table[@id='PermissionInfo']/tbody/tr/td[1] demo
click //table[@id='PermissionInfo']/tbody//div[@title='Edit Profile']
waitForElementPresent ScreenName
type ScreenName demoscreen
type ForumUserTitle demotitle
type Signature demo signature
check IsDisplaySignature
click //form[@id='UIModeratorManagementForm']/div[2]/div[5]//div[1]//div[2]/div/div/div/div
waitForElementPresent Timeformat
select Timeformat label=24-hour
select MaximumThreads label=5
select MaximumPosts label=5
click //form[@id='UIModeratorManagementForm']/div[2]/div[5]//div[1]//div[3]/div/div/div/div
waitForElementPresent IsBanned
check IsBanned
clickAt //form[@id='UIModeratorManagementForm']/div[2]/div[5]//div[1]//div[4]/div/div/div/div
waitForElementPresent //a[@class='ActionLink TitleBold']
verifyElementPresent //a[@class='ActionLink TitleBold'] Demo Topic
click //form[@id='UIModeratorManagementForm']/div[2]/div[5]//div[1]/div/div/div/div/div[5]/div/div/div/div
waitForElementPresent //a[@class='title']
verifyElementPresent //a[@class='title'] Re: Demo Topic
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Close
click link=Close
echo -Login by banned Demo to check-
clickAndWait link=Logout
waitForTextPresent Sign in
open /portal/public/intranet/
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/forum
waitForElementPresent UIForumActionBar
waitForElementPresent link=For1_SNF_KS_45
click link=For1_SNF_KS_45
waitForElementPresent //form[@id='UITopicContainer']//div[@class='IconButton LockIcon']
verifyElementPresent //form[@id='UITopicContainer']//div[@class='IconButton LockIcon']
waitForElementPresent link=Demo Topic
click link=Demo Topic
waitForElementPresent //form[@id='UITopicDetail']//div[@class='IconButton LockIcon']
verifyElementPresent //form[@id='UITopicDetail']//div[@class='IconButton LockIcon']
verifyElementNotPresent Message
verifyTextPresent demo signature
verifyTextPresent demotitle
verifyTextPresent demoscreen
echo - Login by root to unban demo and verify changes value-
clickAndWait link=Logout
waitForTextPresent Sign in
open /portal/public/intranet/
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/forum
waitForElementPresent link=Users
click link=Users
waitForElementPresent SearchUser
waitForTextPresent User name
verifyTextPresent demo
verifyTextPresent john
verifyTextPresent mary
verifyTextPresent root
type SearchUser demo
clickAt //form[@id='UIModeratorManagementForm']//a[@title='Search']
waitForText //table[@id='PermissionInfo']/tbody/tr/td[1] demo
verifyText //table[@id='PermissionInfo']/tbody/tr/td[1] demo
click //table[@id='PermissionInfo']/tbody//div[@title='Edit Profile']
waitForElementPresent ForumUserTitle
verifyElementPresent ForumUserTitle demotitle
verifyElementPresent Signature demo signature
click //form[@id='UIModeratorManagementForm']/div[2]/div[5]//div[1]//div[2]/div/div/div/div
waitForElementPresent Timeformat
verifyElementPresent Timeformat label=24-hour
verifyElementPresent MaximumThreads label=5
verifyElementPresent MaximumPosts label=5
click //form[@id='UIModeratorManagementForm']/div[2]/div[5]//div[1]//div[3]/div/div/div/div
echo -Unban demo-
waitForElementPresent IsBanned
uncheck IsBanned
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Close
click link=Close
echo -Login demo to check unban or not-
clickAndWait link=Logout
waitForTextPresent Sign in
open /portal/public/intranet/
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username demo
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/forum
waitForElementPresent UIForumActionBar
waitForElementPresent link=For1_SNF_KS_45
clickAt link=For1_SNF_KS_45
waitForElementPresent //form[@id='UITopicContainer']//div[@class='IconButton AddTheradIcon']
verifyElementPresent //form[@id='UITopicContainer']//div[@class='IconButton AddTheradIcon']
waitForElementPresent link=Demo Topic
click link=Demo Topic
waitForElementPresent //form[@id='UITopicDetail']//div[@class='IconButton PostReplyIcon']
verifyElementPresent //form[@id='UITopicDetail']//div[@class='IconButton PostReplyIcon']
verifyElementPresent Message
verifyTextPresent demo signature
verifyTextPresent demoscreen
verifyTextPresent demotitle
clickAndWait link=Logout
waitForTextPresent Sign in
echo -Delete Test Data-
open /portal/public/intranet/
waitForElementPresent //div[contains(text(),'Sign in')]
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
open /portal/private/intranet/forum
waitForElementPresent link=Cate1_SNF_KS_45
click link=Cate1_SNF_KS_45
waitForElementPresent //form[@id='UICategory']//div[@class='ManageCategoryButton']
click //form[@id='UICategory']//div[@class='ManageCategoryButton']
waitForElementPresent link=Delete
click link=Delete
assertConfirmation Are you sure you want to delete this category?
waitForTextNotPresent Cate1_SNF_KS_45
verifyTextNotPresent Cate1_SNF_KS_45
echo -Reset display signature-
waitForElementPresent link=Users
click link=Users
waitForElementPresent //table[@id='PermissionInfo']/tbody/tr[4]/td[5]/div/div[1]/div
click //table[@id='PermissionInfo']/tbody/tr[4]/td[5]/div/div[1]/div
waitForElementPresent ForumUserTitle
type ForumUserTitle
type ScreenName
type Signature
uncheck IsDisplaySignature
waitForElementPresent //form[@id='UIModeratorManagementForm']/div[2]/div[5]//div[1]//div[2]/div/div/div/div
click //form[@id='UIModeratorManagementForm']/div[2]/div[5]//div[1]//div[2]/div/div/div/div
waitForElementPresent Timeformat
select Timeformat label=24-hour
select MaximumThreads label=10
select MaximumPosts label=10
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[@id='ManageModerator']/div/div/div/div/a/span
click //div[@id='ManageModerator']/div/div/div/div/a/span
waitForElementPresent //form[@id='UIModeratorManagementForm']/div[3]/table/tbody/tr/td/div/div/div/div/a
click //form[@id='UIModeratorManagementForm']/div[3]/table/tbody/tr/td/div/div/div/div/a
clickAndWait link=Logout
waitForTextPresent Sign in