| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Search 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 |
displayName |
|
| type |
displayName |
Space03 |
| type |
description |
This is description for Space_03 |
| waitForElementPresent |
link=Create |
|
| click |
link=Create |
|
| pause |
1000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=Space03 |
|
| verifyElementPresent |
link=Space03 |
|
| click |
link=Space03 |
|
| waitForTextPresent |
Space03 was created |
|
| verifyTextPresent |
Space03 was created |
|
| echo |
-- Search with Invalid value |
|
| click |
link=My Spaces |
|
| waitForElementPresent |
SpaceSearch |
|
| type |
SpaceSearch |
Blank |
| click |
//div[@class='SearchIcon'] |
|
| waitForTextPresent |
You do not have any spaces yet. |
|
| verifyTextPresent |
You do not have any spaces yet. |
|
| echo |
-- Search with Valid value |
|
| waitForElementPresent |
SpaceSearch |
|
| type |
SpaceSearch |
Space03 |
| click |
//div[@class='SearchIcon'] |
|
| waitForTextPresent |
This is description for Space_03 |
|
| verifyTextPresent |
This is description for Space_03 |
|
| echo |
-- Search with Invalid directory value |
|
| click |
link=A |
|
| waitForTextPresent |
You do not have any spaces yet. |
|
| verifyTextPresent |
You do not have any spaces yet. |
|
| echo |
-- Search with Valid directory value |
|
| click |
link=S |
|
| waitForTextPresent |
This is description for Space_03 |
|
| verifyTextPresent |
This is description for Space_03 |
|
| echo |
-- Delete Space created |
|
| waitForElementPresent |
link=My Spaces |
|
| click |
link=My Spaces |
|
| waitForElementPresent |
//a[@title='Delete Space'] |
|
| click |
//a[@title='Delete Space'] |
|
| waitForConfirmation |
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 |
|
| waitForTextNotPresent |
Space03 |
|
| verifyTextNotPresent |
Space03 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|