| 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 Category for Test- |
|
| waitForElementPresent |
//a/span |
|
| click |
//a/span |
|
| waitForElementPresent |
CategoryTitle |
|
| type |
CategoryTitle |
Cate1_SNF_KS_32 |
| type |
Description |
Category 1 |
| click |
link=Save |
|
| waitForTextPresent |
Cate1_SNF_KS_32 |
|
| verifyTextPresent |
Cate1_SNF_KS_32 |
|
| 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_32 |
| 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=Cate1_SNF_KS_32 |
|
| click |
link=Cate1_SNF_KS_32 |
|
| waitForTextPresent |
For1_SNF_KS_32 |
|
| verifyTextPresent |
For1_SNF_KS_32 |
|
| echo |
-Add Topic for topic actions test- |
|
| waitForElementPresent |
link=For1_SNF_KS_32 |
|
| click |
link=For1_SNF_KS_32 |
|
| waitForElementPresent |
UITopicContainer |
|
| click |
//form[@id='UITopicContainer']//div[@class='ItemIcon PostnewThreadIcon']/a |
|
| waitForElementPresent |
ThreadTitle |
|
| type |
ThreadTitle |
Top1_SNF_KS_32 |
| 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 |
-Add Poll to Topic- |
|
| click |
link=Top1_SNF_KS_32 |
|
| waitForElementPresent |
//form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div |
|
| click |
//form[@id='UITopicDetail']/div[4]/div[1]//div[5]/div[1]/div/div/div/div/div |
|
| waitForElementPresent |
link=Add a poll |
|
| click |
link=Add a poll |
|
| waitForElementPresent |
Question |
|
| type |
Question |
About the topic content |
| type |
Option0 |
Good |
| type |
Option1 |
Normal |
| click |
//img[@title='Add Item'] |
|
| waitForElementPresent |
Option2 |
|
| click |
Option2 |
|
| type |
Option2 |
Bad |
| type |
TimeOut |
10 |
| click |
link=Submit poll |
|
| waitForTextPresent |
About the topic content ? |
|
| echo |
-Vote Poll- |
|
| click |
vote |
|
| waitForElementPresent |
link=Vote now |
|
| click |
link=Vote now |
|
| echo |
-Edit Poll- |
|
| waitForElementPresent |
link=Edit |
|
| click |
link=Edit |
|
| waitForElementPresent |
VoteAgain |
|
| click |
VoteAgain |
|
| type |
Option0 |
Good Update |
| type |
Option1 |
Normal Update |
| type |
Option2 |
Bad Update |
| click |
//form[@id='UIPollForm']/div[3]/table//div[1]/div/div/div |
|
| waitForTextPresent |
Good Update |
|
| verifyTextPresent |
Good Update |
|
| echo |
-Vote Again- |
|
| waitForElementPresent |
link=Vote again |
|
| click |
link=Vote again |
|
| waitForElementPresent |
//input[@name='vote' and @value='Normal Update'] |
|
| click |
//input[@name='vote' and @value='Normal Update'] |
|
| waitForElementPresent |
link=Vote now |
|
| click |
link=Vote now |
|
| waitForElementPresent |
link=Vote again |
|
| echo |
-Delete Poll- |
|
| click |
//form[@id='UITopicPoll']//div[@class='StatusIcon DeletePollIcon'] |
|
| waitForTextNotPresent |
About the topic content ? |
|
| verifyTextNotPresent |
About the topic content ? |
|
| assertConfirmation |
Are you sure you want to delete this poll? |
|
| echo |
-Delete Test Data- |
|
| waitForElementPresent |
link=Cate1_SNF_KS_32 |
|
| click |
link=Cate1_SNF_KS_32 |
|
| 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_32 |
|
| verifyTextNotPresent |
Cate1_SNF_KS_32 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|