gatein SVN: r3662 - portal/trunk/testsuite/testdefinitions.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-07-20 02:36:06 -0400 (Tue, 20 Jul 2010)
New Revision: 3662
Modified:
portal/trunk/testsuite/testdefinitions/GateIn_v3.1.0_BasicPortlets_TestDefinition.ods
Log:
Update test case for GateIn_v3.1.0GA
Modified: portal/trunk/testsuite/testdefinitions/GateIn_v3.1.0_BasicPortlets_TestDefinition.ods
===================================================================
(Binary files differ)
14 years, 5 months
gatein SVN: r3661 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-07-20 00:44:25 -0400 (Tue, 20 Jul 2010)
New Revision: 3661
Removed:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_PRL_03_01_001_CheckShowingGroupManagementForm.html
Log:
TESTVN-356: Clean and improve
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_PRL_03_01_001_CheckShowingGroupManagementForm.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_PRL_03_01_001_CheckShowingGroupManagementForm.html 2010-07-20 04:44:01 UTC (rev 3660)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/design/Test_PRL_03_01_001_CheckShowingGroupManagementForm.html 2010-07-20 04:44:25 UTC (rev 3661)
@@ -1,227 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<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_PRL_03_01_001_CheckShowingGroupManagementForm</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_PRL_03_01_001_CheckShowingGroupManagementForm</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Check showing Group Management form--</td>
- <td></td>
-</tr>
-<tr>
- <td>windowMaximize</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>root</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Go to User and Group Management --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose Group Management --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Select a group from left pane by clicking on group name--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Customers</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Customers</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[2]/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[2]/div[1]/a</td>
- <td>Customers</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>Select a group from left pane by clicking cross icon (+) --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div[1]/a</td>
- <td>Organization</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Check showing path to selected group--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Communication</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Communication</td>
- <td></td>
-</tr>
-<tr>
- <td>pause</td>
- <td>2000</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyOrdered</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[1]/div/div/div/a[1]</td>
- <td>link=Communication</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Check Up level function while showing sub group--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Customers</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>link=Customers</td>
- <td>Customers</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Check Up level while showing last parent group--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[1]/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>//div[1]/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
14 years, 5 months
gatein SVN: r3660 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-07-20 00:44:01 -0400 (Tue, 20 Jul 2010)
New Revision: 3660
Removed:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddNewPage.html
Log:
TESTVN-356: Clean and improve
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddNewPage.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddNewPage.html 2010-07-20 04:42:59 UTC (rev 3659)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/ko/Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddNewPage.html 2010-07-20 04:44:01 UTC (rev 3660)
@@ -1,592 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<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_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddNewPage</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_POR_14_01_044_CheckWhenUserDoesNotHaveRightToAddNewPage</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Administrator</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Register new user</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=New Staff</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>POR_14_01_044-user</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>POR_14_01_044-user</td>
-</tr>
-<tr>
- <td>type</td>
- <td>Confirmpassword</td>
- <td>POR_14_01_044-user</td>
-</tr>
-<tr>
- <td>type</td>
- <td>firstName</td>
- <td>hoa</td>
-</tr>
-<tr>
- <td>type</td>
- <td>lastName</td>
- <td>nguyen</td>
-</tr>
-<tr>
- <td>type</td>
- <td>email</td>
- <td>POR_14_01_044-user(a)gmail.com</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Add new user into group</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UIPortalComponentLogin']//table[@class='UIFormGrid']/tbody/tr[@class='UserNameField']/td/input</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>//form[@id='UIPortalComponentLogin']//table[@class='UIFormGrid']/tbody/tr[@class='UserNameField']/td/input</td>
- <td>root</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UIPortalComponentLogin']//table[@class='UIFormGrid']/tbody/tr[@id='UIPortalLoginFormControl']/td/input</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>//form[@id='UIPortalComponentLogin']//table[@class='UIFormGrid']/tbody/tr[@id='UIPortalLoginFormControl']/td/input</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']//a[@class='GroupButton']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@id='UIOrganizationPortlet']//a[@class='GroupButton']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='UIGroupManagement']/div[@class='GroupPanel']/div[@class='GroupNavigation']/div[@class='GroupNavigationContainer']/div[@class='UITrees ScrollArea']/div[@class='TreeContainer JSContainer']/div/div[2]/div[@class='ExpandIcon']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@class='UIGroupManagement']/div[@class='GroupPanel']/div[@class='GroupNavigation']/div[@class='GroupNavigationContainer']/div[@class='UITrees ScrollArea']/div[@class='TreeContainer JSContainer']/div/div[2]/div[@class='ExpandIcon']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>POR_14_01_044-user</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Add new page</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIPageBrowser']/div[@class='UIAction']/table[@class='ActionContainer']//div[@class='ActionButton LightBlueStyle']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPageBrowser']/div[@class='UIAction']/table[@class='ActionContainer']//div[@class='ActionButton LightBlueStyle']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='UIFormTabPane']//form[@id='UIPageForm']//div[@class='UITabContentContainer']/div[@class='UITabContent']/div[@class='UIFormInputSet']/table[@class='UIFormGrid']/tbody/tr[2]/td[2]/select[@class='selectbox']</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>//div[@class='UIFormTabPane']//form[@id='UIPageForm']//div[@class='UITabContentContainer']/div[@class='UITabContent']/div[@class='UIFormInputSet']/table[@class='UIFormGrid']/tbody/tr[2]/td[2]/select[@class='selectbox']</td>
- <td>label=portal</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='UIFormTabPane']//form[@id='UIPageForm']//div[@class='UITabContentContainer']/div[@class='UITabContent']/div[@class='UIFormInputSet']/table[@class='UIFormGrid']/tbody/tr[4]/td[2]/input</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>//div[@class='UIFormTabPane']//form[@id='UIPageForm']//div[@class='UITabContentContainer']/div[@class='UITabContent']/div[@class='UIFormInputSet']/table[@class='UIFormGrid']/tbody/tr[4]/td[2]/input</td>
- <td>POR_14_01_044-page</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Add new node</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Site</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Add Node</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Add Node</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='UIFormTabPane']//form[@id='UIPageNodeForm']//div[@class='UITabContentContainer']/div[@class='UITabContent']/div[@class='UIFormInputSet']/table[@class='UIFormGrid']/tbody/tr[2]/td[2]/input</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>//div[@class='UIFormTabPane']//form[@id='UIPageNodeForm']//div[@class='UITabContentContainer']/div[@class='UITabContent']/div[@class='UIFormInputSet']/table[@class='UIFormGrid']/tbody/tr[2]/td[2]/input</td>
- <td>POR_14_01_044-node</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@class='UIFormTabPane']/div[@class='UITabPane']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@class='UIFormTabPane']/div[@class='UITabPane']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Search and Select Page</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Search and Select Page</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='SelectPage']//div[@id='UIVirtualList']//table[@class='UIGrid']/tbody[@class='FeedBox']/tr[1]/td[5]/div[@class='ActionContainer']/img[@class='SelectPageIcon']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@id='SelectPage']//div[@id='UIVirtualList']//table[@class='UIGrid']/tbody[@class='FeedBox']/tr[1]/td[5]/div[@class='ActionContainer']/img[@class='SelectPageIcon']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Login by new user</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>POR_14_01_044-user</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>POR_14_01_044-user</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--View created node</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@id='PortalNavigationTopContainer']/div[3]/div/div/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Check Add new page by user have not right</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>xpath=//div[@class='UIRowContainer']/div[3]//a[@class='Selected']</td>
- <td>POR_14_01_044-node</td>
-</tr>
-<tr>
- <td>verifyTextNotPresent</td>
- <td>Add New Page</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Delete new user</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UIPortalComponentLogin']//table[@class='UIFormGrid']/tbody/tr[@class='UserNameField']/td/input</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>//form[@id='UIPortalComponentLogin']//table[@class='UIFormGrid']/tbody/tr[@class='UserNameField']/td/input</td>
- <td>root</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UIPortalComponentLogin']//table[@class='UIFormGrid']/tbody/tr[@id='UIPortalLoginFormControl']/td/input</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>//form[@id='UIPortalComponentLogin']//table[@class='UIFormGrid']/tbody/tr[@id='UIPortalLoginFormControl']/td/input</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//img[@alt='DeleteUser']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//img[@alt='DeleteUser']</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete POR_14_01_044-user user?</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextNotPresent</td>
- <td>POR_14_01_044-user</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Delete node</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Site</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Site</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UINavigationManagement']//a[@title='POR_14_01_044-node']</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseDownRight</td>
- <td>//div[@id='UINavigationManagement']//a[@title='POR_14_01_044-node']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Delete Node</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Delete Node</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete this node?</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementNotPresent</td>
- <td>//div[@id='UINavigationManagement']//a[@title='POR_14_01_044-node']</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyElementNotPresent</td>
- <td>//div[@id='UINavigationManagement']//a[@title='POR_14_01_044-node']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Delete page</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Site</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Site</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//img[@title='Delete Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAt</td>
- <td>//img[@title='Delete Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Do you want to delete this page?</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementNotPresent</td>
- <td>POR_14_01_044-page</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextNotPresent</td>
- <td>POR_14_01_044-page</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
14 years, 5 months
gatein SVN: r3659 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-07-20 00:42:59 -0400 (Tue, 20 Jul 2010)
New Revision: 3659
Added:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_007_AddDuplicateUserIntoAgroupWithTheSameRole.html
Log:
TESTVN-1006: Create new GateIn Selenium
Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_007_AddDuplicateUserIntoAgroupWithTheSameRole.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_007_AddDuplicateUserIntoAgroupWithTheSameRole.html (rev 0)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_007_AddDuplicateUserIntoAgroupWithTheSameRole.html 2010-07-20 04:42:59 UTC (rev 3659)
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<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_PRL_03_05_007_AddDuplicateUserIntoAgroupWithTheSameRole</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Test_PRL_03_05_007_AddDuplicateUserIntoAgroupWithTheSameRole</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/portal/public/classic/</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Add duplicate user into a group with the same role--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Go to User and group management --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Users and groups management</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Choose Group management --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[1]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[1]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>john,john</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>membership</td>
+ <td>label=manager</td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>membership</td>
+ <td>label=manager</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>Some users is duplicated. Please re-check it! </td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Some users is duplicated. Please re-check it! </td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[2]/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[2]/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+<tr>
+ <td>close</td>
+ <td></td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
14 years, 5 months
gatein SVN: r3658 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2010-07-19 23:57:48 -0400 (Mon, 19 Jul 2010)
New Revision: 3658
Added:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_005_AddAnUserIntoAGroupWithDifferentRoles.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_006_AddUserIntoGroupWithTheSameExitingRole.html
Log:
TESTVN-1006: Create new GateIn Selenium
Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_005_AddAnUserIntoAGroupWithDifferentRoles.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_005_AddAnUserIntoAGroupWithDifferentRoles.html (rev 0)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_005_AddAnUserIntoAGroupWithDifferentRoles.html 2010-07-20 03:57:48 UTC (rev 3658)
@@ -0,0 +1,232 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<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_PRL_03_05_005_AddAnUserIntoAGroupWithDifferentRoles</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Test_PRL_03_05_005_AddAnUserIntoAGroupWithDifferentRoles</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/portal/public/classic/home</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Add an user into a group with different roles--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Go to User and group management --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Users and groups management</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Choose Group Management --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[2]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[2]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Choose group --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Customers</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Customers</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Add user into group with the first role--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>membership</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>membership</td>
+ <td>label=manager</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Add user into group with another role--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>membership</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>membership</td>
+ <td>label=validator</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>manager</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>manager</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>validator</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>validator</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Delete user with the first role--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//img[@alt='DeleteUser']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//img[@alt='DeleteUser']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertConfirmation</td>
+ <td>Are you sure you want to delete user root from group customers?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Delete user with another role--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//img[@alt='DeleteUser']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//img[@alt='DeleteUser']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertConfirmation</td>
+ <td>Are you sure you want to delete user root from group customers?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
Added: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_006_AddUserIntoGroupWithTheSameExitingRole.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_006_AddUserIntoGroupWithTheSameExitingRole.html (rev 0)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/Test_PRL_03_05_006_AddUserIntoGroupWithTheSameExitingRole.html 2010-07-20 03:57:48 UTC (rev 3658)
@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<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_PRL_03_05_006_AddUserIntoGroupWithTheSameExitingRole</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">Test_PRL_03_05_006_AddUserIntoGroupWithTheSameExitingRole</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/portal/public/classic/</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Add an user into a group with the same exiting role--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>windowMaximize</td>
+ <td></td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>gtn</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Go to User and group management --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Users and groups management</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Choose Group Management --</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[2]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[2]/div[2]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Add user into group--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Customers</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Customers</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>membership</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>membership</td>
+ <td>label=manager</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Add user into group with the same role--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>username</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>username</td>
+ <td>root</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>membership</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>membership</td>
+ <td>label=manager</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForTextPresent</td>
+ <td>User "root" has already the same membership in the group "customers", please select an other membership. </td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>User "root" has already the same membership in the group "customers", please select an other membership. </td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[2]/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[2]/div[2]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-- Detele user in group--</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//img[@alt='DeleteUser']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//img[@alt='DeleteUser']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertConfirmation</td>
+ <td>Are you sure you want to delete user root from group customers?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
14 years, 5 months
gatein SVN: r3657 - portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-07-19 11:50:57 -0400 (Mon, 19 Jul 2010)
New Revision: 3657
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java
Log:
remove dead code
Modified: portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java
===================================================================
--- portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java 2010-07-19 15:44:07 UTC (rev 3656)
+++ portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java 2010-07-19 15:50:57 UTC (rev 3657)
@@ -340,32 +340,10 @@
}
}
+ // julien : check if this is used effectively or not
public String doAsync(String name, String beanId, Parameter[] params) throws Exception
{
- Parameter async_param = new Parameter(AJAX_ASYNC, "true");
- if (params == null)
- {
- params = new Parameter[]{async_param};
- }
- else
- {
- ArrayList<Parameter> paramList = new ArrayList<Parameter>();
- for (int i = 0; i < params.length; i++)
- {
- if (params[i].getName().equals(AJAX_ASYNC))
- {
- params[i] = async_param;
- }
- paramList.add(params[i]);
- }
- if (!paramList.contains(async_param))
- {
- paramList.add(async_param);
- }
- params = (Parameter[])paramList.toArray();
- }
-
- return event(name, beanId, new Parameter[]{async_param});
+ return event(name, beanId, new Parameter[]{new Parameter(AJAX_ASYNC, "true")});
}
public <T> void broadcast(Event<T> event, Phase phase) throws Exception
14 years, 5 months
gatein SVN: r3656 - portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-07-19 11:44:07 -0400 (Mon, 19 Jul 2010)
New Revision: 3656
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java
Log:
better call renderURL -> renderEventURL
Modified: portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java
===================================================================
--- portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java 2010-07-19 15:43:26 UTC (rev 3655)
+++ portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java 2010-07-19 15:44:07 UTC (rev 3656)
@@ -265,7 +265,7 @@
*/
public String event(String name, String beanId, Parameter[] params) throws Exception
{
- return renderURL(true, name, beanId, params);
+ return renderEventURL(true, name, beanId, params);
}
public String url(String name) throws Exception
@@ -289,7 +289,7 @@
*/
public String url(String name, String beanId, Parameter[] params) throws Exception
{
- return renderURL(false, name, beanId, params);
+ return renderEventURL(false, name, beanId, params);
}
/**
@@ -302,7 +302,7 @@
* @return the rendered URL
* @throws Exception any exception
*/
- public String renderURL(boolean ajax, String name, String beanId, Parameter[] params) throws Exception
+ public String renderEventURL(boolean ajax, String name, String beanId, Parameter[] params) throws Exception
{
org.exoplatform.webui.config.Event event = config.getUIComponentEventConfig(name);
if (event == null)
14 years, 5 months
gatein SVN: r3655 - portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-07-19 11:43:26 -0400 (Mon, 19 Jul 2010)
New Revision: 3655
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java
Log:
unify the event rendering method into a single one
Modified: portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java
===================================================================
--- portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java 2010-07-19 15:16:11 UTC (rev 3654)
+++ portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java 2010-07-19 15:43:26 UTC (rev 3655)
@@ -225,34 +225,6 @@
return null;
}
- public String event(String name) throws Exception
- {
- return event(name, null);
- }
-
- public String event(String name, String beanId) throws Exception
- {
- return event(name, beanId, (Parameter[])null);
- }
-
- @SuppressWarnings("unchecked")
- public String event(String name, String beanId, Parameter[] params) throws Exception
- {
- org.exoplatform.webui.config.Event event = config.getUIComponentEventConfig(name);
- if (event == null)
- {
- return "??config??";
- }
- WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
- URLBuilder<UIComponent> urlBuilder = context.getURLBuilder();
- if (urlBuilder == null)
- {
- return "??builder??";
- }
- String confirm = loadConfirmMesssage(event, context, beanId);
- return urlBuilder.createAjaxURL(this, event.getName(), confirm, beanId, params);
- }
-
protected String loadConfirmMesssage(org.exoplatform.webui.config.Event event, WebuiRequestContext context,
String beanId)
{
@@ -272,6 +244,30 @@
return confirmKey;
}
+ public String event(String name) throws Exception
+ {
+ return event(name, null);
+ }
+
+ public String event(String name, String beanId) throws Exception
+ {
+ return event(name, beanId, null);
+ }
+
+ /**
+ * Render an event ajax URL for a given bean.
+ *
+ * @param name the event name
+ * @param beanId the optional bean id
+ * @param params the optional event parameters
+ * @return the rendered URL
+ * @throws Exception any exception
+ */
+ public String event(String name, String beanId, Parameter[] params) throws Exception
+ {
+ return renderURL(true, name, beanId, params);
+ }
+
public String url(String name) throws Exception
{
return url(name, null);
@@ -283,7 +279,7 @@
}
/**
- * Render an event URL of a given bean.
+ * Render an event URL for a given bean.
*
* @param name the event name
* @param beanId the optional bean id
@@ -293,21 +289,54 @@
*/
public String url(String name, String beanId, Parameter[] params) throws Exception
{
+ return renderURL(false, name, beanId, params);
+ }
+
+ /**
+ * Render an event URL of a given bean.
+ *
+ * @param ajax the url type, true for ajax, false otherwise
+ * @param name the event name
+ * @param beanId the optional bean id
+ * @param params the optional event parameters
+ * @return the rendered URL
+ * @throws Exception any exception
+ */
+ public String renderURL(boolean ajax, String name, String beanId, Parameter[] params) throws Exception
+ {
org.exoplatform.webui.config.Event event = config.getUIComponentEventConfig(name);
if (event == null)
{
return "??config??";
}
+
+ //
WebuiRequestContext context = WebuiRequestContext.getCurrentInstance();
+ URLBuilder<UIComponent> urlBuilder = context.getURLBuilder();
+ if (urlBuilder == null)
+ {
+ return "??builder??";
+ }
+
+ //
String confirm = loadConfirmMesssage(event, context, beanId);
- try
+
+ //
+ if (ajax)
{
- return context.getURLBuilder().createURL(this, event.getName(), confirm, beanId, params);
+ return urlBuilder.createAjaxURL(this, event.getName(), confirm, beanId, params);
}
- catch (Exception e)
+ else
{
- log.error("Could not render component even URL for id=" + beanId + ", name=" + name, e);
- return "";
+ try
+ {
+ return urlBuilder.createURL(this, event.getName(), confirm, beanId, params);
+ }
+ catch (Exception e)
+ {
+ log.error("Could not render component even URL for id=" + beanId + ", name=" + name, e);
+ return "";
+ }
}
}
14 years, 5 months
gatein SVN: r3654 - portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-07-19 11:16:11 -0400 (Mon, 19 Jul 2010)
New Revision: 3654
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java
Log:
replace printStackTrace by proper logging + javadoc
Modified: portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java
===================================================================
--- portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java 2010-07-19 15:01:31 UTC (rev 3653)
+++ portal/trunk/webui/core/src/main/java/org/exoplatform/webui/core/UIComponent.java 2010-07-19 15:16:11 UTC (rev 3654)
@@ -282,7 +282,15 @@
return url(name, beanId, null);
}
- @SuppressWarnings("unchecked")
+ /**
+ * Render an event URL of a given bean.
+ *
+ * @param name the event name
+ * @param beanId the optional bean id
+ * @param params the optional event parameters
+ * @return the rendered URL
+ * @throws Exception any exception
+ */
public String url(String name, String beanId, Parameter[] params) throws Exception
{
org.exoplatform.webui.config.Event event = config.getUIComponentEventConfig(name);
@@ -294,11 +302,11 @@
String confirm = loadConfirmMesssage(event, context, beanId);
try
{
- return context.getURLBuilder().createURL(this, event.getName(), confirm, beanId, params).toString();
+ return context.getURLBuilder().createURL(this, event.getName(), confirm, beanId, params);
}
catch (Exception e)
{
- e.printStackTrace();
+ log.error("Could not render component even URL for id=" + beanId + ", name=" + name, e);
return "";
}
}
14 years, 5 months
gatein SVN: r3653 - portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-07-19 11:01:31 -0400 (Mon, 19 Jul 2010)
New Revision: 3653
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIPortalApplication.java
Log:
UIPortalKey is a key in a map, therefore it's better to be immutable
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIPortalApplication.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIPortalApplication.java 2010-07-19 09:12:49 UTC (rev 3652)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/workspace/UIPortalApplication.java 2010-07-19 15:01:31 UTC (rev 3653)
@@ -748,12 +748,23 @@
private class UIPortalKey
{
- private String ownerType;
- private String ownerId;
+ /** . */
+ private final String ownerType;
+ /** . */
+ private final String ownerId;
+
UIPortalKey(String _ownerType, String _ownerId)
{
+ if (_ownerType == null)
+ {
+ throw new NullPointerException();
+ }
+ if (_ownerId == null)
+ {
+ throw new NullPointerException();
+ }
this.ownerType = _ownerType;
this.ownerId = _ownerId;
}
14 years, 5 months