| open |
/portal/public/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Request and Accept user |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
--Log in : Root |
|
| clickAndWait |
id=UIPortalLoginFormAction |
|
| 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 |
Space08 |
| type |
description |
This is description for Space_08 |
| click |
link=Create |
|
| pause |
30000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=Space08 |
|
| click |
link=Space08 |
|
| waitForTextPresent |
Space08 was created |
|
| verifyTextPresent |
Space08 was created |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
--Request to join the Space |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| echo |
--Log in : Mary |
|
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=My Spaces |
|
| clickAndWait |
link=My Spaces |
|
| waitForElementPresent |
link=All Spaces |
|
| clickAndWait |
link=All Spaces |
|
| pause |
500 |
|
| waitForTextPresent |
This is description for Space_08 |
|
| verifyTextPresent |
This is description for Space_08 |
|
| echo |
-- Join to Space 08 |
|
| waitForElementPresent |
//div[contains(text(),'This is description for Space_08')]/following-sibling::ul//a[@title='Join'] |
|
| click |
//div[contains(text(),'This is description for Space_08')]/following-sibling::ul//a[@title='Join'] |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Accept Request |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
--Log in : Root |
|
| clickAndWait |
id=UIPortalLoginFormAction |
|
| waitForElementPresent |
link=Space08 |
|
| clickAndWait |
link=Space08 |
|
| echo |
-- Space Setting |
|
| waitForElementPresent |
//a[contains(@href,'spaces:space08') and @title='Settings'] |
|
| click |
//a[contains(@href,'spaces:space08') and @title='Settings'] |
|
| echo |
-- Memeber tab |
|
| waitForElementPresent |
//div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab'] |
|
| click |
//div[@id='UISpaceSettingPortlet']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab'] |
|
| echo |
-- Accepts |
|
| waitForElementPresent |
//td[text()='mary']/following-sibling::td/a[@title='Validate'] |
|
| click |
//td[text()='mary']/following-sibling::td/a[@title='Validate'] |
|
| echo |
-- - Verify accepted user is displayed in Space Member List |
|
| waitForElementPresent |
//div[@class='NormalTab']//a[contains(@href,'spaces:space08') and @title='Members'] |
|
| click |
//div[@class='NormalTab']//a[contains(@href,'spaces:space08') and @title='Members'] |
|
| waitForElementPresent |
link=Mary Williams |
|
| verifyElementPresent |
link=Mary Williams |
|
| echo |
-- Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|