| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
-Login bt root |
|
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| echo |
-Access Forum |
|
| open |
/ksdemo/private/classic/forum |
|
| echo |
-F1: Add Category |
|
| waitForElementPresent |
//span[text()="Add category"] |
|
| click |
//span[text()="Add category"] |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Cate1_SNF_KS_24 |
| type |
Description |
Add new category |
| echo |
-Save: add category successful |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
- Go Home |
|
| waitForElementPresent |
//a[@title="Home"] |
|
| click |
//a[@title="Home"] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_24 |
|
| verifyElementPresent |
link=Cate1_SNF_KS_24 |
|
| echo |
-- Create more Category |
|
| waitForElementPresent |
//div[@id='AddCategory']//span[text()="Add category"] |
|
| click |
//div[@id='AddCategory']//span[text()="Add category"] |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Cate2_SNF_KS_24 |
| type |
Description |
ven tu - bachata |
| echo |
-Save: add category successful |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
- Go Home |
|
| waitForElementPresent |
//a[@title="Home"] |
|
| click |
//a[@title="Home"] |
|
| waitForElementPresent |
link=Cate2_SNF_KS_24 |
|
| verifyElementPresent |
link=Cate2_SNF_KS_24 |
|
| echo |
-Add Forum Inside Category- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_24 |
|
| click |
link=Cate1_SNF_KS_24 |
|
| echo |
-Manage Category menu |
|
| waitForElementPresent |
//div[text()="Manage Category"] |
|
| click |
//div[text()="Manage Category"] |
|
| echo |
-Add forum |
|
| waitForElementPresent |
//a[text()="Add forum"] |
|
| click |
//a[text()="Add forum"] |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For1_SNF_KS_24 |
| type |
Description |
Test Forum In Category |
| echo |
-Save to create Forum |
|
| waitForElementPresent |
//form[@id='UIForumForm']//a[text()="Save"] |
|
| click |
//form[@id='UIForumForm']//a[text()="Save"] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_24 |
|
| click |
link=Cate1_SNF_KS_24 |
|
| waitForElementPresent |
link=For1_SNF_KS_24 |
|
| verifyElementPresent |
link=For1_SNF_KS_24 |
|
| echo |
-F2: Edit Forum inside Category- |
|
| echo |
-Check forum that need to edit : For1_SNF_KS_24 |
|
| waitForElementPresent |
document.forms[1].elements[3] |
|
| click |
document.forms[1].elements[3] |
|
| echo |
-Manage Category menu |
|
| waitForElementPresent |
//div[text()="Manage Category"] |
|
| click |
//div[text()="Manage Category"] |
|
| echo |
-Edit |
|
| waitForElementPresent |
//a[contains(@href,"EditForum")] |
|
| click |
//a[contains(@href,"EditForum")] |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For1_SNF_KS_24_Edit |
| type |
Description |
Test Forum In Category Edit |
| echo |
-Save |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=For1_SNF_KS_24_Edit |
|
| verifyElementPresent |
link=For1_SNF_KS_24_Edit |
|
| echo |
-F3: Lock Forum inside Category- |
|
| waitForElementPresent |
document.forms[1].elements[3] |
|
| click |
document.forms[1].elements[3] |
|
| waitForElementPresent |
//div[text()="Manage Category"] |
|
| click |
//div[text()="Manage Category"] |
|
| waitForElementPresent |
link=Lock |
|
| click |
link=Lock |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ForumStatusIcon ForumLockedIcon'] |
|
| verifyElementPresent |
//form[@id='UICategory']//div[@class='ForumStatusIcon ForumLockedIcon'] |
|
| waitForElementPresent |
link=For1_SNF_KS_24_Edit |
|
| click |
link=For1_SNF_KS_24_Edit |
|
| waitForElementPresent |
//form[@id='UITopicContainer']//div[@class='LockActionForum UIActionForum'] |
|
| verifyElementPresent |
//form[@id='UITopicContainer']//div[@class='LockActionForum UIActionForum'] |
|
| echo |
-UnLock Forum inside Category- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_24 |
|
| click |
link=Cate1_SNF_KS_24 |
|
| waitForElementPresent |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| click |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| waitForElementPresent |
link=Unlock |
|
| click |
link=Unlock |
|
| waitForElementNotPresent |
//form[@id='UICategory']//div[@class='ForumStatusIcon ForumLockedIcon'] |
|
| verifyElementNotPresent |
//form[@id='UICategory']//div[@class='ForumStatusIcon ForumLockedIcon'] |
|
| waitForElementPresent |
link=For1_SNF_KS_24_Edit |
|
| click |
link=For1_SNF_KS_24_Edit |
|
| waitForElementPresent |
//form[@id='UITopicContainer']//div[@class='IconButton AddTheradIcon'] |
|
| verifyElementPresent |
//form[@id='UITopicContainer']//div[@class='IconButton AddTheradIcon'] |
|
| echo |
-Close Forum inside Category- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_24 |
|
| click |
link=Cate1_SNF_KS_24 |
|
| waitForElementPresent |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| click |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
link=Close |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ForumStatusIcon ForumCloseIcon'] |
|
| verifyElementPresent |
//form[@id='UICategory']//div[@class='ForumStatusIcon ForumCloseIcon'] |
|
| echo |
-Login by john to check Category was locked |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| clickAndWait |
link=Forum |
|
| waitForElementNotPresent |
link=For1_SNF_KS_24_Edit |
|
| verifyElementNotPresent |
link=For1_SNF_KS_24_Edit |
|
| echo |
-- Login admin |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| clickAndWait |
link=Forum |
|
| echo |
-Open Forum inside Category- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_24 |
|
| click |
link=Cate1_SNF_KS_24 |
|
| waitForElementPresent |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| click |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| waitForElementPresent |
link=Open |
|
| click |
link=Open |
|
| echo |
-Login by john to check Category was opened |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| clickAndWait |
link=Forum |
|
| waitForElementPresent |
link=For1_SNF_KS_24_Edit |
|
| verifyElementPresent |
link=For1_SNF_KS_24_Edit |
|
| echo |
-- Login admin |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//a[text()="Sign in"] |
|
| clickAndWait |
link=Forum |
|
| waitForElementNotPresent |
//form[@id='UICategory']//div[@class='ForumStatusIcon ForumCloseIcon'] |
|
| verifyElementNotPresent |
//form[@id='UICategory']//div[@class='ForumStatusIcon ForumCloseIcon'] |
|
| waitForElementPresent |
link=For1_SNF_KS_24_Edit |
|
| click |
link=For1_SNF_KS_24_Edit |
|
| waitForElementPresent |
//form[@id='UITopicContainer']//div[@class='IconButton AddTheradIcon'] |
|
| verifyElementPresent |
//form[@id='UITopicContainer']//div[@class='IconButton AddTheradIcon'] |
|
| echo |
-Move Forum- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_24 |
|
| click |
link=Cate1_SNF_KS_24 |
|
| waitForElementPresent |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| click |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| waitForElementPresent |
link=Move |
|
| click |
link=Move |
|
| waitForElementPresent |
link=Cate2_SNF_KS_24 |
|
| click |
link=Cate2_SNF_KS_24 |
|
| waitForElementNotPresent |
link=For1_SNF_KS_24_Edit |
|
| verifyElementNotPresent |
link=For1_SNF_KS_24_Edit |
|
| echo |
-- Home |
|
| waitForElementPresent |
//a[@title="Home"] |
|
| click |
//a[@title="Home"] |
|
| waitForElementPresent |
link=Cate2_SNF_KS_24 |
|
| click |
link=Cate2_SNF_KS_24 |
|
| waitForElementPresent |
link=For1_SNF_KS_24_Edit |
|
| verifyElementPresent |
link=For1_SNF_KS_24_Edit |
|
| echo |
-Remove Forum Inside Category- |
|
| waitForElementPresent |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| click |
//form[@id='UICategory']//input[@id='UIFORUMCheckAllForum'] |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| waitForElementPresent |
link=Remove |
|
| click |
link=Remove |
|
| assertConfirmation |
Are you sure you want to delete this forum? |
|
| waitForElementNotPresent |
link=For1_SNF_KS_24_Edit |
|
| verifyElementNotPresent |
link=For1_SNF_KS_24_Edit |
|
| echo |
-Delete Test Data- |
|
| waitForElementPresent |
//a[@title="Home"] |
|
| click |
//a[@title="Home"] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_24 |
|
| click |
link=Cate1_SNF_KS_24 |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
link=Delete |
|
| assertConfirmation |
Are you sure you want to delete this category? |
|
| waitForElementNotPresent |
link=Cate1_SNF_KS_24 |
|
| verifyElementNotPresent |
link=Cate1_SNF_KS_24 |
|
| waitForElementPresent |
link=Cate2_SNF_KS_24 |
|
| click |
link=Cate2_SNF_KS_24 |
|
| waitForElementPresent |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
//form[@id='UICategory']//div[@class='ManageCategoryButton'] |
|
| click |
link=Delete |
|
| assertConfirmation |
Are you sure you want to delete this category? |
|
| waitForElementNotPresent |
link=Cate2_SNF_KS_24 |
|
| verifyTextNotPresent |
link=Cate2_SNF_KS_24 |
|
| echo |
-Sign out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|