| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Add_Edit_Delete a new Space -- |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| echo |
-- Add a new Space |
|
| waitForElementPresent |
link=Add New Space |
|
| click |
link=Add New Space |
|
| waitForElementPresent |
//div[@id='UIPopupAddSpace']//input[@id='displayName'] |
|
| type |
//div[@id='UIPopupAddSpace']//input[@id='displayName'] |
testsnfsoc02 |
| clickAt |
//div[@id='UIPopupAddSpace']//a[contains(text(),'Create')] |
|
| waitForNotVisible |
//div[@id='UIPortalApplication']/div[@id='AjaxLoadingMask']//div[@class='LoadingText'] |
|
| waitForElementPresent |
link=My Spaces |
|
| click |
link=My Spaces |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=testsnfsoc02 |
|
| verifyElementPresent |
link=testsnfsoc02 |
|
| clickAndWait |
link=testsnfsoc02 |
|
| waitForTextPresent |
testsnfsoc02 was created |
|
| verifyTextPresent |
testsnfsoc02 was created |
|
| echo |
-- Edit Space created |
|
| verifyElementPresent |
link=Space Settings |
|
| click |
link=Space Settings |
|
| waitForElementPresent |
displayName |
testsnfsoc02 |
| type |
description |
This is description for Space_02_Edit |
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| waitForElementPresent |
//div[@id='UISpaceSettingPortlet']/div[3]//a[contains(text(),'OK')] |
|
| click |
//div[@id='UISpaceSettingPortlet']/div[3]//a[contains(text(),'OK')] |
|
| echo |
-- back to space link-- |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| echo |
-- verify new edited name of space-- |
|
| waitForTextPresent |
This is description for Space_02_Edit |
|
| verifyTextPresent |
This is description for Space_02_Edit |
|
| echo |
-- access space |
|
| waitForElementPresent |
link=testsnfsoc02 |
|
| click |
link=testsnfsoc02 |
|
| echo |
-- Change application name |
|
| waitForElementPresent |
//div[@id='UISpaceMenu']/div/div[3]/a/span |
|
| clickAndWait |
//div[@id='UISpaceMenu']/div/div[3]/a/span |
|
| pause |
2000 |
|
| waitForElementPresent |
//div[@id='UISpaceMenu']/div/div[4]/a |
|
| click |
//div[@id='UISpaceMenu']/div/div[4]/a |
|
| echo |
-- Delete Space created |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| waitForElementPresent |
//a[@title='Delete Space'] |
|
| click |
//a[@title='Delete Space'] |
|
| assertConfirmation |
Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too. |
|
| echo |
-- Verify space deleted |
|
| waitForNotVisible |
//div[@id='UIPortalApplication']/div[@id='AjaxLoadingMask']//div[@class='LoadingText'] |
|
| waitForTextNotPresent |
testsnfsoc02 |
|
| verifyTextNotPresent |
testsnfsoc02 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|