| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/portal/private/intranet/wiki |
|
| echo |
-Setting edit right for demo- |
|
| waitForElementPresent |
link=Space Settings |
|
| click |
link=Space Settings |
|
| waitForElementPresent |
//div[@id='UIWikiSettingContainer']//a[text()='Permission'] |
|
| click |
//div[@id='UIWikiSettingContainer']//a[text()='Permission'] |
|
| echo |
- Add account demo |
|
| waitForElementPresent |
//div[@id='UIWikiPermissionOwner']//img[@title='Select User'] |
|
| click |
//div[@id='UIWikiPermissionOwner']//img[@title='Select User'] |
|
| waitForElementPresent |
//input[@name='demo'] |
|
| check |
//input[@name='demo'] |
|
| waitForElementPresent |
//div[@id='UIWikiUserPermissionPopupSelector']//a[text()='Add'] |
|
| click |
//div[@id='UIWikiUserPermissionPopupSelector']//a[text()='Add'] |
|
| echo |
- Save Permission |
|
| waitForElementPresent |
//div[@id='UIWikiPermissionOwner']//img[@title='Add Entry'] |
|
| click |
//div[@id='UIWikiPermissionOwner']//img[@title='Add Entry'] |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
//div[@id='UIWikiPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIWikiPortlet']//a[text()='OK'] |
|
| echo |
- Add edit permission |
|
| waitForElementPresent |
//div[@id='UIWikiPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIWikiPortlet']//a[text()='OK'] |
|
| waitForElementPresent |
//div[@id='UIPermissionGrid']//input[@name='EDITPAGEdemo'] |
|
| check |
//div[@id='UIPermissionGrid']//input[@name='EDITPAGEdemo'] |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
//div[@id='UIWikiPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIWikiPortlet']//a[text()='OK'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
- Login as demo |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/portal/private/intranet/wiki |
|
| echo |
- Create a page |
|
| waitForElementPresent |
//div[@id='UIWikiPageControlArea_PageToolBar_Add_'] |
|
| mouseOver |
//div[@id='UIWikiPageControlArea_PageToolBar_Add_'] |
|
| waitForElementPresent |
link=Blank Page |
|
| click |
link=Blank Page |
|
| waitForElementPresent |
TitleInput |
|
| type |
TitleInput |
Page1_SNF_KS_68 |
| waitForElementPresent |
Markup |
|
| type |
Markup |
Page1 Content |
| waitForElementPresent |
link=Save |
|
| clickAndWait |
link=Save |
|
| waitForTextPresent |
Page1_SNF_KS_68 |
|
| verifyTextPresent |
Page1_SNF_KS_68 |
|
| waitForTextPresent |
Page1 Content |
|
| verifyTextPresent |
Page1 Content |
|
| echo |
- Verify page info of the 1st revision |
|
| waitForElementPresent |
//div[@id='UIWikiBottomArea'] |
|
| echo |
demo 1 |
|
| verifyTextPresent |
Added by demo |
|
| verifyElementPresent |
//div[@id='UIWikiBottomArea']//a[1] |
|
| echo |
demo 2 |
|
| verifyTextPresent |
Last modified by demo |
|
| verifyTextPresent |
0 |
|
| verifyElementPresent |
link=Attachment(s) |
|
| verifyTextPresent |
1 |
|
| verifyElementPresent |
link=Revisions |
|
| echo |
- Sign out and re-login as root |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| waitForElementPresent |
password |
|
| type |
password |
gtn |
| clickAndWait |
//a[@id='UIPortalLoginFormAction'] |
|
| open |
/portal/private/intranet/wiki/Page1_SNF_KS_68 |
|
| echo |
- Edit the page |
|
| waitForElementPresent |
link=Page1_SNF_KS_68 |
|
| clickAndWait |
link=Page1_SNF_KS_68 |
|
| waitForElementPresent |
//div[@id='UIWikiPageControlArea_PageToolBar']//a[@title='Edit'] |
|
| click |
//div[@id='UIWikiPageControlArea_PageToolBar']//a[@title='Edit'] |
|
| waitForElementPresent |
TitleInput |
|
| type |
TitleInput |
Page1_SNF_KS_68_Edited |
| waitForElementPresent |
Markup |
|
| type |
Markup |
Page1 Content Edited |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForTextPresent |
Page1_SNF_KS_68_Edited |
|
| verifyTextPresent |
Page1_SNF_KS_68_Edited |
|
| waitForTextPresent |
Page1_SNF_KS_68_Edited |
|
| verifyTextPresent |
Page1_SNF_KS_68_Edited |
|
| echo |
- Verify page info of the 2nd revision |
|
| waitForElementPresent |
//div[@id='UIWikiBottomArea'] |
|
| verifyTextPresent |
Added by demo |
|
| verifyElementPresent |
//a[text()='demo'] |
|
| verifyTextPresent |
Last modified by root |
|
| verifyElementPresent |
//a[text()='root'] |
|
| verifyTextPresent |
0 |
|
| verifyElementPresent |
link=Attachment(s) |
|
| verifyTextPresent |
1 |
|
| verifyElementPresent |
link=Revisions |
|
| echo |
- Delete test data |
|
| open |
/portal/private/intranet/wiki/WikiHome |
|
| waitForElementPresent |
link=Page1_SNF_KS_68_Edited |
|
| click |
link=Page1_SNF_KS_68_Edited |
|
| waitForElementPresent |
//div[@id='UIWikiPageControlArea_PageToolBar_More_'] |
|
| mouseOver |
//div[@id='UIWikiPageControlArea_PageToolBar_More_'] |
|
| waitForElementPresent |
link=Delete Page |
|
| click |
link=Delete Page |
|
| waitForElementPresent |
//div[@id='UIWikiPageArea']//a[text()='OK'] |
|
| clickAndWait |
//div[@id='UIWikiPageArea']//a[text()='OK'] |
|
| waitForTextNotPresent |
Page1_SNF_KS_68_Edited |
|
| verifyTextNotPresent |
Page1_SNF_KS_68_Edited |
|
| echo |
- Remove permission |
|
| waitForElementPresent |
link=Space Settings |
|
| click |
link=Space Settings |
|
| waitForElementPresent |
//div[@id='UIWikiSettingContainer']//a[text()='Permission'] |
|
| click |
//div[@id='UIWikiSettingContainer']//a[text()='Permission'] |
|
| waitForElementPresent |
//img[contains(@onclick,'&objectId=demo')] |
|
| click |
//img[contains(@onclick,'&objectId=demo')] |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
//div[@id='UIWikiPortlet']//a[text()='OK'] |
|
| click |
//div[@id='UIWikiPortlet']//a[text()='OK'] |
|
| echo |
- Sign out and finish |
|
| clickAndWait |
link=Logout |
|
| waitForTextPresent |
Sign in |
|