| open |
/portal/public/default/ |
|
| windowMaximize |
|
|
| echo |
-- Log in |
|
| waitForElementPresent |
link=exact:Acme: Social Intranet |
|
| clickAndWait |
link=exact:Acme: Social Intranet |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
--Login : Root |
|
| clickAndWait |
link=Sign in |
|
| echo |
--My Spaces |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| echo |
-- Add a new Space |
|
| waitForElementPresent |
link=Add New Space |
|
| click |
link=Add New Space |
|
| waitForElementPresent |
name |
|
| type |
name |
Space02 |
| type |
description |
This is description for Space_02 |
| click |
link=Create |
|
| pause |
10000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=Space02 |
|
| verifyElementPresent |
link=Space02 |
|
| click |
link=Space02 |
|
| waitForTextPresent |
Space02 was created |
|
| verifyTextPresent |
Space02 was created |
|
| echo |
-- Edit Space created |
|
| verifyElementPresent |
link=Space Settings |
|
| click |
link=Space Settings |
|
| echo |
-- Change nane space |
|
| waitForElementPresent |
name |
Space02 |
| type |
name |
Space02Edit |
| type |
description |
This is description for Space_02_Edit |
| pause |
500 |
|
| click |
link=Save |
|
| pause |
1000 |
|
| echo |
-- back to space link-- |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| echo |
-- verify new edited name of space-- |
|
| verifyElementPresent |
link=Space02Edit |
|
| echo |
-- access space |
|
| waitForElementPresent |
link=Space02Edit |
|
| click |
link=Space02Edit |
|
| pause |
5000 |
|
| echo |
-- Delete Space created |
|
| 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 |
|
| pause |
3000 |
|
| waitForTextPresent |
You do not have any spaces yet. |
|
| verifyTextPresent |
You do not have any spaces yet. |
|
| pause |
2000 |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| close |
|
|