| open |
/portal/public/intranet/ |
|
| echo |
-- Change application when edit layout for group's page -- |
|
| windowMaximize |
|
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
--Login : Root |
|
| clickAndWait |
link=Sign in |
|
| echo |
-- Applications Registry |
|
| waitForElementPresent |
link=Applications Registry |
|
| clickAndWait |
link=Applications Registry |
|
| echo |
-- Click Add new page on Group editor menu-- |
|
| waitForElementPresent |
link=Add New Page |
|
| click |
link=Add New Page |
|
| waitForElementPresent |
//a[@title='Up Level'] |
|
| click |
//a[@title='Up Level'] |
|
| waitForElementPresent |
pageName |
|
| type |
pageName |
Test_SNF_PRL_44 |
| type |
pageDisplayName |
Test_SNF_PRL_44 |
| echo |
-- Click Next to move step 2-- |
|
| waitForElementPresent |
//a[@title='Step 2'] |
|
| click |
//a[@title='Step 2'] |
|
| echo |
-- Keep empty layout and click Next move step 3-- |
|
| pause |
3000 |
|
| waitForElementPresent |
//a[@title='Step 3'] |
|
| click |
//a[@title='Step 3'] |
|
| echo |
-- Click Finish -- |
|
| waitForElementPresent |
//a[@title='Finish'] |
|
| clickAndWait |
//a[@title='Finish'] |
|
| waitForLocation |
*/portal/private/intranet/administration/Test_SNF_PRL_44 |
|
| assertLocation |
*/portal/private/intranet/administration/Test_SNF_PRL_44 |
|
| echo |
-- Click Edit layout -- |
|
| waitForElementPresent |
link=Edit Layout |
|
| click |
link=Edit Layout |
|
| echo |
-- View layout before Change application-- |
|
| waitForElementPresent |
link=Switch View Mode |
|
| click |
link=Switch View Mode |
|
| waitForElementPresent |
//div[@id="UIPortalApplication"] |
|
| verifyElementPresent |
//div[@id="UIPortalApplication"] |
|
| waitForElementPresent |
link=Switch View Mode |
|
| click |
link=Switch View Mode |
|
| echo |
-- Choose Container tab-- |
|
| waitForElementPresent |
//div[contains(text(),'Containers')] |
|
| click |
//div[contains(text(),'Containers')] |
|
| echo |
-- Add container by drag & drop-- |
|
| waitForElementPresent |
//div[@id='oneRow']/div |
|
| dragAndDropToObject |
//div[@id='oneRow']/div |
//div[@class='VIEW-BLOCK VIEW-PORTLET'] |
| echo |
-- Choose Application tab-- |
|
| waitForElementPresent |
//div[contains(text(),'Applications')] |
|
| click |
//div[contains(text(),'Applications')] |
|
| echo |
-- Drag & drop application into the container added above-- |
|
| waitForElementPresent |
//div[@id='Gadgets/Calculator'] |
|
| dragAndDropToObject |
//div[@id='Gadgets/Calculator'] |
//div[@class='UIRowContainer EmptyContainer'] |
| echo |
-- Delete application -- |
|
| mouseOver |
//a[@title='Delete Portlet'] |
|
| waitForElementPresent |
//a[@title='Delete Portlet'] |
|
| click |
//a[@title='Delete Portlet'] |
|
| waitForConfirmationPresent |
|
|
| assertConfirmation |
Are you sure you want to delete this portlet? |
|
| echo |
-- Choose Container tab to delete container -- |
|
| waitForElementPresent |
//div[contains(text(),'Containers')] |
|
| click |
//div[contains(text(),'Containers')] |
|
| mouseOver |
//a[@title='Delete Container'] |
|
| waitForElementPresent |
//a[@title='Delete Container'] |
|
| click |
//a[@title='Delete Container'] |
|
| waitForConfirmationPresent |
|
|
| assertConfirmation |
Are you sure you want to delete this Container? |
|
| echo |
-- Click to Finish |
|
| waitForElementPresent |
//a[@title='Finish'] |
|
| click |
//a[@title='Finish'] |
|
| pause |
5000 |
|
| echo |
-- Go to Edit Navigation -- |
|
| waitForElementPresent |
link=Manage groups |
|
| clickAndWait |
link=Manage groups |
|
| waitForElementPresent |
//td/div[text()='Administrator']/following::td/a[text()='Edit Navigation'] |
|
| click |
//td/div[text()='Administrator']/following::td/a[text()='Edit Navigation'] |
|
| echo |
-- Delete node -- |
|
| waitForElementPresent |
//a[@title='Test_SNF_PRL_44'] |
|
| mouseDownRight |
//a[@title='Test_SNF_PRL_44'] |
|
| waitForElementPresent |
link=Delete Node |
|
| click |
link=Delete Node |
|
| waitForConfirmationPresent |
|
|
| assertConfirmation |
Are you sure you want to delete this node? |
|
| waitForElementPresent |
link=Save |
|
| click |
link=Save |
|
| pause |
30000 |
|
| echo |
-- Go to Page Management -- |
|
| waitForElementPresent |
link=Manage Pages |
|
| clickAndWait |
link=Manage Pages |
|
| waitForElementPresent |
searchTerm |
|
| type |
searchTerm |
Test_SNF_PRL_44 |
| waitForElementPresent |
searchOption |
|
| select |
searchOption |
label=Title |
| waitForElementPresent |
//a[@title='Quick Search'] |
|
| click |
//a[@title='Quick Search'] |
|
| echo |
-- Delete page -- |
|
| waitForElementPresent |
//img[@title='Delete Page'] |
|
| click |
//img[@title='Delete Page'] |
|
| waitForConfirmationPresent |
|
|
| assertConfirmation |
Do you want to delete this page? |
|
| waitForTextPresent |
No result found. |
|
| verifyTextPresent |
No result found. |
|
| waitForElementPresent |
//div[contains(@onclick,'componentId=_')]//a[text()='OK'] |
|
| click |
//div[contains(@onclick,'componentId=_')]//a[text()='OK'] |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|