gatein SVN: r7464 - portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate.
by do-not-reply@jboss.org
Author: hangnguyen
Date: 2011-09-19 23:55:04 -0400 (Mon, 19 Sep 2011)
New Revision: 7464
Removed:
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInValidValueWhileEditingPortal.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_14_01_044_CheckWhenHaveRightToEditPage.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_14_01_045_CheckWhenUserDoesNotHaveRightToEditPage.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_19_070_CreatePageWizardWithInvalidValueForPublicationDateTime.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_24_01_003_CheckNavigationListByUserWhoHasRightToEditCurrentPortalButIsNotManagerOfAnyGroup.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_24_02_005_CreateNewNaviForTheSameGroupAfterCurrentNavigationHadJustBeenDeleted.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_01_018_CreateNewAccountWhenLastNameStartWithNumber.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_02_02_004_SearchWithInCompletedWordExistingUsers.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_03_02_004_AddNewGroupWhenGroupNameStartsWithDash.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_04_03_001_EditMembershipInOrganizationManagementFormByAdministrator.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_04_04_003_DeleteMembershipWhileItIsBeingUsedByHimself.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_01_004_AddNewCateogryWithNameStartsWithDashChars.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_01_005_AddNewCategoryWithNameContainsAlphaDigitUnderscoreAndDashInTheMiddle.html
portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_02_003_ChangeAcessRightOnCategoryFromPublicToBeLimitedByGroup.html
Log:
TESTVN-4136 - Daily tests on Portal
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInValidValueWhileEditingPortal.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInValidValueWhileEditingPortal.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInValidValueWhileEditingPortal.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,197 +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_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInValidValueWhileEditingPortal</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_POR_12_02_038_CheckWhenChangeWidthHeightOfPortletWithInValidValueWhileEditingPortal</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Check when change width/height of portlet with invalid value while editing portal--</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>-- Edit layout's portal --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Edit Layout</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Edit Layout</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Edit portlet --</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseOver</td>
- <td>//div/div/div[2]/div/div/div/div/div/div/div[2]</td>
- <td>Banner Portlet</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div/div/div[2]/div/div/div/div/div/div/a[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div/div/div[2]/div/div/div/div/div/div/a[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Portlet Setting --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[5]/div[2]/div/div/div/div/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Change current value of Width/height with invalid value (number no have with “px”) --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>width</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>width</td>
- <td>300</td>
-</tr>
-<tr>
- <td>type</td>
- <td>height</td>
- <td>500</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Save And Close</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Save And Close</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>You must enter a pixel value in field "Width:".</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>You must enter a pixel value in field "Width:".</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>You must enter a pixel value in field "Height:".</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>You must enter a pixel value in field "Height:".</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=OK</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=OK</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>Close</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>Close</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]</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>
-
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_14_01_044_CheckWhenHaveRightToEditPage.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_14_01_044_CheckWhenHaveRightToEditPage.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_14_01_044_CheckWhenHaveRightToEditPage.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,901 +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_CheckWhenHaveRightToEditPage</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_POR_14_01_044_CheckWhenHaveRightToEditPage</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>Check when user does not have right to edit page --</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']//a[text()='Sign in']</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Add new user--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=New Staff</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=New Staff</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>Confirmpassword</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>firstName</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>lastName</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>email</td>
- <td>POR_TEST_14_01_045(a)gmail.com</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose User Profile --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIAccountPortlet']//div[text()='User Profile']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIAccountPortlet']//div[text()='User Profile']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>user.language</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>user.language</td>
- <td>label=English</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>verifyTextPresent</td>
- <td>You have registered a new account.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/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[3]/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>echo</td>
- <td>-- Add user into group with membership is member--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIAccountPortlet']//div[text()='User Profile']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIAccountPortlet']//div[text()='User Profile']</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>waitForElementPresent</td>
- <td>link=Group Management</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Group Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>--Click Search User--</td>
- <td></td>
-</tr>
-<tr>
- <td>pause</td>
- <td>2000</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>POR_TEST_14_01_045</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>-- Create new page for portal--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Page Management</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[2]/table/tbody/tr/td/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>ownerType</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>ownerType</td>
- <td>label=portal</td>
-</tr>
-<tr>
- <td>click</td>
- <td>//option[@value='portal']</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>title</td>
- <td>POR_TEST_14_01_045</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 new node & select added page for that 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>click</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Add new node --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[1]/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[1]/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>name</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>label</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose Page Selector --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Search and Select Page</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Search and Select Page</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//img[@title='Select Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//img[@title='Select Page']</td>
- <td></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>waitForElementPresent</td>
- <td>//td[2]/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//td[2]/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- edit permission for portal's page--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>select</td>
- <td>searchOption</td>
- <td>label=Title</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Click Edit page icon --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//img[@title='Edit Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//img[@title='Edit Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose Permission Setting --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[text()='Permission Setting']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[text()='Permission Setting']</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose Edit Permission Setting tab--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Edit Permission Setting</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Edit Permission Setting</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Change permission for this page--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Select Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Select Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=member</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=member</td>
- <td></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>-- Close Page Editor--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</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>echo</td>
- <td>-- Login with new user--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign in</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>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- View new node--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='PortalNavigationTopContainer']/div[3]/div/div/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Site Editor</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseOver</td>
- <td>link=Site Editor</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>link=Add New Page</td>
- <td>Add New Page</td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>link=Edit Page</td>
- <td>Edit Page</td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>link=Edit Layout</td>
- <td>Edit Layout</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>echo</td>
- <td>-- Delete this node--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Sign in</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>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>click</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//a[@class='NodeIcon DefaultPageIcon' and @title='POR_TEST_14_01_045']</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseDownRight</td>
- <td>//a[@class='NodeIcon DefaultPageIcon' and @title='POR_TEST_14_01_045']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Delete Node</td>
- <td></td>
-</tr>
-<tr>
- <td>click</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>click</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete page--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//img[@title='Delete Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//img[@title='Delete Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForConfirmationPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Do you want to delete this page?</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>No result found.</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>No result found.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[5]/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[5]/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>echo</td>
- <td>-- Delete user--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>POR_TEST_14_01_045</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</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>waitForConfirmationPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete POR_TEST_14_01_045 user?</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>No result found.</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>No result found.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[5]/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[5]/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>waitForElementPresent</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_14_01_045_CheckWhenUserDoesNotHaveRightToEditPage.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_14_01_045_CheckWhenUserDoesNotHaveRightToEditPage.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_14_01_045_CheckWhenUserDoesNotHaveRightToEditPage.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,842 +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_045_CheckWhenUserDoesNotHaveRightToEditPage</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_POR_14_01_045_CheckWhenUserDoesNotHaveRightToEditPage</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Check when user have right to edit layout of page --</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>-- Add new user--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=New Staff</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>Confirmpassword</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>firstName</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>lastName</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>email</td>
- <td>TEST_POR_14_01_045(a)gmail.com</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose User Profile --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[3]/div/div/div[1]/div/div/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>user.language</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>user.language</td>
- <td>label=English</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>You have registered a new account.</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>You have registered a new account.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/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[3]/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 user into group--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Group Management</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Group Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Create new page for portal--</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[2]/table/tbody/tr/td/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPageBrowser']/div[2]/table/tbody/tr/td/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>ownerType</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>ownerType</td>
- <td>label=portal</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>name</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>title</td>
- <td>TEST_POR_14_01_045</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 new node & select added page for that 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>click</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[1]/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UINavigationManagement']/div[3]/table/tbody/tr/td[1]/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>name</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>label</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose Page selector --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[2]/div/div/div/div/div/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Search and Select Page</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Search and Select Page</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//img[@title='Select Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//img[@title='Select Page']</td>
- <td></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>waitForElementPresent</td>
- <td>//td[2]/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//td[2]/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- edit permission for portal's page--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchOption</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>searchOption</td>
- <td>label=Title</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Edit page --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//img[@title='Edit Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//img[@title='Edit Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose Page Template --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[5]/div[2]/div/div/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose Permision Setting --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[2]/div/div/div/div/div/div/div/div/div/div/div/div[3]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Edit Permission Setting</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Select Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Select Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=manager</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=manager</td>
- <td></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>waitForElementPresent</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Login with new user--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign in</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>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- View page --</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='PortalNavigationTopContainer']/div[3]/div/div/div/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseOver</td>
- <td>link=Site Editor</td>
- <td>Site Editor</td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>link=Add New Page</td>
- <td>Add New Page</td>
-</tr>
-<tr>
- <td>verifyTextNotPresent</td>
- <td>Edit Page</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>open</td>
- <td>/portal/public/classic/</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>-- Delete this node--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Site</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Edit Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>mouseDownRight</td>
- <td>//a[@class='NodeIcon DefaultPageIcon' and @title='TEST_POR_14_01_045']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Delete Node</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Delete Node</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForConfirmationPresent</td>
- <td></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>click</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete page--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Page Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchOption</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>searchOption</td>
- <td>label=Title</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UIPageSearch']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//img[@title='Delete Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//img[@title='Delete Page']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForConfirmationPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Do you want to delete this page?</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>No result found.</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>No result found.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[5]/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[5]/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>-- Delete user--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>TEST_POR_14_01_045</td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</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>waitForConfirmationPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete TEST_POR_14_01_045 user?</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>No result found.</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>No result found.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[5]/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[5]/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>waitForElementPresent</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_19_070_CreatePageWizardWithInvalidValueForPublicationDateTime.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_19_070_CreatePageWizardWithInvalidValueForPublicationDateTime.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_19_070_CreatePageWizardWithInvalidValueForPublicationDateTime.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,187 +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_19_070_CreatePageWizardWithInvalidValueForPublicationDateTime</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_POR_19_070_CreatePageWizardWithInvalidValueForPublicationDateTime</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Create page wizard with invalid value for “Publication date time”--</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>-- Add new page --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Add New Page</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Add New Page</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>pageName</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>pageName</td>
- <td>Test_POR_19_070</td>
-</tr>
-<tr>
- <td>type</td>
- <td>pageDisplayName</td>
- <td>Test_POR_19_070</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>showPublicationDate</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>showPublicationDate</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>startPublicationDate</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>startPublicationDate</td>
- <td>Test</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>endPublicationDate</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>endPublicationDate</td>
- <td>POR</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>The "Start Publication Date" field does not contain a valid value.</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>The "Start Publication Date" field does not contain a valid value.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>The "End Publication Date" field does not contain a valid value.</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>The "End Publication Date" field does not contain a valid value.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=OK</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=OK</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[1]/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[1]/div/div/div/a</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>
-
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_24_01_003_CheckNavigationListByUserWhoHasRightToEditCurrentPortalButIsNotManagerOfAnyGroup.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_24_01_003_CheckNavigationListByUserWhoHasRightToEditCurrentPortalButIsNotManagerOfAnyGroup.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_24_01_003_CheckNavigationListByUserWhoHasRightToEditCurrentPortalButIsNotManagerOfAnyGroup.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,476 +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_24_01_003_CheckNavigationListByUserWhoHasRightToEditCurrentPortalButIsNotManagerOfAnyGroup</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_POR_24_01_003_CheckNavigationListByUserWhoHasRightToEditCurrentPortalButIsNotManagerOfAnyGroup</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Check navigations list by user who does not have right to edit any group navigation --</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']//a[text()='Sign in']</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Create new user --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=New Staff</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=New Staff</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>Test_POR_24_01_003</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>Test_POR_24_01_003</td>
-</tr>
-<tr>
- <td>type</td>
- <td>Confirmpassword</td>
- <td>Test_POR_24_01_003</td>
-</tr>
-<tr>
- <td>type</td>
- <td>firstName</td>
- <td>Test_POR_24_01_003</td>
-</tr>
-<tr>
- <td>type</td>
- <td>lastName</td>
- <td>Test_POR_24_01_003</td>
-</tr>
-<tr>
- <td>type</td>
- <td>email</td>
- <td>Test_POR_24_01_003(a)gmail.com</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose User Profile tab --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[text()='User Profile']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[text()='User Profile']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>user.language</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>user.language</td>
- <td>label=English</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>You have registered a new account.</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>You have registered a new account.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/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[3]/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 this user into a group with membership is not “Manager” --</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>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']//div[text()='Group Management']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIOrganizationPortlet']//div[text()='Group Management']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']//a[@title='Organization']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIOrganizationPortlet']//a[@title='Organization']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Management</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>Test_POR_24_01_003</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 this user into group that can edit current portal --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//a[@title='Up Level']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//a[@title='Up Level']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>Test_POR_24_01_003</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>waitForElementPresent</td>
- <td>link=Sign out</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>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>Test_POR_24_01_003</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>Test_POR_24_01_003</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']//a[text()='Sign in']</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Show navigation list which user has right to edit --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Group</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Group</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Users</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>Users</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Check add Navigation --</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Add Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- https://jira.jboss.org/browse/GTNPORTAL-1464 --</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</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 Users 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>-- Search new user --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>Test_POR_24_01_003</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete user --</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>waitForConfirmationPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete Test_POR_24_01_003 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>
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_24_02_005_CreateNewNaviForTheSameGroupAfterCurrentNavigationHadJustBeenDeleted.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_24_02_005_CreateNewNaviForTheSameGroupAfterCurrentNavigationHadJustBeenDeleted.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_POR_24_02_005_CreateNewNaviForTheSameGroupAfterCurrentNavigationHadJustBeenDeleted.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,582 +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_24_02_005_CreateNewNaviForTheSameGroupAfterCurrentNavigationHadJustBeenDeleted</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_POR_24_02_005_CreateNewNaviForTheSameGroupAfterCurrentNavigationHadJustBeenDeleted</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Create new nav for the same group after current navigation had just been deleted --</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>-- Add new user --</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=New Staff</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>Confirmpassword</td>
- <td>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>firstName</td>
- <td>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>lastName</td>
- <td>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>email</td>
- <td>Test_POR_24_02_005(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>waitForTextPresent</td>
- <td>You have registered a new account.</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>You have registered a new account.</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/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[3]/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>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>clickAndWait</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Add new group --</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[1]/a[3]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[3]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>groupName</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>groupName</td>
- <td>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>label</td>
- <td>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>description</td>
- <td>Test_POR_24_02_005</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 this user into new added group with “manager” role --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>Test_POR_24_02_005</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>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</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>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Group</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Create navigation for group --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Add Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Add Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIAddGroupNavigationGrid']/table/tbody/tr/td[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIAddGroupNavigationGrid']/table/tbody/tr/td[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Each of the groups has navigation now</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>Each of the groups has navigation now</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Cancel</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Cancel</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete group navigation --</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Delete Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForConfirmationPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure to delete this navigation?</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Create navigation after deleted --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Add Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Add Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIAddGroupNavigationGrid']/table/tbody/tr/td[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIAddGroupNavigationGrid']/table/tbody/tr/td[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Each of the groups has navigation now</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>Each of the groups has navigation now</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Cancel</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Test_POR_24_02_005</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>Test_POR_24_02_005</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete group navigation --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Delete Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Delete Navigation</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForConfirmationPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure to delete this navigation?</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</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 Users 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>-- delete new group --</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>link=Test_POR_24_02_005</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Test_POR_24_02_005</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[1]/a[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForConfirmationPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete this group?</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete new user --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIOrganizationPortlet']/div[2]/div[1]/div/div/div/div/div/div/a[1]/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[1]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>Test_POR_24_02_005</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</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>waitForConfirmationPresent</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete Test_POR_24_02_005 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>
-
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_01_018_CreateNewAccountWhenLastNameStartWithNumber.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_01_018_CreateNewAccountWhenLastNameStartWithNumber.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_01_018_CreateNewAccountWhenLastNameStartWithNumber.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,327 +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_01_018_CreateNewAccountWhenLastNameStartWithNumber</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_PRL_01_018_CreateNewAccountWhenLastNameStartWithNumber</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Create new account when Last Name starts with number--</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 New Staff--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=New Staff</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>username</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>username</td>
- <td>Test_PRL_01_018</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>Test_PRL_01_018</td>
-</tr>
-<tr>
- <td>type</td>
- <td>Confirmpassword</td>
- <td>Test_PRL_01_018</td>
-</tr>
-<tr>
- <td>type</td>
- <td>firstName</td>
- <td>Test_PRL_01_018</td>
-</tr>
-<tr>
- <td>type</td>
- <td>lastName</td>
- <td>01_018</td>
-</tr>
-<tr>
- <td>type</td>
- <td>email</td>
- <td>Test_PRL_01_018(a)gmail.com</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose User Profile --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIAccountPortlet']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>user.language</td>
- <td></td>
-</tr>
-<tr>
- <td>select</td>
- <td>user.language</td>
- <td>label=French</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>waitForElementPresent</td>
- <td>//div[3]/div/div/div/div/div[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>//div[3]/div/div/div/div/div[2]</td>
- <td>You have registered a new account.</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/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[3]/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>waitForElementPresent</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Login with new user--</td>
- <td></td>
-</tr>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign in</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>Test_PRL_01_018</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>Test_PRL_01_018</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Test_PRL_01_018 01_018</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>link=Test_PRL_01_018 01_018</td>
- <td>Test_PRL_01_018 01_018</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Déconnexion</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Login with administrator to delete new user--</td>
- <td></td>
-</tr>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Sign in</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Sign in</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>click</td>
- <td>link=Users and groups management</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Search new user in list--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>Test_PRL_01_018</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete new user--</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 Test_PRL_01_018 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>
-
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_02_02_004_SearchWithInCompletedWordExistingUsers.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_02_02_004_SearchWithInCompletedWordExistingUsers.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_02_02_004_SearchWithInCompletedWordExistingUsers.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,107 +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_SearchWithInCompletedWordExistingUsers</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_PRL_SearchWithInCompletedWordExistingUsers</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Search with in-completed word when searching keyword matches existing user(s)--</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>-- Input in-completed word into Search text box that matches existing users--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>searchTerm</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>searchTerm</td>
- <td>ro</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UISearchForm']/div[2]/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForText</td>
- <td>//div[@id='UIListUsersGird']/table/tbody/tr/td[1]/div</td>
- <td>root</td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>//div[@id='UIListUsersGird']/table/tbody/tr/td[1]/div</td>
- <td>root</td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_03_02_004_AddNewGroupWhenGroupNameStartsWithDash.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_03_02_004_AddNewGroupWhenGroupNameStartsWithDash.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_03_02_004_AddNewGroupWhenGroupNameStartsWithDash.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,172 +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_02_004_AddNewGroupWhenGroupNameStartsWithDash</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_PRL_03_02_004_AddNewGroupWhenGroupNameStartsWithDash</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Add new group when Group Name starts with dash --</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>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>link=Group Management</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Group Management</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Click Add new group icon--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//a[@title='Add New Group']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//a[@title='Add New Group']</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Add new group with name start by dash--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>groupName</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>groupName</td>
- <td>---------</td>
-</tr>
-<tr>
- <td>type</td>
- <td>label</td>
- <td>Test_PRL_02_03_004</td>
-</tr>
-<tr>
- <td>type</td>
- <td>description</td>
- <td>Test_PRL_02_03_004</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>waitForElementPresent</td>
- <td>//div[2]/div[2]/div/div/div/div/div[2]</td>
- <td>The "Group Name" field must start with a character and must not contain special characters."</td>
-</tr>
-<tr>
- <td>verifyText</td>
- <td>//div[2]/div[2]/div/div/div/div/div[2]</td>
- <td>The "Group Name" field must start with a character and must not contain special characters."</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/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[3]/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>waitForElementPresent</td>
- <td>link=Cancel</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Cancel</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_04_03_001_EditMembershipInOrganizationManagementFormByAdministrator.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_04_03_001_EditMembershipInOrganizationManagementFormByAdministrator.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_04_03_001_EditMembershipInOrganizationManagementFormByAdministrator.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,142 +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_04_03_001_EditMembershipInOrganizationManagementFormByAdministrator</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_PRL_04_03_001_EditMembershipInOrganizationManagementFormByAdministrator</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Edit Membership in Organization Management form by Administrator--</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[2]/table/tbody/tr/td/div[1]/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>-- Add new membership--</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//a[3]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>name</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>Test_PRL_04_03_001</td>
-</tr>
-<tr>
- <td>type</td>
- <td>description</td>
- <td>Test_PRL_04_03_001</td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UIMembershipTypeForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIGrid']/table/tbody/tr[2]/td[5]/div/img[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>description</td>
- <td>Test_PRL_04_03_001_edit</td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete membership--</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIGrid']/table/tbody/tr[2]/td[5]/div/img[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete this membership?</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>close</td>
- <td></td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_04_04_003_DeleteMembershipWhileItIsBeingUsedByHimself.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_04_04_003_DeleteMembershipWhileItIsBeingUsedByHimself.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_04_04_003_DeleteMembershipWhileItIsBeingUsedByHimself.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,191 +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_04_04_003_DeleteMembershipWhileItIsBeingUsedByHimself</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_PRL_04_04_003_DeleteMembershipWhileItIsBeingUsedByHimself</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete Membership while it is being used by himself--</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>root</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 Users 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 Membership Management--</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Membership Management</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>name</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>Test_PLT_04_04_003</td>
-</tr>
-<tr>
- <td>type</td>
- <td>description</td>
- <td>Test_PLT_04_04_003</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>Test_PLT_04_04_003</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>Test_PLT_04_04_003</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIGrid']/table/tbody/tr[3]/td[5]/div/img[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIGrid']/table/tbody/tr[3]/td[5]/div/img[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Click delete membership--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIGrid']/table/tbody/tr[3]/td[5]/div/img[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIGrid']/table/tbody/tr[3]/td[5]/div/img[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete this membership?</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>You can not delete this membership because it is in use</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>You can not delete this membership because it is in use</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/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[3]/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>waitForElementPresent</td>
- <td>//form[@id='UIMembershipTypeForm']/div[2]/div/div/table/tbody/tr/td/div[2]/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//form[@id='UIMembershipTypeForm']/div[2]/div/div/table/tbody/tr/td/div[2]/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIGrid']/table/tbody/tr[3]/td[5]/div/img[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIGrid']/table/tbody/tr[3]/td[5]/div/img[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure you want to delete this membership?</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_01_004_AddNewCateogryWithNameStartsWithDashChars.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_01_004_AddNewCateogryWithNameStartsWithDashChars.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_01_004_AddNewCateogryWithNameStartsWithDashChars.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,196 +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_05_01_004_AddNewCateogryWithNameStartsWithDashChars</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_PRL_05_01_004_AddNewCateogryWithNameStartsWithDashChars</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Add new category with name starts with dash characters--</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 Application Registry--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Application Registry</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Click Add Category icon--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIApplicationOrganizer']/div[1]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[1]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>name</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>------</td>
-</tr>
-<tr>
- <td>type</td>
- <td>displayName</td>
- <td>Test_PRL_0</td>
-</tr>
-<tr>
- <td>type</td>
- <td>displayName</td>
- <td>Test_PRL_05_01_004</td>
-</tr>
-<tr>
- <td>type</td>
- <td>description</td>
- <td>Test_PRL_05_01_004</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose Permission Setting tab--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Add Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Add Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='ListPermissionSelector']/div/div[2]/div/div[2]/div/div/div[3]/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='ListPermissionSelector']/div/div[2]/div/div[2]/div/div/div[3]/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=manager</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=manager</td>
- <td></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>The "Category name: " field must start with a character and must not contain special characters."</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>The "Category name: " field must start with a character and must not contain special characters."</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[3]/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[3]/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>waitForElementPresent</td>
- <td>link=Cancel</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Cancel</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_01_005_AddNewCategoryWithNameContainsAlphaDigitUnderscoreAndDashInTheMiddle.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_01_005_AddNewCategoryWithNameContainsAlphaDigitUnderscoreAndDashInTheMiddle.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_01_005_AddNewCategoryWithNameContainsAlphaDigitUnderscoreAndDashInTheMiddle.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,247 +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_05_01_005_AddNewCategoryWithNameContainsAlphaDigitUnderscoreAndDashInTheMiddle</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_PRL_05_01_005_AddNewCategoryWithNameContainsAlphaDigitUnderscoreAndDashInTheMiddle</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Add new category with name contains alpha, digit, underscore and dash in the middle--</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 Application Registry--</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Application Registry</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Click Add category icon--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIApplicationOrganizer']/div[1]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[1]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>name</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>Test_PRL_05_01_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>displayName</td>
- <td>Test_PRL_05_01_005</td>
-</tr>
-<tr>
- <td>type</td>
- <td>description</td>
- <td>Test_PRL_05_01_005</td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Choose Permission Setting tab --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Add Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Add Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='ListPermissionSelector']/div/div[2]/div/div[2]/div/div/div[3]/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='ListPermissionSelector']/div/div[2]/div/div[2]/div/div/div[3]/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=manager</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=manager</td>
- <td></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 application into category--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[3]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[3]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>type</td>
- <td>label=Gadget</td>
-</tr>
-<tr>
- <td>select</td>
- <td>type</td>
- <td>label=Gadget</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//option[@value='gadget']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//option[@value='gadget']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//input[@name='application' and @value='1']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//input[@name='application' and @value='1']</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Add</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Add</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForTextPresent</td>
- <td>Calendar</td>
- <td></td>
-</tr>
-<tr>
- <td>verifyTextPresent</td>
- <td>Calendar</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Delete category --</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure to delete this category and all applications on it?</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-
-</tbody></table>
-</body>
-</html>
Deleted: portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_02_003_ChangeAcessRightOnCategoryFromPublicToBeLimitedByGroup.html
===================================================================
--- portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_02_003_ChangeAcessRightOnCategoryFromPublicToBeLimitedByGroup.html 2011-09-19 19:20:17 UTC (rev 7463)
+++ portal/trunk/testsuite/selenium-snifftests/src/suite/org/exoplatform/portal/selenium/candidate/Test_PRL_05_02_003_ChangeAcessRightOnCategoryFromPublicToBeLimitedByGroup.html 2011-09-20 03:55:04 UTC (rev 7464)
@@ -1,346 +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_05_02_003_ChangeAcessRightOnCategoryFromPublicToBeLimitedByGroup</title>
-</head>
-<body>
-<table cellpadding="1" cellspacing="1" border="1">
-<thead>
-<tr><td rowspan="1" colspan="3">Test_PRL_05_02_003_ChangeAcessRightOnCategoryFromPublicToBeLimitedByGroup</td></tr>
-</thead><tbody>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Change access right on category from public to be limited by group(s)--</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>clickAndWait</td>
- <td>link=Application Registry</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[1]/div[1]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>name</td>
- <td></td>
-</tr>
-<tr>
- <td>type</td>
- <td>name</td>
- <td>Test_PRL_05_02_003</td>
-</tr>
-<tr>
- <td>type</td>
- <td>displayName</td>
- <td>Test_PRL_05_02_003</td>
-</tr>
-<tr>
- <td>type</td>
- <td>description</td>
- <td>Test_PRL_05_02_003</td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>publicMode</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Save</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Add application into category--</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[3]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[3]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//input[@name='application' and @value='7']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//input[@name='application' and @value='7']</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Add</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Edit permission for category--</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[4]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[4]</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[2]/div/div/div/div/div/div/div/div/div/div[2]/div/div/div/div</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>publicMode</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>publicMode</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Add Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Add Permission</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Platform</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=manager</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=manager</td>
- <td></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>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-<tr>
- <td>echo</td>
- <td>-- Check accessing above category without right--</td>
- <td></td>
-</tr>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</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>john</td>
-</tr>
-<tr>
- <td>type</td>
- <td>password</td>
- <td>gtn</td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Edit Page</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Edit Page</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</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>echo</td>
- <td>-- Delete this category--</td>
- <td></td>
-</tr>
-<tr>
- <td>open</td>
- <td>/portal/public/classic/</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrator</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Administrator</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Application Registry</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Application Registry</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Test_PRL_05_02_003</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>link=Test_PRL_05_02_003</td>
- <td></td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>click</td>
- <td>//div[@id='UIApplicationOrganizer']/div[2]/div[1]/div/div/div[2]/div/div[4]/div[1]/div/div/div/a[2]</td>
- <td></td>
-</tr>
-<tr>
- <td>assertConfirmation</td>
- <td>Are you sure to delete this category and all applications on it?</td>
- <td></td>
-</tr>
-<tr>
- <td>clickAndWait</td>
- <td>link=Sign out</td>
- <td></td>
-</tr>
-</tbody></table>
-</body>
-</html>
13 years, 3 months
gatein SVN: r7463 - epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page.
by do-not-reply@jboss.org
Author: mwringe
Date: 2011-09-19 15:20:17 -0400 (Mon, 19 Sep 2011)
New Revision: 7463
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java
Log:
JBEPP-1160, JBEPP-1142: add missing update from last commit (r7460). Fixes a ClassCasteException on the checkbox then creating a new page using the wizard.
Modified: epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java 2011-09-19 13:57:13 UTC (rev 7462)
+++ epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIPageCreationWizard.java 2011-09-19 19:20:17 UTC (rev 7463)
@@ -55,7 +55,7 @@
import org.exoplatform.webui.event.Event;
import org.exoplatform.webui.event.EventListener;
import org.exoplatform.webui.form.UIFormStringInput;
-import org.exoplatform.webui.form.UIFormCheckBoxInput;
+import org.exoplatform.webui.form.input.UICheckBoxInput;
/** Created by The eXo Platform SARL Author : Dang Van Minh minhdv81(a)yahoo.com Jun 23, 2006 */
@ComponentConfigs(@ComponentConfig(template = "system:/groovy/webui/core/UIWizard.gtmpl", events = {
@@ -219,7 +219,7 @@
return;
}
- if (((UIFormCheckBoxInput)uiPageSetInfo.getUIInput(UIWizardPageSetInfo.SHOW_PUBLICATION_DATE)).isChecked())
+ if (((UICheckBoxInput)uiPageSetInfo.getUIInput(UIWizardPageSetInfo.SHOW_PUBLICATION_DATE)).isChecked())
{
Calendar currentCalendar = Calendar.getInstance();
13 years, 3 months
gatein SVN: r7462 - in components/wsrp/branches/2.0.x/consumer/src: test/java/org/gatein/wsrp/consumer and 1 other directories.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-19 09:57:13 -0400 (Mon, 19 Sep 2011)
New Revision: 7462
Modified:
components/wsrp/branches/2.0.x/consumer/src/main/java/org/gatein/wsrp/consumer/RefreshResult.java
components/wsrp/branches/2.0.x/consumer/src/test/java/org/gatein/wsrp/consumer/ProducerInfoTestCase.java
components/wsrp/branches/2.0.x/consumer/src/test/java/org/gatein/wsrp/test/protocol/v2/BehaviorBackedServiceFactory.java
Log:
- GTNWSRP-241: if status is FAILURE, then didRefreshHappen should return false. Added test case.
Modified: components/wsrp/branches/2.0.x/consumer/src/main/java/org/gatein/wsrp/consumer/RefreshResult.java
===================================================================
--- components/wsrp/branches/2.0.x/consumer/src/main/java/org/gatein/wsrp/consumer/RefreshResult.java 2011-09-19 08:35:42 UTC (rev 7461)
+++ components/wsrp/branches/2.0.x/consumer/src/main/java/org/gatein/wsrp/consumer/RefreshResult.java 2011-09-19 13:57:13 UTC (rev 7462)
@@ -26,6 +26,7 @@
import org.oasis.wsrp.v2.ServiceDescription;
import static org.gatein.wsrp.consumer.RefreshResult.Status.BYPASSED;
+import static org.gatein.wsrp.consumer.RefreshResult.Status.FAILURE;
import static org.gatein.wsrp.consumer.RefreshResult.Status.SUCCESS;
/**
@@ -77,7 +78,7 @@
public boolean didRefreshHappen()
{
- return !BYPASSED.equals(status);
+ return !BYPASSED.equals(status) && !FAILURE.equals(status);
}
public boolean hasIssues()
Modified: components/wsrp/branches/2.0.x/consumer/src/test/java/org/gatein/wsrp/consumer/ProducerInfoTestCase.java
===================================================================
--- components/wsrp/branches/2.0.x/consumer/src/test/java/org/gatein/wsrp/consumer/ProducerInfoTestCase.java 2011-09-19 08:35:42 UTC (rev 7461)
+++ components/wsrp/branches/2.0.x/consumer/src/test/java/org/gatein/wsrp/consumer/ProducerInfoTestCase.java 2011-09-19 13:57:13 UTC (rev 7462)
@@ -443,6 +443,13 @@
assertFalse(invalid);
}
+ public void testRefreshDidNotHappenIfFailure() throws PortletInvokerException
+ {
+ serviceFactory.setFailed(true);
+ final boolean refresh = info.refresh(false);
+ assertFalse(refresh);
+ }
+
public void testGetInfoForEvent()
{
assertNull(info.getInfoForEvent(null));
Modified: components/wsrp/branches/2.0.x/consumer/src/test/java/org/gatein/wsrp/test/protocol/v2/BehaviorBackedServiceFactory.java
===================================================================
--- components/wsrp/branches/2.0.x/consumer/src/test/java/org/gatein/wsrp/test/protocol/v2/BehaviorBackedServiceFactory.java 2011-09-19 08:35:42 UTC (rev 7461)
+++ components/wsrp/branches/2.0.x/consumer/src/test/java/org/gatein/wsrp/test/protocol/v2/BehaviorBackedServiceFactory.java 2011-09-19 13:57:13 UTC (rev 7462)
@@ -69,6 +69,7 @@
private String wsdl = DEFAULT_WSDL_URL;
public static final String DEFAULT_WSDL_URL = "http://example.com/producer?wsdl";
private int timeout = DEFAULT_TIMEOUT_MS;
+ private boolean failed;
public BehaviorBackedServiceFactory()
@@ -167,12 +168,12 @@
public boolean isFailed()
{
- return false;
+ return failed;
}
public void setFailed(boolean failed)
{
- // do nothing
+ this.failed = failed;
}
public void setWSOperationTimeOut(int msBeforeTimeOut)
@@ -197,6 +198,10 @@
public void start() throws Exception
{
+ if (failed)
+ {
+ throw new RuntimeException("ServiceFactory has failed!");
+ }
initialized = true;
}
13 years, 3 months
gatein SVN: r7461 - portal/branches.
by do-not-reply@jboss.org
Author: ndkhoiits
Date: 2011-09-19 04:35:42 -0400 (Mon, 19 Sep 2011)
New Revision: 7461
Removed:
portal/branches/xss-issues/
Log:
Remove stuff branch
13 years, 3 months
gatein SVN: r7460 - in epp/portal/branches/EPP_5_2_Branch/webui: core/src/main/java/org/exoplatform/webui/form/input and 1 other directories.
by do-not-reply@jboss.org
Author: mwringe
Date: 2011-09-17 10:54:48 -0400 (Sat, 17 Sep 2011)
New Revision: 7460
Added:
epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/input/
epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/input/UICheckBoxInput.java
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIForm.java
epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java
epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIWizardPageSetInfo.java
Log:
JBEPP-1160, JBEPP-1142: Fix issue with checkboxes not working properly. Update to use the new UICheckBoxInput instead of UIFormCheckBoxInput (see GTNPORTAL-1916 & GTNPORTAL-1916)
Modified: epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIForm.java
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIForm.java 2011-09-16 22:33:32 UTC (rev 7459)
+++ epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIForm.java 2011-09-17 14:54:48 UTC (rev 7460)
@@ -27,6 +27,7 @@
import org.exoplatform.webui.config.Event;
import org.exoplatform.webui.core.UIComponent;
import org.exoplatform.webui.core.UIContainer;
+import org.exoplatform.webui.form.input.UICheckBoxInput;
import java.io.Writer;
import java.util.List;
@@ -114,6 +115,11 @@
return findComponentById(name);
}
+ public UICheckBoxInput getUICheckBoxInput(String name)
+ {
+ return findComponentById(name);
+ }
+
public UIFormSelectBox getUIFormSelectBox(String name)
{
return findComponentById(name);
Modified: epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java 2011-09-16 22:33:32 UTC (rev 7459)
+++ epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java 2011-09-17 14:54:48 UTC (rev 7460)
@@ -27,9 +27,11 @@
/**
* Represents a checkbox field.
* @param <T> The type of value that is expected
+ * @deprecated use {@link org.exoplatform.webui.form.input.UICheckBoxInput} instead
*/
@SuppressWarnings("hiding")
@Serialized
+@Deprecated
public class UIFormCheckBoxInput<T> extends UIFormInputBase<T>
{
/**
@@ -54,7 +56,7 @@
super(name, bindingExpression, null);
if (value != null)
typeValue_ = (Class<T>)value.getClass();
- setValue(value);
+ value_ = value;
setId(name);
}
Added: epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/input/UICheckBoxInput.java
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/input/UICheckBoxInput.java (rev 0)
+++ epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/input/UICheckBoxInput.java 2011-09-17 14:54:48 UTC (rev 7460)
@@ -0,0 +1,148 @@
+/*
+ * Copyright (C) 2011 eXo Platform SAS.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.exoplatform.webui.form.input;
+
+import java.io.Writer;
+
+import org.exoplatform.commons.serialization.api.annotations.Serialized;
+import org.exoplatform.webui.application.WebuiRequestContext;
+import org.exoplatform.webui.form.UIForm;
+import org.exoplatform.webui.form.UIFormInput;
+import org.exoplatform.webui.form.UIFormInputBase;
+
+/**
+ * <p>Represent an html checkbox input <br/>
+ * This class is a replacement for {@link org.exoplatform.webui.form.UIFormCheckBoxInput} <br/>
+ * Still support raising event when user click the checkbox, but now we only accept boolean value. </p>
+ *
+ * @author <a href="mailto:phuong.vu@exoplatform.com">Vu Viet Phuong</a>
+ * @version $Id$
+ */
+@Serialized
+public class UICheckBoxInput extends UIFormInputBase<Boolean>
+{
+ /**
+ * Name of {@link org.exoplatform.webui.event.EventListener} that will be fired when checkbox state is changed
+ */
+ private String onchange_;
+
+ /**
+ * Id of {@link org.exoplatform.webui.core.UIComponent} that is configured with the fired event
+ * This component must be in the same form with the checkbox
+ * If this field is null, event of the UIForm will be fire instead
+ */
+ private String componentEvent_ = null;
+
+ public UICheckBoxInput()
+ {
+ this(null, null, false);
+ }
+
+ public UICheckBoxInput(String name, String bindingExpression, Boolean value)
+ {
+ super(name, bindingExpression, Boolean.class);
+ setValue(value);
+ }
+
+ public UIFormInput<Boolean> setValue(Boolean value)
+ {
+ if (value == null)
+ {
+ value = false;
+ }
+
+ return super.setValue(value);
+ }
+
+ /**
+ * This method is used to make the action more meaning in the context of a checkbox
+ */
+ public boolean isChecked()
+ {
+ return getValue();
+ }
+
+ /**
+ * This method is used to make the action more meaning in the context of a checkbox
+ */
+ public UICheckBoxInput setChecked(boolean check)
+ {
+ return (UICheckBoxInput)setValue(check);
+ }
+
+ public void setOnChange(String onchange)
+ {
+ onchange_ = onchange;
+ }
+
+ public void setComponentEvent(String com)
+ {
+ componentEvent_ = com;
+ }
+
+ public void setOnChange(String event, String com)
+ {
+ this.onchange_ = event;
+ this.componentEvent_ = com;
+ }
+
+ public String renderOnChangeEvent(UIForm uiForm) throws Exception
+ {
+ if (componentEvent_ == null)
+ return uiForm.event(onchange_, null);
+ return uiForm.event(onchange_, componentEvent_, (String)null);
+ }
+
+ public void decode(Object input, WebuiRequestContext context) throws Exception
+ {
+ if (!isEnable())
+ return;
+
+ if (input == null || "false".equals(input.toString()))
+ {
+ setValue(false);
+ }
+ else
+ {
+ setValue(true);
+ }
+ }
+
+ public void processRender(WebuiRequestContext context) throws Exception
+ {
+ Writer w = context.getWriter();
+ w.write("<input type='checkbox' name='");
+ w.write(name);
+ w.write("'");
+ if (onchange_ != null)
+ {
+ UIForm uiForm = getAncestorOfType(UIForm.class);
+ w.append(" onclick=\"").append(renderOnChangeEvent(uiForm)).append("\"");
+ }
+ if (isChecked())
+ w.write(" checked");
+ if (!enable_)
+ w.write(" disabled");
+ w.write(" class='checkbox'/>");
+ if (this.isMandatory())
+ w.write(" *");
+ }
+
+}
\ No newline at end of file
Property changes on: epp/portal/branches/EPP_5_2_Branch/webui/core/src/main/java/org/exoplatform/webui/form/input/UICheckBoxInput.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIWizardPageSetInfo.java
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIWizardPageSetInfo.java 2011-09-16 22:33:32 UTC (rev 7459)
+++ epp/portal/branches/EPP_5_2_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/page/UIWizardPageSetInfo.java 2011-09-17 14:54:48 UTC (rev 7460)
@@ -43,11 +43,10 @@
import org.exoplatform.webui.event.Event.Phase;
import org.exoplatform.webui.form.UIForm;
import org.exoplatform.webui.form.UIFormDateTimeInput;
-import org.exoplatform.webui.form.UIFormInput;
import org.exoplatform.webui.form.UIFormInputBase;
import org.exoplatform.webui.form.UIFormSelectBox;
import org.exoplatform.webui.form.UIFormStringInput;
-import org.exoplatform.webui.form.UIFormCheckBoxInput;
+import org.exoplatform.webui.form.input.UICheckBoxInput;
import org.exoplatform.webui.form.validator.DateTimeValidator;
import org.exoplatform.webui.form.validator.IdentifierValidator;
import org.exoplatform.webui.form.validator.MandatoryValidator;
@@ -114,10 +113,10 @@
public UIWizardPageSetInfo() throws Exception
{
- UIFormCheckBoxInput uiDateInputCheck =
- new UIFormCheckBoxInput(SHOW_PUBLICATION_DATE, null, false);
- UIFormCheckBoxInput uiVisibleCheck = new UIFormCheckBoxInput(VISIBLE, null, false);
- UIFormCheckBoxInput uiSwitchLabelMode = new UIFormCheckBoxInput(SWITCH_MODE, null, true);
+ UICheckBoxInput uiDateInputCheck =
+ new UICheckBoxInput(SHOW_PUBLICATION_DATE, null, false);
+ UICheckBoxInput uiVisibleCheck = new UICheckBoxInput(VISIBLE, null, false);
+ UICheckBoxInput uiSwitchLabelMode = new UICheckBoxInput(SWITCH_MODE, null, true);
uiDateInputCheck.setOnChange("SwitchPublicationDate");
uiVisibleCheck.setOnChange("SwitchVisible");
uiSwitchLabelMode.setOnChange(SWITCH_MODE_ONCHANGE);
@@ -188,7 +187,7 @@
UserNode node = (UserNode)bean;
- if (((UIFormCheckBoxInput)getUIInput(SWITCH_MODE)).isChecked())
+ if (getUICheckBoxInput(SWITCH_MODE).isChecked())
{
node.setLabel(null);
}
@@ -198,9 +197,9 @@
}
Visibility visibility;
- if (((UIFormCheckBoxInput)getUIInput(VISIBLE)).isChecked())
+ if (getUICheckBoxInput(VISIBLE).isChecked())
{
- UIFormCheckBoxInput showPubDate = getUIInput(SHOW_PUBLICATION_DATE);
+ UICheckBoxInput showPubDate = getUICheckBoxInput(SHOW_PUBLICATION_DATE);
visibility = showPubDate.isChecked() ? Visibility.TEMPORAL : Visibility.DISPLAYED;
}
else
@@ -229,8 +228,8 @@
public void setShowCheckPublicationDate(boolean show)
{
- ((UIFormCheckBoxInput)getUIInput(VISIBLE)).setChecked(show);
- UIFormCheckBoxInput uiForm = getUIInput(SHOW_PUBLICATION_DATE);
+ getUICheckBoxInput(VISIBLE).setChecked(show);
+ UICheckBoxInput uiForm = getUICheckBoxInput(SHOW_PUBLICATION_DATE);
uiForm.setRendered(show);
setShowPublicationDate(show && uiForm.isChecked());
}
@@ -407,7 +406,7 @@
public void execute(Event<UIWizardPageSetInfo> event) throws Exception
{
UIWizardPageSetInfo uiForm = event.getSource();
- boolean isCheck = ((UIFormCheckBoxInput)uiForm.getUIInput(SHOW_PUBLICATION_DATE)).isChecked();
+ boolean isCheck = uiForm.getUICheckBoxInput(SHOW_PUBLICATION_DATE).isChecked();
uiForm.getUIFormDateTimeInput(START_PUBLICATION_DATE).setRendered(isCheck);
uiForm.getUIFormDateTimeInput(END_PUBLICATION_DATE).setRendered(isCheck);
UIWizard uiWizard = uiForm.getAncestorOfType(UIWizard.class);
@@ -422,7 +421,7 @@
public void execute(Event<UIWizardPageSetInfo> event) throws Exception
{
UIWizardPageSetInfo uiForm = event.getSource();
- boolean isCheck = ((UIFormCheckBoxInput)uiForm.getUIInput(VISIBLE)).isChecked();
+ boolean isCheck = uiForm.getUICheckBoxInput(VISIBLE).isChecked();
uiForm.setShowCheckPublicationDate(isCheck);
event.getRequestContext().addUIComponentToUpdateByAjax(uiForm);
}
@@ -456,7 +455,7 @@
public void execute(Event<UIWizardPageSetInfo> event) throws Exception
{
UIWizardPageSetInfo uiForm = event.getSource();
- boolean isExtendedMode = ((UIFormCheckBoxInput)uiForm.getUIInput(SWITCH_MODE)).isChecked();
+ boolean isExtendedMode = uiForm.getUICheckBoxInput(SWITCH_MODE).isChecked();
uiForm.switchLabelMode(isExtendedMode);
event.getRequestContext().addUIComponentToUpdateByAjax(uiForm);
}
13 years, 3 months
gatein SVN: r7459 - in components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp: jcr/mapping/mixins and 1 other directory.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-16 18:33:32 -0400 (Fri, 16 Sep 2011)
New Revision: 7459
Added:
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/LastModifiedMixinHolder.java
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/MixinHolder.java
Modified:
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/EndpointInfoMapping.java
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfoMapping.java
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfosMapping.java
Log:
- Mutualized some mixin code.
Modified: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/EndpointInfoMapping.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/EndpointInfoMapping.java 2011-09-16 22:31:51 UTC (rev 7458)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/EndpointInfoMapping.java 2011-09-16 22:33:32 UTC (rev 7459)
@@ -30,6 +30,7 @@
import org.chromattic.api.annotations.PrimaryType;
import org.chromattic.api.annotations.Property;
import org.gatein.wsrp.consumer.EndpointConfigurationInfo;
+import org.gatein.wsrp.jcr.mapping.mixins.MixinHolder;
import org.gatein.wsrp.jcr.mapping.mixins.WSSEndpointEnabled;
/**
@@ -37,7 +38,7 @@
* @version $Revision$
*/
@PrimaryType(name = EndpointInfoMapping.NODE_NAME)
-public abstract class EndpointInfoMapping
+public abstract class EndpointInfoMapping extends MixinHolder<WSSEndpointEnabled>
{
public static final String NODE_NAME = "wsrp:endpointinfo";
@@ -62,12 +63,12 @@
public void setWSSEnabled(boolean wssEnabled)
{
- getCreatedWSSEndpointEnabledMixin().setWSSEnabled(wssEnabled);
+ getCreatedMixin().setWSSEnabled(wssEnabled);
}
public boolean isWSSEnabled()
{
- return getCreatedWSSEndpointEnabledMixin().getWSSEnabled();
+ return getCreatedMixin().getWSSEnabled();
}
public void initFrom(EndpointConfigurationInfo info)
@@ -85,15 +86,21 @@
return initial;
}
- private WSSEndpointEnabled getCreatedWSSEndpointEnabledMixin()
+ @Override
+ public WSSEndpointEnabled getMixin()
{
- WSSEndpointEnabled wssEndpointEnabledMixin = getWSSEndpointEnabledMixin();
- if (wssEndpointEnabledMixin == null)
- {
- wssEndpointEnabledMixin = createWSSEndpointEnabledMixin();
- setWSSEndpointEnabledMixin(wssEndpointEnabledMixin);
- wssEndpointEnabledMixin.initializeValue();
- }
- return wssEndpointEnabledMixin;
+ return getWSSEndpointEnabledMixin();
}
+
+ @Override
+ protected void setMixin(WSSEndpointEnabled mixin)
+ {
+ setWSSEndpointEnabledMixin(mixin);
+ }
+
+ @Override
+ protected WSSEndpointEnabled createMixin()
+ {
+ return createWSSEndpointEnabledMixin();
+ }
}
Modified: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfoMapping.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfoMapping.java 2011-09-16 22:31:51 UTC (rev 7458)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfoMapping.java 2011-09-16 22:33:32 UTC (rev 7459)
@@ -37,7 +37,7 @@
import org.gatein.wsrp.consumer.RegistrationInfo;
import org.gatein.wsrp.consumer.spi.ConsumerRegistrySPI;
import org.gatein.wsrp.jcr.mapping.BaseMapping;
-import org.gatein.wsrp.jcr.mapping.mixins.LastModified;
+import org.gatein.wsrp.jcr.mapping.mixins.LastModifiedMixinHolder;
import org.gatein.wsrp.jcr.mapping.mixins.ModifyRegistrationRequired;
/**
@@ -45,7 +45,7 @@
* @version $Revision$
*/
@PrimaryType(name = ProducerInfoMapping.NODE_NAME)
-public abstract class ProducerInfoMapping implements BaseMapping<ProducerInfo, ConsumerRegistrySPI>
+public abstract class ProducerInfoMapping extends LastModifiedMixinHolder implements BaseMapping<ProducerInfo, ConsumerRegistrySPI>
{
public static final String NODE_NAME = "wsrp:producerinfo";
@@ -80,15 +80,6 @@
@OneToOne(type = RelationshipType.EMBEDDED)
@Owner
- public abstract LastModified getLastModifiedMixin();
-
- protected abstract void setLastModifiedMixin(LastModified lastModifiedMixin);
-
- @Create
- protected abstract LastModified createLastModifiedMixin();
-
- @OneToOne(type = RelationshipType.EMBEDDED)
- @Owner
public abstract ModifyRegistrationRequired getModifyRegistrationRequiredMixin();
protected abstract void setModifyRegistrationRequiredMixin(ModifyRegistrationRequired mmr);
@@ -111,16 +102,6 @@
return getCreatedModifyRegistrationRequiredMixin().isModifyRegistrationRequired();
}
- public void setLastModified(long lastModified)
- {
- getCreatedLastModifiedMixin().setLastModified(lastModified);
- }
-
- public long getLastModified()
- {
- return getCreatedLastModifiedMixin().getLastModified();
- }
-
public void initFrom(ProducerInfo producerInfo)
{
setActive(producerInfo.isActive());
@@ -165,18 +146,6 @@
return info;
}
- private LastModified getCreatedLastModifiedMixin()
- {
- LastModified lm = getLastModifiedMixin();
- if (lm == null)
- {
- lm = createLastModifiedMixin();
- setLastModifiedMixin(lm);
- lm.initializeValue();
- }
- return lm;
- }
-
private ModifyRegistrationRequired getCreatedModifyRegistrationRequiredMixin()
{
ModifyRegistrationRequired mmr = getModifyRegistrationRequiredMixin();
Modified: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfosMapping.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfosMapping.java 2011-09-16 22:31:51 UTC (rev 7458)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfosMapping.java 2011-09-16 22:33:32 UTC (rev 7459)
@@ -23,13 +23,10 @@
package org.gatein.wsrp.consumer.registry.mapping;
-import org.chromattic.api.RelationshipType;
import org.chromattic.api.annotations.Create;
import org.chromattic.api.annotations.OneToMany;
-import org.chromattic.api.annotations.OneToOne;
-import org.chromattic.api.annotations.Owner;
import org.chromattic.api.annotations.PrimaryType;
-import org.gatein.wsrp.jcr.mapping.mixins.LastModified;
+import org.gatein.wsrp.jcr.mapping.mixins.LastModifiedMixinHolder;
import java.util.List;
import java.util.Map;
@@ -39,7 +36,7 @@
* @version $Revision$
*/
@PrimaryType(name = ProducerInfosMapping.NODE_NAME)
-public abstract class ProducerInfosMapping
+public abstract class ProducerInfosMapping extends LastModifiedMixinHolder
{
public static final String NODE_NAME = "wsrp:producerinfos";
@@ -51,37 +48,4 @@
@Create
public abstract ProducerInfoMapping createProducerInfo(String producerId);
-
- @OneToOne(type = RelationshipType.EMBEDDED)
- @Owner
- public abstract LastModified getLastModifiedMixin();
-
- protected abstract void setLastModifiedMixin(LastModified lastModifiedMixin);
-
- @Create
- protected abstract LastModified createLastModifiedMixin();
-
- public void setLastModified(long lastModified)
- {
- getCreatedLastModifiedMixin().setLastModified(lastModified);
- }
-
- public long getLastModified()
- {
- return getCreatedLastModifiedMixin().getLastModified();
- }
-
- private LastModified getCreatedLastModifiedMixin()
- {
- LastModified lm = getLastModifiedMixin();
- if (lm == null)
- {
- lm = createLastModifiedMixin();
- setLastModifiedMixin(lm);
- lm.initializeValue();
- }
- return lm;
- }
-
-
}
Added: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/LastModifiedMixinHolder.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/LastModifiedMixinHolder.java (rev 0)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/LastModifiedMixinHolder.java 2011-09-16 22:33:32 UTC (rev 7459)
@@ -0,0 +1,69 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2008, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+package org.gatein.wsrp.jcr.mapping.mixins;
+
+import org.chromattic.api.RelationshipType;
+import org.chromattic.api.annotations.Create;
+import org.chromattic.api.annotations.OneToOne;
+import org.chromattic.api.annotations.Owner;
+
+/** @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a> */
+public abstract class LastModifiedMixinHolder extends MixinHolder<LastModified>
+{
+ @OneToOne(type = RelationshipType.EMBEDDED)
+ @Owner
+ public abstract LastModified getLastModifiedMixin();
+
+ protected abstract void setLastModifiedMixin(LastModified lastModifiedMixin);
+
+ @Create
+ protected abstract LastModified createLastModifiedMixin();
+
+ public void setLastModified(long lastModified)
+ {
+ getCreatedMixin().setLastModified(lastModified);
+ }
+
+ public long getLastModified()
+ {
+ return getCreatedMixin().getLastModified();
+ }
+
+ @Override
+ public LastModified getMixin()
+ {
+ return getLastModifiedMixin();
+ }
+
+ @Override
+ protected void setMixin(LastModified mixin)
+ {
+ setLastModifiedMixin(mixin);
+ }
+
+ @Override
+ protected LastModified createMixin()
+ {
+ return createLastModifiedMixin();
+ }
+}
Added: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/MixinHolder.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/MixinHolder.java (rev 0)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/MixinHolder.java 2011-09-16 22:33:32 UTC (rev 7459)
@@ -0,0 +1,45 @@
+/*
+* JBoss, a division of Red Hat
+* Copyright 2008, Red Hat Middleware, LLC, and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+
+package org.gatein.wsrp.jcr.mapping.mixins;
+
+/** @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a> */
+public abstract class MixinHolder<M extends BaseMixin>
+{
+ protected M getCreatedMixin()
+ {
+ M mixin = getMixin();
+ if (mixin == null)
+ {
+ mixin = createMixin();
+ setMixin(mixin);
+ mixin.initializeValue();
+ }
+ return mixin;
+ }
+
+ public abstract M getMixin();
+
+ protected abstract void setMixin(M mixin);
+
+ protected abstract M createMixin();
+}
13 years, 3 months
gatein SVN: r7458 - components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-16 18:31:51 -0400 (Fri, 16 Sep 2011)
New Revision: 7458
Modified:
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java
Log:
- Should have been included in last commit?\226?\128?\166
Modified: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java 2011-09-16 22:27:25 UTC (rev 7457)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java 2011-09-16 22:31:51 UTC (rev 7458)
@@ -257,19 +257,22 @@
ProducerInfosMapping producerInfosMapping = getProducerInfosMapping(session);
// check if we need to refresh the local cache
- if (lastModified < producerInfosMapping.getLastModified())
+ if (consumers.isInvalidated() || lastModified < producerInfosMapping.getLastModified())
{
List<ProducerInfoMapping> mappings = producerInfosMapping.getProducerInfos();
for (ProducerInfoMapping pim : mappings)
{
- if (lastModified < pim.getLastModified())
+ String id = pim.getId();
+ // only recreate the consumer if it's not in the cache or it's been modified after we've been last modified
+ if (consumers.getConsumer(id) == null || lastModified < pim.getLastModified())
{
- consumers.putConsumer(pim.getId(), createConsumerFrom(pim.toModel(null, this)));
+ consumers.putConsumer(id, createConsumerFrom(pim.toModel(null, this)));
}
}
lastModified = System.currentTimeMillis();
+ consumers.setInvalidated(false);
}
return consumers;
13 years, 3 months
gatein SVN: r7457 - in components/wsrp/trunk/consumer/src: test/java/org/gatein/wsrp/consumer/registry and 1 other directory.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-16 18:27:25 -0400 (Fri, 16 Sep 2011)
New Revision: 7457
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/AbstractConsumerRegistry.java
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/ConsumerCache.java
components/wsrp/trunk/consumer/src/test/java/org/gatein/wsrp/consumer/registry/ConsumerRegistryTestCase.java
Log:
- Fixed an issue with consumers not being properly reloaded by adding invalidation support to ConsumerCache.
Modified: components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/AbstractConsumerRegistry.java
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/AbstractConsumerRegistry.java 2011-09-16 21:09:30 UTC (rev 7456)
+++ components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/AbstractConsumerRegistry.java 2011-09-16 22:27:25 UTC (rev 7457)
@@ -503,9 +503,10 @@
}
}
- protected class InMemoryConsumerCache implements ConsumerCache
+ protected static class InMemoryConsumerCache implements ConsumerCache
{
private Map<String, WSRPConsumer> consumers = new HashMap<String, WSRPConsumer>(11);
+ private boolean invalidated;
public Collection<WSRPConsumer> getConsumers()
{
@@ -530,6 +531,17 @@
public void clear()
{
consumers.clear();
+ invalidated = true;
}
+
+ public boolean isInvalidated()
+ {
+ return invalidated;
+ }
+
+ public void setInvalidated(boolean invalidated)
+ {
+ this.invalidated = invalidated;
+ }
}
}
Modified: components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/ConsumerCache.java
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/ConsumerCache.java 2011-09-16 21:09:30 UTC (rev 7456)
+++ components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/ConsumerCache.java 2011-09-16 22:27:25 UTC (rev 7457)
@@ -39,4 +39,8 @@
void putConsumer(String id, WSRPConsumer consumer);
void clear();
+
+ boolean isInvalidated();
+
+ void setInvalidated(boolean invalidated);
}
Modified: components/wsrp/trunk/consumer/src/test/java/org/gatein/wsrp/consumer/registry/ConsumerRegistryTestCase.java
===================================================================
--- components/wsrp/trunk/consumer/src/test/java/org/gatein/wsrp/consumer/registry/ConsumerRegistryTestCase.java 2011-09-16 21:09:30 UTC (rev 7456)
+++ components/wsrp/trunk/consumer/src/test/java/org/gatein/wsrp/consumer/registry/ConsumerRegistryTestCase.java 2011-09-16 22:27:25 UTC (rev 7457)
@@ -185,4 +185,20 @@
// check that consumer is not known by the FederatingPortletInvoker anymore
assertEquals(null, registrySpy.getFederatingPortletInvoker().getFederatedInvoker("foo"));
}
+
+ public void testReloadConsumers()
+ {
+ WSRPConsumer consumer1 = registry.createConsumer("consumer1", null, null);
+ WSRPConsumer consumer2 = registry.createConsumer("consumer2", null, null);
+
+ assertEquals(2, registry.getConfiguredConsumersIds().size());
+ assertEquals(consumer1, registry.getConsumer(consumer1.getProducerId()));
+ assertEquals(consumer2, registry.getConsumer(consumer2.getProducerId()));
+
+ registry.reloadConsumers();
+
+ assertEquals(2, registry.getConfiguredConsumersIds().size());
+ assertEquals(consumer1, registry.getConsumer(consumer1.getProducerId()));
+ assertEquals(consumer2, registry.getConsumer(consumer2.getProducerId()));
+ }
}
13 years, 3 months
gatein SVN: r7456 - portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/operations/navigation.
by do-not-reply@jboss.org
Author: nscavell
Date: 2011-09-16 17:09:30 -0400 (Fri, 16 Sep 2011)
New Revision: 7456
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/operations/navigation/FilteredNavigationExportResource.java
Log:
GTNPORTAL-2108: Remove System.out during navigation export.
Modified: portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/operations/navigation/FilteredNavigationExportResource.java
===================================================================
--- portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/operations/navigation/FilteredNavigationExportResource.java 2011-09-16 14:50:21 UTC (rev 7455)
+++ portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/operations/navigation/FilteredNavigationExportResource.java 2011-09-16 21:09:30 UTC (rev 7456)
@@ -116,9 +116,7 @@
private void executeHandlers(ManagedResource resource, final OperationContext operationContext, PathAddress address, String operationName, StepResultHandler<PageNavigation> stepResultHandler, PathTemplateFilter filter, boolean root)
{
- //resource.getSubResource(address);
OperationHandler handler = resource.getOperationHandler(address, operationName);
- System.out.println("Filter: " + filter + " accepted ? " + address.accepts(filter) + " for address " + address + " and nav-uri template " + address.resolvePathTemplate("nav-uri"));
if (handler != null && !root && address.accepts(filter))
{
handler.execute(operationContext, stepResultHandler);
13 years, 3 months
gatein SVN: r7455 - in components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp: consumer/registry/mapping and 1 other directories.
by do-not-reply@jboss.org
Author: chris.laprun(a)jboss.com
Date: 2011-09-16 10:50:21 -0400 (Fri, 16 Sep 2011)
New Revision: 7455
Modified:
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/EndpointInfoMapping.java
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfoMapping.java
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfosMapping.java
components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/WSSEndpointEnabled.java
Log:
- GTNWSRP-239: simplifying handling of mixins
Modified: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java 2011-09-16 12:28:21 UTC (rev 7454)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/JCRConsumerRegistry.java 2011-09-16 14:50:21 UTC (rev 7455)
@@ -35,7 +35,6 @@
import org.gatein.wsrp.consumer.registry.xml.XMLConsumerRegistry;
import org.gatein.wsrp.jcr.ChromatticPersister;
import org.gatein.wsrp.jcr.StoresByPathManager;
-import org.gatein.wsrp.jcr.mapping.mixins.BaseMixin;
import org.gatein.wsrp.jcr.mapping.mixins.LastModified;
import org.gatein.wsrp.jcr.mapping.mixins.ModifyRegistrationRequired;
import org.gatein.wsrp.jcr.mapping.mixins.WSSEndpointEnabled;
@@ -76,7 +75,7 @@
{
Collections.addAll(mappingClasses, ProducerInfosMapping.class, ProducerInfoMapping.class,
EndpointInfoMapping.class, RegistrationInfoMapping.class, RegistrationPropertyMapping.class,
- RegistrationPropertyDescriptionMapping.class, LastModified.class, ModifyRegistrationRequired.class,
+ RegistrationPropertyDescriptionMapping.class, LastModified.class, ModifyRegistrationRequired.class,
WSSEndpointEnabled.class);
}
@@ -123,25 +122,19 @@
{
ChromatticSession session = persister.getSession();
+ // update cache
+ final long now = System.currentTimeMillis();
+ lastModified = now;
+
ProducerInfosMapping pims = getProducerInfosMapping(session);
+ pims.setLastModified(now);
+
ProducerInfoMapping pim = pims.createProducerInfo(info.getId());
String key = session.persist(pims, pim, info.getId());
info.setKey(key);
+ info.setLastModified(now);
pim.initFrom(info);
- // update cache
- final long now = System.currentTimeMillis();
- lastModified = now;
-// getRefreshedInfoCache(session).put(info.getId(), info);
-
- // GTNWSRP-239
- getMixin(pims, session, LastModified.class).setLastModified(now);
- getMixin(pim, session, LastModified.class).setLastModified(now);
- getMixin(pim, session, ModifyRegistrationRequired.class).setModifyRegistrationRequired(info.isModifyRegistrationRequired());
- info.setLastModified(now);
- getMixin(pim.getEndpointInfo(), session, WSSEndpointEnabled.class).setWSSEnabled(info.getEndpointConfigurationInfo().getWSSEnabled());
-
-
persister.closeSession(true);
}
catch (Exception e)
@@ -176,6 +169,8 @@
synchronized (this)
{
+ final long now = System.currentTimeMillis();
+
ProducerInfoMapping pim = session.findById(ProducerInfoMapping.class, key);
if (pim == null)
{
@@ -183,32 +178,21 @@
}
oldId = pim.getId();
newId = producerInfo.getId();
+ producerInfo.setLastModified(now);
pim.initFrom(producerInfo);
idUnchanged = oldId.equals(newId);
- final long now = System.currentTimeMillis();
if (!idUnchanged)
{
ProducerInfosMapping pims = getProducerInfosMapping(session);
Map<String, ProducerInfoMapping> nameToProducerInfoMap = pims.getNameToProducerInfoMap();
nameToProducerInfoMap.put(pim.getId(), pim);
- // update cache
- /*getRefreshedInfoCache(session).remove(oldId);
- getRefreshedInfoCache(session).put(newId, producerInfo);*/
-
- // GTNWSRP-239
- getMixin(pims, session, LastModified.class).setLastModified(now);
+ pims.setLastModified(now);
lastModified = now;
}
- // GTNWSRP-239
- getMixin(pim, session, ModifyRegistrationRequired.class).setModifyRegistrationRequired(producerInfo.isModifyRegistrationRequired());
- getMixin(pim, session, LastModified.class).setLastModified(now);
- producerInfo.setLastModified(now);
- getMixin(pim.getEndpointInfo(), session, WSSEndpointEnabled.class).setWSSEnabled(producerInfo.getEndpointConfigurationInfo().getWSSEnabled());
-
persister.closeSession(true);
}
@@ -219,13 +203,13 @@
public Iterator<ProducerInfo> getProducerInfosFromStorage()
{
ChromatticSession session = persister.getSession();
-
+
Collection<WSRPConsumer> consumers = getRefreshedInfoCache(session).getConsumers();
-
+
// GTNWSRP-239
// Kindof crappy place to put this, but we need to be able to retrieve the mixin from the jcr so that it can be used to
// configure the ProducerInfo
- Iterator<WSRPConsumer> consumersIterator = consumers.iterator();
+ /*Iterator<WSRPConsumer> consumersIterator = consumers.iterator();
while (consumersIterator.hasNext())
{
ProducerInfo pi = consumersIterator.next().getProducerInfo();
@@ -240,8 +224,8 @@
{
pi.getEndpointConfigurationInfo().setWSSEnabled(wssee.getWSSEnabled());
}
- }
-
+ }*/
+
final Iterator<ProducerInfo> iterator = new ProducerInfoIterator(consumers.iterator());
persister.closeSession(false);
return iterator;
@@ -273,13 +257,13 @@
ProducerInfosMapping producerInfosMapping = getProducerInfosMapping(session);
// check if we need to refresh the local cache
- if (lastModified < getMixin(producerInfosMapping, session, LastModified.class).getLastModified())
+ if (lastModified < producerInfosMapping.getLastModified())
{
List<ProducerInfoMapping> mappings = producerInfosMapping.getProducerInfos();
for (ProducerInfoMapping pim : mappings)
{
- if (lastModified < getMixin(pim, session, LastModified.class).getLastModified())
+ if (lastModified < pim.getLastModified())
{
consumers.putConsumer(pim.getId(), createConsumerFrom(pim.toModel(null, this)));
}
@@ -334,7 +318,7 @@
}
}
- private <M extends BaseMixin> M getMixin(Object objectToCheck, ChromatticSession session, Class<M> type)
+ /*private <M extends BaseMixin> M getMixin(Object objectToCheck, ChromatticSession session, Class<M> type)
{
M mixin = session.getEmbedded(objectToCheck, type);
if (mixin == null)
@@ -344,7 +328,7 @@
mixin.initializeValue();
}
return mixin;
- }
+ }*/
@Override
public boolean containsConsumer(String id)
@@ -467,7 +451,7 @@
}
lastModified = System.currentTimeMillis();
- getMixin(producerInfosMapping, session, LastModified.class).setLastModified(lastModified);
+ producerInfosMapping.setLastModified(lastModified);
session.save();
}
}
@@ -486,7 +470,7 @@
if (pims != null)
{
// GTNWSRP-239
- return getMixin(pims, session, LastModified.class);
+ return pims.getLastModifiedMixin();
}
else
{
Modified: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/EndpointInfoMapping.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/EndpointInfoMapping.java 2011-09-16 12:28:21 UTC (rev 7454)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/EndpointInfoMapping.java 2011-09-16 14:50:21 UTC (rev 7455)
@@ -23,10 +23,14 @@
package org.gatein.wsrp.consumer.registry.mapping;
-import org.chromattic.api.annotations.DefaultValue;
+import org.chromattic.api.RelationshipType;
+import org.chromattic.api.annotations.Create;
+import org.chromattic.api.annotations.OneToOne;
+import org.chromattic.api.annotations.Owner;
import org.chromattic.api.annotations.PrimaryType;
import org.chromattic.api.annotations.Property;
import org.gatein.wsrp.consumer.EndpointConfigurationInfo;
+import org.gatein.wsrp.jcr.mapping.mixins.WSSEndpointEnabled;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
@@ -47,16 +51,49 @@
public abstract void setWSTimeoutMilliseconds(Integer expiration);
+ @OneToOne(type = RelationshipType.EMBEDDED)
+ @Owner
+ public abstract WSSEndpointEnabled getWSSEndpointEnabledMixin();
+
+ protected abstract void setWSSEndpointEnabledMixin(WSSEndpointEnabled mixin);
+
+ @Create
+ protected abstract WSSEndpointEnabled createWSSEndpointEnabledMixin();
+
+ public void setWSSEnabled(boolean wssEnabled)
+ {
+ getCreatedWSSEndpointEnabledMixin().setWSSEnabled(wssEnabled);
+ }
+
+ public boolean isWSSEnabled()
+ {
+ return getCreatedWSSEndpointEnabledMixin().getWSSEnabled();
+ }
+
public void initFrom(EndpointConfigurationInfo info)
{
setWSDLURL(info.getWsdlDefinitionURL());
setWSTimeoutMilliseconds(info.getWSOperationTimeOut());
+ setWSSEnabled(info.getWSSEnabled());
}
EndpointConfigurationInfo toEndpointConfigurationInfo(EndpointConfigurationInfo initial)
{
initial.setWsdlDefinitionURL(getWSDLURL());
initial.setWSOperationTimeOut(getWSTimeoutMilliseconds());
+ initial.setWSSEnabled(isWSSEnabled());
return initial;
}
+
+ private WSSEndpointEnabled getCreatedWSSEndpointEnabledMixin()
+ {
+ WSSEndpointEnabled wssEndpointEnabledMixin = getWSSEndpointEnabledMixin();
+ if (wssEndpointEnabledMixin == null)
+ {
+ wssEndpointEnabledMixin = createWSSEndpointEnabledMixin();
+ setWSSEndpointEnabledMixin(wssEndpointEnabledMixin);
+ wssEndpointEnabledMixin.initializeValue();
+ }
+ return wssEndpointEnabledMixin;
+ }
}
Modified: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfoMapping.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfoMapping.java 2011-09-16 12:28:21 UTC (rev 7454)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfoMapping.java 2011-09-16 14:50:21 UTC (rev 7455)
@@ -23,6 +23,8 @@
package org.gatein.wsrp.consumer.registry.mapping;
+import org.chromattic.api.RelationshipType;
+import org.chromattic.api.annotations.Create;
import org.chromattic.api.annotations.DefaultValue;
import org.chromattic.api.annotations.Id;
import org.chromattic.api.annotations.MappedBy;
@@ -35,6 +37,8 @@
import org.gatein.wsrp.consumer.RegistrationInfo;
import org.gatein.wsrp.consumer.spi.ConsumerRegistrySPI;
import org.gatein.wsrp.jcr.mapping.BaseMapping;
+import org.gatein.wsrp.jcr.mapping.mixins.LastModified;
+import org.gatein.wsrp.jcr.mapping.mixins.ModifyRegistrationRequired;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
@@ -74,16 +78,56 @@
@Id
public abstract String getKey();
+ @OneToOne(type = RelationshipType.EMBEDDED)
+ @Owner
+ public abstract LastModified getLastModifiedMixin();
+
+ protected abstract void setLastModifiedMixin(LastModified lastModifiedMixin);
+
+ @Create
+ protected abstract LastModified createLastModifiedMixin();
+
+ @OneToOne(type = RelationshipType.EMBEDDED)
+ @Owner
+ public abstract ModifyRegistrationRequired getModifyRegistrationRequiredMixin();
+
+ protected abstract void setModifyRegistrationRequiredMixin(ModifyRegistrationRequired mmr);
+
+ @Create
+ protected abstract ModifyRegistrationRequired createModifyRegistrationRequiredMixin();
+
/* @Property(name = "available")
public abstract boolean getAvailable();
public abstract void setAvailable(boolean available);*/
+ public void setModifyRegistrationRequired(boolean modifyRegistrationRequired)
+ {
+ getCreatedModifyRegistrationRequiredMixin().setModifyRegistrationRequired(modifyRegistrationRequired);
+ }
+
+ public boolean getModifyRegistrationRequired()
+ {
+ return getCreatedModifyRegistrationRequiredMixin().isModifyRegistrationRequired();
+ }
+
+ public void setLastModified(long lastModified)
+ {
+ getCreatedLastModifiedMixin().setLastModified(lastModified);
+ }
+
+ public long getLastModified()
+ {
+ return getCreatedLastModifiedMixin().getLastModified();
+ }
+
public void initFrom(ProducerInfo producerInfo)
{
setActive(producerInfo.isActive());
setExpirationCacheSeconds(producerInfo.getExpirationCacheSeconds());
setId(producerInfo.getId());
+ setLastModified(producerInfo.getLastModified());
+ setModifyRegistrationRequired(producerInfo.isModifyRegistrationRequired());
EndpointInfoMapping eim = getEndpointInfo();
eim.initFrom(producerInfo.getEndpointConfigurationInfo());
@@ -107,6 +151,8 @@
info.setId(getId());
info.setActive(getActive());
info.setExpirationCacheSeconds(getExpirationCacheSeconds());
+ info.setLastModified(getLastModified());
+ info.setModifyRegistrationRequired(getModifyRegistrationRequired());
// endpoint
EndpointConfigurationInfo endInfo = getEndpointInfo().toEndpointConfigurationInfo(info.getEndpointConfigurationInfo());
@@ -118,4 +164,28 @@
return info;
}
+
+ private LastModified getCreatedLastModifiedMixin()
+ {
+ LastModified lm = getLastModifiedMixin();
+ if (lm == null)
+ {
+ lm = createLastModifiedMixin();
+ setLastModifiedMixin(lm);
+ lm.initializeValue();
+ }
+ return lm;
+ }
+
+ private ModifyRegistrationRequired getCreatedModifyRegistrationRequiredMixin()
+ {
+ ModifyRegistrationRequired mmr = getModifyRegistrationRequiredMixin();
+ if (mmr == null)
+ {
+ mmr = createModifyRegistrationRequiredMixin();
+ setModifyRegistrationRequiredMixin(mmr);
+ mmr.initializeValue();
+ }
+ return mmr;
+ }
}
Modified: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfosMapping.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfosMapping.java 2011-09-16 12:28:21 UTC (rev 7454)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/consumer/registry/mapping/ProducerInfosMapping.java 2011-09-16 14:50:21 UTC (rev 7455)
@@ -23,9 +23,13 @@
package org.gatein.wsrp.consumer.registry.mapping;
+import org.chromattic.api.RelationshipType;
import org.chromattic.api.annotations.Create;
import org.chromattic.api.annotations.OneToMany;
+import org.chromattic.api.annotations.OneToOne;
+import org.chromattic.api.annotations.Owner;
import org.chromattic.api.annotations.PrimaryType;
+import org.gatein.wsrp.jcr.mapping.mixins.LastModified;
import java.util.List;
import java.util.Map;
@@ -47,4 +51,37 @@
@Create
public abstract ProducerInfoMapping createProducerInfo(String producerId);
+
+ @OneToOne(type = RelationshipType.EMBEDDED)
+ @Owner
+ public abstract LastModified getLastModifiedMixin();
+
+ protected abstract void setLastModifiedMixin(LastModified lastModifiedMixin);
+
+ @Create
+ protected abstract LastModified createLastModifiedMixin();
+
+ public void setLastModified(long lastModified)
+ {
+ getCreatedLastModifiedMixin().setLastModified(lastModified);
+ }
+
+ public long getLastModified()
+ {
+ return getCreatedLastModifiedMixin().getLastModified();
+ }
+
+ private LastModified getCreatedLastModifiedMixin()
+ {
+ LastModified lm = getLastModifiedMixin();
+ if (lm == null)
+ {
+ lm = createLastModifiedMixin();
+ setLastModifiedMixin(lm);
+ lm.initializeValue();
+ }
+ return lm;
+ }
+
+
}
Modified: components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/WSSEndpointEnabled.java
===================================================================
--- components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/WSSEndpointEnabled.java 2011-09-16 12:28:21 UTC (rev 7454)
+++ components/wsrp/trunk/jcr-impl/src/main/java/org/gatein/wsrp/jcr/mapping/mixins/WSSEndpointEnabled.java 2011-09-16 14:50:21 UTC (rev 7455)
@@ -34,12 +34,11 @@
public abstract class WSSEndpointEnabled implements BaseMixin
{
@Property(name = "enablewss")
- @DefaultValue("false")
+ @DefaultValue("false")
public abstract boolean getWSSEnabled();
-
+
public abstract void setWSSEnabled(boolean enable);
-
- @Override
+
public void initializeValue()
{
//set to false by default
13 years, 3 months