| open |
/ksdemo/public/classic/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/ksdemo/private/classic/forum |
|
| echo |
-Add Category for Test- |
|
| waitForElementPresent |
link=Add Category |
|
| click |
link=Add Category |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Cate1_SNF_KS_44 |
| type |
Description |
Category 1 |
| click |
link=Save |
|
| waitForTextPresent |
Cate1_SNF_KS_44 |
|
| verifyTextPresent |
Cate1_SNF_KS_44 |
|
| echo |
-Add Forum- |
|
| waitForElementPresent |
//a[contains(text(),'Add Forum')] |
|
| click |
//a[contains(text(),'Add Forum')] |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For1_SNF_KS_44 |
| type |
Description |
prepare forum data |
| waitForElementPresent |
//form[@id='UIForumForm']//a[text()='Save'] |
|
| click |
//form[@id='UIForumForm']//a[text()='Save'] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_44 |
|
| click |
link=Cate1_SNF_KS_44 |
|
| waitForTextPresent |
For1_SNF_KS_44 |
|
| verifyTextPresent |
For1_SNF_KS_44 |
|
| echo |
-Watch Category |
|
| click |
//div[@id='UIBreadcumbs']//a[@title='Home'] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_44 |
|
| contextMenu |
link=Cate1_SNF_KS_44 |
|
| waitForElementPresent |
link=Watch |
|
| click |
link=Watch |
|
| waitForTextPresent |
You are now watching this item. |
|
| verifyTextPresent |
You are now watching this item. |
|
| click |
//div[@id='UIForumPortlet']//a[text()='OK'] |
|
| echo |
-User Settings- |
|
| waitForElementPresent |
link=Settings |
|
| click |
link=Settings |
|
| waitForElementPresent |
Signature |
|
| type |
Signature |
Root Signature |
| click |
IsDisplaySignature |
|
| waitForElementPresent |
//form[@id='UIForumUserSettingForm']//div[contains(text(),'Forum Settings')] |
|
| click |
//form[@id='UIForumUserSettingForm']//div[contains(text(),'Forum Settings')] |
|
| waitForElementPresent |
ShortDateformat |
|
| select |
Timeformat |
label=24-hour |
| select |
MaximumThreads |
label=5 |
| select |
MaximumPosts |
label=5 |
| waitForElementPresent |
//form[@id='UIForumUserSettingForm']//div[contains(text(),'My Subscriptions')] |
|
| click |
//form[@id='UIForumUserSettingForm']//div[contains(text(),'My Subscriptions')] |
|
| waitForElementPresent |
//form[@id='UIForumUserSettingForm']//div[@class='UITabContentContainer']/div[3] |
|
| verifyElementPresent |
//form[@id='UIForumUserSettingForm']//div[@class='UITabContentContainer']/div[3]//a |
Cate1_SNF_KS_44 |
| type |
id=EmailAddress |
root@localhost.vn |
| waitForElementPresent |
//form[@id='UIForumUserSettingForm']//a[contains(text(),'Save')] |
|
| click |
//form[@id='UIForumUserSettingForm']//a[contains(text(),'Save')] |
|
| echo |
-Check Change Settings value- |
|
| waitForElementPresent |
link=Settings |
|
| click |
link=Settings |
|
| verifyValue |
Signature |
Root Signature |
| echo |
- Select Forum Settings tab |
|
| waitForElementPresent |
//div[contains(text(),'Forum Settings')] |
|
| click |
//div[contains(text(),'Forum Settings')] |
|
| waitForElementPresent |
ShortDateformat |
|
| verifyElementPresent |
ShortDateformat |
label=m-d-yy (4-9-10) |
| verifyElementPresent |
LongDateformat |
label=mmm dd, yyyy (Apr 09, 2010) |
| verifyElementPresent |
Timeformat |
label=24-hour |
| verifyElementPresent |
MaximumThreads |
label=5 |
| verifyElementPresent |
MaximumPosts |
label=5 |
| waitForElementPresent |
//form[@id='UIForumUserSettingForm']//div[contains(text(),'My Subscriptions')] |
|
| click |
//form[@id='UIForumUserSettingForm']//div[contains(text(),'My Subscriptions')] |
|
| waitForElementPresent |
//div[contains(@onclick,'DeleteEmailWatch')] |
|
| verifyElementPresent |
//div[contains(@onclick,'DeleteEmailWatch')] |
|
| waitForElementPresent |
link=Cancel |
|
| click |
link=Cancel |
|
| echo |
-Check Signature Display- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_44 |
|
| click |
link=Cate1_SNF_KS_44 |
|
| waitForElementPresent |
link=For1_SNF_KS_44 |
|
| click |
link=For1_SNF_KS_44 |
|
| waitForElementPresent |
//a[contains(text(),'Start Topic')] |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Test Signature |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Test Signature |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Test Signature |
|
| verifyTextPresent |
Test Signature |
|
| waitForElementPresent |
link=Test Signature |
|
| click |
link=Test Signature |
|
| waitForTextPresent |
Root Signature |
|
| verifyTextPresent |
Root Signature |
|
| echo |
-Add Forum for Settings- |
|
| waitForElementPresent |
//div[@id='UIBreadcumbs']//a[@title='Home'] |
|
| click |
//div[@id='UIBreadcumbs']//a[@title='Home'] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_44 |
|
| click |
link=Cate1_SNF_KS_44 |
|
| waitForElementPresent |
//a[contains(text(),'Add Forum')] |
|
| click |
//a[contains(text(),'Add Forum')] |
|
| waitForElementPresent |
ForumTitle |
|
| type |
ForumTitle |
For2_SNF_KS_44 |
| type |
Description |
Forum for Forum Setting |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForTextPresent |
For2_SNF_KS_44 |
|
| verifyTextPresent |
For2_SNF_KS_44 |
|
| echo |
-Add topics for forum settings- |
|
| waitForElementPresent |
//a[contains(text(),'Start Topic')] |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic 1 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic 1 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Topic 1 |
|
| verifyTextPresent |
Topic 1 |
|
| waitForElementPresent |
//a[contains(text(),'Start Topic')] |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic 2 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic 2 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Topic 2 |
|
| verifyTextPresent |
Topic 2 |
|
| waitForElementPresent |
//a[contains(text(),'Start Topic')] |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic 3 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic 3 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Topic 3 |
|
| verifyTextPresent |
Topic 3 |
|
| waitForElementPresent |
//a[contains(text(),'Start Topic')] |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic 4 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic 4 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Topic 4 |
|
| verifyTextPresent |
Topic 4 |
|
| waitForElementPresent |
//a[contains(text(),'Start Topic')] |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic 5 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic 5 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Topic 5 |
|
| verifyTextPresent |
Topic 5 |
|
| waitForElementPresent |
//a[contains(text(),'Start Topic')] |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic 6 |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic 6 |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Topic 6 |
|
| verifyTextPresent |
Topic 6 |
|
| waitForElementPresent |
//a[contains(text(),'Start Topic')] |
|
| click |
//a[contains(text(),'Start Topic')] |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Topic for Forum Setting Test |
| waitForElementPresent |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//iframe[@id='messageContent___Frame'] |
|
| selectFrame |
//html/body/table/tbody/tr[2]/td/iframe |
|
| type |
//html/body |
Topic for Forum Setting Test |
| selectFrame |
relative=top |
|
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForTextPresent |
Topic for Forum Setting Test |
|
| verifyTextPresent |
Topic for Forum Setting Test |
|
| waitForElementPresent |
link=2 |
|
| click |
link=2 |
|
| waitForElementPresent |
link=Topic 1 |
|
| verifyElementPresent |
link=Topic 1 |
|
| waitForElementPresent |
link=1 |
|
| click |
link=1 |
|
| waitForElementPresent |
link=Topic for Forum Setting Test |
|
| click |
link=Topic for Forum Setting Test |
|
| echo |
-Add posts for test- |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post 1 for setting test |
| click |
link=Quick Reply |
|
| waitForTextPresent |
Post 1 for setting test |
|
| verifyTextPresent |
Post 1 for setting test |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post 2 for setting test |
| click |
link=Quick Reply |
|
| waitForTextPresent |
Post 2 for setting test |
|
| verifyTextPresent |
Post 2 for setting test |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post 3 for setting test |
| click |
link=Quick Reply |
|
| waitForTextPresent |
Post 3 for setting test |
|
| verifyTextPresent |
Post 3 for setting test |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post 4 for setting test |
| click |
link=Quick Reply |
|
| waitForTextPresent |
Post 4 for setting test |
|
| verifyTextPresent |
Post 4 for setting test |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post 5 for setting test |
| click |
link=Quick Reply |
|
| waitForTextPresent |
Post 5 for setting test |
|
| verifyTextPresent |
Post 5 for setting test |
|
| waitForElementPresent |
Message |
|
| type |
Message |
Post 6 for setting test |
| click |
link=Quick Reply |
|
| waitForTextPresent |
Post 6 for setting test |
|
| verifyTextPresent |
Post 6 for setting test |
|
| waitForElementPresent |
link=For2_SNF_KS_44 |
|
| click |
link=For2_SNF_KS_44 |
|
| waitForTextPresent |
Topic for Forum Setting Test |
|
| verifyTextPresent |
Topic for Forum Setting Test |
|
| waitForElementPresent |
//div[@id='UIBreadcumbs']//a[@title='Home'] |
|
| click |
//div[@id='UIBreadcumbs']//a[@title='Home'] |
|
| waitForElementPresent |
link=Cate1_SNF_KS_44 |
|
| click |
link=Cate1_SNF_KS_44 |
|
| echo |
-Delete Test Data- |
|
| waitForElementPresent |
//div[@id='UICategoryContainer']//a[text()='Manage Category'] |
|
| click |
//div[@id='UICategoryContainer']//a[text()='Manage Category'] |
|
| waitForElementPresent |
link=Delete |
|
| click |
link=Delete |
|
| assertConfirmation |
Are you sure to delete this category? |
|
| waitForTextNotPresent |
Cate1_SNF_KS_44 |
|
| verifyTextNotPresent |
Cate1_SNF_KS_44 |
|
| echo |
-Reset some value- |
|
| waitForElementPresent |
link=Settings |
|
| click |
link=Settings |
|
| waitForElementPresent |
Signature |
|
| type |
Signature |
|
| click |
IsDisplaySignature |
|
| echo |
- Select Forum Settings tab |
|
| waitForElementPresent |
//div[contains(text(),'Forum Settings')] |
|
| click |
//div[contains(text(),'Forum Settings')] |
|
| waitForElementPresent |
ShortDateformat |
|
| select |
Timeformat |
label=24-hour |
| select |
MaximumThreads |
label=10 |
| select |
MaximumPosts |
label=10 |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| clickAndWait |
link=Sign out |
|
| waitForTextPresent |
Sign in |
|