| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div[@class='ButtonMiddle']/a |
|
| open |
/ksdemo/private/classic/forum |
|
| echo |
-Add Category for Test- |
|
| waitForElementPresent |
//a/span |
|
| click |
//a/span |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Cate1_SNF_KS_46 |
| type |
Description |
Category 1 |
| click |
link=Save |
|
| waitForTextPresent |
Cate1_SNF_KS_46 |
|
| verifyTextPresent |
Cate1_SNF_KS_46 |
|
| echo |
-Add Forum for Sorting- |
|
| 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_46 |
| type |
Description |
Test forum sorting |
| 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_46 |
|
| click |
link=Cate1_SNF_KS_46 |
|
| waitForTextPresent |
For1_SNF_KS_46 |
|
| verifyTextPresent |
For1_SNF_KS_46 |
|
| waitForElementPresent |
link=Add forum |
|
| click |
link=Add forum |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
XSort Forum |
| type |
Description |
XSort Forum |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=Cate1_SNF_KS_46 |
|
| click |
link=Cate1_SNF_KS_46 |
|
| waitForElementPresent |
link=XSort Forum |
|
| verifyElementPresent |
link=XSort Forum |
|
| waitForElementPresent |
link=Add forum |
|
| click |
link=Add forum |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
ASort Forum |
| type |
Description |
ASort Forum |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=Cate1_SNF_KS_46 |
|
| click |
link=Cate1_SNF_KS_46 |
|
| waitForElementPresent |
link=ASort Forum |
|
| verifyElementPresent |
link=ASort Forum |
|
| echo |
-Change sort setting- |
|
| waitForElementPresent |
//div[@id='Administrations']/div/div[1]/div/div/div/div |
|
| click |
//div[@id='Administrations']/div/div[1]/div/div/div/div |
|
| waitForElementPresent |
//div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[1]/a/span |
|
| click |
//div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[1]/a/span |
|
| waitForElementPresent |
forumSortBy |
|
| select |
forumSortBy |
label=Name |
| select |
topicSortBy |
label=Name |
| select |
forumSortByType |
label=Descending |
| select |
topicSortByType |
label=Descending |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| echo |
-Check Sorting Forum- |
|
| waitForElementPresent |
//form[@id='UICategory']/div[4]/div/table/tbody/tr/td[3]/span/a |
|
| verifyElementPresent |
//form[@id='UICategory']/div[4]/div/table/tbody/tr/td[3]/span/a |
XSort Forum |
| echo |
-Add topics and check topic sorting- |
|
| waitForElementPresent |
link=XSort Forum |
|
| click |
link=XSort Forum |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
A Topic |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
A Topic |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
A Topic |
|
| verifyTextPresent |
A Topic |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
H Topic |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
H Topic |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
H Topic |
|
| verifyTextPresent |
H Topic |
|
| waitForElementPresent |
link=Start topic |
|
| click |
link=Start topic |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
X Topic |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
X Topic |
|
| verifyTextPresent |
X Topic |
|
| verifyElementPresent |
//a[@class='ActionLink TitleBold PopupMenu'] |
X Topic |
| echo |
-Delete test data- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_46 |
|
| click |
link=Cate1_SNF_KS_46 |
|
| 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_46 |
|
| verifyTextNotPresent |
Cate1_SNF_KS_46 |
|
| echo |
-Reset value for sort setting- |
|
| waitForElementPresent |
//div[@id='Administrations']/div/div[1]/div/div/div/div |
|
| click |
//div[@id='Administrations']/div/div[1]/div/div/div/div |
|
| waitForElementPresent |
//div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[1]/a/span |
|
| click |
//div[@id='Administrations']/div/div[2]/div/div/div/div[2]/div/div/div[1]/a/span |
|
| waitForElementPresent |
forumSortBy |
|
| select |
forumSortBy |
label=Name |
| waitForElementPresent |
topicSortBy |
|
| select |
topicSortBy |
label=Date of last post |
| select |
forumSortByType |
label=Ascending |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|
| waitForTextPresent |
Sign in |
|