| 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 |
|
| open |
/portal/private/intranet/forum |
|
| echo |
--Add new category |
|
| waitForElementPresent |
xpath=//div[@onclick="eXo.faq.UIAnswersPortlet.viewTitle('FAQCategroManager');"] |
|
| click |
xpath=//div[@onclick="eXo.faq.UIAnswersPortlet.viewTitle('FAQCategroManager');"] |
|
| waitForElementPresent |
link=Add category |
|
| clickAt |
link=Add category |
|
| waitForElementPresent |
eventCategoryName |
|
| type |
eventCategoryName |
SNF_KS_43 |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForTextPresent |
SNF_KS_43 |
|
| verifyTextPresent |
SNF_KS_43 |
|
| 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_43 |
| 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=SNF_KS_43 |
|
| click |
link=SNF_KS_43 |
|
| waitForTextPresent |
For1_SNF_KS_43 |
|
| verifyTextPresent |
For1_SNF_KS_43 |
|
| echo |
-Add Topic for topic actions test- |
|
| waitForElementPresent |
link=For1_SNF_KS_43 |
|
| click |
link=For1_SNF_KS_43 |
|
| waitForElementPresent |
UITopicContainer |
|
| click |
//form[@id='UITopicContainer']//div[@class='ItemIcon PostnewThreadIcon']/a |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Top1_SNF_KS_43 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic for Actions Test |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Top1_SNF_KS_32 |
|
| verifyTextPresent |
Top1_SNF_KS_32 |
|
| echo |
-Watch Category |
|
| componentExoContextMenu |
link=SNF_KS_43 |
contextmenu |
| waitForElementPresent |
link=Watch |
|
| click |
link=Watch |
|
| waitForElementPresent |
//div[@class='PopupMessage'] |
|
| verifyElementPresent |
//div[@class='PopupMessage'] |
You are now watching this item. |
| waitForElementPresent |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| echo |
-Unwatch Category |
|
| componentExoContextMenu |
link=SNF_KS_43 |
contextmenu |
| waitForElementPresent |
//div[3]/div/div/div[2]/a |
|
| click |
//div[3]/div/div/div[2]/a |
|
| waitForElementPresent |
//div[@class='PopupMessage'] |
|
| verifyElementPresent |
//div[@class='PopupMessage'] |
You are now watching this item. |
| waitForElementPresent |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| echo |
-Watch forum- |
|
| waitForElementPresent |
link=SNF_KS_43 |
|
| click |
link=SNF_KS_43 |
|
| waitForElementPresent |
link=For1_SNF_KS_43 |
|
| componentExoContextMenu |
link=For1_SNF_KS_43 |
contextmenu |
| waitForElementPresent |
//a[@class='MenuItem AddWatching'] |
|
| click |
//a[@class='MenuItem AddWatching'] |
|
| waitForElementPresent |
//div[@class='PopupMessage'] |
|
| verifyElementPresent |
//div[@class='PopupMessage'] |
You are now watching this item. |
| waitForElementPresent |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| echo |
-Unwatch forum- |
|
| waitForElementPresent |
link=For1_SNF_KS_43 |
|
| componentExoContextMenu |
link=For1_SNF_KS_43 |
contextmenu |
| click |
//a[@class='MenuItem AddWatching'] |
|
| waitForElementPresent |
//div[@class='PopupMessage'] |
|
| verifyElementPresent |
//div[@class='PopupMessage'] |
You are unwatch this item. |
| waitForElementPresent |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| echo |
-Watch Topic- |
|
| waitForElementPresent |
link=Top1_SNF_KS_43 |
|
| componentExoContextMenu |
link=Top1_SNF_KS_43 |
contextmenu |
| waitForElementPresent |
//a[@class='MenuItem AddWatching'] |
|
| click |
//a[@class='MenuItem AddWatching'] |
|
| waitForElementPresent |
//div[@class='PopupMessage'] |
|
| verifyElementPresent |
//div[@class='PopupMessage'] |
You are now watching this item. |
| waitForElementPresent |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| echo |
-Unwatch topic- |
|
| componentExoContextMenu |
link=Top1_SNF_KS_43 |
contextmenu |
| waitForElementPresent |
//a[@class='MenuItem AddWatching'] |
|
| click |
//a[@class='MenuItem AddWatching'] |
|
| waitForElementPresent |
//div[@class='PopupMessage'] |
|
| verifyElementPresent |
//div[@class='PopupMessage'] |
You are unwatch this item. |
| waitForElementPresent |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| echo |
-Delete Test Data- |
|
| waitForElementPresent |
link=SNF_KS_43 |
|
| click |
link=SNF_KS_43 |
|
| 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 |
link=SNF_KS_43 |
|
| verifyTextNotPresent |
link=SNF_KS_43 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|