Author: hangnguyen
Date: 2010-04-28 04:41:32 -0400 (Wed, 28 Apr 2010)
New Revision: 2859
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_27_CreateAndEditPageAndEditSiteLayoutForGroup.html
Log:
Change script for Test_SNF_PRL_27_CreateAndEditPageAndEditSiteLayoutForGroup.html
Modified:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_27_CreateAndEditPageAndEditSiteLayoutForGroup.html
===================================================================
---
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_27_CreateAndEditPageAndEditSiteLayoutForGroup.html 2010-04-28
07:50:44 UTC (rev 2858)
+++
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_27_CreateAndEditPageAndEditSiteLayoutForGroup.html 2010-04-28
08:41:32 UTC (rev 2859)
@@ -4,12 +4,12 @@
<head
profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
/>
<link rel="selenium.base" href="" />
-<title>Test_SNF_PRL_27</title>
+<title>Test_SNF_PRL_27_CreateAndEditPageAndEditSiteLayoutForGroup</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1"
colspan="3">Test_SNF_PRL_27</td></tr>
+<tr><td rowspan="1"
colspan="3">Test_SNF_PRL_27_CreateAndEditPageAndEditSiteLayoutForGroup</td></tr>
</thead><tbody>
<tr>
<td>open</td>
@@ -63,13 +63,18 @@
</tr>
<tr>
<td>echo</td>
- <td>--Create new</td>
+ <td>--Create new page--</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Add New Page</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Add New Page</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -107,8 +112,13 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>xpath=//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
+ <td>1,1</td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
+ <td>xpath=//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
<td>1,1</td>
</tr>
<tr>
@@ -132,26 +142,66 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Go to View Page properties--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=View Page properties</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=View Page properties</td>
<td>1,1</td>
</tr>
<tr>
+ <td>waitForTextPresent</td>
+ <td>Show Max Window</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
- <td>--Select Permission Setting tab</td>
+ <td>--Choose Permission Setting--</td>
<td></td>
</tr>
<tr>
- <td>waitForTextPresent</td>
- <td>Show Max Window</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='UIFormTabPane']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='UIFormTabPane']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Choose Access Permission Setting--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Access Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Access Permission Setting</td>
<td>1,1</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Choose Edit Permission Setting--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Edit Permission Setting</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Edit Permission Setting</td>
<td>1,1</td>
@@ -162,11 +212,21 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Cancel</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Cancel</td>
<td>1,1</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Click Save to complete adding new page by wizard with no content (no
portlet)</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
<td></td>
@@ -178,7 +238,7 @@
</tr>
<tr>
<td>echo</td>
- <td>--Click Save to complete adding new page by wizard with no content (no
portlet)</td>
+ <td>--Go to Edit page--</td>
<td></td>
</tr>
<tr>
@@ -213,19 +273,14 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='UIFormTabPane']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']</td>
- <td>1,1</td>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Add Permission</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='UIFormTabPane']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
<td></td>
</tr>
-</tr>
<tr>
<td>clickAt</td>
<td>link=Add Permission</td>
@@ -234,7 +289,7 @@
<tr>
<td>waitForElementPresent</td>
<td>link=Platform</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
<td>clickAt</td>
@@ -272,6 +327,11 @@
<td>1,1</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Click Finish after change something of page--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
<td></td>
@@ -283,7 +343,7 @@
</tr>
<tr>
<td>echo</td>
- <td>--Edit layout</td>
+ <td>--Edit layout when click Save button--</td>
<td></td>
</tr>
<tr>
@@ -327,6 +387,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Change layout when click Cancel button--</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Edit Layout</td>
<td></td>
@@ -383,16 +448,6 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@class='UIComponentBlock']//a[@class='EditNavIcon']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//div[@class='UIComponentBlock']//a[@class='EditNavIcon']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
<td>xpath=//div[@id='UIGroupNavigationGrid']/table[2]/tbody/tr/td[3]/a[1]</td>
<td></td>
</tr>
@@ -403,35 +458,15 @@
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>xpath=//div[@class='TreeContainer
JSContainer']/div/div[2]//a</td>
+ <td>xpath=//a[@title='Page Management']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>xpath=//div[@class='TreeContainer
JSContainer']/div/div[2]//a</td>
+ <td>xpath=//a[@title='Page Management']</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//div[@class='TreeContainer
JSContainer']/div/div[2]//a[@title='Page Management']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>xpath=//div[@class='TreeContainer
JSContainer']/div/div[2]//a[@title='Page Management']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>xpath=//a[@title='test_page_name_27']</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyElementPresent</td>
- <td>xpath=//a[@title='test_page_name_27']</td>
- <td></td>
-</tr>
-<tr>
<td>componentExoContextMenu</td>
<td>xpath=//a[@title='test_page_name_27']</td>
<td></td>
@@ -472,6 +507,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Sign out</td>
<td></td>