Test_SNF_KS_22_defaultportal_BasicActionsInCategory
open /portal/public/intranet/
windowMaximize
waitForElementPresent //div[2]/div[2]/div[1]/div/div/div[1]
click //div[2]/div[2]/div[1]/div/div/div[1]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a
echo -Add Category-
open /portal/private/intranet/forum
waitForElementPresent //a/span
click //a/span
waitForElementPresent CategoryTitle
type CategoryTitle SNF_KS_22_Cate 1
type Description SNF_KS_22_Cate 1 Desc
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[2]/div/div/div/div[1]/a
click //div[2]/div/div/div/div[1]/a
waitForTextPresent SNF_KS_22_Cate 1
verifyTextPresent SNF_KS_22_Cate 1
echo -Edit Category-
waitForElementPresent link=SNF_KS_22_Cate 1
click link=SNF_KS_22_Cate 1
waitForElementPresent //form[@id='UICategory']//div[@class='ManageCategoryButton']
click //form[@id='UICategory']//div[@class='ManageCategoryButton']
waitForElementPresent //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[2]/div/div/div/div/div[2]/div/div/div[1]/a
click //form[@id='UICategory']/div[3]/div/div/div/div[4]/div[2]/div/div/div/div/div[2]/div/div/div[1]/a
waitForElementPresent CategoryTitle
verifyValue CategoryTitle SNF_KS_22_Cate 1
verifyValue Description SNF_KS_22_Cate 1 Desc
type CategoryTitle SNF_KS_22_Cate 1 Update
type Description SNF_KS_22_Cate 1 Desc Update
type UserPrivate root
waitForElementPresent //form[@id='UICategoryForm']/div[2]//div[1]//div[2]/div/div/div/div/div
click //form[@id='UICategoryForm']/div[2]//div[1]//div[2]/div/div/div/div/div
waitForElementPresent Topicable
type Topicable root
type Postable root
waitForElementPresent link=Save
click link=Save
waitForTextPresent SNF_KS_22_Cate 1 Update : SNF_KS_22_Cate 1 Desc Update
verifyTextPresent SNF_KS_22_Cate 1 Update : SNF_KS_22_Cate 1 Desc Update
echo -Add Category for Delete-
waitForElementPresent //div[2]/div/div/div/div[1]/a
click //div[2]/div/div/div/div[1]/a
waitForElementPresent //a/span
click //a/span
waitForElementPresent CategoryTitle
type CategoryTitle Category for Delete
type Description Category for Delete test
waitForElementPresent link=Save
click link=Save
waitForElementPresent //div[2]/div/div/div/div[1]/a
click //div[2]/div/div/div/div[1]/a
waitForTextPresent Category for Delete
verifyTextPresent Category for Delete
echo -Delete Category-
click link=Category for Delete
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 Category for Delete
verifyTextNotPresent Category for Delete
echo -Delete Test Data-
waitForElementPresent //div[2]/div/div/div/div[1]/a
click //div[2]/div/div/div/div[1]/a
waitForElementPresent link=SNF_KS_22_Cate 1 Update
click link=SNF_KS_22_Cate 1 Update
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 SNF_KS_22_Cate 1 Update
verifyTextNotPresent SNF_KS_22_Cate 1 Update
clickAndWait link=Logout