[embjopr-commits] EMBJOPR SVN: r646 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/jbcache.

embjopr-commits at lists.jboss.org embjopr-commits at lists.jboss.org
Thu Aug 6 15:33:44 EDT 2009


Author: ozizka at 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



More information about the embjopr-commits mailing list