| open |
/portal/public/intranet/ |
|
| echo |
-- Change Using Portal-- |
|
| windowMaximize |
|
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
--Login |
|
| clickAndWait |
link=Sign in |
|
| echo |
--Manage sites |
|
| waitForElementPresent |
link=Manage sites |
|
| clickAndWait |
link=Manage sites |
|
| echo |
--Add New Portal |
|
| waitForElementPresent |
link=Add New Portal |
|
| click |
link=Add New Portal |
|
| waitForElementPresent |
name |
|
| type |
name |
Test_SNF_PRL_23 |
| echo |
-- Choose Properties tab-- |
|
| waitForElementPresent |
//div[text()='Properties'] |
|
| click |
//div[text()='Properties'] |
|
| echo |
-- Choose Permission setting tab-- |
|
| waitForElementPresent |
//div[text()='Permission Setting'] |
|
| click |
//div[text()='Permission Setting'] |
|
| echo |
-- Access Permission Setting tab-- |
|
| waitForElementPresent |
link=Add Permission |
|
| click |
link=Add Permission |
|
| waitForElementPresent |
link=Platform |
|
| click |
link=Platform |
|
| waitForElementPresent |
link=exact:* |
|
| click |
link=exact:* |
|
| echo |
-- Edit Permission Setting tab-- |
|
| waitForElementPresent |
link=Edit Permission Setting |
|
| click |
link=Edit Permission Setting |
|
| echo |
--Select Permission |
|
| waitForElementPresent |
//div[@id='UIPermissionSelector']//a[text()='Select Permission'] |
|
| click |
//div[@id='UIPermissionSelector']//a[text()='Select Permission'] |
|
| echo |
--Organization |
|
| waitForElementPresent |
//div[@id='PermissionSelector']//a[@title='Organization'] |
|
| click |
//div[@id='PermissionSelector']//a[@title='Organization'] |
|
| echo |
--Author |
|
| waitForElementPresent |
//div[@id='PermissionSelector']//a[@title='author'] |
|
| click |
//div[@id='PermissionSelector']//a[@title='author'] |
|
| echo |
--Save |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
20000 |
|
| refresh |
|
|
| echo |
-- Change to new portal |
|
| waitForElementPresent |
link=Test_SNF_PRL_23 |
|
| clickAndWait |
link=Test_SNF_PRL_23 |
|
| waitForLocation |
*/portal/private/Test_SNF_PRL_23/ |
|
| assertLocation |
*/portal/private/Test_SNF_PRL_23/ |
|
| echo |
-- Change to default portal -- |
|
| waitForElementPresent |
link=intranet |
|
| clickAndWait |
link=intranet |
|
| waitForLocation |
*/portal/private/intranet/ |
|
| assertLocation |
*/portal/private/intranet/ |
|
| waitForElementPresent |
link=Manage sites |
|
| clickAndWait |
link=Manage sites |
|
| echo |
-- Delete new portal -- |
|
| waitForElementPresent |
//a[contains(@href,'Test_SNF_PRL_23') and text()='Delete'] |
|
| clickAndWait |
//a[contains(@href,'Test_SNF_PRL_23') and text()='Delete'] |
|
| waitForConfirmationPresent |
|
|
| assertConfirmation |
Are you sure you want to delete this portal? |
|
| waitForTextNotPresent |
Test_SNF_PRL_23 |
|
| verifyTextNotPresent |
Test_SNF_PRL_23 |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|