EMBJOPR SVN: r654 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-08-08 15:48:51 -0400 (Sat, 08 Aug 2009)
New Revision: 654
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
Log:
* EarTest updated.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-08-08 04:25:48 UTC (rev 653)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-08-08 19:48:51 UTC (rev 654)
@@ -94,7 +94,7 @@
*
* Was failing: JMX doesn't report EAR as deployed: eardeployment.ear
*/
- public void XtestEarBasicDeployment() throws IOException, EmbJoprTestException
+ public void testEarBasicDeployment() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -158,7 +158,7 @@
verify the archive has been deployed successfully.
*/
- public void XtestEarMalformedDescriptorDeployment() throws IOException, EmbJoprTestException {
+ public void testEarMalformedDescriptorDeployment() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = EAR_MALFORMED_APP_FILENAME;
@@ -262,7 +262,7 @@
* PASSED.
*/
- public void XtestEarNavigation() throws IOException, EmbJoprTestException, InterruptedException
+ public void testEarNavigation() throws IOException, EmbJoprTestException, InterruptedException
{
// JBossAS Servers node
@@ -339,7 +339,7 @@
/**
* Deploys an EAR and clicks a bit through the UI.
*/
- public void XtestEarDeploymentNavigation() throws IOException, EmbJoprTestException {
+ public void testEarDeploymentNavigation() throws IOException, EmbJoprTestException {
// Concrete appliction node.
{
@@ -401,7 +401,7 @@
* junit.framework.ComparisonFailure: expected:<eardeployment.ear> but was:<ondra-redhat>
at org.jboss.jopr.jsfunit.as5.EarTest.testEarSummaryTab(EarTest.java:323)
*/
- public void XtestEarSummaryTab() throws EmbJoprTestException, IOException, Exception {
+ public void testEarSummaryTab() throws EmbJoprTestException, IOException, Exception {
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -585,7 +585,7 @@
* Fails because of EMBJOPR-42 - javax.el.ELException: org.jboss.seam.RequiredException:
* @Out attribute requires non-null value: updateBackingContentAction.packageDetails
*/
- public void XtestEarRedeployment() throws IOException, EmbJoprTestException {
+ public void testEarRedeployment() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -663,7 +663,7 @@
/**
* Checks EAR metrics tab.
*/
- public void XtestEarMetricsTab() throws IOException, EmbJoprTestException {
+ public void testEarMetricsTab() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -710,7 +710,7 @@
*
* FAILS because some of the values are read-only. EMBJOPR-96
*/
- public void XtestEarMetricsTabRefreshButton() throws IOException, EmbJoprTestException {
+ public void testEarMetricsTabRefreshButton() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -755,7 +755,7 @@
* PASSED.
* Now fails, because EAR does not appear.
*/
- public void XtestEarDeployUnpacked() throws IOException, EmbJoprTestException {
+ public void testEarDeployUnpacked() throws IOException, EmbJoprTestException {
// Deploy the unpacked EAR.
@@ -796,7 +796,7 @@
/**
* Deploys an EAR with WAR as a module, and checks whether the web app runs.
*/
- public void XtestEarWithWar() throws IOException, EmbJoprTestException {
+ public void testEarWithWar() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = EAR_WITH_WAR;
@@ -855,7 +855,7 @@
* Was failing because of EMBJOPR-133.
* Now FAILS because of EMBJOPR-172.
*/
- public void XtestEarStopAndStart() throws IOException, EmbJoprTestException
+ public void testEarStopAndStart() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_WAR_COUNTER;
@@ -951,7 +951,7 @@
*
* FAILS because of EMBJOPR-133.
*/
- public void XtestEarRestart() throws IOException, EmbJoprTestException
+ public void testEarRestart() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_WAR_COUNTER;
@@ -1036,7 +1036,7 @@
* FAILS because of EMBJOPR-137 - EAR with unsatisfied dependencies
* show error upon deploy, but then shows as UP.
*/
- public void XtestEarWithUnsatisfiedDeps() throws IOException, EmbJoprTestException
+ public void testEarWithUnsatisfiedDeps() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_EXT_DEPENDENCIES;
@@ -1072,7 +1072,7 @@
- public void XtestEarRedeployDifferentName() throws IOException, EmbJoprTestException
+ public void testEarRedeployDifferentName() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_WAR_COUNTER;
@@ -1139,7 +1139,7 @@
/**
* Deploys an EAR, then re-deploys (Content tab) EAR with the same name, but different content.
*/
- public void XtestEarRedeployDifferentVersion() throws IOException, EmbJoprTestException
+ public void testEarRedeployDifferentVersion() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_WAR_COUNTER;
@@ -1206,7 +1206,7 @@
* deployed. Undeploy the archive for test clean up purposes.
*
*/
- public void XtestEarRarInEarDeployment() throws IOException, EmbJoprTestException
+ public void testEarRarInEarDeployment() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_RAR;
15 years, 4 months
EMBJOPR SVN: r653 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-08-08 00:25:48 -0400 (Sat, 08 Aug 2009)
New Revision: 653
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
Log:
* EarTest updated.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-08-08 00:10:22 UTC (rev 652)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-08-08 04:25:48 UTC (rev 653)
@@ -94,7 +94,7 @@
*
* Was failing: JMX doesn't report EAR as deployed: eardeployment.ear
*/
- public void testEarBasicDeployment() throws IOException, EmbJoprTestException
+ public void XtestEarBasicDeployment() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -158,7 +158,7 @@
verify the archive has been deployed successfully.
*/
- public void testEarMalformedDescriptorDeployment() throws IOException, EmbJoprTestException {
+ public void XtestEarMalformedDescriptorDeployment() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = EAR_MALFORMED_APP_FILENAME;
@@ -189,7 +189,7 @@
* 3) Check that the error message contains "***** ROLLED BACK TO ORIGINAL APPLICATION FILE. *****"
* 4) Check that the embedded WAR works to verify the rollback.
*
- * FAILS: EMBJOPR-226; Should be fixed in trunk.
+ * Was failing because of EMBJOPR-226.
*/
public void testEarDeployFineThenRedeployMalformedDescriptor() throws IOException, EmbJoprTestException {
@@ -220,11 +220,14 @@
ejtt.getTabMenu().getTabContentBox().getSubmitButtonByLabel("Update").click();
// We should get an error message.
- checkClientAndServerMessages("Failed to update", "Failed to update", true);
+ final String expMsg = "The specified file must have the same name as the existing deployed EAR File";
+ checkClientAndServerMessages(expMsg, expMsg, FacesMessage.SEVERITY_WARN);
+
// The error message should say that the original EAR was rolled back.
- String rolledBackMsg = "ROLLED BACK TO ORIGINAL APPLICATION FILE.";
- checkClientAndServerMessages(rolledBackMsg, rolledBackMsg, true);
+ // Was removed.
+ //String rolledBackMsg = "ROLLED BACK TO ORIGINAL APPLICATION FILE.";
+ //checkClientAndServerMessages(rolledBackMsg, rolledBackMsg, true);
}
finally {
@@ -259,7 +262,7 @@
* PASSED.
*/
- public void testEarNavigation() throws IOException, EmbJoprTestException, InterruptedException
+ public void XtestEarNavigation() throws IOException, EmbJoprTestException, InterruptedException
{
// JBossAS Servers node
@@ -336,7 +339,7 @@
/**
* Deploys an EAR and clicks a bit through the UI.
*/
- public void testEarDeploymentNavigation() throws IOException, EmbJoprTestException {
+ public void XtestEarDeploymentNavigation() throws IOException, EmbJoprTestException {
// Concrete appliction node.
{
@@ -398,7 +401,7 @@
* junit.framework.ComparisonFailure: expected:<eardeployment.ear> but was:<ondra-redhat>
at org.jboss.jopr.jsfunit.as5.EarTest.testEarSummaryTab(EarTest.java:323)
*/
- public void testEarSummaryTab() throws EmbJoprTestException, IOException, Exception {
+ public void XtestEarSummaryTab() throws EmbJoprTestException, IOException, Exception {
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -582,7 +585,7 @@
* Fails because of EMBJOPR-42 - javax.el.ELException: org.jboss.seam.RequiredException:
* @Out attribute requires non-null value: updateBackingContentAction.packageDetails
*/
- public void testEarRedeployment() throws IOException, EmbJoprTestException {
+ public void XtestEarRedeployment() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -660,7 +663,7 @@
/**
* Checks EAR metrics tab.
*/
- public void testEarMetricsTab() throws IOException, EmbJoprTestException {
+ public void XtestEarMetricsTab() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -707,7 +710,7 @@
*
* FAILS because some of the values are read-only. EMBJOPR-96
*/
- public void testEarMetricsTabRefreshButton() throws IOException, EmbJoprTestException {
+ public void XtestEarMetricsTabRefreshButton() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = BASIC_EAR;
@@ -752,7 +755,7 @@
* PASSED.
* Now fails, because EAR does not appear.
*/
- public void testEarDeployUnpacked() throws IOException, EmbJoprTestException {
+ public void XtestEarDeployUnpacked() throws IOException, EmbJoprTestException {
// Deploy the unpacked EAR.
@@ -793,7 +796,7 @@
/**
* Deploys an EAR with WAR as a module, and checks whether the web app runs.
*/
- public void testEarWithWar() throws IOException, EmbJoprTestException {
+ public void XtestEarWithWar() throws IOException, EmbJoprTestException {
final String DEPLOYABLE_NAME = EAR_WITH_WAR;
@@ -852,7 +855,7 @@
* Was failing because of EMBJOPR-133.
* Now FAILS because of EMBJOPR-172.
*/
- public void testEarStopAndStart() throws IOException, EmbJoprTestException
+ public void XtestEarStopAndStart() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_WAR_COUNTER;
@@ -948,7 +951,7 @@
*
* FAILS because of EMBJOPR-133.
*/
- public void testEarRestart() throws IOException, EmbJoprTestException
+ public void XtestEarRestart() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_WAR_COUNTER;
@@ -1033,7 +1036,7 @@
* FAILS because of EMBJOPR-137 - EAR with unsatisfied dependencies
* show error upon deploy, but then shows as UP.
*/
- public void testEarWithUnsatisfiedDeps() throws IOException, EmbJoprTestException
+ public void XtestEarWithUnsatisfiedDeps() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_EXT_DEPENDENCIES;
@@ -1069,7 +1072,7 @@
- public void testEarRedeployDifferentName() throws IOException, EmbJoprTestException
+ public void XtestEarRedeployDifferentName() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_WAR_COUNTER;
@@ -1136,7 +1139,7 @@
/**
* Deploys an EAR, then re-deploys (Content tab) EAR with the same name, but different content.
*/
- public void testEarRedeployDifferentVersion() throws IOException, EmbJoprTestException
+ public void XtestEarRedeployDifferentVersion() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_WAR_COUNTER;
@@ -1203,7 +1206,7 @@
* deployed. Undeploy the archive for test clean up purposes.
*
*/
- public void testEarRarInEarDeployment() throws IOException, EmbJoprTestException
+ public void XtestEarRarInEarDeployment() throws IOException, EmbJoprTestException
{
final String DEPLOYABLE_NAME = EAR_WITH_RAR;
15 years, 4 months
EMBJOPR SVN: r652 - in trunk/jsfunit: testdata and 1 other directories.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-08-07 20:10:22 -0400 (Fri, 07 Aug 2009)
New Revision: 652
Added:
trunk/jsfunit/testdata/jboss-profiler/
trunk/jsfunit/testdata/jboss-profiler/jboss-profiler-plugins.jar
trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.jar
trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.properties
trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.sar
Modified:
trunk/jsfunit/pom.xml
Log:
* JBoss Profiller support added - see the "profile" Maven profile.
Modified: trunk/jsfunit/pom.xml
===================================================================
--- trunk/jsfunit/pom.xml 2009-08-08 00:09:21 UTC (rev 651)
+++ trunk/jsfunit/pom.xml 2009-08-08 00:10:22 UTC (rev 652)
@@ -5,6 +5,7 @@
<jopr.version>1.2.0-SNAPSHOT</jopr.version>
<cargo.plugin.version>1.0.1-SNAPSHOT</cargo.plugin.version>
<jvm.args.debug></jvm.args.debug> <!-- Used by the -Pdebug profile. -->
+ <jvm.args.profiler></jvm.args.profiler> <!-- Used by the -Pprofile profile. -->
<cargo.jboss.configuration>default</cargo.jboss.configuration><!-- JBoss AS configuration. -->
<cargo.jboss.bind.address>localhost</cargo.jboss.bind.address><!-- Address for JBoss AS to bind to. -->
@@ -368,7 +369,7 @@
<!-- Raise permgen size, allow classes unloading and permgen sweep -->
<!-- xb.builder.useUnorderedSequence=true is the same what run.sh does. -->
<!-- See http://www.nabble.com/changes-in-parsing-with-xb-td22478176.html -->
- <cargo.jvmargs>${jvm.args.debug} -Xmx1024m -Dxb.builder.useUnorderedSequence=true -XX:PermSize=256m -XX:MaxPermSize=512m</cargo.jvmargs>
+ <cargo.jvmargs>${jvm.args.debug} ${jvm.args.profiler} -Xmx1024m -Dxb.builder.useUnorderedSequence=true -XX:PermSize=256m -XX:MaxPermSize=512m</cargo.jvmargs>
<!-- -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -->
<!-- JBoss configuration - default, all, standard -->
<cargo.jboss.configuration>${cargo.jboss.configuration}</cargo.jboss.configuration>
@@ -585,8 +586,44 @@
</properties>
</profile>
- <!-- Hudson profile (commented - hesitating to hard-code version dir to pom.xml)
+ <!-- Profiler profile - enables JBoss Profiler. -->
<profile>
+ <id>profile</id>
+ <properties>
+ <jvm.args.profiler>-javaagent:${basedir}/testdata/jboss-profiler/jboss-profiler.jar -Djboss-profiler.properties=${basedir}/testdata/jboss-profiler/jboss-profiler.properties</jvm.args.profiler>
+ </properties>
+
+ <build>
+ <plugins>
+
+ <!-- Cargo plugin -->
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ <version>${cargo.plugin.version}</version>
+ <configuration>
+ <!-- Container configuration -->
+ <configuration>
+ <!-- Copy the JBoss Profiler files. -->
+ <configfiles>
+ <configfile>
+ <file>${basedir}/testdata/jboss-profiler/jboss-profiler.sar</file>
+ <tofile>deploy/jboss-profiler.sar</tofile>
+ </configfile>
+ </configfiles>
+ </configuration>
+ <!-- /Container configuration -->
+
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile> <!-- "profile" profile (JBoss Profiler) -->
+
+
+ <!-- Hudson profile (commented out - hesitating to hard-code version dir to pom.xml)
+ <profile>
<id>running-in-hudson</id>
<activation>
<property><name>user.name</name><value>hudson</value></property>
Added: trunk/jsfunit/testdata/jboss-profiler/jboss-profiler-plugins.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsfunit/testdata/jboss-profiler/jboss-profiler-plugins.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.properties
===================================================================
--- trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.properties (rev 0)
+++ trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.properties 2009-08-08 00:10:22 UTC (rev 652)
@@ -0,0 +1,24 @@
+enable=yes
+precompiled=no
+cpu=yes
+memory=yes
+includes=org.jboss.profiler.*
+excludes=*
+visibility=private
+save=yes
+savelocation=.
+startup=yes
+repository=no
+remote=yes
+store=memory
+location=.
+host=localhost
+port=5400
+ejb=yes
+servlet=yes
+jsf=yes
+jmx=yes
+rmi=yes
+corba=yes
+plugin.1=org.jboss.profiler.plugins.Hibernate
+plugin.2=org.jboss.profiler.plugins.Seam
Added: trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.sar
===================================================================
(Binary files differ)
Property changes on: trunk/jsfunit/testdata/jboss-profiler/jboss-profiler.sar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 4 months
EMBJOPR SVN: r651 - in trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit: as5/app/ear and 5 other directories.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-08-07 20:09:21 -0400 (Fri, 07 Aug 2009)
New Revision: 651
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/EjbTestBase.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheCacheTest.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java
Log:
* EAR test fixed
* JBossCacheInterceptorTest updated
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-08-07 01:28:29 UTC (rev 650)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-08-08 00:09:21 UTC (rev 651)
@@ -854,6 +854,13 @@
return true;
}
+ /**
+ * Returns true if the string looks like a double with unit, i.e. 123.45kg
+ */
+ public static boolean looksLikeDoubleWithUnit(String value) {
+ return value.matches("([0-9]+\\.[0-9]+)[a-zA-Z]{0,3}");
+ }
+
/**
* If both expected and actual string look like a double,
* returns normalized double (with a decimal dot);
@@ -877,16 +884,22 @@
public static String normalizeIfNumber( String val ){
if( null == val )
return null;
-
+
+ boolean isNumeric = val.matches("([0-9][0-9\\., ]+[0-9])[a-zA-Z]{0,3}");
+ if( !isNumeric )
+ return val;
+
+ // TODO: Normalize numbers with units (1.5m)
+
String val2 = val.replace(",", "");
// English notation - 1,322.51
- if( EmbjoprTestCase.looksLikeDouble(val2) )
+ if( EmbjoprTestCase.looksLikeDoubleWithUnit(val2) )
return val2;
// Still can be numbe: 1 358,84
val2 = val.replace(" ", "");
val2 = val.replace(" ", "").replace(',', '.');
- if( EmbjoprTestCase.looksLikeDouble(val2) )
+ if( EmbjoprTestCase.looksLikeDoubleWithUnit(val2) )
return val2;
return val;
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-08-07 01:28:29 UTC (rev 650)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ear/EarTest.java 2009-08-08 00:09:21 UTC (rev 651)
@@ -217,7 +217,7 @@
ejtt.getTabMenu().getTabContentBox().getFirstTable().getFirstLinkContaining( DEPLOYABLE_NAME ).click();
ejtt.getTabMenu().clickContentTab();
ejtt.getTabMenu().getTabContentBox().getFirstFileInput().setValueAttribute( earFilePath );
- ejtt.getTabMenu().getTabContentBox().getButtonByLabel("Update").click();
+ ejtt.getTabMenu().getTabContentBox().getSubmitButtonByLabel("Update").click();
// We should get an error message.
checkClientAndServerMessages("Failed to update", "Failed to update", true);
@@ -727,7 +727,7 @@
// Click the Refresh button.
// Can this change to submit? Perhaps set an ID and use ejtt.getClickableById().
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Refresh").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Refresh").click();
// Check that we are still on the right tab.
assertTrue("Metrics tab is active", ejtt.tabMenu.isTabActive("Metrics") );
@@ -900,7 +900,7 @@
ejtt.getTabMenu().clickControlTab();
// Click the Stop button.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Stop").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Stop").click();
// Wait for the op to finish and check the final status.
ejtt.operations.waitActivelyForOperationToFinish("Stop", 1500, 5);
@@ -915,7 +915,7 @@
// Click the Start button.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Start").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Start").click();
// Check the latest message.
ejtt.operations.waitActivelyForOperationToFinish("Start", 1500, 5);
@@ -995,7 +995,7 @@
ejtt.getTabMenu().clickControlTab();
// Click the Restart button.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Restart").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Restart").click();
// Wait for the op to finish and check the final status.
ejtt.operations.waitActivelyForOperationToFinish("Restart", 1500, 5);
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/EjbTestBase.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/EjbTestBase.java 2009-08-07 01:28:29 UTC (rev 650)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/ejb/EjbTestBase.java 2009-08-08 00:09:21 UTC (rev 651)
@@ -366,7 +366,7 @@
ejtt.getTabMenu().clickControlTab();
// Click the Stop button.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Stop").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Stop").click();
// Wait for the op to finish and check the final status.
ejtt.operations.waitActivelyForOperationToFinish("Stop", 1500, 5);
@@ -375,7 +375,7 @@
// Click the Start button.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Start").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Start").click();
ejtt.operations.waitActivelyForOperationToFinish("Start", 1500, 5);
}
@@ -417,7 +417,7 @@
ejtt.getTabMenu().clickControlTab();
// Click the Restart button.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Restart").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Restart").click();
// Wait for the op to finish and check the final status.
ejtt.operations.waitActivelyForOperationToFinish("Restart", 1500, 5);
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java 2009-08-07 01:28:29 UTC (rev 650)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/app/war/WarTest.java 2009-08-08 00:09:21 UTC (rev 651)
@@ -878,7 +878,7 @@
// Click the Refresh button.
// Can this change to submit? Perhaps set an ID and use ejtt.getClickableById().
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Refresh").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Refresh").click();
// Check that we are still on the right tab.
assertTrue("Metrics tab is active", ejtt.tabMenu.isTabActive("Metrics") );
@@ -1016,7 +1016,7 @@
ejtt.getTabMenu().clickControlTab();
// Click the Stop button.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Stop").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Stop").click();
// Check the latest message.
ejtt.operations.waitActivelyForOperationToFinish("Stop", 1500, 5);
@@ -1030,7 +1030,7 @@
// Click the Start button.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Start").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Start").click();
// Wait for the op to finish and check the final status.
ejtt.operations.waitActivelyForOperationToFinish("Start", 1500, 5);
@@ -1111,7 +1111,7 @@
ejtt.getTabMenu().clickControlTab();
// Click the Restart button.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Restart").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Restart").click();
// Wait for the op to finish and check the final status.
ejtt.operations.waitActivelyForOperationToFinish("Restart", 1500, 5);
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheCacheTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheCacheTest.java 2009-08-07 01:28:29 UTC (rev 650)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheCacheTest.java 2009-08-08 00:09:21 UTC (rev 651)
@@ -229,14 +229,14 @@
// Click some buttons - should not harm.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Print cache details as HTML.").click();
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Print lock information.").click();
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Print lock info as HTML.").click();
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Print configuration as plain text.").click();
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Print configuration as HTML.").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Print cache details as HTML.").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Print lock information.").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Print lock info as HTML.").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Print configuration as plain text.").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Print configuration as HTML.").click();
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Stop this cache.").click();
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Start this cache.").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Stop this cache.").click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Start this cache.").click();
// Now test the operations, one by one.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java 2009-08-07 01:28:29 UTC (rev 650)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java 2009-08-08 00:09:21 UTC (rev 651)
@@ -269,7 +269,7 @@
ejtt.tabMenu.clickControlTab();
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Reset Statistics");
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Reset Statistics");
// Check that these metrics didn't stay at their previous values.
ejtt.getTabMenu().getTabContentBox().getTableUnderHeader(LABEL_NUMERIC_METRICS).checkValues(propsSecond, ValuesValidator.NOT_EQUAL);
@@ -362,7 +362,7 @@
ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION).expand();
ejtt.navTree.getNodeByLabel(SUBNODE_INTERCEPTOR).click();
ejtt.tabMenu.clickControlTab();
- ejtt.tabMenu.getTabContentBox().getButtonByLabel("Reset Statistics");
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel("Reset Statistics");
}
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java 2009-08-07 01:28:29 UTC (rev 650)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/scripts/ScriptsTest.java 2009-08-08 00:09:21 UTC (rev 651)
@@ -185,7 +185,7 @@
ejtt.tabMenu.getTabContentBox().getFirstTable().getFirstRowContainingLink(SCRIPT_FILE_NAME).getLinkByLabel(SCRIPT_FILE_NAME).click();
ejtt.tabMenu.clickControlTab();
// Execute the script.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel(EXECUTE_OP_NAME).click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel(EXECUTE_OP_NAME).click();
// Command Line Arguments - none
//ejtt.tabMenu.getTabContentBox().getSubmitButtonByLabel("OK").click();
@@ -271,7 +271,7 @@
ejtt.tabMenu.getTabContentBox().getFirstTable().getFirstRowContainingLink(SCRIPT_FILE_NAME).getLinkByLabel(SCRIPT_FILE_NAME).click();
ejtt.tabMenu.clickControlTab();
// Execute the script.
- ejtt.tabMenu.getTabContentBox().getButtonByLabel(EXECUTE_OP_NAME).click();
+ ejtt.tabMenu.getTabContentBox().getButtonInputByLabel(EXECUTE_OP_NAME).click();
// Command Line Arguments: "-c"
// No tab content box in this block.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java 2009-08-07 01:28:29 UTC (rev 650)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/util/EmbJoprTestToolkit.java 2009-08-08 00:09:21 UTC (rev 651)
@@ -940,19 +940,42 @@
/**
* Finds first button with given label inside this tab box.
*/
- public HtmlButtonInput getButtonByLabel( String label )
+ public ClickableElement getButtonByLabel( String label )
throws HtmlElementNotFoundException, ActionOutOfSyncException
{
checkIfStillValid();
- HtmlButtonInput button = this.element.getFirstByXPath(".//input[normalize-space(@value)='"+label+"']");
+ ClickableElement button = this.element.getFirstByXPath(".//input[normalize-space(@value)='"+label+"']");
if( null == button )
throw new HtmlElementNotFoundException("Button labelled '"+label+"' not found.", currentTest);
+
+ if( ! (button instanceof HtmlButton) || ! (button instanceof HtmlButtonInput) || ! (button instanceof HtmlSubmitInput) )
+ throw new HtmlElementNotFoundException("Input with value '"+label+"' is not a button input nor submit input.", currentTest);
+
return button;
}
+
/**
* Finds first button with given label inside this tab box.
*/
+ public HtmlButtonInput getButtonInputByLabel( String label )
+ throws HtmlElementNotFoundException, ActionOutOfSyncException
+ {
+ checkIfStillValid();
+ HtmlInput button = this.element.getFirstByXPath(".//input[normalize-space(@value)='"+label+"']");
+ if( null == button )
+ throw new HtmlElementNotFoundException("Button labelled '"+label+"' not found.", currentTest);
+
+ if( !(button instanceof HtmlButtonInput) )
+ throw new HtmlElementNotFoundException("Input with value '"+label+"' is not a button input nor submit input.", currentTest);
+
+ return (HtmlButtonInput) button;
+ }
+
+
+ /**
+ * Finds first button with given label inside this tab box.
+ */
public HtmlSubmitInput getSubmitButtonByLabel( String label )
throws HtmlElementNotFoundException, ActionOutOfSyncException
{
@@ -2073,7 +2096,7 @@
* @param expectedResult
*/
public Properties performOperation( String operationName ) throws EmbJoprTestException, IOException {
- getEjtt().tabMenu.getTabContentBox().getButtonByLabel(operationName).click();
+ getEjtt().tabMenu.getTabContentBox().getButtonInputByLabel(operationName).click();
getEjtt().operations.waitActivelyForOperationToFinish(operationName, 500, 5);
if( ! getEjtt().tabMenu.getTabContentBox().getOperationsHistoryTable().wasLastOperationSuccesful() ){
OperationStatusType status = getEjtt().tabMenu.getTabContentBox().getOperationsHistoryTable().getLastOperationStatus();
15 years, 4 months
EMBJOPR SVN: r650 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-08-06 21:28:29 -0400 (Thu, 06 Aug 2009)
New Revision: 650
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
Log:
* NPE in normalizeIfNumber() fixed
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-08-07 01:08:59 UTC (rev 649)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-08-07 01:28:29 UTC (rev 650)
@@ -875,6 +875,9 @@
/** Converts a decimal number in either english or german notation to Java-like double. */
public static String normalizeIfNumber( String val ){
+ if( null == val )
+ return null;
+
String val2 = val.replace(",", "");
// English notation - 1,322.51
if( EmbjoprTestCase.looksLikeDouble(val2) )
15 years, 4 months
EMBJOPR SVN: r649 - in trunk/jsfunit: src/test/java/org/jboss/jopr/jsfunit/as5/jbcache and 3 other directories.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-08-06 21:08:59 -0400 (Thu, 06 Aug 2009)
New Revision: 649
Added:
trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek-client.jar
trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek.ear
Modified:
trunk/jsfunit/src/main/
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java
trunk/jsfunit/testdata/ejb2/
trunk/jsfunit/testdata/ejb3/
Log:
* Added new JBoss Cache test EAR
Property changes on: trunk/jsfunit/src/main
___________________________________________________________________
Name: svn:ignore
+ webappBinary
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java 2009-08-07 01:07:40 UTC (rev 648)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java 2009-08-07 01:08:59 UTC (rev 649)
@@ -5,7 +5,7 @@
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException;
-import org.jboss.qa.jbcache.testear.*;
+import org.jboss.qa.jbcache.testear.client.*;
import org.jboss.jopr.jsfunit.exceptions.EmbJoprTestException;
import org.jboss.jopr.jsfunit.util.ValuesValidator;
@@ -56,7 +56,7 @@
props = new Properties();
props.setProperty("Hit/Miss Ratio", "0");
props.setProperty("Read/Write Ratio", "0");
- props.setProperty("Number Of Attributes", "0.0ms");
+ props.setProperty("Number Of Attributes", "0");
props.setProperty("Average Write Time", "0.0ms");
//props.setProperty("Average Read Time", "0.0ms");
ejtt.getTabMenu().getTabContentBox().getTableUnderHeader(LABEL_NUMERIC_METRICS).checkValuesEqual(props);
Property changes on: trunk/jsfunit/testdata/ejb2
___________________________________________________________________
Name: svn:ignore
+ ejbredeploy.jar
Property changes on: trunk/jsfunit/testdata/ejb3
___________________________________________________________________
Name: svn:ignore
+ mdb-example.jar
jboss-ejb3-tutorial-entity.jar
Added: trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek-client.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek-client.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek.ear
===================================================================
(Binary files differ)
Property changes on: trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek.ear
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 4 months
EMBJOPR SVN: r648 - trunk/jsfunit/testdata/jbcache.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-08-06 21:07:40 -0400 (Thu, 06 Aug 2009)
New Revision: 648
Removed:
trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek-client.jar
trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek.ear
Log:
* Removed old JBoss Cache test EAR
Deleted: trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek-client.jar
===================================================================
(Binary files differ)
Deleted: trunk/jsfunit/testdata/jbcache/JBossCacheTest-by-fdrabek.ear
===================================================================
(Binary files differ)
15 years, 4 months
EMBJOPR SVN: r647 - trunk/jsfunit.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-08-06 15:55:17 -0400 (Thu, 06 Aug 2009)
New Revision: 647
Modified:
trunk/jsfunit/pom.xml
Log:
* POM: JBossCacheTest-by-fdrabek-client.jar added to WAR/WEB-INF/lib
Modified: trunk/jsfunit/pom.xml
===================================================================
--- trunk/jsfunit/pom.xml 2009-08-06 19:33:44 UTC (rev 646)
+++ trunk/jsfunit/pom.xml 2009-08-06 19:55:17 UTC (rev 647)
@@ -604,6 +604,8 @@
<testSourceDirectory>src/test/java</testSourceDirectory>
<finalName>admin-console-jsfunit</finalName>
<plugins>
+
+ <!-- WAR -->
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
@@ -615,8 +617,18 @@
</manifest>
</archive>
<dependentWarIncludes>**,**/jboss-structure.xml</dependentWarIncludes>
+ <!-- Add EJB client .jar to WEB-INF/lib -->
+ <webResources>
+ <resource>
+ <directory>${basedir}/testdata/jbcache</directory>
+ <includes> <include>JBossCacheTest-by-fdrabek-client.jar</include> </includes>
+ <targetPath>WEB-INF/lib</targetPath>
+ <filtering>false</filtering>
+ </resource>
+ </webResources>
</configuration>
</plugin>
+
<!-- Only run the tests if you set one of the profiles above -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
15 years, 4 months
EMBJOPR SVN: r646 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache.
by embjopr-commits@lists.jboss.org
Author: ozizka(a)redhat.com
Date: 2009-08-06 15:33:44 -0400 (Thu, 06 Aug 2009)
New Revision: 646
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java
Log:
* JBossCacheInterceptorTest: Reseting stats before testcases
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java 2009-08-05 17:10:06 UTC (rev 645)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache/JBossCacheInterceptorTest.java 2009-08-06 19:33:44 UTC (rev 646)
@@ -4,6 +4,7 @@
import java.util.Properties;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.jboss.jopr.jsfunit.exceptions.HtmlElementNotFoundException;
import org.jboss.qa.jbcache.testear.*;
import org.jboss.jopr.jsfunit.exceptions.EmbJoprTestException;
import org.jboss.jopr.jsfunit.util.ValuesValidator;
@@ -30,7 +31,10 @@
ejtt.deployment.deployViaEmbJopr( DeployableTypes.EAR, ejtt.getTestFilePath(this.APP_TYPE, JBCACHE_TEST_EAR));
+
+
try {
+ resetStatistics();
ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION).expand();
ejtt.navTree.getNodeByLabel(SUBNODE_INTERCEPTOR).click();
@@ -75,6 +79,7 @@
public void testJBossCacheInterceptorSummary_AfterQuery() throws IOException, EmbJoprTestException, NamingException {
if( isJBossConfigWithoutCache() ) return;
+ resetStatistics();
// Go to the Interceptor's Summary tab and store the properties before query.
ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION).expand();
@@ -145,6 +150,7 @@
public void testJBossCacheInterceptorMetrics() throws IOException, EmbJoprTestException {
if( isJBossConfigWithoutCache() ) return;
+ resetStatistics();
ejtt.deployment.deployViaEmbJopr( DeployableTypes.EAR, ejtt.getTestFilePath(this.APP_TYPE, JBCACHE_TEST_EAR));
try {
@@ -178,6 +184,7 @@
public void testJBossCacheInterceptorMetrics_AfterQuery() throws IOException, EmbJoprTestException, NamingException {
if( isJBossConfigWithoutCache() ) return;
+ resetStatistics();
// Go to the Interceptor's Metrics tab and store the properties before query.
ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION).expand();
@@ -235,6 +242,7 @@
public void testJBossCacheInterceptorControl_AfterQuery() throws IOException, EmbJoprTestException, NamingException {
if( isJBossConfigWithoutCache() ) return;
+ resetStatistics();
// Go to the Interceptor's Control tab and store the properties before query.
ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION).expand();
@@ -349,7 +357,17 @@
+ private void resetStatistics() throws HtmlElementNotFoundException, EmbJoprTestException, IOException {
+ // Go back to the Interceptor's Control tab and reset the statistics.
+ ejtt.navTree.getNodeByLabel(JBCACHE_HA_PARTITION).expand();
+ ejtt.navTree.getNodeByLabel(SUBNODE_INTERCEPTOR).click();
+ ejtt.tabMenu.clickControlTab();
+ ejtt.tabMenu.getTabContentBox().getButtonByLabel("Reset Statistics");
+ }
+
+
+
}// class
15 years, 4 months
EMBJOPR SVN: r645 - trunk/core/src/main/webapp/WEB-INF.
by embjopr-commits@lists.jboss.org
Author: ips
Date: 2009-08-05 13:10:06 -0400 (Wed, 05 Aug 2009)
New Revision: 645
Modified:
trunk/core/src/main/webapp/WEB-INF/web.xml
Log:
switch value of javax.faces.STATE_SAVING_METHOD init-param from "client" to "server" (see https://jira.jboss.org/jira/browse/JBPAPP-2345)
Modified: trunk/core/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/core/src/main/webapp/WEB-INF/web.xml 2009-08-05 00:03:31 UTC (rev 644)
+++ trunk/core/src/main/webapp/WEB-INF/web.xml 2009-08-05 17:10:06 UTC (rev 645)
@@ -79,7 +79,7 @@
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>client</param-value>
+ <param-value>server</param-value>
</context-param>
<context-param>
15 years, 4 months