gatein SVN: r1434 - portal/trunk/component/common/src/main/java/conf.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-01-23 16:57:26 -0500 (Sat, 23 Jan 2010)
New Revision: 1434
Added:
portal/trunk/component/common/src/main/java/conf/configuration-tomcat.properties
Removed:
portal/trunk/component/common/src/main/java/conf/configuration.properties
Modified:
portal/trunk/component/common/src/main/java/conf/configuration.xml
Log:
actually rename configuration.properties to tomcat-configuration.properties
Copied: portal/trunk/component/common/src/main/java/conf/configuration-tomcat.properties (from rev 1433, portal/trunk/component/common/src/main/java/conf/configuration.properties)
===================================================================
--- portal/trunk/component/common/src/main/java/conf/configuration-tomcat.properties (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/configuration-tomcat.properties 2010-01-23 21:57:26 UTC (rev 1434)
@@ -0,0 +1,32 @@
+#
+# Copyright (C) 2009 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.
+#
+
+# Datasource name
+gatein.datasource.name=jdbcexo
+
+# Data
+gatein.data.dir=../temp
+
+# DB
+gatein.db.data.dir=${gatein.data.dir}/db
+
+# JCR
+gatein.jcr.data.dir=${gatein.data.dir}/jcr
+gatein.jcr.storage.data.dir=${gatein.jcr.data.dir}/values
+gatein.jcr.index.data.dir=${gatein.jcr.data.dir}/jcrlucenedb
Deleted: portal/trunk/component/common/src/main/java/conf/configuration.properties
===================================================================
--- portal/trunk/component/common/src/main/java/conf/configuration.properties 2010-01-23 21:51:00 UTC (rev 1433)
+++ portal/trunk/component/common/src/main/java/conf/configuration.properties 2010-01-23 21:57:26 UTC (rev 1434)
@@ -1,32 +0,0 @@
-#
-# Copyright (C) 2009 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.
-#
-
-# Datasource name
-gatein.datasource.name=jdbcexo
-
-# Data
-gatein.data.dir=../temp
-
-# DB
-gatein.db.data.dir=${gatein.data.dir}/db
-
-# JCR
-gatein.jcr.data.dir=${gatein.data.dir}/jcr
-gatein.jcr.storage.data.dir=${gatein.jcr.data.dir}/values
-gatein.jcr.index.data.dir=${gatein.jcr.data.dir}/jcrlucenedb
Modified: portal/trunk/component/common/src/main/java/conf/configuration.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/configuration.xml 2010-01-23 21:51:00 UTC (rev 1433)
+++ portal/trunk/component/common/src/main/java/conf/configuration.xml 2010-01-23 21:57:26 UTC (rev 1434)
@@ -31,7 +31,7 @@
<init-params>
<value-param profiles="tomcat">
<name>properties.url</name>
- <value>jar:/conf/configuration.properties</value>
+ <value>jar:/conf/configuration-tomcat.properties</value>
</value-param>
<value-param profiles="jboss">
<name>properties.url</name>
14 years, 11 months
gatein SVN: r1433 - in portal/trunk: examples/extension/war/src/main/webapp/WEB-INF/conf/sample-ext/jcr and 4 other directories.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-01-23 16:51:00 -0500 (Sat, 23 Jan 2010)
New Revision: 1433
Modified:
portal/trunk/component/common/src/main/java/conf/configuration-jboss.properties
portal/trunk/component/common/src/main/java/conf/configuration.properties
portal/trunk/component/common/src/main/java/conf/configuration.xml
portal/trunk/examples/extension/war/src/main/webapp/WEB-INF/conf/sample-ext/jcr/repository-configuration.xml
portal/trunk/examples/portal/war/src/main/webapp/WEB-INF/conf/sample-portal/jcr/repository-configuration.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/database/database-configuration.tmpl.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/database/database-configuration.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.tmpl.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.tmpl.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.xml
Log:
- factor configuration of JNDI name of data source in properties file
- use java: namespace for datasource name in JBoss AS
Modified: portal/trunk/component/common/src/main/java/conf/configuration-jboss.properties
===================================================================
--- portal/trunk/component/common/src/main/java/conf/configuration-jboss.properties 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/component/common/src/main/java/conf/configuration-jboss.properties 2010-01-23 21:51:00 UTC (rev 1433)
@@ -17,6 +17,9 @@
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
+# Datasource name
+gatein.datasource.name=java:jdbcexo
+
# Data
gatein.data.dir=${jboss.server.data.dir}/gatein
Modified: portal/trunk/component/common/src/main/java/conf/configuration.properties
===================================================================
--- portal/trunk/component/common/src/main/java/conf/configuration.properties 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/component/common/src/main/java/conf/configuration.properties 2010-01-23 21:51:00 UTC (rev 1433)
@@ -17,6 +17,9 @@
# 02110-1301 USA, or see the FSF site: http://www.fsf.org.
#
+# Datasource name
+gatein.datasource.name=jdbcexo
+
# Data
gatein.data.dir=../temp
Modified: portal/trunk/component/common/src/main/java/conf/configuration.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/component/common/src/main/java/conf/configuration.xml 2010-01-23 21:51:00 UTC (rev 1433)
@@ -29,7 +29,7 @@
<key>org.exoplatform.container.PropertyConfigurator</key>
<type>org.exoplatform.container.PropertyConfigurator</type>
<init-params>
- <value-param>
+ <value-param profiles="tomcat">
<name>properties.url</name>
<value>jar:/conf/configuration.properties</value>
</value-param>
Modified: portal/trunk/examples/extension/war/src/main/webapp/WEB-INF/conf/sample-ext/jcr/repository-configuration.xml
===================================================================
--- portal/trunk/examples/extension/war/src/main/webapp/WEB-INF/conf/sample-ext/jcr/repository-configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/examples/extension/war/src/main/webapp/WEB-INF/conf/sample-ext/jcr/repository-configuration.xml 2010-01-23 21:51:00 UTC (rev 1433)
@@ -29,7 +29,7 @@
<workspace name="sample-ws">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}" />
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}" />
<property name="dialect" value="hsqldb" />
<property name="multi-db" value="false" />
<property name="update-storage" value="true" />
Modified: portal/trunk/examples/portal/war/src/main/webapp/WEB-INF/conf/sample-portal/jcr/repository-configuration.xml
===================================================================
--- portal/trunk/examples/portal/war/src/main/webapp/WEB-INF/conf/sample-portal/jcr/repository-configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/examples/portal/war/src/main/webapp/WEB-INF/conf/sample-portal/jcr/repository-configuration.xml 2010-01-23 21:51:00 UTC (rev 1433)
@@ -29,7 +29,7 @@
<workspace name="sample-ws">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}" />
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}" />
<property name="dialect" value="hsqldb" />
<property name="multi-db" value="false" />
<property name="update-storage" value="true" />
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/database/database-configuration.tmpl.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/database/database-configuration.tmpl.xml 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/database/database-configuration.tmpl.xml 2010-01-23 21:51:00 UTC (rev 1433)
@@ -33,12 +33,14 @@
<name>hibernate.properties</name>
<description>Default Hibernate Service</description>
<property name="hibernate.show_sql" value="false"/>
+ <property name="hibernate.current_session_context_class" value="thread"/>
+ <property name="hibernate.cache.use_second_level_cache" value="true"/>
+ <property name="hibernate.cache.use_query_cache" value="true"/>
+ <!--CHANGEME HashtableCacheProvider shold not be used in production env-->
+ <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
<property name="hibernate.cglib.use_reflection_optimizer" value="true"/>
- <property name="hibernate.connection.url" value="${connectionUrl}"/>
- <property name="hibernate.connection.driver_class" value="${driverClass}"/>
+ <property name="hibernate.connection.datasource" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="hibernate.connection.autocommit" value="true"/>
- <property name="hibernate.connection.username" value="${username}"/>
- <property name="hibernate.connection.password" value="${password}"/>
<property name="hibernate.dialect" value="${dialect}"/>
<property name="hibernate.c3p0.min_size" value="5"/>
<property name="hibernate.c3p0.max_size" value="20"/>
@@ -48,25 +50,6 @@
</init-params>
</component>
- <!--
- <component>
- <key>org.exoplatform.services.database.DatabaseService</key>
- <type>org.exoplatform.services.database.impl.XAPoolTxSupportDatabaseService</type>
- <init-params>
- <properties-param>
- <name>default</name>
- <description>Connection configuration</description>
- <property name='connection.driver' value='${driverClass}'/>
- <property name='connection.url' value='${connectionUrl}'/>
- <property name='connection.login' value='${username}'/>
- <property name='connection.password' value='${password}'/>
- <property name='connection.min-size' value='3'/>
- <property name='connection.max-size' value='5'/>
- </properties-param>
- </init-params>
- </component>
- -->
-
<external-component-plugins>
<target-component>org.exoplatform.services.naming.InitialContextInitializer</target-component>
<component-plugin>
@@ -76,7 +59,7 @@
<init-params>
<value-param>
<name>bind-name</name>
- <value>jdbcexo${container.name.suffix}</value>
+ <value>${gatein.datasource.name}${container.name.suffix}</value>
</value-param>
<value-param>
<name>class-name</name>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/database/database-configuration.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/database/database-configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/database/database-configuration.xml 2010-01-23 21:51:00 UTC (rev 1433)
@@ -39,7 +39,7 @@
<!--CHANGEME HashtableCacheProvider shold not be used in production env-->
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
<property name="hibernate.cglib.use_reflection_optimizer" value="true"/>
- <property name="hibernate.connection.datasource" value="jdbcexo${container.name.suffix}"/>
+ <property name="hibernate.connection.datasource" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="hibernate.connection.autocommit" value="true"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
<property name="hibernate.c3p0.min_size" value="5"/>
@@ -59,7 +59,7 @@
<init-params>
<value-param>
<name>bind-name</name>
- <value>jdbcexo${container.name.suffix}</value>
+ <value>${gatein.datasource.name}${container.name.suffix}</value>
</value-param>
<value-param>
<name>class-name</name>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.tmpl.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.tmpl.xml 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.tmpl.xml 2010-01-23 21:51:00 UTC (rev 1433)
@@ -37,7 +37,7 @@
<name>working-conf</name>
<description>working-conf</description>
<property name="persister-class-name" value="org.exoplatform.services.jcr.impl.config.JDBCConfigurationPersister"/>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="${dialect}"/>
</properties-param>
</init-params>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.xml 2010-01-23 21:51:00 UTC (rev 1433)
@@ -37,7 +37,7 @@
<name>working-conf</name>
<description>working-conf</description>
<property name="persister-class-name" value="org.exoplatform.services.jcr.impl.config.JDBCConfigurationPersister"/>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="hsqldb"/>
</properties-param>
</init-params>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.tmpl.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.tmpl.xml 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.tmpl.xml 2010-01-23 21:51:00 UTC (rev 1433)
@@ -31,7 +31,7 @@
<workspace name="system">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="${dialect}"/>
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
@@ -77,7 +77,7 @@
<workspace name="portal-system">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="${dialect}"/>
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
@@ -123,7 +123,7 @@
<workspace name="portal-work">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="${dialect}"/>
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
@@ -169,7 +169,7 @@
<workspace name="wsrp-system">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="${dialect}"/>
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.xml 2010-01-23 21:51:00 UTC (rev 1433)
@@ -31,7 +31,7 @@
<workspace name="system">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="hsqldb"/>
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
@@ -77,7 +77,7 @@
<workspace name="portal-system">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="hsqldb"/>
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
@@ -123,7 +123,7 @@
<workspace name="portal-work">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="hsqldb"/>
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
@@ -169,7 +169,7 @@
<workspace name="wsrp-system">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
<properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="source-name" value="${gatein.datasource.name}${container.name.suffix}"/>
<property name="dialect" value="hsqldb"/>
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
14 years, 11 months
gatein SVN: r1432 - in portal/trunk: component/common/src/main/java/conf/jcr/jbosscache/local and 3 other directories.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-01-23 13:44:38 -0500 (Sat, 23 Jan 2010)
New Revision: 1432
Added:
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-portal-system.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-portal-work.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-system.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-wsrp-system.xml
portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lock-config-portal-test.xml
portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lock-config-system.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/cluster/
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.tmpl.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.xml
Removed:
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-system.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-work.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-system.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml
portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml
portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.tmpl.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.xml
Modified:
portal/trunk/component/common/src/main/java/conf/configuration-jboss.properties
portal/trunk/component/common/src/main/java/conf/configuration.properties
portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-repository-configuration.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.tmpl.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.xml
Log:
simplifying configuration
Modified: portal/trunk/component/common/src/main/java/conf/configuration-jboss.properties
===================================================================
--- portal/trunk/component/common/src/main/java/conf/configuration-jboss.properties 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/component/common/src/main/java/conf/configuration-jboss.properties 2010-01-23 18:44:38 UTC (rev 1432)
@@ -25,3 +25,5 @@
# JCR
gatein.jcr.data.dir=${gatein.data.dir}/jcr
+gatein.jcr.storage.data.dir=${gatein.jcr.data.dir}/values
+gatein.jcr.index.data.dir=${gatein.jcr.data.dir}/jcrlucenedb
Modified: portal/trunk/component/common/src/main/java/conf/configuration.properties
===================================================================
--- portal/trunk/component/common/src/main/java/conf/configuration.properties 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/component/common/src/main/java/conf/configuration.properties 2010-01-23 18:44:38 UTC (rev 1432)
@@ -25,3 +25,5 @@
# JCR
gatein.jcr.data.dir=${gatein.data.dir}/jcr
+gatein.jcr.storage.data.dir=${gatein.jcr.data.dir}/values
+gatein.jcr.index.data.dir=${gatein.jcr.data.dir}/jcrlucenedb
Copied: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-portal-system.xml (from rev 1430, portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-system.xml)
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-portal-system.xml (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-portal-system.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -0,0 +1,44 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+<!--
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_portal_system
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo_portal
+ </properties>
+ </loader>
+ </loaders>
+-->
+</jbosscache>
\ No newline at end of file
Copied: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-portal-work.xml (from rev 1430, portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-work.xml)
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-portal-work.xml (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-portal-work.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -0,0 +1,44 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+<!--
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_portal_work
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo_portal
+ </properties>
+ </loader>
+ </loaders>
+-->
+</jbosscache>
\ No newline at end of file
Copied: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-system.xml (from rev 1430, portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-system.xml)
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-system.xml (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-system.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -0,0 +1,44 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+<!--
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_system
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo_portal
+ </properties>
+ </loader>
+ </loaders>
+-->
+</jbosscache>
\ No newline at end of file
Copied: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-wsrp-system.xml (from rev 1430, portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml)
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-wsrp-system.xml (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lock-config-wsrp-system.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -0,0 +1,44 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+<!--
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_wsrp_system
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo_portal
+ </properties>
+ </loader>
+ </loaders>
+-->
+</jbosscache>
\ No newline at end of file
Deleted: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-system.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-system.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-system.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -1,44 +0,0 @@
-<!--
- ~ Copyright (C) 2009 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.
- -->
-<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
-
- <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
-
-<!--
- <loaders passivation="false" shared="true">
- <preload>
- <node fqn="/" />
- </preload>
- <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
- <properties>
- cache.jdbc.table.name=jcr_lock_portal_system
- cache.jdbc.table.create=true
- cache.jdbc.table.drop=false
- cache.jdbc.table.primarykey=exojcr_pk
- cache.jdbc.fqn.column=fqn
- cache.jdbc.fqn.type=VARCHAR(512)
- cache.jdbc.node.column=node
- cache.jdbc.node.type=OBJECT
- cache.jdbc.parent.column=parent
- cache.jdbc.datasource=jdbcexo_portal
- </properties>
- </loader>
- </loaders>
--->
-</jbosscache>
\ No newline at end of file
Deleted: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-work.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-work.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-work.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -1,44 +0,0 @@
-<!--
- ~ Copyright (C) 2009 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.
- -->
-<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
-
- <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
-
-<!--
- <loaders passivation="false" shared="true">
- <preload>
- <node fqn="/" />
- </preload>
- <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
- <properties>
- cache.jdbc.table.name=jcr_lock_portal_work
- cache.jdbc.table.create=true
- cache.jdbc.table.drop=false
- cache.jdbc.table.primarykey=exojcr_pk
- cache.jdbc.fqn.column=fqn
- cache.jdbc.fqn.type=VARCHAR(512)
- cache.jdbc.node.column=node
- cache.jdbc.node.type=OBJECT
- cache.jdbc.parent.column=parent
- cache.jdbc.datasource=jdbcexo_portal
- </properties>
- </loader>
- </loaders>
--->
-</jbosscache>
\ No newline at end of file
Deleted: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-system.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-system.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-system.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -1,44 +0,0 @@
-<!--
- ~ Copyright (C) 2009 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.
- -->
-<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
-
- <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
-
-<!--
- <loaders passivation="false" shared="true">
- <preload>
- <node fqn="/" />
- </preload>
- <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
- <properties>
- cache.jdbc.table.name=jcr_lock_system
- cache.jdbc.table.create=true
- cache.jdbc.table.drop=false
- cache.jdbc.table.primarykey=exojcr_pk
- cache.jdbc.fqn.column=fqn
- cache.jdbc.fqn.type=VARCHAR(512)
- cache.jdbc.node.column=node
- cache.jdbc.node.type=OBJECT
- cache.jdbc.parent.column=parent
- cache.jdbc.datasource=jdbcexo_portal
- </properties>
- </loader>
- </loaders>
--->
-</jbosscache>
\ No newline at end of file
Deleted: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -1,44 +0,0 @@
-<!--
- ~ Copyright (C) 2009 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.
- -->
-<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
-
- <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
-
-<!--
- <loaders passivation="false" shared="true">
- <preload>
- <node fqn="/" />
- </preload>
- <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
- <properties>
- cache.jdbc.table.name=jcr_lock_wsrp_system
- cache.jdbc.table.create=true
- cache.jdbc.table.drop=false
- cache.jdbc.table.primarykey=exojcr_pk
- cache.jdbc.fqn.column=fqn
- cache.jdbc.fqn.type=VARCHAR(512)
- cache.jdbc.node.column=node
- cache.jdbc.node.type=OBJECT
- cache.jdbc.parent.column=parent
- cache.jdbc.datasource=jdbcexo_portal
- </properties>
- </loader>
- </loaders>
--->
-</jbosscache>
\ No newline at end of file
Copied: portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lock-config-portal-test.xml (from rev 1431, portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml)
===================================================================
--- portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lock-config-portal-test.xml (rev 0)
+++ portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lock-config-portal-test.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -0,0 +1,43 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_portal_test
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo
+ </properties>
+ </loader>
+ </loaders>
+</jbosscache>
\ No newline at end of file
Copied: portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lock-config-system.xml (from rev 1431, portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml)
===================================================================
--- portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lock-config-system.xml (rev 0)
+++ portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lock-config-system.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -0,0 +1,42 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_system
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo
+ </properties>
+ </loader>
+ </loaders>
+</jbosscache>
\ No newline at end of file
Deleted: portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml
===================================================================
--- portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -1,43 +0,0 @@
-<!--
- ~ Copyright (C) 2009 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.
- -->
-
-<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
-
- <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
-
- <loaders passivation="false" shared="true">
- <preload>
- <node fqn="/" />
- </preload>
- <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
- <properties>
- cache.jdbc.table.name=jcr_lock_portal_test
- cache.jdbc.table.create=true
- cache.jdbc.table.drop=false
- cache.jdbc.table.primarykey=exojcr_pk
- cache.jdbc.fqn.column=fqn
- cache.jdbc.fqn.type=VARCHAR(512)
- cache.jdbc.node.column=node
- cache.jdbc.node.type=OBJECT
- cache.jdbc.parent.column=parent
- cache.jdbc.datasource=jdbcexo
- </properties>
- </loader>
- </loaders>
-</jbosscache>
\ No newline at end of file
Deleted: portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml
===================================================================
--- portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -1,42 +0,0 @@
-<!--
- ~ Copyright (C) 2009 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.
- -->
-<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
-
- <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
-
- <loaders passivation="false" shared="true">
- <preload>
- <node fqn="/" />
- </preload>
- <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
- <properties>
- cache.jdbc.table.name=jcr_lock_system
- cache.jdbc.table.create=true
- cache.jdbc.table.drop=false
- cache.jdbc.table.primarykey=exojcr_pk
- cache.jdbc.fqn.column=fqn
- cache.jdbc.fqn.type=VARCHAR(512)
- cache.jdbc.node.column=node
- cache.jdbc.node.type=OBJECT
- cache.jdbc.parent.column=parent
- cache.jdbc.datasource=jdbcexo
- </properties>
- </loader>
- </loaders>
-</jbosscache>
\ No newline at end of file
Modified: portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-repository-configuration.xml
===================================================================
--- portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-repository-configuration.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-repository-configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -66,7 +66,7 @@
<lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
<properties>
<property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml" />
+ <property name="jbosscache-configuration" value="conf/exo.portal.component.test.jcr-jbosscache-lock-config-system.xml" />
</properties>
</lock-manager>
</workspace>
@@ -112,7 +112,7 @@
<lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
<properties>
<property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml" />
+ <property name="jbosscache-configuration" value="conf/exo.portal.component.test.jcr-jbosscache-lock-config-portal-test.xml" />
</properties>
</lock-manager>
</workspace>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.tmpl.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.tmpl.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.tmpl.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -31,7 +31,7 @@
<value-param>
<name>conf-path</name>
<description>JCR configuration file</description>
- <value>war:/conf/jcr/repository-configuration.xml</value>
+ <value>war:/conf/jcr/local/repository-configuration.xml</value>
</value-param>
<properties-param>
<name>working-conf</name>
@@ -99,7 +99,7 @@
<property name="app" value="http://www.gatein.org/jcr/application-registry/1.0/"/>
<property name="lgn" value="http://www.gatein.org/jcr/autologin/1.0/"/>
<property name="wsrp" value="http://www.gatein.org/jcr/wsrp/1.0/"/>
- </properties-param>
+ </properties-param>
</init-params>
</component-plugin>
<component-plugin>
@@ -114,11 +114,11 @@
<value>jar:/conf/organization-nodetypes.xml</value>
<value>jar:/conf/mop-nodetypes.xml</value>
<value>jar:/conf/application-nodetypes.xml</value>
- <value>jar:/conf/content-nodetypes.xml</value>
- <value>jar:/conf/autologin-nodetypes.xml</value>
- <value>war:/conf/wsrp/consumers-configuration-nodetypes.xml</value>
- <value>war:/conf/wsrp/producer-configuration-nodetypes.xml</value>
- <value>war:/conf/wsrp/producer-registrations-nodetypes.xml</value>
+ <value>jar:/conf/content-nodetypes.xml</value>
+ <value>jar:/conf/autologin-nodetypes.xml</value>
+ <value>war:/conf/wsrp/consumers-configuration-nodetypes.xml</value>
+ <value>war:/conf/wsrp/producer-configuration-nodetypes.xml</value>
+ <value>war:/conf/wsrp/producer-registrations-nodetypes.xml</value>
</values-param>
</init-params>
</component-plugin>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/jcr-configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -31,7 +31,7 @@
<value-param>
<name>conf-path</name>
<description>JCR configuration file</description>
- <value>war:/conf/jcr/repository-configuration.xml</value>
+ <value>war:/conf/jcr/local/repository-configuration.xml</value>
</value-param>
<properties-param>
<name>working-conf</name>
@@ -98,8 +98,8 @@
<property name="mop" value="http://www.gatein.org/jcr/mop/1.0/"/>
<property name="app" value="http://www.gatein.org/jcr/application-registry/1.0/"/>
<property name="lgn" value="http://www.gatein.org/jcr/autologin/1.0/"/>
- <property name="wsrp" value="http://www.gatein.org/jcr/wsrp/1.0/"/>
- </properties-param>
+ <property name="wsrp" value="http://www.gatein.org/jcr/wsrp/1.0/"/>
+ </properties-param>
</init-params>
</component-plugin>
<component-plugin>
@@ -114,11 +114,11 @@
<value>jar:/conf/organization-nodetypes.xml</value>
<value>jar:/conf/mop-nodetypes.xml</value>
<value>jar:/conf/application-nodetypes.xml</value>
- <value>jar:/conf/content-nodetypes.xml</value>
- <value>jar:/conf/autologin-nodetypes.xml</value>
- <value>war:/conf/wsrp/consumers-configuration-nodetypes.xml</value>
- <value>war:/conf/wsrp/producer-configuration-nodetypes.xml</value>
- <value>war:/conf/wsrp/producer-registrations-nodetypes.xml</value>
+ <value>jar:/conf/content-nodetypes.xml</value>
+ <value>jar:/conf/autologin-nodetypes.xml</value>
+ <value>war:/conf/wsrp/consumers-configuration-nodetypes.xml</value>
+ <value>war:/conf/wsrp/producer-configuration-nodetypes.xml</value>
+ <value>war:/conf/wsrp/producer-registrations-nodetypes.xml</value>
</values-param>
</init-params>
</component-plugin>
Copied: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.tmpl.xml (from rev 1430, portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.tmpl.xml)
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.tmpl.xml (rev 0)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.tmpl.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -0,0 +1,218 @@
+<!--
+
+ Copyright (C) 2009 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.
+
+-->
+
+<repository-service default-repository="repository">
+ <repositories>
+ <repository name="repository" system-workspace="system" default-workspace="portal-system">
+ <security-domain>gatein-domain</security-domain>
+ <access-control>optional</access-control>
+ <authentication-policy>org.exoplatform.services.jcr.impl.core.access.JAASAuthenticator</authentication-policy>
+
+ <!-- System -->
+ <workspaces>
+ <workspace name="system">
+ <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
+ <properties>
+ <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="dialect" value="${dialect}"/>
+ <property name="multi-db" value="false"/>
+ <property name="update-storage" value="true"/>
+ <property name="max-buffer-size" value="204800"/>
+ <property name="swap-directory" value="${gatein.jcr.data.dir}/system${container.name.suffix}"/>
+ </properties>
+ <value-storages>
+ <value-storage id="system" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
+ <properties>
+ <property name="path" value="${gatein.jcr.storage.data.dir}/system${container.name.suffix}"/>
+ </properties>
+ <filters>
+ <filter property-type="Binary"/>
+ </filters>
+ </value-storage>
+ </value-storages>
+ </container>
+ <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
+ <properties>
+ <property name="root-nodetype" value="nt:unstructured"/>
+ <property name="root-permissions" value="*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ </properties>
+ </initializer>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
+ <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
+ <properties>
+ <property name="index-dir" value="${gatein.jcr.index.data.dir}/system${container.name.suffix}"/>
+ </properties>
+ </query-handler>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lock-config-system.xml" />
+ </properties>
+ </lock-manager>
+ </workspace>
+
+ <!-- Portal system data -->
+ <workspace name="portal-system">
+ <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
+ <properties>
+ <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="dialect" value="${dialect}"/>
+ <property name="multi-db" value="false"/>
+ <property name="update-storage" value="true"/>
+ <property name="max-buffer-size" value="204800"/>
+ <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/portal-system${container.name.suffix}"/>
+ </properties>
+ <value-storages>
+ <value-storage id="portal-system" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
+ <properties>
+ <property name="path" value="${gatein.jcr.storage.data.dir}/portal-system${container.name.suffix}"/>
+ </properties>
+ <filters>
+ <filter property-type="Binary"/>
+ </filters>
+ </value-storage>
+ </value-storages>
+ </container>
+ <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
+ <properties>
+ <property name="root-nodetype" value="nt:unstructured"/>
+ <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ </properties>
+ </initializer>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
+ <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
+ <properties>
+ <property name="index-dir" value="${gatein.jcr.index.data.dir}/portal-system${container.name.suffix}"/>
+ </properties>
+ </query-handler>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lock-config-portal-system.xml" />
+ </properties>
+ </lock-manager>
+ </workspace>
+
+ <!-- Portal work data -->
+ <workspace name="portal-work">
+ <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
+ <properties>
+ <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="dialect" value="${dialect}"/>
+ <property name="multi-db" value="false"/>
+ <property name="update-storage" value="true"/>
+ <property name="max-buffer-size" value="204800"/>
+ <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/portal-work${container.name.suffix}"/>
+ </properties>
+ <value-storages>
+ <value-storage id="portal-work" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
+ <properties>
+ <property name="path" value="${gatein.jcr.storage.data.dir}/portal-work${container.name.suffix}"/>
+ </properties>
+ <filters>
+ <filter property-type="Binary"/>
+ </filters>
+ </value-storage>
+ </value-storages>
+ </container>
+ <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
+ <properties>
+ <property name="root-nodetype" value="nt:unstructured"/>
+ <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ </properties>
+ </initializer>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
+ <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
+ <properties>
+ <property name="index-dir" value="${gatein.jcr.index.data.dir}/portal-work${container.name.suffix}"/>
+ </properties>
+ </query-handler>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lock-config-portal-work.xml" />
+ </properties>
+ </lock-manager>
+ </workspace>
+
+ <!-- Workspace for WSRP -->
+ <workspace name="wsrp-system">
+ <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
+ <properties>
+ <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="dialect" value="${dialect}"/>
+ <property name="multi-db" value="false"/>
+ <property name="update-storage" value="true"/>
+ <property name="max-buffer-size" value="204800"/>
+ <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/wsrp${container.name.suffix}"/>
+ </properties>
+ <value-storages>
+ <value-storage id="gadgets"
+ class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
+ <properties>
+ <property name="path" value="${gatein.jcr.storage.data.dir}/wsrp${container.name.suffix}"/>
+ </properties>
+ <filters>
+ <filter property-type="Binary"/>
+ </filters>
+ </value-storage>
+ </value-storages>
+ </container>
+ <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
+ <properties>
+ <property name="root-nodetype" value="nt:unstructured"/>
+ <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ </properties>
+ </initializer>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
+ <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
+ <properties>
+ <property name="index-dir" value="${gatein.jcr.index.data.dir}/wsrp${container.name.suffix}"/>
+ </properties>
+ </query-handler>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lock-config-wsrp-system.xml" />
+ </properties>
+ </lock-manager>
+ </workspace>
+
+ </workspaces>
+ </repository>
+ </repositories>
+</repository-service>
Copied: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.xml (from rev 1430, portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.xml)
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.xml (rev 0)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/local/repository-configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -0,0 +1,218 @@
+<!--
+
+ Copyright (C) 2009 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.
+
+-->
+
+<repository-service default-repository="repository">
+ <repositories>
+ <repository name="repository" system-workspace="system" default-workspace="portal-system">
+ <security-domain>gatein-domain</security-domain>
+ <access-control>optional</access-control>
+ <authentication-policy>org.exoplatform.services.jcr.impl.core.access.JAASAuthenticator</authentication-policy>
+
+ <!-- System -->
+ <workspaces>
+ <workspace name="system">
+ <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
+ <properties>
+ <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="dialect" value="hsqldb"/>
+ <property name="multi-db" value="false"/>
+ <property name="update-storage" value="true"/>
+ <property name="max-buffer-size" value="204800"/>
+ <property name="swap-directory" value="${gatein.jcr.data.dir}/system${container.name.suffix}"/>
+ </properties>
+ <value-storages>
+ <value-storage id="system" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
+ <properties>
+ <property name="path" value="${gatein.jcr.storage.data.dir}/system${container.name.suffix}"/>
+ </properties>
+ <filters>
+ <filter property-type="Binary"/>
+ </filters>
+ </value-storage>
+ </value-storages>
+ </container>
+ <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
+ <properties>
+ <property name="root-nodetype" value="nt:unstructured"/>
+ <property name="root-permissions" value="*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ </properties>
+ </initializer>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
+ <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
+ <properties>
+ <property name="index-dir" value="${gatein.jcr.index.data.dir}/system${container.name.suffix}"/>
+ </properties>
+ </query-handler>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lock-config-system.xml" />
+ </properties>
+ </lock-manager>
+ </workspace>
+
+ <!-- Portal system data -->
+ <workspace name="portal-system">
+ <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
+ <properties>
+ <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="dialect" value="hsqldb"/>
+ <property name="multi-db" value="false"/>
+ <property name="update-storage" value="true"/>
+ <property name="max-buffer-size" value="204800"/>
+ <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/portal-system${container.name.suffix}"/>
+ </properties>
+ <value-storages>
+ <value-storage id="portal-system" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
+ <properties>
+ <property name="path" value="${gatein.jcr.storage.data.dir}/portal-system${container.name.suffix}"/>
+ </properties>
+ <filters>
+ <filter property-type="Binary"/>
+ </filters>
+ </value-storage>
+ </value-storages>
+ </container>
+ <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
+ <properties>
+ <property name="root-nodetype" value="nt:unstructured"/>
+ <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ </properties>
+ </initializer>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
+ <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
+ <properties>
+ <property name="index-dir" value="${gatein.jcr.index.data.dir}/portal-system${container.name.suffix}"/>
+ </properties>
+ </query-handler>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lock-config-portal-system.xml" />
+ </properties>
+ </lock-manager>
+ </workspace>
+
+ <!-- Portal work data -->
+ <workspace name="portal-work">
+ <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
+ <properties>
+ <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="dialect" value="hsqldb"/>
+ <property name="multi-db" value="false"/>
+ <property name="update-storage" value="true"/>
+ <property name="max-buffer-size" value="204800"/>
+ <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/portal-work${container.name.suffix}"/>
+ </properties>
+ <value-storages>
+ <value-storage id="portal-work" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
+ <properties>
+ <property name="path" value="${gatein.jcr.storage.data.dir}/portal-work${container.name.suffix}"/>
+ </properties>
+ <filters>
+ <filter property-type="Binary"/>
+ </filters>
+ </value-storage>
+ </value-storages>
+ </container>
+ <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
+ <properties>
+ <property name="root-nodetype" value="nt:unstructured"/>
+ <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ </properties>
+ </initializer>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
+ <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
+ <properties>
+ <property name="index-dir" value="${gatein.jcr.index.data.dir}/portal-work${container.name.suffix}"/>
+ </properties>
+ </query-handler>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lock-config-portal-work.xml" />
+ </properties>
+ </lock-manager>
+ </workspace>
+
+ <!-- Workspace for WSRP -->
+ <workspace name="wsrp-system">
+ <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
+ <properties>
+ <property name="source-name" value="jdbcexo${container.name.suffix}"/>
+ <property name="dialect" value="hsqldb"/>
+ <property name="multi-db" value="false"/>
+ <property name="update-storage" value="true"/>
+ <property name="max-buffer-size" value="204800"/>
+ <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/wsrp${container.name.suffix}"/>
+ </properties>
+ <value-storages>
+ <value-storage id="gadgets"
+ class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
+ <properties>
+ <property name="path" value="${gatein.jcr.storage.data.dir}/wsrp${container.name.suffix}"/>
+ </properties>
+ <filters>
+ <filter property-type="Binary"/>
+ </filters>
+ </value-storage>
+ </value-storages>
+ </container>
+ <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
+ <properties>
+ <property name="root-nodetype" value="nt:unstructured"/>
+ <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ </properties>
+ </initializer>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
+ <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
+ <properties>
+ <property name="index-dir" value="${gatein.jcr.index.data.dir}/wsrp${container.name.suffix}"/>
+ </properties>
+ </query-handler>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lock-config-wsrp-system.xml" />
+ </properties>
+ </lock-manager>
+ </workspace>
+
+ </workspaces>
+ </repository>
+ </repositories>
+</repository-service>
Deleted: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.tmpl.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.tmpl.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.tmpl.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -1,218 +0,0 @@
-<!--
-
- Copyright (C) 2009 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.
-
--->
-
-<repository-service default-repository="repository">
- <repositories>
- <repository name="repository" system-workspace="system" default-workspace="portal-system">
- <security-domain>gatein-domain</security-domain>
- <access-control>optional</access-control>
- <authentication-policy>org.exoplatform.services.jcr.impl.core.access.JAASAuthenticator</authentication-policy>
-
- <!-- System -->
- <workspaces>
- <workspace name="system">
- <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
- <properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
- <property name="dialect" value="hsqldb"/>
- <property name="multi-db" value="false"/>
- <property name="update-storage" value="true"/>
- <property name="max-buffer-size" value="204800"/>
- <property name="swap-directory" value="${gatein.jcr.data.dir}/system${container.name.suffix}"/>
- </properties>
- <value-storages>
- <value-storage id="system" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/values/system${container.name.suffix}"/>
- </properties>
- <filters>
- <filter property-type="Binary"/>
- </filters>
- </value-storage>
- </value-storages>
- </container>
- <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
- <properties>
- <property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions" value="*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
- </properties>
- </initializer>
- <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
- <properties>
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
- </properties>
- </cache>
- <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
- <properties>
- <property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/system${container.name.suffix}"/>
- </properties>
- </query-handler>
- <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
- <properties>
- <property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-system.xml" />
- </properties>
- </lock-manager>
- </workspace>
-
- <!-- Portal system data -->
- <workspace name="portal-system">
- <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
- <properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
- <property name="dialect" value="hsqldb"/>
- <property name="multi-db" value="false"/>
- <property name="update-storage" value="true"/>
- <property name="max-buffer-size" value="204800"/>
- <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/portal-system${container.name.suffix}"/>
- </properties>
- <value-storages>
- <value-storage id="portal-system" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/values/portal-system${container.name.suffix}"/>
- </properties>
- <filters>
- <filter property-type="Binary"/>
- </filters>
- </value-storage>
- </value-storages>
- </container>
- <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
- <properties>
- <property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
- </properties>
- </initializer>
- <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
- <properties>
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
- </properties>
- </cache>
- <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
- <properties>
- <property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/portal-system${container.name.suffix}"/>
- </properties>
- </query-handler>
- <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
- <properties>
- <property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-portal-system.xml" />
- </properties>
- </lock-manager>
- </workspace>
-
- <!-- Portal work data -->
- <workspace name="portal-work">
- <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
- <properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
- <property name="dialect" value="hsqldb"/>
- <property name="multi-db" value="false"/>
- <property name="update-storage" value="true"/>
- <property name="max-buffer-size" value="204800"/>
- <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/portal-work${container.name.suffix}"/>
- </properties>
- <value-storages>
- <value-storage id="portal-work" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/values/portal-work${container.name.suffix}"/>
- </properties>
- <filters>
- <filter property-type="Binary"/>
- </filters>
- </value-storage>
- </value-storages>
- </container>
- <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
- <properties>
- <property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
- </properties>
- </initializer>
- <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
- <properties>
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
- </properties>
- </cache>
- <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
- <properties>
- <property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/portal-work${container.name.suffix}"/>
- </properties>
- </query-handler>
- <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
- <properties>
- <property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-portal-work.xml" />
- </properties>
- </lock-manager>
- </workspace>
-
- <!-- Workspace for WSRP -->
- <workspace name="wsrp-system">
- <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
- <properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
- <property name="dialect" value="hsqldb"/>
- <property name="multi-db" value="false"/>
- <property name="update-storage" value="true"/>
- <property name="max-buffer-size" value="204800"/>
- <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/wsrp${container.name.suffix}"/>
- </properties>
- <value-storages>
- <value-storage id="gadgets"
- class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/values/wsrp${container.name.suffix}"/>
- </properties>
- <filters>
- <filter property-type="Binary"/>
- </filters>
- </value-storage>
- </value-storages>
- </container>
- <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
- <properties>
- <property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
- </properties>
- </initializer>
- <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
- <properties>
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
- </properties>
- </cache>
- <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
- <properties>
- <property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/wsrp${container.name.suffix}"/>
- </properties>
- </query-handler>
- <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
- <properties>
- <property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml" />
- </properties>
- </lock-manager>
- </workspace>
-
- </workspaces>
- </repository>
- </repositories>
-</repository-service>
Deleted: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.xml 2010-01-23 18:06:46 UTC (rev 1431)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.xml 2010-01-23 18:44:38 UTC (rev 1432)
@@ -1,218 +0,0 @@
-<!--
-
- Copyright (C) 2009 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.
-
--->
-
-<repository-service default-repository="repository">
- <repositories>
- <repository name="repository" system-workspace="system" default-workspace="portal-system">
- <security-domain>gatein-domain</security-domain>
- <access-control>optional</access-control>
- <authentication-policy>org.exoplatform.services.jcr.impl.core.access.JAASAuthenticator</authentication-policy>
-
- <!-- System -->
- <workspaces>
- <workspace name="system">
- <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
- <properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
- <property name="dialect" value="hsqldb"/>
- <property name="multi-db" value="false"/>
- <property name="update-storage" value="true"/>
- <property name="max-buffer-size" value="204800"/>
- <property name="swap-directory" value="${gatein.jcr.data.dir}/system${container.name.suffix}"/>
- </properties>
- <value-storages>
- <value-storage id="system" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/values/system${container.name.suffix}"/>
- </properties>
- <filters>
- <filter property-type="Binary"/>
- </filters>
- </value-storage>
- </value-storages>
- </container>
- <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
- <properties>
- <property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions" value="*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
- </properties>
- </initializer>
- <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
- <properties>
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
- </properties>
- </cache>
- <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
- <properties>
- <property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/system${container.name.suffix}"/>
- </properties>
- </query-handler>
- <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
- <properties>
- <property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-system.xml" />
- </properties>
- </lock-manager>
- </workspace>
-
- <!-- Portal system data -->
- <workspace name="portal-system">
- <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
- <properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
- <property name="dialect" value="hsqldb"/>
- <property name="multi-db" value="false"/>
- <property name="update-storage" value="true"/>
- <property name="max-buffer-size" value="204800"/>
- <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/portal-system${container.name.suffix}"/>
- </properties>
- <value-storages>
- <value-storage id="portal-system" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/values/portal-system${container.name.suffix}"/>
- </properties>
- <filters>
- <filter property-type="Binary"/>
- </filters>
- </value-storage>
- </value-storages>
- </container>
- <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
- <properties>
- <property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
- </properties>
- </initializer>
- <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
- <properties>
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
- </properties>
- </cache>
- <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
- <properties>
- <property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/portal-system${container.name.suffix}"/>
- </properties>
- </query-handler>
- <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
- <properties>
- <property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-portal-system.xml" />
- </properties>
- </lock-manager>
- </workspace>
-
- <!-- Portal work data -->
- <workspace name="portal-work">
- <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
- <properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
- <property name="dialect" value="hsqldb"/>
- <property name="multi-db" value="false"/>
- <property name="update-storage" value="true"/>
- <property name="max-buffer-size" value="204800"/>
- <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/portal-work${container.name.suffix}"/>
- </properties>
- <value-storages>
- <value-storage id="portal-work" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/values/portal-work${container.name.suffix}"/>
- </properties>
- <filters>
- <filter property-type="Binary"/>
- </filters>
- </value-storage>
- </value-storages>
- </container>
- <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
- <properties>
- <property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
- </properties>
- </initializer>
- <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
- <properties>
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
- </properties>
- </cache>
- <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
- <properties>
- <property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/portal-work${container.name.suffix}"/>
- </properties>
- </query-handler>
- <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
- <properties>
- <property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-portal-work.xml" />
- </properties>
- </lock-manager>
- </workspace>
-
- <!-- Workspace for WSRP -->
- <workspace name="wsrp-system">
- <container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
- <properties>
- <property name="source-name" value="jdbcexo${container.name.suffix}"/>
- <property name="dialect" value="hsqldb"/>
- <property name="multi-db" value="false"/>
- <property name="update-storage" value="true"/>
- <property name="max-buffer-size" value="204800"/>
- <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/wsrp${container.name.suffix}"/>
- </properties>
- <value-storages>
- <value-storage id="gadgets"
- class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/values/wsrp${container.name.suffix}"/>
- </properties>
- <filters>
- <filter property-type="Binary"/>
- </filters>
- </value-storage>
- </value-storages>
- </container>
- <initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
- <properties>
- <property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
- </properties>
- </initializer>
- <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
- <properties>
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
- </properties>
- </cache>
- <query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
- <properties>
- <property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/wsrp${container.name.suffix}"/>
- </properties>
- </query-handler>
- <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
- <properties>
- <property name="time-out" value="15m" />
- <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml" />
- </properties>
- </lock-manager>
- </workspace>
-
- </workspaces>
- </repository>
- </repositories>
-</repository-service>
14 years, 11 months
gatein SVN: r1431 - portal/trunk/component/test/jcr/src/main/resources/conf.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-01-23 13:06:46 -0500 (Sat, 23 Jan 2010)
New Revision: 1431
Added:
portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-config.xml
portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml
portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml
Log:
forgot to add those files
Added: portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-config.xml
===================================================================
--- portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-config.xml (rev 0)
+++ portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-config.xml 2010-01-23 18:06:46 UTC (rev 1431)
@@ -0,0 +1,37 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.1">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000"/>
+
+ <!-- Configure the TransactionManager -->
+ <transaction transactionManagerLookupClass="org.jboss.cache.transaction.JBossStandaloneJTAManagerLookup" />
+
+ <!-- Enable batching -->
+ <invocationBatching enabled="true" />
+
+ <!-- Eviction configuration -->
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.FIFOAlgorithm" actionPolicyClass="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.ParentNodeEvictionActionPolicy" eventQueueSize="1000000">
+ <property name="maxNodes" value="5000" />
+ <property name="minTimeToLive" value="60000" />
+ </default>
+ </eviction>
+
+</jbosscache>
\ No newline at end of file
Added: portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml
===================================================================
--- portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml (rev 0)
+++ portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml 2010-01-23 18:06:46 UTC (rev 1431)
@@ -0,0 +1,43 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_portal_test
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo
+ </properties>
+ </loader>
+ </loaders>
+</jbosscache>
\ No newline at end of file
Added: portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml
===================================================================
--- portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml (rev 0)
+++ portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml 2010-01-23 18:06:46 UTC (rev 1431)
@@ -0,0 +1,42 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_system
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo
+ </properties>
+ </loader>
+ </loaders>
+</jbosscache>
\ No newline at end of file
14 years, 11 months
gatein SVN: r1430 - in portal/trunk: component/common/src/main/java/conf and 8 other directories.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-01-23 11:28:10 -0500 (Sat, 23 Jan 2010)
New Revision: 1430
Added:
portal/trunk/component/common/src/main/java/conf/jcr/
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/cluster/
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/config.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-system.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-work.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-system.xml
portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml
Modified:
portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/UserDAOImpl.java
portal/trunk/component/test/core/src/main/resources/conf/portal-configuration.xml
portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-repository-configuration.xml
portal/trunk/pom.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/common/common-configuration.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.tmpl.xml
portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.xml
Log:
GTNPORTAL-550 : JCR 1.12.0-Beta06 integration
Added: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/config.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/config.xml (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/config.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -0,0 +1,37 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.1">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000"/>
+
+ <!-- Configure the TransactionManager -->
+ <transaction transactionManagerLookupClass="org.jboss.cache.transaction.JBossStandaloneJTAManagerLookup" />
+
+ <!-- Enable batching -->
+ <invocationBatching enabled="true" />
+
+ <!-- Eviction configuration -->
+ <eviction wakeUpInterval="5000">
+ <default algorithmClass="org.jboss.cache.eviction.FIFOAlgorithm" actionPolicyClass="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.ParentNodeEvictionActionPolicy" eventQueueSize="1000000">
+ <property name="maxNodes" value="5000" />
+ <property name="minTimeToLive" value="60000" />
+ </default>
+ </eviction>
+
+</jbosscache>
\ No newline at end of file
Added: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-system.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-system.xml (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-system.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -0,0 +1,44 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+<!--
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_portal_system
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo_portal
+ </properties>
+ </loader>
+ </loaders>
+-->
+</jbosscache>
\ No newline at end of file
Added: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-work.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-work.xml (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-portal-work.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -0,0 +1,44 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+<!--
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_portal_work
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo_portal
+ </properties>
+ </loader>
+ </loaders>
+-->
+</jbosscache>
\ No newline at end of file
Added: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-system.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-system.xml (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-system.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -0,0 +1,44 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+<!--
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_system
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo_portal
+ </properties>
+ </loader>
+ </loaders>
+-->
+</jbosscache>
\ No newline at end of file
Added: portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml
===================================================================
--- portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml (rev 0)
+++ portal/trunk/component/common/src/main/java/conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -0,0 +1,44 @@
+<!--
+ ~ Copyright (C) 2009 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.
+ -->
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
+
+ <locking useLockStriping="false" concurrencyLevel="50000" lockParentForChildInsertRemove="false" lockAcquisitionTimeout="20000" />
+
+<!--
+ <loaders passivation="false" shared="true">
+ <preload>
+ <node fqn="/" />
+ </preload>
+ <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="false" fetchPersistentState="true" ignoreModifications="false" purgeOnStartup="false">
+ <properties>
+ cache.jdbc.table.name=jcr_lock_wsrp_system
+ cache.jdbc.table.create=true
+ cache.jdbc.table.drop=false
+ cache.jdbc.table.primarykey=exojcr_pk
+ cache.jdbc.fqn.column=fqn
+ cache.jdbc.fqn.type=VARCHAR(512)
+ cache.jdbc.node.column=node
+ cache.jdbc.node.type=OBJECT
+ cache.jdbc.parent.column=parent
+ cache.jdbc.datasource=jdbcexo_portal
+ </properties>
+ </loader>
+ </loaders>
+-->
+</jbosscache>
\ No newline at end of file
Modified: portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/UserDAOImpl.java
===================================================================
--- portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/UserDAOImpl.java 2010-01-23 10:28:09 UTC (rev 1429)
+++ portal/trunk/component/identity/src/main/java/org/exoplatform/services/organization/idm/UserDAOImpl.java 2010-01-23 16:28:10 UTC (rev 1430)
@@ -20,6 +20,7 @@
package org.exoplatform.services.organization.idm;
import org.exoplatform.commons.utils.LazyPageList;
+import org.exoplatform.commons.utils.ListAccess;
import org.exoplatform.services.cache.CacheService;
import org.exoplatform.services.cache.ExoCache;
import org.exoplatform.services.organization.Query;
@@ -208,7 +209,12 @@
return new LazyPageList(new IDMUserListAccess(this, service_, qb, pageSize, true), pageSize);
}
- //
+ public ListAccess<User> findAllUsers() throws Exception
+ {
+ throw new UnsupportedOperationException();
+ }
+
+//
public boolean authenticate(String username, String password) throws Exception
{
User user = findUserByName(username);
@@ -269,6 +275,12 @@
}
//
+
+ public ListAccess<User> findUsersByQuery(Query query) throws Exception
+ {
+ throw new UnsupportedOperationException();
+ }
+
public LazyPageList findUsersByGroup(String groupId) throws Exception
{
UserQueryBuilder qb = service_.getIdentitySession().createUserQueryBuilder();
@@ -280,8 +292,13 @@
return new LazyPageList(new IDMUserListAccess(this, service_, qb, 20, false), 20);
}
- //
+ public ListAccess<User> findUsersByGroupId(String groupId) throws Exception
+ {
+ throw new UnsupportedOperationException();
+ }
+//
+
private void preSave(User user, boolean isNew) throws Exception
{
for (UserEventListener listener : listeners_)
Modified: portal/trunk/component/test/core/src/main/resources/conf/portal-configuration.xml
===================================================================
--- portal/trunk/component/test/core/src/main/resources/conf/portal-configuration.xml 2010-01-23 10:28:09 UTC (rev 1429)
+++ portal/trunk/component/test/core/src/main/resources/conf/portal-configuration.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -31,6 +31,7 @@
<properties-param>
<name>default-properties</name>
<description>Default initial context properties</description>
+ <property name="java.naming.factory.initial" value="org.exoplatform.services.naming.SimpleContextFactory" />
</properties-param>
</init-params>
</component>
Modified: portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-repository-configuration.xml
===================================================================
--- portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-repository-configuration.xml 2010-01-23 10:28:09 UTC (rev 1429)
+++ portal/trunk/component/test/jcr/src/main/resources/conf/exo.portal.component.test.jcr-repository-configuration.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -53,10 +53,9 @@
<property name="root-permissions" value="*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
<properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
+ <property name="jbosscache-configuration" value="conf/exo.portal.component.test.jcr-jbosscache-config.xml" />
</properties>
</cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
@@ -64,14 +63,12 @@
<property name="index-dir" value="${gatein.tmp.dir}/jcr/jcrlucenedb/system"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out><!-- 15min -->
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.tmp.dir}/jcr/lock/system"/>
- </properties>
- </persister>
- </lock-manager>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/exo.portal.component.test.jcr-jbosscache-lockconfig-system.xml" />
+ </properties>
+ </lock-manager>
</workspace>
<!-- Portal system data -->
@@ -102,10 +99,9 @@
<property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
<properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
+ <property name="jbosscache-configuration" value="conf/exo.portal.component.test.jcr-jbosscache-config.xml" />
</properties>
</cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
@@ -113,13 +109,11 @@
<property name="index-dir" value="${gatein.tmp.dir}/jcr/jcrlucenedb/portal-test"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out><!-- 15min -->
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.tmp.dir}/jcr/lock/portal-test"/>
- </properties>
- </persister>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/exo.portal.component.test.jcr-jbosscache-lockconfig-portal-test.xml" />
+ </properties>
</lock-manager>
</workspace>
Modified: portal/trunk/pom.xml
===================================================================
--- portal/trunk/pom.xml 2010-01-23 10:28:09 UTC (rev 1429)
+++ portal/trunk/pom.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -38,10 +38,10 @@
<name>GateIn - Portal</name>
<properties>
- <org.exoplatform.kernel.version>2.2.0-Beta05</org.exoplatform.kernel.version>
- <org.exoplatform.core.version>2.3.0-Beta05</org.exoplatform.core.version>
- <org.exoplatform.ws.version>2.1.0-Beta05</org.exoplatform.ws.version>
- <org.exoplatform.jcr.version>1.12.0-Beta05</org.exoplatform.jcr.version>
+ <org.exoplatform.kernel.version>2.2.0-Beta06</org.exoplatform.kernel.version>
+ <org.exoplatform.core.version>2.3.0-Beta06</org.exoplatform.core.version>
+ <org.exoplatform.ws.version>2.1.0-Beta06</org.exoplatform.ws.version>
+ <org.exoplatform.jcr.version>1.12.0-Beta06</org.exoplatform.jcr.version>
<org.jibx.version>1.2.1</org.jibx.version>
<org.shindig.version>SNAPSHOT-r790473</org.shindig.version>
<org.gatein.common.version>2.0.0-CR03</org.gatein.common.version>
@@ -49,12 +49,12 @@
<org.gatein.pc.version>2.1.0-CR02</org.gatein.pc.version>
<org.picketlink.idm>1.1.0.Beta2</org.picketlink.idm>
<org.gatein.wsrp.version>1.0.0-Beta06</org.gatein.wsrp.version>
- <org.gatein.mop.version>1.0.0-Beta14</org.gatein.mop.version>
+ <org.gatein.mop.version>1.0.0-Beta15</org.gatein.mop.version>
<org.slf4j.version>1.5.6</org.slf4j.version>
<rhino.version>1.6R5</rhino.version>
<org.codehaus.groovy.version>1.6.5</org.codehaus.groovy.version>
<javax.servlet.version>2.5</javax.servlet.version>
- <version.chromattic>1.0.0-beta14</version.chromattic>
+ <version.chromattic>1.0.0-beta15</version.chromattic>
<version.reflect>1.0.0-beta5</version.reflect>
<!-- ************** -->
@@ -574,6 +574,18 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <systemProperties>
+ <property>
+ <name>com.arjuna.ats.arjuna.objectstore.objectStoreDir</name>
+ <value>${project.build.directory}</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </plugin>
</plugins>
</build>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/common/common-configuration.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/common/common-configuration.xml 2010-01-23 10:28:09 UTC (rev 1429)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/common/common-configuration.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -31,9 +31,6 @@
<properties-param>
<name>default-properties</name>
<description>Default initial context properties</description>
- <!--
- <property name="java.naming.factory.initial" value="org.exoplatform.services.naming.SimpleContextFactory"/>
- -->
</properties-param>
</init-params>
</component>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.tmpl.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.tmpl.xml 2010-01-23 10:28:09 UTC (rev 1429)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.tmpl.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -36,7 +36,7 @@
<property name="multi-db" value="false"/>
<property name="update-storage" value="true"/>
<property name="max-buffer-size" value="204800"/>
- <property name="swap-directory" value="${gatein.jcr.data.dir}/swap/system${container.name.suffix}"/>
+ <property name="swap-directory" value="${gatein.jcr.data.dir}/system${container.name.suffix}"/>
</properties>
<value-storages>
<value-storage id="system" class="org.exoplatform.services.jcr.impl.storage.value.fs.TreeFileValueStorage">
@@ -55,10 +55,9 @@
<property name="root-permissions" value="*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
<properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
</properties>
</cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
@@ -66,14 +65,12 @@
<property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/system${container.name.suffix}"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out><!-- 15min -->
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/lock/system${container.name.suffix}"/>
- </properties>
- </persister>
- </lock-manager>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-system.xml" />
+ </properties>
+ </lock-manager>
</workspace>
<!-- Portal system data -->
@@ -104,10 +101,9 @@
<property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
<properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
</properties>
</cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
@@ -115,13 +111,11 @@
<property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/portal-system${container.name.suffix}"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out><!-- 15min -->
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/lock/portal-system${container.name.suffix}"/>
- </properties>
- </persister>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-portal-system.xml" />
+ </properties>
</lock-manager>
</workspace>
@@ -153,26 +147,24 @@
<property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
- <properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
- </properties>
- </cache>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
<properties>
<property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/portal-work${container.name.suffix}"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out><!-- 15min -->
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/lock/portal-work${container.name.suffix}"/>
- </properties>
- </persister>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-portal-work.xml" />
+ </properties>
</lock-manager>
</workspace>
+
<!-- Workspace for WSRP -->
<workspace name="wsrp-system">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
@@ -199,14 +191,12 @@
<initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
<properties>
<property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions"
- value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
<properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
</properties>
</cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
@@ -214,15 +204,14 @@
<property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/wsrp${container.name.suffix}"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out>
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/lock/wsrp${container.name.suffix}"/>
- </properties>
- </persister>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml" />
+ </properties>
</lock-manager>
</workspace>
+
</workspaces>
</repository>
</repositories>
Modified: portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.xml
===================================================================
--- portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.xml 2010-01-23 10:28:09 UTC (rev 1429)
+++ portal/trunk/web/portal/src/main/webapp/WEB-INF/conf/jcr/repository-configuration.xml 2010-01-23 16:28:10 UTC (rev 1430)
@@ -55,10 +55,9 @@
<property name="root-permissions" value="*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
<properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
</properties>
</cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
@@ -66,14 +65,12 @@
<property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/system${container.name.suffix}"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out><!-- 15min -->
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/lock/system${container.name.suffix}"/>
- </properties>
- </persister>
- </lock-manager>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-system.xml" />
+ </properties>
+ </lock-manager>
</workspace>
<!-- Portal system data -->
@@ -104,10 +101,9 @@
<property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
<properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
</properties>
</cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
@@ -115,13 +111,11 @@
<property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/portal-system${container.name.suffix}"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out><!-- 15min -->
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/lock/portal-system${container.name.suffix}"/>
- </properties>
- </persister>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-portal-system.xml" />
+ </properties>
</lock-manager>
</workspace>
@@ -153,26 +147,24 @@
<property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
- <properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
- </properties>
- </cache>
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
+ <properties>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
+ </properties>
+ </cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
<properties>
<property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/portal-work${container.name.suffix}"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out><!-- 15min -->
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/lock/portal-work${container.name.suffix}"/>
- </properties>
- </persister>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-portal-work.xml" />
+ </properties>
</lock-manager>
</workspace>
+
<!-- Workspace for WSRP -->
<workspace name="wsrp-system">
<container class="org.exoplatform.services.jcr.impl.storage.jdbc.JDBCWorkspaceDataContainer">
@@ -199,14 +191,12 @@
<initializer class="org.exoplatform.services.jcr.impl.core.ScratchWorkspaceInitializer">
<properties>
<property name="root-nodetype" value="nt:unstructured"/>
- <property name="root-permissions"
- value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
+ <property name="root-permissions" value="any read;*:/platform/administrators read;*:/platform/administrators add_node;*:/platform/administrators set_property;*:/platform/administrators remove"/>
</properties>
</initializer>
- <cache enabled="true">
+ <cache enabled="true" class="org.exoplatform.services.jcr.impl.dataflow.persistent.jbosscache.JBossCacheWorkspaceStorageCache">
<properties>
- <property name="max-size" value="20000"/>
- <property name="live-time" value="30000"/>
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/config.xml" />
</properties>
</cache>
<query-handler class="org.exoplatform.services.jcr.impl.core.query.lucene.SearchIndex">
@@ -214,13 +204,11 @@
<property name="index-dir" value="${gatein.jcr.data.dir}/jcrlucenedb/wsrp${container.name.suffix}"/>
</properties>
</query-handler>
- <lock-manager>
- <time-out>15m</time-out>
- <persister class="org.exoplatform.services.jcr.impl.core.lock.FileSystemLockPersister">
- <properties>
- <property name="path" value="${gatein.jcr.data.dir}/lock/wsrp${container.name.suffix}"/>
- </properties>
- </persister>
+ <lock-manager class="org.exoplatform.services.jcr.impl.core.lock.jbosscache.CacheableLockManager">
+ <properties>
+ <property name="time-out" value="15m" />
+ <property name="jbosscache-configuration" value="conf/jcr/jbosscache/local/lockconfig-wsrp-system.xml" />
+ </properties>
</lock-manager>
</workspace>
14 years, 11 months
gatein SVN: r1429 - in components/mop/trunk: api and 2 other directories.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-01-23 05:28:09 -0500 (Sat, 23 Jan 2010)
New Revision: 1429
Modified:
components/mop/trunk/api/pom.xml
components/mop/trunk/core/pom.xml
components/mop/trunk/pom.xml
components/mop/trunk/spi/pom.xml
Log:
[maven-release-plugin] prepare for next development iteration
Modified: components/mop/trunk/api/pom.xml
===================================================================
--- components/mop/trunk/api/pom.xml 2010-01-23 10:27:56 UTC (rev 1428)
+++ components/mop/trunk/api/pom.xml 2010-01-23 10:28:09 UTC (rev 1429)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.gatein.mop</groupId>
<artifactId>mop-parent</artifactId>
- <version>1.0.0-Beta15</version>
+ <version>1.0.0-Beta16-SNAPSHOT</version>
</parent>
<!-- ****************** -->
Modified: components/mop/trunk/core/pom.xml
===================================================================
--- components/mop/trunk/core/pom.xml 2010-01-23 10:27:56 UTC (rev 1428)
+++ components/mop/trunk/core/pom.xml 2010-01-23 10:28:09 UTC (rev 1429)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.gatein.mop</groupId>
<artifactId>mop-parent</artifactId>
- <version>1.0.0-Beta15</version>
+ <version>1.0.0-Beta16-SNAPSHOT</version>
</parent>
<!-- ****************** -->
Modified: components/mop/trunk/pom.xml
===================================================================
--- components/mop/trunk/pom.xml 2010-01-23 10:27:56 UTC (rev 1428)
+++ components/mop/trunk/pom.xml 2010-01-23 10:28:09 UTC (rev 1429)
@@ -34,16 +34,16 @@
<groupId>org.gatein.mop</groupId>
<artifactId>mop-parent</artifactId>
- <version>1.0.0-Beta15</version>
+ <version>1.0.0-Beta16-SNAPSHOT</version>
<packaging>pom</packaging>
<name>GateIn - MOP</name>
<description>Model Object for Portal</description>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/mop/tags/1.0.0-B...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/mop/tags/1.0.0-Beta15</developerConnection>
- <url>http://fisheye.jboss.org/browse/gatein/components/mop/tags/1.0.0-Beta15</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/mop/trunk/</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/mop/trunk/</developerConnection>
+ <url>http://fisheye.jboss.org/browse/gatein/components/mop/trunk/</url>
</scm>
Modified: components/mop/trunk/spi/pom.xml
===================================================================
--- components/mop/trunk/spi/pom.xml 2010-01-23 10:27:56 UTC (rev 1428)
+++ components/mop/trunk/spi/pom.xml 2010-01-23 10:28:09 UTC (rev 1429)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.gatein.mop</groupId>
<artifactId>mop-parent</artifactId>
- <version>1.0.0-Beta15</version>
+ <version>1.0.0-Beta16-SNAPSHOT</version>
</parent>
<!-- ****************** -->
14 years, 11 months
gatein SVN: r1428 - components/mop/tags.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-01-23 05:27:56 -0500 (Sat, 23 Jan 2010)
New Revision: 1428
Added:
components/mop/tags/1.0.0-Beta15/
Log:
[maven-scm] copy for tag 1.0.0-Beta15
Copied: components/mop/tags/1.0.0-Beta15 (from rev 1427, components/mop/trunk)
14 years, 11 months
gatein SVN: r1427 - in components/mop/trunk: api and 2 other directories.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-01-23 05:27:37 -0500 (Sat, 23 Jan 2010)
New Revision: 1427
Modified:
components/mop/trunk/api/pom.xml
components/mop/trunk/core/pom.xml
components/mop/trunk/pom.xml
components/mop/trunk/spi/pom.xml
Log:
[maven-release-plugin] prepare release 1.0.0-Beta15
Modified: components/mop/trunk/api/pom.xml
===================================================================
--- components/mop/trunk/api/pom.xml 2010-01-23 10:19:11 UTC (rev 1426)
+++ components/mop/trunk/api/pom.xml 2010-01-23 10:27:37 UTC (rev 1427)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.gatein.mop</groupId>
<artifactId>mop-parent</artifactId>
- <version>1.0.0-Beta15-SNAPSHOT</version>
+ <version>1.0.0-Beta15</version>
</parent>
<!-- ****************** -->
Modified: components/mop/trunk/core/pom.xml
===================================================================
--- components/mop/trunk/core/pom.xml 2010-01-23 10:19:11 UTC (rev 1426)
+++ components/mop/trunk/core/pom.xml 2010-01-23 10:27:37 UTC (rev 1427)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.gatein.mop</groupId>
<artifactId>mop-parent</artifactId>
- <version>1.0.0-Beta15-SNAPSHOT</version>
+ <version>1.0.0-Beta15</version>
</parent>
<!-- ****************** -->
Modified: components/mop/trunk/pom.xml
===================================================================
--- components/mop/trunk/pom.xml 2010-01-23 10:19:11 UTC (rev 1426)
+++ components/mop/trunk/pom.xml 2010-01-23 10:27:37 UTC (rev 1427)
@@ -34,16 +34,16 @@
<groupId>org.gatein.mop</groupId>
<artifactId>mop-parent</artifactId>
- <version>1.0.0-Beta15-SNAPSHOT</version>
+ <version>1.0.0-Beta15</version>
<packaging>pom</packaging>
<name>GateIn - MOP</name>
<description>Model Object for Portal</description>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/mop/trunk/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/mop/trunk/</developerConnection>
- <url>http://fisheye.jboss.org/browse/gatein/components/mop/trunk/</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/mop/tags/1.0.0-B...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/mop/tags/1.0.0-Beta15</developerConnection>
+ <url>http://fisheye.jboss.org/browse/gatein/components/mop/tags/1.0.0-Beta15</url>
</scm>
Modified: components/mop/trunk/spi/pom.xml
===================================================================
--- components/mop/trunk/spi/pom.xml 2010-01-23 10:19:11 UTC (rev 1426)
+++ components/mop/trunk/spi/pom.xml 2010-01-23 10:27:37 UTC (rev 1427)
@@ -25,7 +25,7 @@
<parent>
<groupId>org.gatein.mop</groupId>
<artifactId>mop-parent</artifactId>
- <version>1.0.0-Beta15-SNAPSHOT</version>
+ <version>1.0.0-Beta15</version>
</parent>
<!-- ****************** -->
14 years, 11 months
gatein SVN: r1426 - components/mop/trunk/core.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-01-23 05:19:11 -0500 (Sat, 23 Jan 2010)
New Revision: 1426
Modified:
components/mop/trunk/core/pom.xml
Log:
update to Chromattic 1.0.0-beta15
Modified: components/mop/trunk/core/pom.xml
===================================================================
--- components/mop/trunk/core/pom.xml 2010-01-23 00:10:34 UTC (rev 1425)
+++ components/mop/trunk/core/pom.xml 2010-01-23 10:19:11 UTC (rev 1426)
@@ -37,6 +37,10 @@
<name>MOP Core</name>
<description>Model Object for Portal Core</description>
+ <properties>
+ <org.chromattic.version>1.0.0-beta15</org.chromattic.version>
+ </properties>
+
<dependencies>
<dependency>
@@ -56,14 +60,14 @@
<dependency>
<groupId>org.chromattic</groupId>
- <version>1.0.0-beta14</version>
+ <version>${org.chromattic.version}</version>
<artifactId>chromattic.api</artifactId>
</dependency>
<dependency>
<groupId>org.chromattic</groupId>
<artifactId>chromattic.apt</artifactId>
- <version>1.0.0-beta14</version>
+ <version>${org.chromattic.version}</version>
<scope>compile</scope>
</dependency>
@@ -83,20 +87,20 @@
<dependency>
<groupId>org.chromattic</groupId>
<artifactId>chromattic.common</artifactId>
- <version>1.0.0-beta14</version>
+ <version>${org.chromattic.version}</version>
</dependency>
<dependency>
<groupId>org.chromattic</groupId>
<artifactId>chromattic.core</artifactId>
- <version>1.0.0-beta14</version>
+ <version>${org.chromattic.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.chromattic</groupId>
<artifactId>chromattic.exo</artifactId>
- <version>1.0.0-beta14</version>
+ <version>${org.chromattic.version}</version>
<scope>test</scope>
</dependency>
@@ -108,4 +112,21 @@
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <systemProperties>
+ <property>
+ <name>com.arjuna.ats.arjuna.objectstore.objectStoreDir</name>
+ <value>${project.build.directory}</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
14 years, 11 months
gatein SVN: r1425 - in portal/trunk/testsuite/ui-tests: sniff-tests/src/suite/org/exoplatform/portal/selenium and 1 other directories.
by do-not-reply@jboss.org
Author: dbaeli
Date: 2010-01-22 19:10:34 -0500 (Fri, 22 Jan 2010)
New Revision: 1425
Removed:
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_35.java
Modified:
portal/trunk/testsuite/ui-tests/GateIn_v3.0_SniffTests.ods
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_02.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_11.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_22.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_23.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_31.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_32.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_35.html
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_All.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_02.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_03.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_04.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_05.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_06.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_09.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_11.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_15.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_19.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_20.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_22.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_23.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_24.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_25.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_28.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_29.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_30.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_31.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_32.java
portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_34.java
Log:
GTNPORTAL-509: Selenium Sniff test
* Third Update
* Fix HTML encoding issue in some parameters
* All script reviewed, some selenium tooling is required for some tests
Please have a look in GateIn_v3.0_SniffTests.ods for details
Test_All : Tests run: 33, Failures: 4, Errors: 5, Skipped: 0, Time elapsed: 1,181.484 sec
Modified: portal/trunk/testsuite/ui-tests/GateIn_v3.0_SniffTests.ods
===================================================================
(Binary files differ)
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/TestSuite_SNF_PRL.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -1,46 +1,48 @@
-<?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>
- <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
- <title>Test Suite</title>
-</head>
-<body>
-<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
-<tr><td><b>Test Suite</b></td></tr>
-<tr><td><a href="Test_SNF_PRL_02.html">SNF_PRL_02</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_03.html">SNF_PRL_03</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_04.html">SNF_PRL_04</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_05.html">SNF_PRL_05</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_06.html">SNF_PRL_06</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_07.html">SNF_PRL_07</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_08.html">SNF_PRL_08</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_09.html">SNF_PRL_09</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_10.html">SNF_PRL_10</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_11.html">SNF_PRL_11</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_13.html">SNF_PRL_13</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_14.html">SNF_PRL_14</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_15.html">SNF_PRL_15</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_16.html">SNF_PRL_16</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_17.html">SNF_PRL_17</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_18.html">SNF_PRL_18</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_19.html">SNF_PRL_19</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_20.html">SNF_PRL_20</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_21.html">SNF_PRL_21</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_22.html">SNF_PRL_22</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_23.html">SNF_PRL_23</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_24.html">SNF_PRL_24</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_25.html">SNF_PRL_25</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_27_1.html">SNF_PRL_27_1</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_27_2.html">SNF_PRL_27_2</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_28.html">SNF_PRL_28</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_29.html">SNF_PRL_29</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_30.html">SNF_PRL_30</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_31.html">SNF_PRL_31</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_32.html">SNF_PRL_32</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_34.html">SNF_PRL_34</a></td></tr>
-<tr><td><a href="Test_SNF_PRL_35.html">SNF_PRL_35</a></td></tr>
-
-</tbody></table>
-</body>
-</html>
+<?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>
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
+ <title>Test Suite</title>
+</head>
+<body>
+<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
+<tr><td><b>Test Suite</b></td></tr>
+<tr><td><a href="Test_SNF_PRL_02.html">SNF_PRL_02</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_03.html">SNF_PRL_03</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_04.html">SNF_PRL_04</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_07.html">SNF_PRL_07</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_08.html">SNF_PRL_08</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_09.html">SNF_PRL_09</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_10.html">SNF_PRL_10</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_12.html">SNF_PRL_12</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_13.html">SNF_PRL_13</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_14.html">SNF_PRL_14</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_15.html">SNF_PRL_15</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_16.html">SNF_PRL_16</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_17.html">SNF_PRL_17</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_18.html">SNF_PRL_18</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_20.html">SNF_PRL_20</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_21.html">SNF_PRL_21</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_23.html">SNF_PRL_23</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_24.html">SNF_PRL_24</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_25.html">SNF_PRL_25</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_26.html">SNF_PRL_26</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_27.html">SNF_PRL_27</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_30.html">SNF_PRL_30</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_31.html">SNF_PRL_31</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_32.html">SNF_PRL_32</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_34.html">SNF_PRL_34</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_05.html">SNF_PRL_05</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_06.html">SNF_PRL_06</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_19.html">SNF_PRL_19</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_28.html">SNF_PRL_28</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_29.html">SNF_PRL_29</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_33.html">SNF_PRL_33</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_11.html">SNF_PRL_11</a></td></tr>
+<tr><td><a href="Test_SNF_PRL_22.html">SNF_PRL_22</a></td></tr>
+
+
+</tbody></table>
+</body>
+</html>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_02.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_02.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_02.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -97,6 +97,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForTextPresent</td>
+ <td>test_name_first_02 test_name_last_02</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextPresent</td>
<td>test_name_first_02 test_name_last_02</td>
<td></td>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_11.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_11.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_11.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -52,6 +52,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon CreateNewIcon']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon CreateNewIcon']</td>
<td>1,1</td>
@@ -117,11 +122,26 @@
<td></td>
</tr>
<tr>
+ <td>clickAt</td>
+ <td>//div[@class='IconControl ImportIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>This action will automatically create categories and import all the gadgets and portlets on it.</td>
+ <td></td>
+</tr>
+<tr>
<td>echo</td>
<td>--Delete application</td>
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon DeletePortalIcon']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon DeletePortalIcon']</td>
<td></td>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_13.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -47,6 +47,11 @@
<td>1,1</td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Gadget</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Gadget</td>
<td></td>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_19.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -261,12 +261,12 @@
<td>//div[@class='SelectedNavigationTab']//a</td>
<td></td>
</tr>
-<!--tr>
+<tr>
<td>echo</td>
- <td>---Delete node</td>
+ <td>--Delete node</td>
<td></td>
</tr>
-<tr>
+<!--tr>
<td>clickAt</td>
<td>link=Site</td>
<td></td>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_21.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -62,6 +62,11 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[(a)onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')"]</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[(a)onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')"]</td>
<td></td>
@@ -136,6 +141,31 @@
<td>link=test_portal_name_21</td>
<td></td>
</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete new portal</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UISiteManagement']/table[2]//td[3]/a[4]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UISiteManagement']/table[2]//td[3]/a[4]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure you want to delete this portal?</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_22.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_22.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_22.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,20 +4,45 @@
<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="http://localhost:8080/portal" />
-<title>EditPortalLayOut</title>
+<title>SNF_PRL_22</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">EditPortalLayOut</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_22</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic/</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-EditPortalLayout-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</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</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
<td>link=Site</td>
<td></td>
</tr>
@@ -121,6 +146,76 @@
<td>link=classic</td>
<td>1,1</td>
</tr>
+<tr>
+ <td>echo</td>
+ <td>--Verify</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Site</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Edit Layout</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Portal Properties</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Portal Properties</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>locale</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>French (France)</td>
+ <td></td>
+</tr>
+<tr>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=French (France)</td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>publicMode</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=classic</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=classic</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td>1,1</td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_23.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_23.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_23.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,40 +4,45 @@
<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>AddNavigation</title>
+<title>SNF_PRL_23</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">AddNavigation</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_23</td></tr>
</thead><tbody>
-<!--tr>
- <td>open</td>
- <td>/portal/public/NewPortal/</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>open</td>
+ <td>/portal/public/classic</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-AddNavigation-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</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>open</td>
<td>/portal/private/classic/</td>
<td></td>
</tr>
@@ -82,29 +87,41 @@
<td></td>
</tr>
<tr>
+ <td>waitForText</td>
+ <td>name</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>name</td>
- <td>grp_node</td>
+ <td>test_grp_node_23</td>
</tr>
<tr>
<td>type</td>
<td>label</td>
- <td>new_grp_node</td>
+ <td>test_grp_label_23</td>
</tr>
-<!--Choose "Page Selector" tab-->
<tr>
+ <td>echo</td>
+ <td>--Choose "Page Selector" tab</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']</td>
<td></td>
</tr>
-<!--Show form to select existing page-->
<tr>
<td>clickAt</td>
<td>link=Search and Select Page</td>
<td>1,1</td>
</tr>
-<!--Select the first page from pages list-->
<tr>
+ <td>echo</td>
+ <td>--Select the first page from pages list</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIRepeater']//img[@class='SelectPageIcon']</td>
<td></td>
@@ -119,26 +136,31 @@
<td>link=Save</td>
<td>1,1</td>
</tr>
-<!--tr>
- <td>click</td>
- <td>link=Cancel</td>
- <td></td>
-</tr>
-<tr>
- <td>checkAndWait</td>
- <td>//a[@onclick='eXo.portal.logout();']</td>
- <td></td>
-</tr-->
<tr>
<td>waitForElementPresent</td>
- <td>link=new_grp_node</td>
+ <td>link=test_grp_label_23</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
- <td>link=new_grp_node</td>
+ <td>link=test_grp_label_23</td>
<td></td>
</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete new group navigation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-----------</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_24.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,15 +4,45 @@
<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>Edit_DeleteNavigation</title>
+<title>SNF_PRL_24</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">Edit_DeleteNavigation</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_24</td></tr>
</thead><tbody>
<tr>
<td>open</td>
+ <td>/portal/public/classic</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-EditDeleteNavigation-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</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>open</td>
<td>/portal/private/classic/</td>
<td></td>
</tr>
@@ -22,25 +52,150 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Add Navigation</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>//a[@class='EditProIcon']</td>
+ <td>link=Add Navigation</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Cancel</td>
<td></td>
</tr>
<tr>
+ <td>clickAt</td>
+ <td>link=Cancel</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Edit Navigation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Add Node</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Add Node</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>name</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
+ <td>name</td>
+ <td>test_grp_node_24</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>label</td>
+ <td>test_grp_label_24</td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Choose "Page Selector" tab</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Search and Select Page</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Select the first page from pages list</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIRepeater']//img[@class='SelectPageIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Save</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Save</td>
+ <td>1,1</td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=test_grp_label_24</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=test_grp_label_24</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Edit navigation properties</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Group</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIGroupNavigationGrid']/table[4]//td[@class='ActionBlock']//a[@class='EditProIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
<td>description</td>
- <td>more and more</td>
+ <td>test_description_edit_24</td>
</tr>
<tr>
+ <td>select</td>
+ <td>priority</td>
+ <td>10</td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Save</td>
<td></td>
</tr>
<tr>
<td>verifyTextPresent</td>
+ <td>Description: test_description_edit_24</td>
<td></td>
- <td>more and more</td>
</tr>
+<tr>
+ <td>echo</td>
+ <td>--Delete new group navigation</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>-----------</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_25.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,20 +4,45 @@
<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="http://localhost:8080/" />
-<title>EditNavActions_Rightclickmenu</title>
+<title>SNF_PRL_25</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">EditNavActions_Rightclickmenu</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_25</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-EditNavActions_Rightclickmenu-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</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>clickAndWait</td>
<td>link=Group</td>
<td></td>
</tr>
@@ -49,12 +74,12 @@
<tr>
<td>type</td>
<td>name</td>
- <td>Hihizzz</td>
+ <td>test_grp_node_25</td>
</tr>
<tr>
<td>type</td>
<td>label</td>
- <td>Hohohozzz</td>
+ <td>test_grp_label_25</td>
</tr>
<tr>
<td>clickAt</td>
@@ -98,14 +123,24 @@
</tr>
<tr>
<td>clickAt</td>
- <td>link=Hohohozzz</td>
+ <td>link=test_grp_label_25</td>
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/private/classic/</td>
+ <td>echo</td>
+ <td>--Edit node's page</td>
<td></td>
</tr>
+<tr>
+ <td>echo</td>
+ <td>---Rightclick on link in group</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_28.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,45 +4,54 @@
<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>ActionsDashboardpage</title>
+<title>SNF_PRL_28</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">ActionsDashboardpage</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_28</td></tr>
</thead><tbody>
-<!--tr>
- <td>open</td>
- <td>/portal/private/classic/</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>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-ActionsDashboardpage-</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</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>clickAt</td>
<td>link=Dashboard</td>
<td>1,1</td>
</tr>
-<!--Add gadgets into dashboard page-->
<tr>
+ <td>echo</td>
+ <td>--Add gadgets into dashboard page</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Add Gadgets</td>
<td></td>
@@ -53,9 +62,14 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--By url</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>//input[@id='url']</td>
- <td>http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/treefro...</td>
+ <td>http://www.google.com/ig/modules/datetime.xml</td>
</tr>
<tr>
<td>clickAt</td>
@@ -67,11 +81,81 @@
<td>//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']</td>
<td></td>
</tr>
-<!--tr>
- <td>click</td>
- <td>//a[@onclick='eXo.portal.logout();']</td>
- <td></td>
-</tr-->
+<tr>
+ <td>verifyElementPresent</td>
+ <td>//div[@class='GadgetTitle']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='CloseGadget IconControl' and @title='Delete Gadget']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@class='CloseGadget IconControl' and @title='Delete Gadget']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure to delete this gadget?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Add Gadgets</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Add Gadgets</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--By drag and drop</td>
+ <td></td>
+</tr>
+<tr>
+ <td>dragAndDropToObject</td>
+ <td>//div[@class='GadgetTitle' and @title='Calculator']</td>
+ <td>//div[@class='UIDashboardContainer']</td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyElementPresent</td>
+ <td>//div[@class='GadgetTitle']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@class='CloseGadget IconControl']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@title='Delete Gadget']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Are you sure to delete this gadget?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextPresent</td>
+ <td>Drag your gadgets here.</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_29.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -11,12 +11,22 @@
<thead>
<tr><td rowspan="1" colspan="3">SNF_PRL_29</td></tr>
</thead><tbody>
-<!--tr>
+<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-AddEditPageEditLayoutDashboard-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
+ <td></td>
+</tr>
+<tr>
<td>type</td>
<td>username</td>
<td>root</td>
@@ -28,11 +38,20 @@
</tr>
<tr>
<td>clickAndWait</td>
- <td>//div[@id='UIPortalLoginFormAction']/div/div/div</td>
- <td></td><br /></tr--><br /><tr><br /> <td>click</td><br /> <td>link=Dashboard</td><br /> <td></td>
-</tr-->
-<!--ADD PAGE: Add new page in dashboard-->
+ <td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
+ <td></td>
+</tr>
<tr>
+ <td>clickAt</td>
+ <td>link=Dashboard</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Add new page in dashboard</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Add New Page</td>
<td></td>
@@ -42,8 +61,12 @@
<td>link=Add New Page</td>
<td></td>
</tr>
-<!--Choose "root" node-->
<tr>
+ <td>echo</td>
+ <td>--Choose "root" node</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>pageName</td>
<td></td>
@@ -51,74 +74,108 @@
<tr>
<td>type</td>
<td>pageName</td>
- <td>dashboardpage12</td>
+ <td>test_dashboardpage_29</td>
</tr>
<tr>
<td>type</td>
<td>pageDisplayName</td>
- <td>dashboard new page12</td>
+ <td>test_dashboardpage_name_29</td>
</tr>
-<!--Click Next to move to step 2-->
<tr>
+ <td>echo</td>
+ <td>--Click Next to move to step 2</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
<td>1,1</td>
</tr>
-<!--Click Next to move to step 3, keep Empty layout-->
<tr>
+ <td>echo</td>
+ <td>--Click Next to move to step 3, keep Empty layout</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
<td></td>
</tr>
-<!--Open Editor pane-->
<tr>
+ <td>echo</td>
+ <td>--Open Editor pane</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']</td>
<td></td>
</tr>
-<!--Click Save to complete adding page-->
<tr>
- <td>click</td>
- <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td>echo</td>
+ <td>--Click Save to complete adding page</td>
<td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>dashboard new page</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
<td></td>
</tr>
-<!--EDIT PAGE: Edit page in dashboard-->
<tr>
<td>clickAt</td>
- <td>link=Edit Page</td>
- <td>1,1</td>
+ <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=View Page properties</td>
- <td>1,1</td>
+ <td>waitForTextPresent</td>
+ <td>test_dashboardpage_name_29</td>
+ <td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>title</td>
+ <td>verifyTextPresent</td>
+ <td>test_dashboardpage_name_29</td>
<td></td>
</tr>
<tr>
- <td>type</td>
- <td>title</td>
- <td>new dashboard</td>
+ <td>echo</td>
+ <td>--Edit page in dashboard</td>
+ <td></td>
</tr>
+<!--tr>
+ <td>fireEvent</td>
+ <td>//div[@class='TabsContainer ClearFix']//div[@class='SelectedTab']//span, doubleClickAt</td>
+ <td></td>
+</tr>
<tr>
- <td>clickAt</td>
- <td>link=Save</td>
- <td>1,1</td>
+ <td>focus</td>
+ <td>//input[@id='1']</td>
+ <td></td>
</tr>
<tr>
+ <td>type</td>
+ <td>1</td>
+ <td>test_dashboardpage_edit_29</td>
+</tr-->
+<tr>
+ <td>echo</td>
+ <td>--Edit Dashboard layout</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']</td>
- <td>1,1</td>
+ <td>link=test_dashboardpage_edit_29</td>
+ <td></td>
</tr>
-<!--EDIT LAYOUT: Edit Dashboard layout-->
<tr>
<td>waitForElementPresent</td>
<td>link=Edit Layout</td>
@@ -150,15 +207,40 @@
<td></td>
</tr>
<tr>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
+ <td>1,1</td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
<td>1,1</td>
</tr>
-<!--tr>
- <td>click</td>
- <td>//a[@onclick='eXo.portal.logout();']</td>
+<tr>
+ <td>echo</td>
+ <td>--Delete page</td>
<td></td>
-</tr-->
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@class='SelectedTab']//img[@class='CloseIcon']</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForConfirmation</td>
+ <td>Really want to remove this dashboard?</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyTextNotPresent</td>
+ <td>test_dashboardpage_edit_29</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_30.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,19 +4,54 @@
<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>SiteManagement</title>
+<title>SNF_PRL_30</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">SiteManagement</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_30</td></tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-DashboardSiteManagement-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</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>clickAt</td>
+ <td>link=Dashboard</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>--Add new page in dashboard</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=Add New Page</td>
<td></td>
@@ -24,34 +59,44 @@
<tr>
<td>clickAt</td>
<td>link=Add New Page</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a</td>
+ <td>echo</td>
+ <td>--Choose "root" node</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a</td>
- <td>1,1</td>
+ <td>waitForElementPresent</td>
+ <td>pageName</td>
+ <td></td>
</tr>
<tr>
<td>type</td>
<td>pageName</td>
- <td>test9</td>
+ <td>test_dashboardpage_30</td>
</tr>
<tr>
<td>type</td>
<td>pageDisplayName</td>
- <td>test9</td>
+ <td>test_dashboardpage_name_30</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Click Next to move to step 2</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
<td>1,1</td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Click Next to move to step 3, keep Empty layout</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
<td></td>
@@ -59,54 +104,59 @@
<tr>
<td>clickAt</td>
<td>//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]</td>
- <td>1,1</td>
+ <td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Open Editor pane</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
- <td>link=View Page properties</td>
+ <td>//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=View Page properties</td>
- <td>1,1</td>
+ <td>//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']</td>
+ <td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>title</td>
+ <td>echo</td>
+ <td>--Click Save to complete adding page</td>
<td></td>
</tr>
<tr>
- <td>type</td>
- <td>title</td>
- <td>test9_changed</td>
+ <td>waitForElementPresent</td>
+ <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Save</td>
- <td>1,1</td>
+ <td>//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>css=a.EdittedSaveButton</td>
+ <td>waitForTextPresent</td>
+ <td>test_dashboardpage_name_30</td>
<td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Edit Page</td>
+ <td>verifyTextPresent</td>
+ <td>test_dashboardpage_name_30</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Edit page in dashboard</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
<td>link=Edit Page</td>
<td>1,1</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=View Page properties</td>
- <td></td>
-</tr>
-<tr>
<td>clickAt</td>
<td>link=View Page properties</td>
<td>1,1</td>
@@ -117,108 +167,99 @@
<td></td>
</tr>
<tr>
- <td>verifyValue</td>
+ <td>type</td>
<td>title</td>
- <td>test9_changed</td>
+ <td>test_dashboardpage_edit_30</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
- <td></td>
+ <td>clickAt</td>
+ <td>link=Save</td>
+ <td>1,1</td>
</tr>
<tr>
<td>clickAt</td>
- <td>//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']</td>
+ <td>//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']</td>
<td>1,1</td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>publicMode</td>
+ <td>link=Page Management</td>
<td></td>
</tr>
+<!--tr> <td>verifyText</td> <td>test_dashboardpage_edit_30</td> <td></td> </tr-->
<tr>
- <td>clickAt</td>
- <td>publicMode</td>
- <td>1,1</td>
+ <td>echo</td>
+ <td>--Edit Dashboard layout</td>
+ <td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Add Permission</td>
- <td>1,1</td>
+ <td>link=test_dashboardpage_name_30</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Platform</td>
+ <td>link=Edit Layout</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Platform</td>
+ <td>link=Edit Layout</td>
<td>1,1</td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>link=Administrators</td>
- <td></td>
-</tr>
-<tr>
<td>clickAt</td>
- <td>link=Administrators</td>
+ <td>link=Portal Properties</td>
<td>1,1</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=exact:*</td>
- <td>1,1</td>
+ <td>select</td>
+ <td>locale</td>
+ <td>label=English</td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Edit Permission Setting</td>
- <td>1,1</td>
-</tr>
-<tr>
- <td>waitForElementPresent</td>
- <td>link=Select Permission</td>
+ <td>//div[(a)onclick="eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')"]</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Select Permission</td>
- <td>1,1</td>
+ <td>link=Save</td>
+ <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
- <td>link=Platform</td>
- <td></td>
+ <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
+ <td>1,1</td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Platform</td>
+ <td>//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']</td>
<td>1,1</td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='PermissionSelector']//div[@class='MembershipSelector']//div[@class='OverflowContainer']/div[3]/a</td>
+ <td>echo</td>
+ <td>--Delete page</td>
<td></td>
</tr>
<tr>
<td>clickAt</td>
- <td>link=Save</td>
- <td>1,1</td>
+ <td>//div[@class='SelectedTab']//img[@class='CloseIcon']</td>
+ <td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>//div[@id='UIPageEditor']//div[@class='TLPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']</td>
- <td>1,1</td>
+ <td>waitForConfirmation</td>
+ <td>Really want to remove this dashboard?</td>
+ <td></td>
</tr>
<tr>
- <td>verifyTextPresent</td>
- <td>test9</td>
+ <td>verifyTextNotPresent</td>
+ <td>test_dashboardpage_name_30</td>
<td></td>
</tr>
<tr>
- <td>open</td>
- <td>/portal/private/classic/</td>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
<td></td>
</tr>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_31.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_31.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_31.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,20 +4,25 @@
<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>ChangeLanguagePrivateMode</title>
+<title>SNF_PRL_31</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">ChangeLanguagePrivateMode</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_31</td></tr>
</thead><tbody>
-<!--tr>
+<tr>
<td>open</td>
- <td>/portal/public/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>echo</td>
+ <td>-ChangeLanguagePrivateMode-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Sign in</td>
<td></td>
</tr>
@@ -35,11 +40,6 @@
<td>clickAndWait</td>
<td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
<td></td>
-</tr-->
-<tr>
- <td>open</td>
- <td>/portal/private/classic/</td>
- <td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
@@ -52,6 +52,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Change to French</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=French</td>
<td></td>
@@ -67,6 +72,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Verify</td>
+ <td></td>
+</tr>
+<tr>
<td>verifyTextPresent</td>
<td>Accueil</td>
<td></td>
@@ -77,6 +87,11 @@
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Change back to English</td>
+ <td></td>
+</tr>
+<tr>
<td>waitForElementPresent</td>
<td>link=anglais</td>
<td></td>
@@ -96,6 +111,11 @@
<td>Home</td>
<td></td>
</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_32.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_32.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_32.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,44 +4,44 @@
<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>ChangeDisplaySkin</title>
+<title>SNF_PRL_32</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">ChangeDisplaySkin</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_32</td></tr>
</thead><tbody>
-<!--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>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>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>-ChangeDisplaySkin-</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</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=Change Skin</td>
<td></td>
@@ -61,11 +61,21 @@
<td>//div[@id='UIMaskWorkspace']//div[@class='ActionButton LightBlueStyle']</td>
<td></td>
</tr>
-<!--tr>
- <td>clickAndWait</td>
- <td>link=Se déconnecter</td>
- <td></td>
-</tr-->
+<tr>
+ <td>echo</td>
+ <td>--Verify</td>
+ <td></td>
+</tr>
+<tr>
+ <td>echo</td>
+ <td>---------</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_34.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,83 +4,98 @@
<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>LogoPortletAccSetting</title>
+<title>SNF_PRL_34</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">LogoPortletAccSetting</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_34</td></tr>
</thead><tbody>
-<!--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>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>open</td>
- <td>/portal/private/classic/</td>
+ <td>/portal/public/classic</td>
<td></td>
</tr>
<tr>
- <td>clickAt</td>
- <td>link=Root Root</td>
- <td>1,1</td>
+ <td>echo</td>
+ <td>-LogoPortletAccSetting-</td>
+ <td></td>
</tr>
<tr>
- <td>waitForElementPresent</td>
- <td>email</td>
+ <td>clickAt</td>
+ <td>link=Sign in</td>
<td></td>
</tr>
<tr>
<td>type</td>
- <td>email</td>
- <td>mytest.exo10(a)gmail.com</td>
+ <td>username</td>
+ <td>root</td>
</tr>
<tr>
<td>type</td>
- <td>lastName</td>
- <td>Root</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>clickAt</td>
- <td>link=Save</td>
- <td>1,1</td>
+ <td>link=Dashboard</td>
+ <td></td>
</tr>
<tr>
+ <td>echo</td>
+ <td>--Edit Logo Picture</td>
+ <td></td>
+</tr>
+<tr>
<td>clickAt</td>
- <td>link=OK</td>
- <td>1,1</td>
+ <td>link=Edit Layout</td>
+ <td></td>
</tr>
+<!--tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIPortlet-9eec85a7-2589-418c-b7e2-1eacd3aefada']/div/div[3]/div/div/div[2]/div/div/div/div/div/div[1]/a[2]</td>
+ <td></td>
+</tr>
<tr>
<td>clickAt</td>
+ <td>//form[@id='UILogoEditMode']/div[2]/div/div/table/tbody/tr/td/div/div/div/div</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>logoUrl</td>
+ <td>url to define !!</td>
+</tr>
+<tr>
+ <td>clickAt</td>
+ <td>link=Save</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAt</td>
<td>link=Close</td>
- <td>1,1</td>
+ <td></td>
</tr>
-<!--tr>
- <td>clickAndWait</td>
- <td>//a[@onclick='eXo.portal.logout();']</td>
- <td></td>
+<tr>
+ <td>clickAt</td>
+ <td>//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>verifyElementPresent</td>
+ <td>//div[@id='UILogoPortlet']/a/img[@src='/eXoResources/skin/sharedImages/DashboardIcon.png']</td>
+ <td></td>
</tr-->
+<tr>
+ <td>clickAt</td>
+ <td>link=Sign out</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_35.html
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_35.html 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/suite/org/exoplatform/portal/selenium/Test_SNF_PRL_35.html 2010-01-23 00:10:34 UTC (rev 1425)
@@ -4,12 +4,12 @@
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
-<title>CreateEditPageAdvance</title>
+<title>SNF_PRL_35</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
-<tr><td rowspan="1" colspan="3">CreateEditPageAdvance</td></tr>
+<tr><td rowspan="1" colspan="3">SNF_PRL_35</td></tr>
</thead><tbody>
<!--tr>
<td>open</td>
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_All.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_All.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_All.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -2,1936 +2,2654 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
+
public class Test_All extends SeleneseTestCase {
-public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
-}
+ public String speed = "1000";
-public void testSNF_PRL_02() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-New Account-");
-System.out.println("--Register new account");
-selenium.click("link=Register");
-selenium.waitForPageToLoad("30000");
-selenium.type("User Name:", "test_user_02");
-selenium.type("Password:", "test_pwd_02");
-selenium.type("Confirm Password:", "test_pwd_02");
-selenium.type("First Name:", "test_name_first_02");
-selenium.type("Last Name:", "test_name_last_02");
-selenium.type("Email Address:", "test_user_02(a)yahoo.com");
-selenium.clickAt("link=Subscribe", "1,1");
-selenium.open("/portal/public/classic/");
-System.out.println("--Verification");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "test_user_02");
-selenium.type("password", "test_pwd_02");
-selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a", "1,1");
-assertTrue(selenium.isTextPresent("test_name_first_02 test_name_last_02"));
-selenium.clickAt("link=Sign out", "1,1");
-System.out.println("--Delete new user");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Users and groups management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Users and groups management");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("//div[@class='UIListUsers']//tbody/tr[5]//img[@class='DeleteUserIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete test_user_02 user?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public String browser = "firefox";
-public void testSNF_PRL_03() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-Change Language-");
-selenium.clickAt("//a[@class='Language']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Vietnamese"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Vietnamese", "1,1");
-selenium.clickAt("link=Apply", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (!selenium.isElementPresent("link=Apply"))
- break;
- }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//a[@class='Language']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UITabContent']//div[2]/a"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UITabContent']//div[2]/a", "1,1");
-selenium.click("link=�p d?ng");
-selenium.waitForPageToLoad("30000");
-assertTrue(selenium.isElementPresent("link=Sign in"));
-}
+ public void setSpeed() {
+ selenium.setSpeed(speed);
+ }
-public void testSNF_PRL_04() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-SignInOut-");
-selenium.click("link=Sign in");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("username"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']//a");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Sign out");
-assertTrue(selenium.isElementPresent("link=Sign in"));
-}
+ public void setUp() throws Exception {
+ setUp("http://localhost:8080/portal/", "*" + browser);
+ }
-public void testSNF_PRL_05() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-RememberMyLogin-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.clickAt("rememberme", "1,1");
-selenium.clickAt("//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-selenium.clickAt("link=Sign in", "1,1");
-System.out.println("##\"Sign out\" resets \"rememberme\"");
-verifyTrue(selenium.isChecked("rememberme"));
-selenium.clickAt("link=Discard", "1,1");
-}
+ public void testSNF_PRL_02() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-New Account-");
+ System.out.println("--Register new account");
+ selenium.click("link=Register");
+ selenium.waitForPageToLoad("30000");
+ selenium.type("User Name:", "test_user_02");
+ selenium.type("Password:", "test_pwd_02");
+ selenium.type("Confirm Password:", "test_pwd_02");
+ selenium.type("First Name:", "test_name_first_02");
+ selenium.type("Last Name:", "test_name_last_02");
+ selenium.type("Email Address:", "test_user_02(a)yahoo.com");
+ selenium.clickAt("link=Subscribe", "1,1");
+ selenium.open("/portal/public/classic/");
+ System.out.println("--Verification");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "test_user_02");
+ selenium.type("password", "test_pwd_02");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_name_first_02 test_name_last_02"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_name_first_02 test_name_last_02"));
+ selenium.clickAt("link=Sign out", "1,1");
+ System.out.println("--Delete new user");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("//div[@class='UIListUsers']//tbody/tr[5]//img[@class='DeleteUserIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete test_user_02 user?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_06() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-UserManagement-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Group"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Group");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Users and groups management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Users and groups management");
-selenium.waitForPageToLoad("30000");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("User Name"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("Last Name"));
-assertTrue(selenium.isTextPresent("First Name"));
-assertTrue(selenium.isTextPresent("Email"));
-System.out.println("--Edit fields");
-selenium.clickAt("//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("firstName"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("firstName", "test_user_06");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("user.name.given"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("user.name.given", "test_name_given_06");
-selenium.type("user.name.family", "test_name_family_06");
-selenium.type("user.name.nickName", "test_name_nick_06");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("The user profile has been updated."));
-selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton", "1,1");
-selenium.clickAt("link=Cancel", "1,1");
-System.out.println("--Verify changes");
-assertTrue(selenium.isTextPresent("test_user_06"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_03() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-Change Language-");
+ selenium.clickAt("//a[@class='Language']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Vietnamese"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Vietnamese", "1,1");
+ selenium.clickAt("link=Apply", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (!selenium.isElementPresent("link=Apply"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//a[@class='Language']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UITabContent']//div[2]/a"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UITabContent']//div[2]/a", "1,1");
+ selenium.click("link=�p d?ng");
+ selenium.waitForPageToLoad("30000");
+ assertTrue(selenium.isElementPresent("link=Sign in"));
+ }
-public void testSNF_PRL_07() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-GroupManagement-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Select \"Users and groups management\" in menu");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Group"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Group", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Users and groups management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Users and groups management");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Select \"Organization\" group from group tree");
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a", "1,1");
-System.out.println("--Select \"Management group\" from group tree");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a", "1,1");
-System.out.println("--Click Add new group icon");
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='TitleBar']/a[@class='TreeActionIcon AddGroupIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("groupName"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("groupName", "test_group_name_07");
-selenium.type("label", "test_group_label_07");
-selenium.type("description", "test_group_description_07");
-System.out.println("--Click \"Save\" to complete adding new group");
-selenium.clickAt("//form[@id='UIGroupForm']//div[@class='ActionButton LightBlueStyle']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("test_group_label_07"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Click \"Select User\" icon");
-selenium.clickAt("//form[@id='UIGroupMembershipForm']//div[@class='HorizontalLayout']//table[@class='UIFormGrid']//td[@class='FieldComponent']/a", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("demo", "1,1");
-selenium.clickAt("john", "1,1");
-selenium.clickAt("mary", "1,1");
-selenium.clickAt("root", "1,1");
-System.out.println("--Click \"Add\" button");
-selenium.clickAt("//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton LightBlueStyle']", "1,1");
-selenium.clickAt("link=Save", "1,1");
-assertTrue(selenium.isTextPresent("demo"));
-assertTrue(selenium.isTextPresent("john"));
-assertTrue(selenium.isTextPresent("mary"));
-assertTrue(selenium.isTextPresent("root"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_04() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-SignInOut-");
+ selenium.click("link=Sign in");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("username"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']//a");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Sign out");
+ assertTrue(selenium.isElementPresent("link=Sign in"));
+ }
-public void testSNF_PRL_08() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-MembershipManagement-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Select \"Users and groups management\" in menu");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Group"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Group");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Users and groups management"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Users and groups management");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Choose \"Memebership Management\" tab");
-selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='MembershipButton']", "1,1");
-System.out.println("--Create new membership");
-selenium.type("name", "test_name_08");
-selenium.type("description", "test_description_08");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("test_name_08"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("test_name_08"));
-System.out.println("--Edit membership");
-selenium.clickAt("//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='EditMembershipIcon']", "1,1");
-selenium.type("description", "test_description_edit_08");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("test_description_edit_08"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("test_description_edit_08"));
-System.out.println("--Delete membership");
-selenium.clickAt("//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='DeleteMembershipIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete this membership?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-selenium.click("link=classic");
-selenium.waitForPageToLoad("30000");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Sign out");
-}
+ public void testSNF_PRL_07() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-GroupManagement-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Select \"Users and groups management\" in menu");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Group"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Group", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='GroupButton']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIOrganizationPortlet']/div[2]/div[2]/div[1]/div[2]/div[1]/div[2]/div/div/div/div[3]/div/a"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Select \"Organization\" group from group tree");
+ selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a",
+ "1,1");
+ System.out.println("--Select \"Management group\" from group tree");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[3]//div[@class='ExpandIcon']/a",
+ "1,1");
+ System.out.println("--Click Add new group icon");
+ selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='TitleBar']/a[@class='TreeActionIcon AddGroupIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("groupName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("groupName", "test_group_name_07");
+ selenium.type("label", "test_group_label_07");
+ selenium.type("description", "test_group_description_07");
+ System.out.println("--Click \"Save\" to complete adding new group");
+ selenium.clickAt("//form[@id='UIGroupForm']//div[@class='ActionButton LightBlueStyle']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_group_label_07"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Click \"Select User\" icon");
+ selenium.clickAt("//form[@id='UIGroupMembershipForm']//div[@class='HorizontalLayout']//table[@class='UIFormGrid']//td[@class='FieldComponent']/a",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//form[@id='UIUserSelector']/div[2]/div[2]/table/tbody/tr/td/a[1]/div/div/div"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("demo", "1,1");
+ selenium.clickAt("john", "1,1");
+ selenium.clickAt("mary", "1,1");
+ selenium.clickAt("root", "1,1");
+ System.out.println("--Click \"Add\" button");
+ selenium.clickAt("//form[@id='UIUserSelector']//div[@class='UIAction']//a[@class='ActionButton LightBlueStyle']",
+ "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ assertTrue(selenium.isTextPresent("demo"));
+ assertTrue(selenium.isTextPresent("john"));
+ assertTrue(selenium.isTextPresent("mary"));
+ assertTrue(selenium.isTextPresent("root"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_09() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-AutoImport-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Select \"Application Registry\"");
-selenium.clickAt("link=Application Registry", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Import Applications"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Auto Import");
-assertFalse(selenium.isTextPresent("WSRP Admin Portlet"));
-selenium.clickAt("//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']//div[@class='IconControl ImportIcon']", "1,1");
-String autoimport = selenium.getConfirmation();
-assertTrue(selenium.isTextPresent("WSRP Admin Portlet"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_08() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-MembershipManagement-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Select \"Users and groups management\" in menu");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Group"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Group");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Choose \"Memebership Management\" tab");
+ selenium.clickAt("//div[@id='UIOrganizationPortlet']//div[@class='ManagementIconContainer']/a[@class='MembershipButton']",
+ "1,1");
+ System.out.println("--Create new membership");
+ selenium.type("name", "test_name_08");
+ selenium.type("description", "test_description_08");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_name_08"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_name_08"));
+ System.out.println("--Edit membership");
+ selenium.clickAt("//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='EditMembershipIcon']",
+ "1,1");
+ selenium.type("description", "test_description_edit_08");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_description_edit_08"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_description_edit_08"));
+ System.out.println("--Delete membership");
+ selenium.clickAt("//table[@class='UIGrid']//tbody/tr[2]/td[5]//img[@class='DeleteMembershipIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this membership?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=classic");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Sign out");
+ }
-public void testSNF_PRL_10() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-CategoryManagement-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Select \"Application Registry\"");
-selenium.clickAt("link=Application Registry", "1,1");
-System.out.println("--Add Category");
-selenium.clickAt("//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']/div[1]", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("name"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("name", "test_name_category_10");
-selenium.type("displayName", "test_displayname_category_10");
-selenium.type("description", "test_description_category_10");
-System.out.println("--Select permissions");
-selenium.click("//div[@class='WorkingArea']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Add Permission"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add Permission", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Platform"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Platform", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=manager"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=manager", "1,1");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIApplicationOrganizer']//a[@class='ControlIcon EditIcon']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("test_displayname_category_10"));
-System.out.println("--Edit Category");
-selenium.clickAt("//div[@id='UIApplicationOrganizer']//a[@class='ControlIcon EditIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("displayName"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("displayName", "test_displayname_edit_10");
-selenium.clickAt("link=Save", "1,1");
-assertTrue(selenium.isTextPresent("test_displayname_edit_10"));
-System.out.println("--Delete Category");
-selenium.clickAt("//div[@class='SelectedTab']//a[@class='ControlIcon DeleteIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure to delete this category and all applications on it?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-assertFalse(selenium.isTextPresent("test_displayname_edit_10"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Sign out");
-}
+ public void testSNF_PRL_09() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-AutoImport-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Select \"Application Registry\"");
+ selenium.clickAt("link=Application Registry", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Import Applications"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Auto Import");
+ assertFalse(selenium.isTextPresent("WSRP Admin Portlet"));
+ selenium.clickAt("//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']//div[@class='IconControl ImportIcon']",
+ "1,1");
+ String autoimport = selenium.getConfirmation();
+ assertTrue(selenium.isTextPresent("WSRP Admin Portlet"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_11() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-AddApplicationToCategory-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Application Registry", "1,1");
-System.out.println("--Add application to Administration Category");
-selenium.clickAt("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon CreateNewIcon']", "1,1");
-System.out.println("--Select first application in list");
-selenium.clickAt("//input[@name='application' and @value='1']", "1,1");
-selenium.type("displayName", "test_displayname_11");
-selenium.clickAt("css=form#UIAddApplicationForm div.UIAction div.ActionButton", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//a[@class='TabLabel' and @title='Administration']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Edit category permissions");
-selenium.clickAt("//a[@class='TabLabel' and @title='Administration']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Add Permission"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add Permission", "1,1");
-selenium.clickAt("//div[@id='ListPermissionSelector']//a[@title='Organization']", "1,1");
-selenium.clickAt("link=manager", "1,1");
-assertTrue(selenium.isTextPresent("test_displayname_11"));
-System.out.println("--Delete application");
-selenium.clickAt("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon DeletePortalIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure to delete this application?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_10() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-CategoryManagement-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Select \"Application Registry\"");
+ selenium.clickAt("link=Application Registry", "1,1");
+ System.out.println("--Add Category");
+ selenium.clickAt("//div[@id='UIApplicationOrganizer']//div[@class='UIControlbar']/div[1]",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("name", "test_name_category_10");
+ selenium.type("displayName", "test_displayname_category_10");
+ selenium.type("description", "test_description_category_10");
+ System.out.println("--Select permissions");
+ selenium.click("//div[@class='WorkingArea']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Permission"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Permission", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Platform"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Platform", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=manager"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=manager", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIApplicationOrganizer']//a[@class='ControlIcon EditIcon']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_displayname_category_10"));
+ System.out.println("--Edit Category");
+ selenium.clickAt("//div[@id='UIApplicationOrganizer']//a[@class='ControlIcon EditIcon']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("displayName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("displayName", "test_displayname_edit_10");
+ selenium.clickAt("link=Save", "1,1");
+ assertTrue(selenium.isTextPresent("test_displayname_edit_10"));
+ System.out.println("--Delete Category");
+ selenium.clickAt("//div[@class='SelectedTab']//a[@class='ControlIcon DeleteIcon']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation()
+ .equals("Are you sure to delete this category and all applications on it?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isTextPresent("test_displayname_edit_10"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Sign out");
+ }
-public void testSNF_PRL_12() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-ViewAllPortlets-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Application Registry", "1,1");
-System.out.println("--Verify details of Administration>>Application Registry");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[1]//a", "1,1");
-assertTrue(selenium.isTextPresent("ApplicationRegistryPortlet"));
-System.out.println("--Verify details of Administration>>Organisation Management");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[2]//a", "1,1");
-assertTrue(selenium.isTextPresent("OrganizationPortlet"));
-System.out.println("--Verify details of Administration>>NewAccount");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[3]//a", "1,1");
-assertTrue(selenium.isTextPresent("AccountPortlet"));
-System.out.println("--Verify details of Dashboard>>Dashboard Portlet");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']/div[2]//a", "1,1");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[1]//a", "1,1");
-assertTrue(selenium.isTextPresent("DashboardPortlet"));
-System.out.println("--Verify details of Dashboard>>Gadget Wrapper Portlet");
-selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[2]//a", "1,1");
-assertTrue(selenium.isTextPresent("GadgetPortlet"));
-System.out.println("--It is possible to verify all portlets.......");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("link=Sign out");
-}
+ public void testSNF_PRL_12() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-ViewAllPortlets-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Application Registry", "1,1");
+ System.out.println("--Verify details of Administration>>Application Registry");
+ selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[1]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("ApplicationRegistryPortlet"));
+ System.out.println("--Verify details of Administration>>Organisation Management");
+ selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[2]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("OrganizationPortlet"));
+ System.out.println("--Verify details of Administration>>NewAccount");
+ selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[3]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("AccountPortlet"));
+ System.out.println("--Verify details of Dashboard>>Dashboard Portlet");
+ selenium.clickAt("//div[@class='UIVerticalSlideTabs']/div[2]//a", "1,1");
+ selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[1]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("DashboardPortlet"));
+ System.out.println("--Verify details of Dashboard>>Gadget Wrapper Portlet");
+ selenium.clickAt("//div[@class='UIVerticalSlideTabs']//div[@class='UIVTabContent']//div[2]//a",
+ "1,1");
+ assertTrue(selenium.isTextPresent("GadgetPortlet"));
+ System.out.println("--It is possible to verify all portlets.......");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Sign out");
+ }
-public void testSNF_PRL_13() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-AddGadget-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Application Registry", "1,1");
-selenium.clickAt("link=Gadget", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@class='UIControlbar']/div[1]"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@class='UIControlbar']/div[1]", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("url"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("url", "http://www.google.com/ig/modules/datetime.xml");
-selenium.clickAt("link=Add", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Gadget Details"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIGadgetInfo']//div[@class='UIBreadcumb']/div[@class='DownLoadIcon ControlIcon']", "1,1");
-System.out.println("https://jira.jboss.org/jira/browse/GTNPORTAL-439");
-assertTrue(selenium.isTextPresent("Gadget Details"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_13() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-AddGadget-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Application Registry", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Gadget"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Gadget", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@class='UIControlbar']/div[1]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@class='UIControlbar']/div[1]", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("url"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("url", "http://www.google.com/ig/modules/datetime.xml");
+ selenium.clickAt("link=Add", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Gadget Details"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIGadgetInfo']//div[@class='UIBreadcumb']/div[@class='DownLoadIcon ControlIcon']",
+ "1,1");
+ System.out.println("https://jira.jboss.org/jira/browse/GTNPORTAL-439");
+ assertTrue(selenium.isTextPresent("Gadget Details"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_14() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-ImportApplicationIcon-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Application Registry", "1,1");
-System.out.println("---Have no idea on how to do this");
-selenium.clickAt("link=Edit Page", "1,1");
-selenium.mouseOver("//div[@class='UIComponentBlock']");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_14() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-ImportApplicationIcon-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Application Registry", "1,1");
+ System.out.println("---Have no idea on how to do this");
+ selenium.clickAt("link=Edit Page", "1,1");
+ selenium.mouseOver("//div[@class='UIComponentBlock']");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_15() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-SiteMapAndLinkToPage-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/sitemap");
-System.out.println("--Expand the first submenu");
-selenium.clickAt("css=div#UISiteMap div.ExpandIcon", "1,1");
-System.out.println("--Select the first link of submenu");
-selenium.clickAt("css=div#UISiteMap div.ChildrenContainer a", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (!selenium.isElementPresent("css=div#UISiteMap div.ChildrenContainer a"))
- break;
- }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_15() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-SiteMapAndLinkToPage-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/sitemap");
+ System.out.println("--Expand the first submenu");
+ selenium.clickAt("css=div#UISiteMap div.ExpandIcon", "1,1");
+ System.out.println("--Select the first link of submenu");
+ selenium.clickAt("css=div#UISiteMap div.ChildrenContainer a", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (!selenium.isElementPresent("css=div#UISiteMap div.ChildrenContainer a"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_16() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-ExpandAll-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/sitemap");
-System.out.println("--Expand All");
-selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[2]", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Blog"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("New Staff"));
-assertTrue(selenium.isTextPresent("Application Registry"));
-assertFalse(selenium.isElementPresent("//div[@class='ExpandIcon FloatLeft']"));
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_16() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-ExpandAll-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/sitemap");
+ System.out.println("--Expand All");
+ selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[2]", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Blog"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("New Staff"));
+ assertTrue(selenium.isTextPresent("Application Registry"));
+ assertFalse(selenium.isElementPresent("//div[@class='ExpandIcon FloatLeft']"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_17() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-CollapseAll-");
-selenium.click("link=Sign in");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/sitemap");
-System.out.println("--Expand SiteMap tree");
-selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[2]", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Blog"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("New Staff"));
-assertTrue(selenium.isTextPresent("Application Registry"));
-System.out.println("--Collapse SiteMap Tree");
-selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[1]", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (!selenium.isElementPresent("Blog"))
- break;
- }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertFalse(selenium.isElementPresent("//div[@class='CollapseIcon FloatLeft']"));
-selenium.click("link=Sign out");
-}
+ public void testSNF_PRL_17() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-CollapseAll-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/sitemap");
+ System.out.println("--Expand SiteMap tree");
+ selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[2]", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Blog"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("New Staff"));
+ assertTrue(selenium.isTextPresent("Application Registry"));
+ System.out.println("--Collapse SiteMap Tree");
+ selenium.clickAt("//div[@id='UISiteMap']//div[@class='ClearFix']/div[1]", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (!selenium.isElementPresent("Blog"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isElementPresent("//div[@class='CollapseIcon FloatLeft']"));
+ selenium.click("link=Sign out");
+ }
-public void testSNF_PRL_18() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-CreateNewPortal-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/portalnavigation");
-System.out.println("--Add new portal");
-selenium.clickAt("//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton BlueButton']", "1,1");
-System.out.println("--Select portal settings");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']", "1,1");
-selenium.type("name", "test_portal_18");
-System.out.println("--Select permission settings");
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']", "1,1");
-selenium.clickAt("publicMode", "1,1");
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-selenium.clickAt("link=Select Permission", "1,1");
-selenium.clickAt("link=Platform", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='PermissionSelector']//a[@title='Administrators']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='PermissionSelector']//a[@title='Administrators']", "1,1");
-selenium.clickAt("//div[@id='PermissionSelector']//a[@title='manager']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (!selenium.isElementPresent("Permission Selector"))
- break;
- }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']//div[@class='ButtonMiddle']/a", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("test_portal_18"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Verify portal creation");
-assertTrue(selenium.isElementPresent("link=test_portal_18"));
-System.out.println("--Delete new portal");
-selenium.clickAt("link=Site", "1,1");
-assertTrue(selenium.isTextPresent("Portal Navigation"));
-selenium.clickAt("//div[@id='UISiteManagement']/table[2]//a[@class='DeleteIcon']", "1,1");
-assertFalse(selenium.isTextPresent("test_portal_18"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete this portal?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_18() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-CreateNewPortal-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/portalnavigation");
+ System.out.println("--Add new portal");
+ selenium.clickAt("//div[@id='UISiteManagement']//div[@class='UIAction']//div[@class='ActionButton BlueButton']",
+ "1,1");
+ System.out.println("--Select portal settings");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']",
+ "1,1");
+ selenium.type("name", "test_portal_18");
+ System.out.println("--Select permission settings");
+ selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[4]//div[@class='MiddleTab']",
+ "1,1");
+ selenium.clickAt("publicMode", "1,1");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ selenium.clickAt("link=Select Permission", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='PermissionSelector']//a[@title='Administrators']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='PermissionSelector']//a[@title='Administrators']", "1,1");
+ selenium.clickAt("//div[@id='PermissionSelector']//a[@title='manager']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (!selenium.isElementPresent("Permission Selector"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']//div[@class='ButtonMiddle']/a",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_portal_18"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Verify portal creation");
+ assertTrue(selenium.isElementPresent("link=test_portal_18"));
+ System.out.println("--Delete new portal");
+ selenium.clickAt("link=Site", "1,1");
+ assertTrue(selenium.isTextPresent("Portal Navigation"));
+ selenium.clickAt("//div[@id='UISiteManagement']/table[2]//a[@class='DeleteIcon']", "1,1");
+ assertFalse(selenium.isTextPresent("test_portal_18"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this portal?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_19() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-EditPortalNavigation-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.click("link=Site");
-selenium.waitForPageToLoad("30000");
-System.out.println("--Edit Portal layout, currently do not change anything");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Edit Layout"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Edit Layout", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("css=div#Administration/ApplicationRegistryPortlet"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.dragAndDropToObject("css=div#Administration/ApplicationRegistryPortlet","css=div#Administration/ApplicationRegistryPortlet");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='CloseButton']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("classic"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-System.out.println("--Edit nav: add node, actions ...");
-selenium.clickAt("link=Edit Navigation", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Add Node"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add Node", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("name"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("name", "test_nodename_19");
-selenium.type("label", "test_node_label_19");
-System.out.println("--Select Page");
-selenium.clickAt("css=div#UISiteManagement > div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Search and Select Page"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Search and Select Page", "1,1");
-System.out.println("--Select the first page");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.click("//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img");
-System.out.println("--Save");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("link=Save", "1,1");
-System.out.println("--Edit Portal Properties");
-selenium.clickAt("link=Edit Portal's Properties", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Edit Permission Setting"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Select Permission"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Select Permission", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Platform"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Platform", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Administrators"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Administrators", "1,1");
-selenium.clickAt("//div[@id='PermissionSelector']//div[2]/a", "1,1");
-selenium.clickAt("//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']", "1,1");
-selenium.open("/portal/private/classic/");
-System.out.println("--Select new node");
-selenium.clickAt("link=test_node_label_19", "1,1");
-assertTrue(selenium.isElementPresent("//div[@class='SelectedNavigationTab']//a"));
-selenium.clickAt("link=Site", "1,1");
-selenium.clickAt("link=Edit Navigation", "1,1");
-selenium.click("link=Delete Node");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete this node?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-selenium.click("link=Save");
-System.out.println("--Verify Deletion");
-selenium.click("link=Home");
-assertFalse(selenium.isTextPresent("test_node_label_19"));
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_20() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-DeletePortal-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Site", "1,1");
+ System.out.println("--Add new portal");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add New Portal"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add New Portal", "1,1");
+ selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
+ "1,1");
+ selenium.type("name", "test_portal_name_20");
+ selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
+ "1,1");
+ selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
+ "1,1");
+ selenium.clickAt("publicMode", "1,1");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ selenium.clickAt("link=Select Permission", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=exact:*", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_portal_name_20"));
+ System.out.println("--Delete portal");
+ selenium.click("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this portal?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isTextPresent("test_portal_name_20"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
-public void testSNF_PRL_20() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/public/classic/");
-System.out.println("-DeletePortal-");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-selenium.waitForPageToLoad("30000");
-selenium.clickAt("link=Site", "1,1");
-System.out.println("--Add new portal");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Add New Portal"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add New Portal", "1,1");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]", "1,1");
-selenium.type("name", "test_portal_name_20");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]", "1,1");
-selenium.clickAt("publicMode", "1,1");
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-selenium.clickAt("link=Select Permission", "1,1");
-selenium.clickAt("link=Platform", "1,1");
-selenium.clickAt("link=Platform", "1,1");
-selenium.clickAt("link=exact:*", "1,1");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-assertTrue(selenium.isTextPresent("test_portal_name_20"));
-System.out.println("--Delete portal");
-selenium.click("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]");
-selenium.waitForPageToLoad("30000");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
-if (selenium.getConfirmation().equals("Are you sure you want to delete this portal?")) {
-break;
-}
-}
-catch (Exception e) {
-}
-Thread.sleep(1000);
-}
-assertFalse(selenium.isTextPresent("test_portal_name_20"));
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Sign out"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Sign out", "1,1");
-}
+ public void testSNF_PRL_21() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-ChangePortal-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Site", "1,1");
+ System.out.println("--Add new portal");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add New Portal"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add New Portal", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]",
+ "1,1");
+ selenium.type("name", "test_portal_name_21");
+ selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
+ "1,1");
+ selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]",
+ "1,1");
+ selenium.clickAt("publicMode", "1,1");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ selenium.clickAt("link=Select Permission", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=exact:*", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_portal_name_21"));
+ System.out.println("--View new portal");
+ selenium.clickAt("link=test_portal_name_21", "1,1");
+ selenium.clickAt("link=Site", "1,1");
+ System.out.println("--Delete new portal");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]//td[3]/a[4]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UISiteManagement']/table[2]//td[3]/a[4]", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this portal?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ }
-//public void testSNF_PRL_21() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/public/classic/");
-//System.out.println("-ChangePortal-");
-//selenium.clickAt("link=Sign in", "1,1");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-//selenium.waitForPageToLoad("30000");
-//selenium.clickAt("link=Site", "1,1");
-//System.out.println("--Add new portal");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add New Portal"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add New Portal", "1,1");
-//selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]", "1,1");
-//selenium.type("name", "test_portal_name_21");
-//selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
-//selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]", "1,1");
-//selenium.clickAt("publicMode", "1,1");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//selenium.clickAt("link=Select Permission", "1,1");
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("link=exact:*", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]/tbody/tr/td[3]/a[4]"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//assertTrue(selenium.isTextPresent("test_portal_name_21"));
-//System.out.println("--View new portal");
-//selenium.clickAt("link=test_portal_name_21", "1,1");
-//}
-//
-//public void testSNF_PRL_22() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//selenium.click("link=Site");
-//selenium.waitForPageToLoad("30000");
-//selenium.clickAt("link=Edit Layout", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Portal Properties"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Portal Properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("locale"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.select("locale", "label=French (France)");
-//selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("publicMode"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.click("publicMode");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Select Permission"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Select Permission", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Platform"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Platform", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Users"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Users", "1,1");
-//selenium.clickAt("link=exact:*", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=classic"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=classic", "1,1");
-//}
-//
-//public void testSNF_PRL_23() throws Exception {
-//selenium.setSpeed("500");
-//selenium.click("link=Sign in");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//selenium.click("link=Group");
-//selenium.waitForPageToLoad("30000");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add Navigation"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add Navigation", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Cancel"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Cancel", "1,1");
-//selenium.clickAt("link=Edit Navigation", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add Node"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add Node", "1,1");
-//selenium.type("name", "grp_node");
-//selenium.type("label", "new_grp_node");
-//selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']", "1,1");
-//selenium.clickAt("link=Search and Select Page", "1,1");
-//selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.check("//a[@onclick='eXo.portal.logout();']");
-//selenium.waitForPageToLoad("30000");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=new_grp_node"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.click("link=new_grp_node");
-//selenium.waitForPageToLoad("30000");
-//}
-//
-//public void testSNF_PRL_24() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//selenium.click("link=Group");
-//selenium.waitForPageToLoad("30000");
-//selenium.clickAt("//a[@class='EditProIcon']", "1,1");
-//selenium.type("description", "more and more");
-//selenium.clickAt("link=Save", "1,1");
-//assertTrue(selenium.isTextPresent(""));
-//}
-//
-//public void testSNF_PRL_25() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//selenium.click("link=Group");
-//selenium.waitForPageToLoad("30000");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Edit Navigation"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Edit Navigation", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add Node"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add Node", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("name"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("name", "Hihizzz");
-//selenium.type("label", "Hohohozzz");
-//selenium.clickAt("css=div#UIGroupNavigationManagement div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Search and Select Page"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Search and Select Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//img[@title='Select Page']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//img[@title='Select Page']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Save"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("link=Hohohozzz", "1,1");
-//selenium.open("/portal/private/classic/");
-//}
-//
-//public void testSNF_PRL_27_1() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//selenium.clickAt("link=Page Management", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add New Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("pageName"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("pageName", "newpage21211");
-//selenium.type("pageDisplayName", "new page21211");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='Administration/AccountPortlet']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=View Page properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isTextPresent("Show Max Window"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']", "1,1");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//selenium.clickAt("link=Cancel", "1,1");
-//selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//img[@alt='']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Edit Page", "1,1");
-//selenium.clickAt("link=View Page properties", "1,1");
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']", "1,1");
-//selenium.clickAt("link=Add Permission", "1,1");
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("link=Administrators", "1,1");
-//selenium.clickAt("//div[@id='UIPageFormPopupGroupMembershipSelector']//div[@class='MembershipSelector']//a", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
-//}
-//
-//public void testSNF_PRL_27_2() throws Exception {
-//selenium.setSpeed("500");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-//selenium.waitForPageToLoad("30000");
-//selenium.click("link=Group");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//selenium.clickAt("link=Edit Layout", "1,1");
-//selenium.clickAt("link=Portal Properties", "1,1");
-//selenium.select("locale", "label=English");
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']", "1,1");
-//selenium.clickAt("publicMode", "1,1");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isTextPresent("Current Permission"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Select Permission", "1,1");
-//selenium.click("link=Select Permission");
-//selenium.clickAt("//div[@id='PermissionSelector']/div/div[2]/div/div[2]/div/div/div[1]/a", "1,1");
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("link=exact:*", "1,1");
-//selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//}
-//
-//public void testSNF_PRL_28() throws Exception {
-//selenium.setSpeed("500");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//selenium.clickAt("link=Dashboard", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add Gadgets"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add Gadgets", "1,1");
-//selenium.type("//input[@id='url']", "http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/treefro...");
-//selenium.clickAt("//img[@class='AddNewNodeIcon']", "1,1");
-//selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']", "1,1");
-//}
-//
-//public void testSNF_PRL_29() throws Exception {
-//selenium.setSpeed("500");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
-//selenium.waitForPageToLoad("30000");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add New Page"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add New Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("pageName"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("pageName", "dashboardpage12");
-//selenium.type("pageDisplayName", "dashboard new page12");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
-//selenium.clickAt("//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']", "1,1");
-//selenium.click("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]");
-//assertTrue(selenium.isTextPresent("dashboard new page"));
-//selenium.clickAt("link=Edit Page", "1,1");
-//selenium.clickAt("link=View Page properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("title"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("title", "new dashboard");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Edit Layout"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Edit Layout", "1,1");
-//selenium.clickAt("link=Portal Properties", "1,1");
-//selenium.select("locale", "label=English");
-//selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']", "1,1");
-//}
-//
-//public void testSNF_PRL_30() throws Exception {
-//selenium.setSpeed("500");
-//selenium.open("/portal/private/classic/");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Add New Page"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Add New Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a", "1,1");
-//selenium.type("pageName", "test9");
-//selenium.type("pageDisplayName", "test9");
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=View Page properties"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=View Page properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("title"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("title", "test9_changed");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("css=a.EdittedSaveButton", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Edit Page"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Edit Page", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=View Page properties"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=View Page properties", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("title"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//assertEquals("test9_changed", selenium.getValue("title"));
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("publicMode"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("publicMode", "1,1");
-//selenium.clickAt("link=Add Permission", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Platform"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Platform", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Administrators"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Administrators", "1,1");
-//selenium.clickAt("link=exact:*", "1,1");
-//selenium.clickAt("link=Edit Permission Setting", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Select Permission"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Select Permission", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Platform"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Platform", "1,1");
-//selenium.clickAt("//div[@id='PermissionSelector']//div[@class='MembershipSelector']//div[@class='OverflowContainer']/div[3]/a", "1,1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageEditor']//div[@class='TLPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']", "1,1");
-//assertTrue(selenium.isTextPresent("test9"));
-//selenium.open("/portal/private/classic/");
-//}
-//
-//public void testSNF_PRL_31() throws Exception {
-//selenium.setSpeed("500");
-//selenium.click("link=Sign in");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Change Language"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Change Language", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=French"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=French", "1,1");
-//selenium.click("link=Apply");
-//selenium.waitForPageToLoad("30000");
-//assertTrue(selenium.isTextPresent("Accueil"));
-//selenium.clickAt("link=Changer la langue", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=anglais"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=anglais", "1,1");
-//selenium.click("link=Appliquer");
-//selenium.waitForPageToLoad("30000");
-//assertTrue(selenium.isTextPresent("Home"));
-//}
-//
-//public void testSNF_PRL_32() throws Exception {
-//selenium.setSpeed("500");
-//selenium.click("link=Sign in");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Change Skin"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Change Skin", "1,1");
-//selenium.clickAt("//div[@id='UITabContent']//div[@class='ItemListContainer']//div[@class='ItemList']//div[@class='SelectedItem Item']", "1,1");
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='ActionButton LightBlueStyle']", "1,1");
-//selenium.waitForPageToLoad("30000");
-//}
-//
-//public void testSNF_PRL_34() throws Exception {
-//selenium.setSpeed("500");
-//selenium.click("link=Sign in");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
-//selenium.waitForPageToLoad("30000");
-//selenium.open("/portal/private/classic/");
-//selenium.clickAt("link=Root Root", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("email"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("email", "mytest.exo10(a)gmail.com");
-//selenium.type("lastName", "Root");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("link=OK", "1,1");
-//selenium.clickAt("link=Close", "1,1");
-//}
-//
-//public void testSNF_PRL_35() throws Exception {
-//selenium.setSpeed("500");
-//selenium.type("username", "root");
-//selenium.type("password", "gtn");
-//selenium.clickAt("link=Sign in", "1,1");
-//selenium.open("/portal/private/classic/administration/pageManagement");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("name"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.type("name", "user_page1");
-//selenium.type("title", "user_page_title1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.select("ownerType", "label=portal");
-//selenium.type("name", "portal_page1");
-//selenium.type("title", "portal_page_title1");
-//selenium.clickAt("link=Save", "1,1");
-//selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.select("ownerType", "label=group");
-//selenium.clickAt("//option[@value='group']", "1,1");
-//selenium.type("name", "group_page1");
-//selenium.type("title", "group_page_title1");
-//selenium.clickAt("link=Save", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIRepeater']//img[@class='EditInfoIcon']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIRepeater']//img[@class='EditInfoIcon']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIPageEditor']//div[@class='PageProfileIcon']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageEditor']//div[@class='PageProfileIcon']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIListPermissionSelector']//input[@class='checkbox']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIListPermissionSelector']//input[@class='checkbox']", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("link=Save"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("link=Save", "1,1");
-//for (int second = 0;; second++) {
-//if (second >= 30) fail("timeout");
-//try {
-// if (selenium.isElementPresent("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']"))
-//break; }
-// catch (Exception e) {}
-//Thread.sleep(1000);
-//}
-//selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']", "1,1");
-//assertTrue(selenium.isTextPresent("user_page_title1"));
-//assertTrue(selenium.isTextPresent("group_page_title1"));
-//assertTrue(selenium.isTextPresent("portal_page_title1"));
-//}
+ public void testSNF_PRL_23() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-AddNavigation-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Navigation"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Cancel"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Cancel", "1,1");
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ selenium.type("name", "test_grp_node_23");
+ selenium.type("label", "test_grp_label_23");
+ System.out.println("--Choose \"Page Selector\" tab");
+ selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']",
+ "1,1");
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ System.out.println("--Select the first page from pages list");
+ selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=test_grp_label_23"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=test_grp_label_23");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Delete new group navigation");
+ System.out.println("-----------");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+ public void testSNF_PRL_24() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-EditDeleteNavigation-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.open("/portal/private/classic/");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Navigation"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Cancel"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Cancel", "1,1");
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ selenium.type("name", "test_grp_node_24");
+ selenium.type("label", "test_grp_label_24");
+ System.out.println("--Choose \"Page Selector\" tab");
+ selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']",
+ "1,1");
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ System.out.println("--Select the first page from pages list");
+ selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=test_grp_label_24"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=test_grp_label_24");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Edit navigation properties");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("//div[@id='UIGroupNavigationGrid']/table[4]//td[@class='ActionBlock']//a[@class='EditProIcon']",
+ "1,1");
+ selenium.type("description", "test_description_edit_24");
+ selenium.select("priority", "10");
+ selenium.clickAt("link=Save", "1,1");
+ assertTrue(selenium.isTextPresent("Description: test_description_edit_24"));
+ System.out.println("--Delete new group navigation");
+ System.out.println("-----------");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_25() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-EditNavActions_Rightclickmenu-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Navigation"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("name", "test_grp_node_25");
+ selenium.type("label", "test_grp_label_25");
+ selenium.clickAt("css=div#UIGroupNavigationManagement div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Search and Select Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//img[@title='Select Page']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//img[@title='Select Page']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Save"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=test_grp_label_25", "1,1");
+ System.out.println("--Edit node's page");
+ System.out.println("---Rightclick on link in group");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_26() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-MoveUp/DownNode-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Create node");
+ selenium.click("link=Group");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Navigation"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("name", "test_grp_node_26");
+ selenium.type("label", "test_grp_label_26");
+ selenium.clickAt("css=div#UIGroupNavigationManagement div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Search and Select Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//img[@title='Select Page']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//img[@title='Select Page']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Save"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=test_grp_label_26", "1,1");
+ System.out.println("--Edit node's position");
+ System.out.println("---Rightclick on link in group");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_27() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-AddEditGroupPageWizard-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Page Management", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Create new");
+ selenium.clickAt("link=Add New Page", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("pageName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("pageName", "test_page_27");
+ selenium.type("pageDisplayName", "test_page_name_27");
+ System.out.println("--Click \"Next\" to move to step2 to choose page layout");
+ selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+ System.out.println("--Keep \"Empty layout\" and Click \"Next\" to move to step 3");
+ selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+ System.out.println("--Open Page Editor pane");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='Administration/AccountPortlet']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=View Page properties", "1,1");
+ System.out.println("--Select Permission Setting tab");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("Show Max Window"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']", "1,1");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ System.out.println("--Do not change anything in Page properties");
+ selenium.clickAt("link=Cancel", "1,1");
+ selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//img[@alt='']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Click Save to complete adding new page by wizard with no content (no portlet)");
+ selenium.clickAt("link=Edit Page", "1,1");
+ System.out.println("--Show form to edit page by wizard");
+ selenium.clickAt("link=View Page properties", "1,1");
+ System.out.println("--Select Permission Setting tab");
+ selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']", "1,1");
+ selenium.clickAt("link=Add Permission", "1,1");
+ selenium.clickAt("link=Platform", "1,1");
+ selenium.clickAt("link=Administrators", "1,1");
+ selenium.clickAt("//div[@id='UIPageFormPopupGroupMembershipSelector']//div[@class='MembershipSelector']//a",
+ "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
+ System.out.println("--Edit layout");
+ selenium.open("/portal/private/classic/");
+ selenium.clickAt("link=Edit Layout", "1,1");
+ selenium.clickAt("link=Portal Properties", "1,1");
+ selenium.select("locale", "label=French (France)");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]", "1,1");
+ selenium.open("/portal/private/classic/");
+ selenium.clickAt("link=Edit Layout", "1,1");
+ selenium.clickAt("link=Portal Properties", "1,1");
+ assertTrue(selenium.isTextPresent("French (France)"));
+ selenium.clickAt("link=Cancel", "1,1");
+ selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[1]", "1,1");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_30() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-DashboardSiteManagement-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Dashboard", "1,1");
+ System.out.println("--Add new page in dashboard");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add New Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add New Page", "1,1");
+ System.out.println("--Choose \"root\" node");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("pageName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("pageName", "test_dashboardpage_30");
+ selenium.type("pageDisplayName", "test_dashboardpage_name_30");
+ System.out.println("--Click Next to move to step 2");
+ selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+ System.out.println("--Click Next to move to step 3, keep Empty layout");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+ System.out.println("--Open Editor pane");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']", "1,1");
+ System.out.println("--Click Save to complete adding page");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_dashboardpage_name_30"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_dashboardpage_name_30"));
+ System.out.println("--Edit page in dashboard");
+ selenium.clickAt("link=Edit Page", "1,1");
+ selenium.clickAt("link=View Page properties", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("title"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("title", "test_dashboardpage_edit_30");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Page Management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Edit Dashboard layout");
+ selenium.clickAt("link=test_dashboardpage_name_30", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Layout"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Layout", "1,1");
+ selenium.clickAt("link=Portal Properties", "1,1");
+ selenium.select("locale", "label=English");
+ selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
+ "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']", "1,1");
+ System.out.println("--Delete page");
+ selenium.clickAt("//div[@class='SelectedTab']//img[@class='CloseIcon']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Really want to remove this dashboard?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isTextPresent("test_dashboardpage_name_30"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_31() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-ChangeLanguagePrivateMode-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Change Language"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Change Language", "1,1");
+ System.out.println("--Change to French");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=French"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=French", "1,1");
+ selenium.click("link=Apply");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Verify");
+ assertTrue(selenium.isTextPresent("Accueil"));
+ selenium.clickAt("link=Changer la langue", "1,1");
+ System.out.println("--Change back to English");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=anglais"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=anglais", "1,1");
+ selenium.click("link=Appliquer");
+ selenium.waitForPageToLoad("30000");
+ assertTrue(selenium.isTextPresent("Home"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_32() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-ChangeDisplaySkin-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Change Skin"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Change Skin", "1,1");
+ selenium.clickAt("//div[@id='UITabContent']//div[@class='ItemListContainer']//div[@class='ItemList']//div[@class='SelectedItem Item']",
+ "1,1");
+ selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='ActionButton LightBlueStyle']",
+ "1,1");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Verify");
+ System.out.println("---------");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_05() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-RememberMyLogin-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.clickAt("rememberme", "1,1");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ selenium.clickAt("link=Sign in", "1,1");
+ System.out.println("##\"Sign out\" resets \"rememberme\"");
+ verifyTrue(selenium.isChecked("rememberme"));
+ selenium.clickAt("link=Discard", "1,1");
+ }
+
+ public void testSNF_PRL_06() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-UserManagement-");
+ selenium.click("link=Sign in");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Group"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Group");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("User Name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("Last Name"));
+ assertTrue(selenium.isTextPresent("First Name"));
+ assertTrue(selenium.isTextPresent("Email"));
+ System.out.println("--Edit fields");
+ selenium.clickAt("//div[@id='UIListUsersGird']//tbody/tr[3]//td[5]//div//img", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("firstName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("firstName", "test_user_06");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIUserManagement']//div[@class='TabsContainer']/div[2]//div[@class='MiddleTab']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("user.name.given"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("user.name.given", "test_name_given_06");
+ selenium.type("user.name.family", "test_name_family_06");
+ selenium.type("user.name.nickName", "test_name_nick_06");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("The user profile has been updated."));
+ selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton",
+ "1,1");
+ selenium.clickAt("link=Cancel", "1,1");
+ System.out.println("--Verify changes");
+ assertTrue(selenium.isTextPresent("test_user_06"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_11() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-AddApplicationToCategory-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Application Registry", "1,1");
+ System.out.println("--Add application to Administration Category");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon CreateNewIcon']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon CreateNewIcon']",
+ "1,1");
+ System.out.println("--Select first application in list");
+ selenium.clickAt("//input[@name='application' and @value='1']", "1,1");
+ selenium.type("displayName", "test_displayname_11");
+ selenium.clickAt("css=form#UIAddApplicationForm div.UIAction div.ActionButton", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//a[@class='TabLabel' and @title='Administration']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Edit category permissions");
+ selenium.clickAt("//a[@class='TabLabel' and @title='Administration']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Permission"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Permission", "1,1");
+ selenium.clickAt("//div[@id='ListPermissionSelector']//a[@title='Organization']", "1,1");
+ selenium.clickAt("link=manager", "1,1");
+ assertTrue(selenium.isTextPresent("test_displayname_11"));
+ selenium.clickAt("//div[@class='IconControl ImportIcon']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation()
+ .equals("This action will automatically create categories and import all the gadgets and portlets on it.")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Delete application");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon DeletePortalIcon']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon DeletePortalIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure to delete this application?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Sign out"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_19() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-EditPortalNavigation-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.click("link=Site");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Edit Portal layout, currently do not change anything");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Layout"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Layout", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("css=div#Administration/ApplicationRegistryPortlet"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.dragAndDropToObject("css=div#Administration/ApplicationRegistryPortlet",
+ "css=div#Administration/ApplicationRegistryPortlet");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIPortalComposer']//div[@class='OverflowContainer']/a[@class='CloseButton']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("classic"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ System.out.println("--Edit nav: add node, actions ...");
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Node"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Node", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("name"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("name", "test_nodename_19");
+ selenium.type("label", "test_node_label_19");
+ System.out.println("--Select Page");
+ selenium.clickAt("css=div#UISiteManagement > div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Search and Select Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Search and Select Page", "1,1");
+ System.out.println("--Select the first page");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("//div[@id='UIRepeater']//table//tbody/tr/td[5]/div[@class='ActionContainer']/img");
+ System.out.println("--Save");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ System.out.println("--Edit Portal Properties");
+ selenium.clickAt("link=Edit Portal's Properties", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Permission Setting"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Select Permission"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Select Permission", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Platform"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Platform", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Administrators"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Administrators", "1,1");
+ selenium.clickAt("//div[@id='PermissionSelector']//div[2]/a", "1,1");
+ selenium.clickAt("//form[@id='UIPortalForm']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']",
+ "1,1");
+ selenium.open("/portal/private/classic/");
+ System.out.println("--Select new node");
+ selenium.clickAt("link=test_node_label_19", "1,1");
+ assertTrue(selenium.isElementPresent("//div[@class='SelectedNavigationTab']//a"));
+ System.out.println("--Delete node");
+ selenium.clickAt("link=Edit Navigation", "1,1");
+ selenium.click("link=Delete Node");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete this node?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Save");
+ System.out.println("--Verify Deletion");
+ selenium.click("link=Home");
+ assertFalse(selenium.isTextPresent("test_node_label_19"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_28() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-ActionsDashboardpage-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Dashboard", "1,1");
+ System.out.println("--Add gadgets into dashboard page");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Gadgets"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Gadgets", "1,1");
+ System.out.println("--By url");
+ selenium.type("//input[@id='url']", "http://www.google.com/ig/modules/datetime.xml");
+ selenium.clickAt("//img[@class='AddNewNodeIcon']", "1,1");
+ selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']", "1,1");
+ assertTrue(selenium.isElementPresent("//div[@class='GadgetTitle']"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@class='CloseGadget IconControl' and @title='Delete Gadget']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@class='CloseGadget IconControl' and @title='Delete Gadget']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure to delete this gadget?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add Gadgets"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add Gadgets", "1,1");
+ System.out.println("--By drag and drop");
+ selenium.dragAndDropToObject("//div[@class='GadgetTitle' and @title='Calculator']",
+ "//div[@class='GadgetTitle' and @title='Calculator']");
+ selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']", "1,1");
+ assertTrue(selenium.isElementPresent("//div[@class='GadgetTitle']"));
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@class='CloseGadget IconControl']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@title='Delete Gadget']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure to delete this gadget?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("Drag your gadgets here."));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_29() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-AddEditPageEditLayoutDashboard-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Dashboard", "1,1");
+ System.out.println("--Add new page in dashboard");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Add New Page"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Add New Page", "1,1");
+ System.out.println("--Choose \"root\" node");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("pageName"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("pageName", "test_dashboardpage_29");
+ selenium.type("pageDisplayName", "test_dashboardpage_name_29");
+ System.out.println("--Click Next to move to step 2");
+ selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+ System.out.println("--Click Next to move to step 3, keep Empty layout");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+ System.out.println("--Open Editor pane");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']", "1,1");
+ System.out.println("--Click Save to complete adding page");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_dashboardpage_name_29"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_dashboardpage_name_29"));
+ System.out.println("--Edit page in dashboard");
+ selenium.type("1", "test_dashboardpage_edit_29");
+ System.out.println("--Edit Dashboard layout");
+ selenium.clickAt("link=test_dashboardpage_edit_29", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Edit Layout"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Edit Layout", "1,1");
+ selenium.clickAt("link=Portal Properties", "1,1");
+ selenium.select("locale", "label=English");
+ selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]",
+ "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']", "1,1");
+ System.out.println("--Delete page");
+ selenium.clickAt("//div[@class='SelectedTab']//img[@class='CloseIcon']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Really want to remove this dashboard?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertFalse(selenium.isTextPresent("test_dashboardpage_edit_29"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_33() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-AccountSetting-");
+ System.out.println("--Register new account");
+ selenium.clickAt("link=Register", "1,1");
+ selenium.type("User Name:", "test_user_33");
+ selenium.type("Password:", "test_pwd_33");
+ selenium.type("Confirm Password:", "test_pwd_33");
+ selenium.type("First Name:", "test_name_first_33");
+ selenium.type("Last Name:", "test_name_last_33");
+ selenium.type("Email Address:", "test_user_33(a)yahoo.com");
+ selenium.clickAt("link=Subscribe", "1,1");
+ selenium.open("/portal/public/classic/");
+ System.out.println("--Sign in and modify");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "test_user_33");
+ selenium.type("password", "test_pwd_33");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_name_first_33 test_name_last_33"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=test_name_first_33 test_name_last_33", "1,1");
+ selenium.clickAt("link=Change Password", "1,1");
+ selenium.type("currentpass", "test_pwd_33");
+ selenium.type("newpass", "test_pwd_33_edit");
+ selenium.type("confirmnewpass", "test_pwd_33_edit");
+ selenium.clickAt("link=Save", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=OK"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=OK", "1,1");
+ selenium.clickAt("link=Close", "1,1");
+ selenium.click("link=Sign out");
+ selenium.waitForPageToLoad("30000");
+ System.out.println("--Verify modifications");
+ selenium.clickAt("link=Sign in", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("username"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.type("username", "test_user_33");
+ selenium.type("password", "test_pwd_33_edit");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isTextPresent("test_name_first_33 test_name_last_33"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("test_name_first_33 test_name_last_33"));
+ selenium.clickAt("link=Sign out", "1,1");
+ System.out.println("--Delete new user");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users and groups management"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("link=Users and groups management");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("//div[@class='UIListUsers']//tbody/tr[5]//img[@class='DeleteUserIcon']",
+ "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.getConfirmation().equals("Are you sure you want to delete test_user_33 user?")) {
+ break;
+ }
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_34() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic");
+ System.out.println("-LogoPortletAccSetting-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Dashboard", "1,1");
+ System.out.println("--Edit Logo Picture");
+ selenium.clickAt("link=Edit Layout", "1,1");
+ selenium.clickAt("//form[@id='UILogoEditMode']/div[2]/div/div/table/tbody/tr/td/div/div/div/div",
+ "1,1");
+ selenium.type("logoUrl", "url to define !!");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("link=Close", "1,1");
+ selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]", "1,1");
+ assertTrue(selenium.isElementPresent("//div[@id='UILogoPortlet']/a/img[@src='/eXoResources/skin/sharedImages/DashboardIcon.png']"));
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
+ public void testSNF_PRL_22() throws Exception {
+ setSpeed();
+ selenium.open("/portal/public/classic/");
+ System.out.println("-EditPortalLayout-");
+ selenium.clickAt("link=Sign in", "1,1");
+ selenium.type("username", "root");
+ selenium.type("password", "gtn");
+ selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+ selenium.waitForPageToLoad("30000");
+ selenium.click("link=Site");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Edit Layout", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Portal Properties"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Portal Properties", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("locale"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.select("locale", "label=French (France)");
+ selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("publicMode"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.click("publicMode");
+ selenium.clickAt("link=Edit Permission Setting", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Select Permission"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Select Permission", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Platform"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Platform", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Users"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Users", "1,1");
+ selenium.clickAt("link=exact:*", "1,1");
+ selenium.clickAt("link=Save", "1,1");
+ selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=classic"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=classic", "1,1");
+ System.out.println("--Verify");
+ selenium.click("link=Site");
+ selenium.waitForPageToLoad("30000");
+ selenium.clickAt("link=Edit Layout", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=Portal Properties"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=Portal Properties", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("locale"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ assertTrue(selenium.isTextPresent("French (France)"));
+ selenium.select("locale", "label=French (France)");
+ selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("publicMode"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']", "1,1");
+ for (int second = 0;; second++) {
+ if (second >= 30)
+ fail("timeout");
+ try {
+ if (selenium.isElementPresent("link=classic"))
+ break;
+ } catch (Exception e) {
+ }
+ Thread.sleep(1000);
+ }
+ selenium.clickAt("link=classic", "1,1");
+ selenium.clickAt("link=Sign out", "1,1");
+ }
+
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_02.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_02.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_02.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_02 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_02() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-New Account-");
System.out.println("--Register new account");
@@ -27,6 +33,14 @@
selenium.type("username", "test_user_02");
selenium.type("password", "test_pwd_02");
selenium.clickAt("//div[@id='UIPortalLoginFormAction']//a", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isTextPresent("test_name_first_02 test_name_last_02"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
assertTrue(selenium.isTextPresent("test_name_first_02 test_name_last_02"));
selenium.clickAt("link=Sign out", "1,1");
System.out.println("--Delete new user");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_03.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_03.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_03.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_03 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_03() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-Change Language-");
selenium.clickAt("//a[@class='Language']", "1,1");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_04.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_04.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_04.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_04 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_04() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-SignInOut-");
selenium.click("link=Sign in");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_05.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_05.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_05.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_05 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_05() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-RememberMyLogin-");
selenium.clickAt("link=Sign in", "1,1");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_06.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_06.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_06.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_06 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_06() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-UserManagement-");
selenium.click("link=Sign in");
@@ -61,12 +67,12 @@
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
+ if (selenium.isElementPresent("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton", "1,1");
+selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -91,13 +97,13 @@
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
+ if (selenium.isElementPresent("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
assertTrue(selenium.isTextPresent("The user profile has been updated."));
-selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton", "1,1");
+selenium.clickAt("css=div#UIOrganizationPortlet div.ManagementTabContent > div.UIPopupWindow div.ActionButton", "1,1");
selenium.clickAt("link=Cancel", "1,1");
System.out.println("--Verify changes");
assertTrue(selenium.isTextPresent("test_user_06"));
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_07.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_07 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_07() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-GroupManagement-");
selenium.click("link=Sign in");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_08.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_08 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_08() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-MembershipManagement-");
selenium.click("link=Sign in");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_09.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_09.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_09.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_09 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_09() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-AutoImport-");
selenium.clickAt("link=Sign in", "1,1");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_10.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_10 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_10() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-CategoryManagement-");
selenium.click("link=Sign in");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_11.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_11.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_11.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_11 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_11() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-AddApplicationToCategory-");
selenium.clickAt("link=Sign in", "1,1");
@@ -18,6 +24,14 @@
selenium.waitForPageToLoad("30000");
selenium.clickAt("link=Application Registry", "1,1");
System.out.println("--Add application to Administration Category");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon CreateNewIcon']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[@class='ListContent']//div[@class='SelectedTab']//a[@class='ControlIcon CreateNewIcon']", "1,1");
System.out.println("--Select first application in list");
selenium.clickAt("//input[@name='application' and @value='1']", "1,1");
@@ -45,7 +59,27 @@
selenium.clickAt("//div[@id='ListPermissionSelector']//a[@title='Organization']", "1,1");
selenium.clickAt("link=manager", "1,1");
assertTrue(selenium.isTextPresent("test_displayname_11"));
+selenium.clickAt("//div[@class='IconControl ImportIcon']", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("This action will automatically create categories and import all the gadgets and portlets on it.")) {
+break;
+}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
System.out.println("--Delete application");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon DeletePortalIcon']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[@class='ListContent']//div[@class='UIVTabContent']/div[8]//a[@class='ControlIcon DeletePortalIcon']", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_13.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_13 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_13() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-AddGadget-");
selenium.clickAt("link=Sign in", "1,1");
@@ -17,6 +23,14 @@
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
selenium.waitForPageToLoad("30000");
selenium.clickAt("link=Application Registry", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Gadget"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("link=Gadget", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_15.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_15.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_15.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_15 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_15() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-SiteMapAndLinkToPage-");
selenium.clickAt("link=Sign in", "1,1");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_18.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_18 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_18() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-CreateNewPortal-");
selenium.clickAt("link=Sign in", "1,1");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_19.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_19.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_19.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_19 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_19() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-EditPortalNavigation-");
selenium.clickAt("link=Sign in", "1,1");
@@ -76,7 +82,7 @@
selenium.type("name", "test_nodename_19");
selenium.type("label", "test_node_label_19");
System.out.println("--Select Page");
-selenium.clickAt("css=div#UISiteManagement > div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab", "1,1");
+selenium.clickAt("css=div#UISiteManagement > div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -152,7 +158,7 @@
System.out.println("--Select new node");
selenium.clickAt("link=test_node_label_19", "1,1");
assertTrue(selenium.isElementPresent("//div[@class='SelectedNavigationTab']//a"));
-selenium.clickAt("link=Site", "1,1");
+System.out.println("--Delete node");
selenium.clickAt("link=Edit Navigation", "1,1");
selenium.click("link=Delete Node");
for (int second = 0;; second++) {
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_20.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_20.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_20.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_20 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_20() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-DeletePortal-");
selenium.clickAt("link=Sign in", "1,1");
@@ -27,10 +33,10 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add New Portal", "1,1");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]", "1,1");
+selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]", "1,1");
selenium.type("name", "test_portal_name_20");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]", "1,1");
+selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
+selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]", "1,1");
selenium.clickAt("publicMode", "1,1");
selenium.clickAt("link=Edit Permission Setting", "1,1");
selenium.clickAt("link=Select Permission", "1,1");
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_21.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,12 +3,18 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_21 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_21() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
selenium.open("/portal/public/classic/");
System.out.println("-ChangePortal-");
selenium.clickAt("link=Sign in", "1,1");
@@ -27,10 +33,18 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add New Portal", "1,1");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PortalSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PortalSetting')\"]", "1,1");
selenium.type("name", "test_portal_name_21");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]", "1,1");
+selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
+selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'PermissionSetting');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=PermissionSetting')\"]", "1,1");
selenium.clickAt("publicMode", "1,1");
selenium.clickAt("link=Edit Permission Setting", "1,1");
selenium.clickAt("link=Select Permission", "1,1");
@@ -49,6 +63,28 @@
assertTrue(selenium.isTextPresent("test_portal_name_21"));
System.out.println("--View new portal");
selenium.clickAt("link=test_portal_name_21", "1,1");
+selenium.clickAt("link=Site", "1,1");
+System.out.println("--Delete new portal");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@id='UISiteManagement']/table[2]//td[3]/a[4]"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
}
+selenium.clickAt("//div[@id='UISiteManagement']/table[2]//td[3]/a[4]", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("Are you sure you want to delete this portal?")) {
+break;
+}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
+}
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_22.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_22.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_22.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,13 +3,25 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_22 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_22() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
+setSpeed();
+selenium.open("/portal/public/classic/");
+System.out.println("-EditPortalLayout-");
+selenium.clickAt("link=Sign in", "1,1");
+selenium.type("username", "root");
+selenium.type("password", "gtn");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+selenium.waitForPageToLoad("30000");
selenium.click("link=Site");
selenium.waitForPageToLoad("30000");
selenium.clickAt("link=Edit Layout", "1,1");
@@ -81,6 +93,49 @@
Thread.sleep(1000);
}
selenium.clickAt("link=classic", "1,1");
+System.out.println("--Verify");
+selenium.click("link=Site");
+selenium.waitForPageToLoad("30000");
+selenium.clickAt("link=Edit Layout", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Portal Properties"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
}
+selenium.clickAt("link=Portal Properties", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("locale"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+assertTrue(selenium.isTextPresent("French (France)"));
+selenium.select("locale", "label=French (France)");
+selenium.click("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("publicMode"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=classic"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=classic", "1,1");
+selenium.clickAt("link=Sign out", "1,1");
+}
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_23.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_23.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_23.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,13 +3,21 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_23 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_23() throws Exception {
-selenium.setSpeed("500");
-selenium.click("link=Sign in");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-AddNavigation-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
@@ -45,25 +53,28 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add Node", "1,1");
-selenium.type("name", "grp_node");
-selenium.type("label", "new_grp_node");
+selenium.type("name", "test_grp_node_23");
+selenium.type("label", "test_grp_label_23");
+System.out.println("--Choose \"Page Selector\" tab");
selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']", "1,1");
selenium.clickAt("link=Search and Select Page", "1,1");
+System.out.println("--Select the first page from pages list");
selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']", "1,1");
selenium.clickAt("link=Save", "1,1");
selenium.clickAt("link=Save", "1,1");
-selenium.check("//a[@onclick='eXo.portal.logout();']");
-selenium.waitForPageToLoad("30000");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=new_grp_node"))
+ if (selenium.isElementPresent("link=test_grp_label_23"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.click("link=new_grp_node");
+selenium.click("link=test_grp_label_23");
selenium.waitForPageToLoad("30000");
+System.out.println("--Delete new group navigation");
+System.out.println("-----------");
+selenium.clickAt("link=Sign out", "1,1");
}
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_24.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_24.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_24.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,19 +3,86 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_24 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_24() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-EditDeleteNavigation-");
+selenium.clickAt("link=Sign in", "1,1");
+selenium.type("username", "root");
+selenium.type("password", "gtn");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+selenium.waitForPageToLoad("30000");
selenium.open("/portal/private/classic/");
selenium.click("link=Group");
selenium.waitForPageToLoad("30000");
-selenium.clickAt("//a[@class='EditProIcon']", "1,1");
-selenium.type("description", "more and more");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Add Navigation"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=Add Navigation", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Cancel"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=Cancel", "1,1");
+selenium.clickAt("link=Edit Navigation", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Add Node"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=Add Node", "1,1");
+selenium.type("name", "test_grp_node_24");
+selenium.type("label", "test_grp_label_24");
+System.out.println("--Choose \"Page Selector\" tab");
+selenium.clickAt("//div[@class='CenterHorizontalTabs']//div[@class='NormalTab']//div[@class='MiddleTab']", "1,1");
+selenium.clickAt("link=Search and Select Page", "1,1");
+System.out.println("--Select the first page from pages list");
+selenium.clickAt("//div[@id='UIRepeater']//img[@class='SelectPageIcon']", "1,1");
selenium.clickAt("link=Save", "1,1");
-assertTrue(selenium.isTextPresent(""));
+selenium.clickAt("link=Save", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=test_grp_label_24"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
}
+selenium.click("link=test_grp_label_24");
+selenium.waitForPageToLoad("30000");
+System.out.println("--Edit navigation properties");
+selenium.click("link=Group");
+selenium.waitForPageToLoad("30000");
+selenium.clickAt("//div[@id='UIGroupNavigationGrid']/table[4]//td[@class='ActionBlock']//a[@class='EditProIcon']", "1,1");
+selenium.type("description", "test_description_edit_24");
+selenium.select("priority", "10");
+selenium.clickAt("link=Save", "1,1");
+assertTrue(selenium.isTextPresent("Description: test_description_edit_24"));
+System.out.println("--Delete new group navigation");
+System.out.println("-----------");
+selenium.clickAt("link=Sign out", "1,1");
+}
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_25.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_25.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_25.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,13 +3,25 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_25 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_25() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-EditNavActions_Rightclickmenu-");
+selenium.clickAt("link=Sign in", "1,1");
+selenium.type("username", "root");
+selenium.type("password", "gtn");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+selenium.waitForPageToLoad("30000");
selenium.click("link=Group");
selenium.waitForPageToLoad("30000");
for (int second = 0;; second++) {
@@ -38,8 +50,8 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("name", "Hihizzz");
-selenium.type("label", "Hohohozzz");
+selenium.type("name", "test_grp_node_25");
+selenium.type("label", "test_grp_label_25");
selenium.clickAt("css=div#UIGroupNavigationManagement div.UIPopupWindow div.TabsContainer div.NormalTab div.MiddleTab", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
@@ -69,8 +81,10 @@
}
selenium.clickAt("link=Save", "1,1");
selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("link=Hohohozzz", "1,1");
-selenium.open("/portal/private/classic/");
+selenium.clickAt("link=test_grp_label_25", "1,1");
+System.out.println("--Edit node's page");
+System.out.println("---Rightclick on link in group");
+selenium.clickAt("link=Sign out", "1,1");
}
}
Deleted: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_27_1.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -1,75 +0,0 @@
-package org.exoplatform.portal.selenium;
-
-import com.thoughtworks.selenium.*;
-import java.util.regex.Pattern;
-public class Test_SNF_PRL_27_1 extends SeleneseTestCase {
-public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
-}
-
-public void testSNF_PRL_27_1() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
-selenium.clickAt("link=Page Management", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Add New Page", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("pageName"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("pageName", "newpage21211");
-selenium.type("pageDisplayName", "new page21211");
-selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
-selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='Administration/AccountPortlet']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=View Page properties", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isTextPresent("Show Max Window"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']", "1,1");
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-selenium.clickAt("link=Cancel", "1,1");
-selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//img[@alt='']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Edit Page", "1,1");
-selenium.clickAt("link=View Page properties", "1,1");
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[3]//div[@class='MiddleTab']", "1,1");
-selenium.clickAt("link=Add Permission", "1,1");
-selenium.clickAt("link=Platform", "1,1");
-selenium.clickAt("link=Administrators", "1,1");
-selenium.clickAt("//div[@id='UIPageFormPopupGroupMembershipSelector']//div[@class='MembershipSelector']//a", "1,1");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
-}
-
-}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_28.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_28.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_28.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,18 +3,27 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_28 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_28() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-ActionsDashboardpage-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/");
selenium.clickAt("link=Dashboard", "1,1");
+System.out.println("--Add gadgets into dashboard page");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -24,9 +33,66 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add Gadgets", "1,1");
-selenium.type("//input[@id='url']", "http://hosting.gmodules.com/ig/gadgets/file/112581010116074801021/treefro...");
+System.out.println("--By url");
+selenium.type("//input[@id='url']", "http://www.google.com/ig/modules/datetime.xml");
selenium.clickAt("//img[@class='AddNewNodeIcon']", "1,1");
selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']", "1,1");
+assertTrue(selenium.isElementPresent("//div[@class='GadgetTitle']"));
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@class='CloseGadget IconControl' and @title='Delete Gadget']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
}
+selenium.clickAt("//div[@class='CloseGadget IconControl' and @title='Delete Gadget']", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("Are you sure to delete this gadget?")) {
+break;
+}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("link=Add Gadgets"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("link=Add Gadgets", "1,1");
+System.out.println("--By drag and drop");
+selenium.dragAndDropToObject("//div[@class='GadgetTitle' and @title='Calculator']","//div[@class='GadgetTitle' and @title='Calculator']");
+selenium.clickAt("//div[@id='UIAddGadgetPopup']//div[@class='CloseButton']", "1,1");
+assertTrue(selenium.isElementPresent("//div[@class='GadgetTitle']"));
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@class='CloseGadget IconControl']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+selenium.clickAt("//div[@title='Delete Gadget']", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("Are you sure to delete this gadget?")) {
+break;
+}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
+assertTrue(selenium.isTextPresent("Drag your gadgets here."));
+selenium.clickAt("link=Sign out", "1,1");
+}
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_29.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_29.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_29.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,16 +3,27 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_29 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_29() throws Exception {
-selenium.setSpeed("500");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-AddEditPageEditLayoutDashboard-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
-selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
+selenium.clickAt("link=Dashboard", "1,1");
+System.out.println("--Add new page in dashboard");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -22,6 +33,7 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add New Page", "1,1");
+System.out.println("--Choose \"root\" node");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -30,29 +42,56 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("pageName", "dashboardpage12");
-selenium.type("pageDisplayName", "dashboard new page12");
+selenium.type("pageName", "test_dashboardpage_29");
+selenium.type("pageDisplayName", "test_dashboardpage_name_29");
+System.out.println("--Click Next to move to step 2");
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+System.out.println("--Click Next to move to step 3, keep Empty layout");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+System.out.println("--Open Editor pane");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']", "1,1");
-selenium.click("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]");
-assertTrue(selenium.isTextPresent("dashboard new page"));
-selenium.clickAt("link=Edit Page", "1,1");
-selenium.clickAt("link=View Page properties", "1,1");
+System.out.println("--Click Save to complete adding page");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("title"))
+ if (selenium.isElementPresent("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("title", "new dashboard");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']", "1,1");
+selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
+ if (selenium.isTextPresent("test_dashboardpage_name_29"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
+assertTrue(selenium.isTextPresent("test_dashboardpage_name_29"));
+System.out.println("--Edit page in dashboard");
+selenium.type("1", "test_dashboardpage_edit_29");
+System.out.println("--Edit Dashboard layout");
+selenium.clickAt("link=test_dashboardpage_edit_29", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
if (selenium.isElementPresent("link=Edit Layout"))
break; }
catch (Exception e) {}
@@ -61,9 +100,32 @@
selenium.clickAt("link=Edit Layout", "1,1");
selenium.clickAt("link=Portal Properties", "1,1");
selenium.select("locale", "label=English");
-selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
+selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
selenium.clickAt("link=Save", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+ if (selenium.isElementPresent("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']"))
+break; }
+ catch (Exception e) {}
+Thread.sleep(1000);
+}
selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']", "1,1");
+System.out.println("--Delete page");
+selenium.clickAt("//div[@class='SelectedTab']//img[@class='CloseIcon']", "1,1");
+for (int second = 0;; second++) {
+if (second >= 30) fail("timeout");
+try {
+if (selenium.getConfirmation().equals("Really want to remove this dashboard?")) {
+break;
}
+}
+catch (Exception e) {
+}
+Thread.sleep(1000);
+}
+assertFalse(selenium.isTextPresent("test_dashboardpage_edit_29"));
+selenium.clickAt("link=Sign out", "1,1");
+}
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_30.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_30.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_30.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,13 +3,27 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_30 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_30() throws Exception {
-selenium.setSpeed("500");
-selenium.open("/portal/private/classic/");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-DashboardSiteManagement-");
+selenium.clickAt("link=Sign in", "1,1");
+selenium.type("username", "root");
+selenium.type("password", "gtn");
+selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
+selenium.waitForPageToLoad("30000");
+selenium.clickAt("link=Dashboard", "1,1");
+System.out.println("--Add new page in dashboard");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -19,18 +33,20 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Add New Page", "1,1");
+System.out.println("--Choose \"root\" node");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a"))
+ if (selenium.isElementPresent("pageName"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("//div[@id='UIPageNodeSelector']//div[@class='HomeNode']/a", "1,1");
-selenium.type("pageName", "test9");
-selenium.type("pageDisplayName", "test9");
+selenium.type("pageName", "test_dashboardpage_30");
+selenium.type("pageDisplayName", "test_dashboardpage_name_30");
+System.out.println("--Click Next to move to step 2");
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+System.out.println("--Click Next to move to step 3, keep Empty layout");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -40,43 +56,37 @@
Thread.sleep(1000);
}
selenium.clickAt("//div[@id='UIPageCreationWizard']//div[@class='UIAction']//div[2]", "1,1");
+System.out.println("--Open Editor pane");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=View Page properties"))
+ if (selenium.isElementPresent("//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("link=View Page properties", "1,1");
+selenium.clickAt("//div[@onclick='eXo.portal.UIPortal.toggleComposer(this)']", "1,1");
+System.out.println("--Click Save to complete adding page");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("title"))
+ if (selenium.isElementPresent("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.type("title", "test9_changed");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("css=a.EdittedSaveButton", "1,1");
+selenium.clickAt("//div[@id='UIPageEditor']/div[1]/div/div/div/a[2]", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=Edit Page"))
+ if (selenium.isTextPresent("test_dashboardpage_name_30"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
+assertTrue(selenium.isTextPresent("test_dashboardpage_name_30"));
+System.out.println("--Edit page in dashboard");
selenium.clickAt("link=Edit Page", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=View Page properties"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
selenium.clickAt("link=View Page properties", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
@@ -86,69 +96,56 @@
catch (Exception e) {}
Thread.sleep(1000);
}
-assertEquals("test9_changed", selenium.getValue("title"));
+selenium.type("title", "test_dashboardpage_edit_30");
+selenium.clickAt("link=Save", "1,1");
+selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']"))
+ if (selenium.isElementPresent("link=Page Management"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']/div[3]//div[@class='MiddleTab']", "1,1");
+System.out.println("--Edit Dashboard layout");
+selenium.clickAt("link=test_dashboardpage_name_30", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("publicMode"))
+ if (selenium.isElementPresent("link=Edit Layout"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("publicMode", "1,1");
-selenium.clickAt("link=Add Permission", "1,1");
+selenium.clickAt("link=Edit Layout", "1,1");
+selenium.clickAt("link=Portal Properties", "1,1");
+selenium.select("locale", "label=English");
+selenium.clickAt("//div[@onclick=\"eXo.webui.UIHorizontalTabs.changeTabForUIFormTabpane(this, 'UIPortalForm', 'Properties');javascript:eXo.webui.UIForm.submitEvent('UIPortalForm','SelectTab','&objectId=Properties')\"]", "1,1");
+selenium.clickAt("link=Save", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=Platform"))
+ if (selenium.isElementPresent("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']"))
break; }
catch (Exception e) {}
Thread.sleep(1000);
}
-selenium.clickAt("link=Platform", "1,1");
+selenium.clickAt("//div[@id='UIPortalComposer']//a[@class='EdittedSaveButton']", "1,1");
+System.out.println("--Delete page");
+selenium.clickAt("//div[@class='SelectedTab']//img[@class='CloseIcon']", "1,1");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
- if (selenium.isElementPresent("link=Administrators"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
+if (selenium.getConfirmation().equals("Really want to remove this dashboard?")) {
+break;
}
-selenium.clickAt("link=Administrators", "1,1");
-selenium.clickAt("link=exact:*", "1,1");
-selenium.clickAt("link=Edit Permission Setting", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Select Permission"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
}
-selenium.clickAt("link=Select Permission", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Platform"))
-break; }
- catch (Exception e) {}
+catch (Exception e) {
+}
Thread.sleep(1000);
}
-selenium.clickAt("link=Platform", "1,1");
-selenium.clickAt("//div[@id='PermissionSelector']//div[@class='MembershipSelector']//div[@class='OverflowContainer']/div[3]/a", "1,1");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageEditor']//div[@class='TLPortalComposer']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']", "1,1");
-assertTrue(selenium.isTextPresent("test9"));
-selenium.open("/portal/private/classic/");
+assertFalse(selenium.isTextPresent("test_dashboardpage_name_30"));
+selenium.clickAt("link=Sign out", "1,1");
}
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_31.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_31.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_31.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,18 +3,25 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_31 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_31() throws Exception {
-selenium.setSpeed("500");
-selenium.click("link=Sign in");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-ChangeLanguagePrivateMode-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -24,6 +31,7 @@
Thread.sleep(1000);
}
selenium.clickAt("link=Change Language", "1,1");
+System.out.println("--Change to French");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -35,8 +43,10 @@
selenium.clickAt("link=French", "1,1");
selenium.click("link=Apply");
selenium.waitForPageToLoad("30000");
+System.out.println("--Verify");
assertTrue(selenium.isTextPresent("Accueil"));
selenium.clickAt("link=Changer la langue", "1,1");
+System.out.println("--Change back to English");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -49,6 +59,7 @@
selenium.click("link=Appliquer");
selenium.waitForPageToLoad("30000");
assertTrue(selenium.isTextPresent("Home"));
+selenium.clickAt("link=Sign out", "1,1");
}
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_32.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_32.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_32.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,18 +3,25 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_32 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_32() throws Exception {
-selenium.setSpeed("500");
-selenium.click("link=Sign in");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-ChangeDisplaySkin-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/");
for (int second = 0;; second++) {
if (second >= 30) fail("timeout");
try {
@@ -27,6 +34,9 @@
selenium.clickAt("//div[@id='UITabContent']//div[@class='ItemListContainer']//div[@class='ItemList']//div[@class='SelectedItem Item']", "1,1");
selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='ActionButton LightBlueStyle']", "1,1");
selenium.waitForPageToLoad("30000");
+System.out.println("--Verify");
+System.out.println("---------");
+selenium.clickAt("link=Sign out", "1,1");
}
}
Modified: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_34.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_34.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_34.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -3,32 +3,35 @@
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
public class Test_SNF_PRL_34 extends SeleneseTestCase {
+public String speed = "1000";
+public String browser = "firefox";
+public void setSpeed() {
+selenium.setSpeed(speed);
+}
+
public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
+setUp("http://localhost:8080/portal/", "*" + browser);
}
public void testSNF_PRL_34() throws Exception {
-selenium.setSpeed("500");
-selenium.click("link=Sign in");
+setSpeed();
+selenium.open("/portal/public/classic");
+System.out.println("-LogoPortletAccSetting-");
+selenium.clickAt("link=Sign in", "1,1");
selenium.type("username", "root");
selenium.type("password", "gtn");
selenium.click("//div[@id='UIPortalLoginFormAction']/div/div/div/a");
selenium.waitForPageToLoad("30000");
-selenium.open("/portal/private/classic/");
-selenium.clickAt("link=Root Root", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("email"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("email", "mytest.exo10(a)gmail.com");
-selenium.type("lastName", "Root");
+selenium.clickAt("link=Dashboard", "1,1");
+System.out.println("--Edit Logo Picture");
+selenium.clickAt("link=Edit Layout", "1,1");
+selenium.clickAt("//form[@id='UILogoEditMode']/div[2]/div/div/table/tbody/tr/td/div/div/div/div", "1,1");
+selenium.type("logoUrl", "url to define !!");
selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("link=OK", "1,1");
selenium.clickAt("link=Close", "1,1");
+selenium.clickAt("//div[@id='UIPortalComposer']/div[1]/div/div/div/a[2]", "1,1");
+assertTrue(selenium.isElementPresent("//div[@id='UILogoPortlet']/a/img[@src='/eXoResources/skin/sharedImages/DashboardIcon.png']"));
+selenium.clickAt("link=Sign out", "1,1");
}
}
Deleted: portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_35.java
===================================================================
--- portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_35.java 2010-01-22 22:39:11 UTC (rev 1424)
+++ portal/trunk/testsuite/ui-tests/sniff-tests/src/test/java/org/exoplatform/portal/selenium/Test_SNF_PRL_35.java 2010-01-23 00:10:34 UTC (rev 1425)
@@ -1,122 +0,0 @@
-package org.exoplatform.portal.selenium;
-
-import com.thoughtworks.selenium.*;
-import java.util.regex.Pattern;
-public class Test_SNF_PRL_35 extends SeleneseTestCase {
-public void setUp() throws Exception {
-setUp("http://localhost:8080/portal/", "*firefox");
-}
-
-public void testSNF_PRL_35() throws Exception {
-selenium.setSpeed("500");
-selenium.type("username", "root");
-selenium.type("password", "gtn");
-selenium.clickAt("link=Sign in", "1,1");
-selenium.open("/portal/private/classic/administration/pageManagement");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIPageBrowser']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("name"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.type("name", "user_page1");
-selenium.type("title", "user_page_title1");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.select("ownerType", "label=portal");
-selenium.type("name", "portal_page1");
-selenium.type("title", "portal_page_title1");
-selenium.clickAt("link=Save", "1,1");
-selenium.clickAt("//div[@id='UIPageBrowser']//div[@class='UIAction']//div[@class='ActionButton LightBlueStyle']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.select("ownerType", "label=group");
-selenium.clickAt("//option[@value='group']", "1,1");
-selenium.type("name", "group_page1");
-selenium.type("title", "group_page_title1");
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIRepeater']//img[@class='EditInfoIcon']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIRepeater']//img[@class='EditInfoIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIPageEditor']//div[@class='PageProfileIcon']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIPageEditor']//div[@class='PageProfileIcon']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIMaskWorkspace']//div[@class='TabsContainer']//div[3]//div[@class='MiddleTab']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIListPermissionSelector']//input[@class='checkbox']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIListPermissionSelector']//input[@class='checkbox']", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("link=Save"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("link=Save", "1,1");
-for (int second = 0;; second++) {
-if (second >= 30) fail("timeout");
-try {
- if (selenium.isElementPresent("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']"))
-break; }
- catch (Exception e) {}
-Thread.sleep(1000);
-}
-selenium.clickAt("//div[@id='UIPageEditor']//div[@class='OverflowContainer']/a[@class='EdittedSaveButton']", "1,1");
-assertTrue(selenium.isTextPresent("user_page_title1"));
-assertTrue(selenium.isTextPresent("group_page_title1"));
-assertTrue(selenium.isTextPresent("portal_page_title1"));
-}
-
-}
14 years, 11 months