From jmeter-dev-charles17@example.com Sun Feb 01 13:11:37 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 89173 invoked from network); 1 Feb 2004 13:11:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2004 13:11:36 -0000 Received: (qmail 95464 invoked by uid 500); 1 Feb 2004 13:11:26 -0000 Delivered-To: charles17@example.com Received: (qmail 95412 invoked by uid 500); 1 Feb 2004 13:11:26 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 95357 invoked by uid 500); 1 Feb 2004 13:11:25 -0000 Received: (qmail 95329 invoked from network); 1 Feb 2004 13:11:25 -0000 Received: from unknown (HELO minotaur.apache.org) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Feb 2004 13:11:25 -0000 Received: (qmail 89111 invoked by uid 1721); 1 Feb 2004 13:11:27 -0000 Date: 1 Feb 2004 13:11:27 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Subject: cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/gui/util MenuFactory.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N sebb 2004/02/01 05:11:27 Modified: src/core/org/apache/jmeter/gui/util MenuFactory.java Log: Add test to try to catch menu building errors Revision Changes Path 1.27 +41 -1 jakarta-jmeter/src/core/org/apache/jmeter/gui/util/MenuFactory.java Index: MenuFactory.java =================================================================== RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/gui/util/MenuFactory.java,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- MenuFactory.java 1 Feb 2004 02:51:57 -0000 1.26 +++ MenuFactory.java 1 Feb 2004 13:11:27 -0000 1.27 @@ -78,6 +78,7 @@ import org.apache.jmeter.gui.GuiPackage; import org.apache.jmeter.gui.JMeterGUIComponent; import org.apache.jmeter.gui.action.ActionRouter; +import org.apache.jmeter.junit.JMeterTestCase; import org.apache.jmeter.testbeans.TestBean; import org.apache.jmeter.testbeans.gui.TestBeanGUI; import org.apache.jmeter.util.JMeterUtils; @@ -555,5 +556,44 @@ { menu.addSeparator(); } + } + +////////////////////////////// Test code //////////////////////////////////// + + public static class Test extends JMeterTestCase + { + + public Test() { + super(); + } + + public Test(String name) { + super(name); + } + + private static void check(String s,int i) throws Exception + { + assertFalse("The number of "+s+" should not be 0",0==i); + } + + public void testMenu() throws Exception + { + check("menumap",menuMap.size()); + + check("assertions",assertions.size()); + check("configElements",configElements.size()); + check("controllers",controllers.size()); + check("listeners",listeners.size()); + check("nonTestElements",nonTestElements.size()); + check("postProcessors",postProcessors.size()); + check("preProcessors",preProcessors.size()); + check("samplers",samplers.size()); + check("timers",timers.size()); + + + check("elementstoskip",elementsToSkip.size()); + + + } } } --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Sun Feb 01 13:27:11 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 93576 invoked from network); 1 Feb 2004 13:27:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2004 13:27:11 -0000 Received: (qmail 35056 invoked by uid 500); 1 Feb 2004 13:27:08 -0000 Delivered-To: charles17@example.com Received: (qmail 34900 invoked by uid 500); 1 Feb 2004 13:27:07 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 34885 invoked by uid 500); 1 Feb 2004 13:27:07 -0000 Received: (qmail 34881 invoked from network); 1 Feb 2004 13:27:07 -0000 Received: from unknown (HELO minotaur.apache.org) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Feb 2004 13:27:07 -0000 Received: (qmail 93562 invoked by uid 1721); 1 Feb 2004 13:27:09 -0000 Date: 1 Feb 2004 13:27:09 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Subject: cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/junit JMeterTest.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N sebb 2004/02/01 05:27:09 Modified: src/core/org/apache/jmeter/junit JMeterTest.java Log: Skip some tests for TestBeanGUI Revision Changes Path 1.41 +11 -3 jakarta-jmeter/src/core/org/apache/jmeter/junit/JMeterTest.java Index: JMeterTest.java =================================================================== RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/junit/JMeterTest.java,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- JMeterTest.java 31 Jan 2004 20:21:58 -0000 1.40 +++ JMeterTest.java 1 Feb 2004 13:27:09 -0000 1.41 @@ -217,12 +217,20 @@ JMeterGUIComponent item = (JMeterGUIComponent) iter.next(); if (item instanceof JMeterTreeNode) { + System.out.println("JMeterGUIComponent: skipping all tests "+item.getClass().getName()); continue; } TestSuite ts = new TestSuite(item.getClass().getName()); ts.addTest(new JMeterTest("GUIComponents1",item)); - ts.addTest(new JMeterTest("GUIComponents2",item)); - ts.addTest(new JMeterTest("runGUITitle",item)); + if (item instanceof TestBeanGUI) + { + System.out.println("JMeterGUIComponent: skipping some tests "+item.getClass().getName()); + } + else + { + ts.addTest(new JMeterTest("GUIComponents2",item)); + ts.addTest(new JMeterTest("runGUITitle",item)); + } suite.addTest(ts); } return suite; --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Sun Feb 01 15:17:27 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 32203 invoked from network); 1 Feb 2004 15:17:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2004 15:17:27 -0000 Received: (qmail 27268 invoked by uid 500); 1 Feb 2004 15:17:20 -0000 Delivered-To: charles17@example.com Received: (qmail 27223 invoked by uid 500); 1 Feb 2004 15:17:19 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 27152 invoked from network); 1 Feb 2004 15:17:19 -0000 Received: from unknown (HELO exchange.sun.com) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Feb 2004 15:17:19 -0000 Received: (qmail 21778 invoked by uid 0); 1 Feb 2004 15:17:29 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Subject: Bug report for JMeter [2004/02/01] Date: Sun, 01 Feb 2004 15:17:29 -0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N +---------------------------------------------------------------------------+ | Bugzilla Bug ID | | +---------------------------------------------------------------------+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned | | | OPN=Reopened VER=Verified (Skipped Closed/Resolved) | | | +-----------------------------------------------------------------+ | | | Severity: BLK=Blocker CRI=Critical MAJ=Major | | | | MIN=Minor NOR=Normal ENH=Enhancement | | | | +-------------------------------------------------------------+ | | | | Date Posted | | | | | +--------------------------------------------------+ | | | | | Description | | | | | | | |11422|New|Enh|2002-08-02|JMeter should record results during proxy recordin| |11536|Ass|Enh|2002-08-07|Graph Results's throughput calculation includes id| |11843|New|Enh|2002-08-20|Relay to Browser | |12144|Ass|Enh|2002-08-28|Need a way to stop a test plan | |15025|New|Enh|2002-12-03|Need ability to store Session ID | |15027|New|Enh|2002-12-03|Extract values from cookies | |15334|New|Enh|2002-12-12|Modifiers | |15468|New|Enh|2002-12-18|Variable expansion in posted files in HTTPSampler | |15999|New|Enh|2003-01-12|Show Results Tree is too HTTP-centric | |16052|New|Enh|2003-01-14|An option to disable timers should be provided | |16059|New|Enh|2003-01-14|FunctionHelper should use classpath rather than li| |16370|New|Enh|2003-01-23|HTTP Request log | |16886|New|Enh|2003-02-07|Recorded requests shouldn't duplicate info in HTTP| |17248|New|Enh|2003-02-20|Graph Improvements | |17249|New|Enh|2003-02-20|JMeter should indicate resource constraint problem| |17252|Ass|Enh|2003-02-20|HTML Link Parser seems not work properly. | |18070|New|Enh|2003-03-17|Would Like Dynamic linking of .jmx files | |19128|Ass|Enh|2003-04-17|need to support multi files upload. | |19378|New|Enh|2003-04-28|Remove implementation dependent elements from .jmx| |19758|New|Enh|2003-05-08|Customisable icons in test tree display | |21467|New|Nor|2003-07-10|Occasional GUI partial lock-up problems | |21615|New|Min|2003-07-15|HTTP Request protocol field is case sensitive | |21695|New|Enh|2003-07-17|Unix jmeter start script assumes it is on PATH, no| |22076|New|Enh|2003-08-01|would like to be able to delete all server/ip and | |22225|Unc|Maj|2003-08-07|non GUI mode: unable to load a custom property fil| |22510|New|Maj|2003-08-18|SSL Manager does not handle multiple client certif| |22512|New|Enh|2003-08-18|Https connections should be reused among samplers | |22818|New|Nor|2003-08-29|HTTPSampler table entries lost on focus change | |22820|New|Min|2003-08-29|max value on counter cannot be cleared | |23008|New|Enh|2003-09-09|Conditional Logic Controller needed | |23028|New|Enh|2003-09-09|Need Regex HTTP Post Processor for HTTP Response H| |23110|Ass|Nor|2003-09-11|JDBC Pool not completely cleaned up when in multip| |23248|New|Nor|2003-09-18|ModuleController doesn't 'remember' module-to-run | |23251|New|Nor|2003-09-18|Executing test plan containing ModuleControllers v| |23352|New|Enh|2003-09-23|Implement connection pool or LDAP transaction | |23487|New|Nor|2003-09-29|Remote execution from command-line does not work c| |23562|New|Enh|2003-10-02|getHeaderManager()/setHeaderManager() on HTTPSampl| |23654|New|Enh|2003-10-07|Convert 1.8.1 scripts to 1.9.1 | |23772|New|Nor|2003-10-13|MalformedURLException when rendering HTML in View | |24480|New|Enh|2003-11-06|There is no good way to set checkbox based items u| |24684|New|Min|2003-11-13|remote debugging problems if spaces in the path of| |24704|New|Min|2003-11-14|Recording overwrites the HTTPRequest in focus | |24751|New|Min|2003-11-17|Zip files not found in lib/ext | |25052|New|Nor|2003-11-27|Response Assertion does not handle encoding | |25143|New|Min|2003-12-02|HTTP Proxy Server "Restart" button enabled when th| |25144|New|Enh|2003-12-02|Have the Restart button in the HTTP Proxy show up | |25145|New|Min|2003-12-02|Removing a running HTTP Proxy from the tree is a s| |25157|New|Enh|2003-12-03|HTTP Cookie Manager doesn't work | |25166|New|Min|2003-12-03|Timer values changed during recording if currently| |25207|New|Enh|2003-12-04|${variable} expansion doesn't work for listener fi| |25208|New|Min|2003-12-04|annoying horizontal scrollbars in listener result | |25209|New|Min|2003-12-04|missed refresh of horizontal scrollbar when switch| |25214|New|Nor|2003-12-04|various result listener GUI errors and exceptions | |25236|New|Min|2003-12-05|superfluous double vertical scrollbar in assertion| |25362|New|Min|2003-12-09|NPE in ProxyControlGUI - model is null | |25366|New|Maj|2003-12-09|inconsistent file->open and pop-up open behaviour | |25430|New|Enh|2003-12-11|Recording Controller to populate HTTP Authorisatio| |25441|New|Nor|2003-12-11|TestPlan changes sometimes detected incorrectly (i| |25490|New|Nor|2003-12-12|HTML Link Parser (aka AnchorModifier) does not sup| |25505|New|Nor|2003-12-14|First HTTP sampling fails with "HTTPS hostname wro| |25591|New|Min|2003-12-17|AnchorModifier test runs rather slowly | |25752|New|Nor|2003-12-25|HTTP Cookie isn't rightly ordered. | |25753|Ass|Enh|2003-12-25|Charset encoding of form request parameter | |25754|New|Nor|2003-12-25|Shift_JIS Response Data is corrupted in View Resul| |26136|New|Enh|2004-01-14|local ip address configurable | |26144|New|Min|2004-01-14|Cookie Manager Issue | |26337|New|Enh|2004-01-22|Remote Testing - Tuning CPU usage at controller | |26355|New|Nor|2004-01-22|new ForEach controller | |26357|New|Enh|2004-01-22|adapt regextractor postprocessor to extract all va| |26440|New|Nor|2004-01-26|[PATCH] sizeassertionGUI not properly initialized | |26473|New|Nor|2004-01-27|[PATCH] adding md5assertion | +-----+---+---+----------+--------------------------------------------------+ | Total 71 bugs | +---------------------------------------------------------------------------+ --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Sun Feb 01 23:39:39 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 88348 invoked from network); 1 Feb 2004 23:39:39 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2004 23:39:39 -0000 Received: (qmail 3363 invoked by uid 500); 1 Feb 2004 23:39:25 -0000 Delivered-To: charles17@example.com Received: (qmail 3206 invoked by uid 500); 1 Feb 2004 23:39:24 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 3184 invoked by uid 500); 1 Feb 2004 23:39:24 -0000 Received: (qmail 3181 invoked from network); 1 Feb 2004 23:39:24 -0000 Received: from unknown (HELO minotaur.apache.org) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Feb 2004 23:39:24 -0000 Received: (qmail 88330 invoked by uid 1604); 1 Feb 2004 23:39:37 -0000 Date: 1 Feb 2004 23:39:37 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Subject: cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/testbeans/gui TestElementEditor.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N jsalvata 2004/02/01 15:39:37 Removed: src/core/org/apache/jmeter/testbeans/gui TestElementEditor.java Log: Since the introduction of bean customizer support, this class is broken and hard to fix. It was a transition support class anyway, and can easily be replaced by individual editors. Removing. --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Sun Feb 01 23:46:48 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 90370 invoked from network); 1 Feb 2004 23:46:48 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2004 23:46:48 -0000 Received: (qmail 18982 invoked by uid 500); 1 Feb 2004 23:46:33 -0000 Delivered-To: charles17@example.com Received: (qmail 18941 invoked by uid 500); 1 Feb 2004 23:46:33 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 18926 invoked by uid 500); 1 Feb 2004 23:46:33 -0000 Received: (qmail 18919 invoked from network); 1 Feb 2004 23:46:33 -0000 Received: from unknown (HELO minotaur.apache.org) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Feb 2004 23:46:33 -0000 Received: (qmail 90361 invoked by uid 1604); 1 Feb 2004 23:46:46 -0000 Date: 1 Feb 2004 23:46:46 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Subject: cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/testbeans/gui GenericTestBeanCustomizer.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N jsalvata 2004/02/01 15:46:46 Modified: src/core/org/apache/jmeter/testbeans/gui GenericTestBeanCustomizer.java Log: Made public, fixed copyright date. Revision Changes Path 1.2 +3 -3 jakarta-jmeter/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java Index: GenericTestBeanCustomizer.java =================================================================== RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- GenericTestBeanCustomizer.java 28 Jan 2004 10:35:12 -0000 1.1 +++ GenericTestBeanCustomizer.java 1 Feb 2004 23:46:46 -0000 1.2 @@ -2,7 +2,7 @@ * ==================================================================== * The Apache Software License, Version 1.1 * - * Copyright (c) 2003 The Apache Software Foundation. All rights + * Copyright (c) 2004 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -135,7 +135,7 @@ * available (where <b><i>group</i></b> is the group name). * </dl> */ -class GenericTestBeanCustomizer extends JPanel +public class GenericTestBeanCustomizer extends JPanel implements SharedCustomizer, PropertyChangeListener { private static Logger log = LoggingManager.getLoggerForClass(); --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Sun Feb 01 23:49:04 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 90998 invoked from network); 1 Feb 2004 23:49:04 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 1 Feb 2004 23:49:04 -0000 Received: (qmail 24933 invoked by uid 500); 1 Feb 2004 23:48:50 -0000 Delivered-To: charles17@example.com Received: (qmail 24777 invoked by uid 500); 1 Feb 2004 23:48:49 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 24760 invoked by uid 500); 1 Feb 2004 23:48:49 -0000 Received: (qmail 24755 invoked from network); 1 Feb 2004 23:48:49 -0000 Received: from unknown (HELO minotaur.apache.org) (83.161.120.155) by daedalus.apache.org with SMTP; 1 Feb 2004 23:48:49 -0000 Received: (qmail 90976 invoked by uid 1604); 1 Feb 2004 23:49:02 -0000 Date: 1 Feb 2004 23:49:02 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Subject: cvs commit: jakarta-jmeter/src/components/org/apache/jmeter/timers ConstantThroughputTimerBeanInfo.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N jsalvata 2004/02/01 15:49:02 Modified: src/components/org/apache/jmeter/timers ConstantThroughputTimerBeanInfo.java Added: src/core/org/apache/jmeter/testbeans BeanInfoSupport.java Removed: src/core/org/apache/jmeter/testbeans/gui BeanInfoSupport.java Log: Moving BeanInfoSupport from jmeter.testbeans.gui to jmeter.testbeans, which is where it belongs. Revision Changes Path 1.1 jakarta-jmeter/src/core/org/apache/jmeter/testbeans/BeanInfoSupport.java Index: BeanInfoSupport.java =================================================================== /* * ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2004 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" and * "Apache JMeter" must not be used to endorse or promote products * derived from this software without prior written permission. For * written permission, please contact charles17@example.com. * * 5. Products derived from this software may not be called "Apache", * "Apache JMeter", nor may "Apache" appear in their name, without * prior written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * @author <a href="mailto:charles17@example.com">Jordi Salvat i Alabart</a> * @version $Id: BeanInfoSupport.java,v 1.1 2004/02/01 23:49:02 jsalvata Exp $ */ package org.apache.jmeter.testbeans; import java.awt.Image; import java.beans.BeanDescriptor; import java.beans.BeanInfo; import java.beans.EventSetDescriptor; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.MethodDescriptor; import java.beans.PropertyDescriptor; import java.util.MissingResourceException; import java.util.ResourceBundle; import org.apache.jmeter.testbeans.gui.GenericTestBeanCustomizer; import org.apache.jmeter.util.JMeterUtils; import org.apache.jmeter.util.LocaleChangeEvent; import org.apache.jmeter.util.LocaleChangeListener; import org.apache.jorphan.logging.LoggingManager; import org.apache.log.Logger; /** * Support class for test bean beanInfo objects. It will help using the * introspector to get most of the information, to then modify charles17@example.com. * <p> * To use, subclass it, create a subclass with a parameter-less constructor * that: * <ol> * <li>Calls super(beanClass) * <li>Modifies the property descriptors, bean descriptor, etc. at will. * </ol> * <p> * Even before any such modifications, a resource bundle named xxxResources * (where xxx is the fully qualified bean class name) will be obtained if * available and used to localize the following: * <ul> * <li>Bean's display name -- from property <b>displayName</b>. * <li>Properties' display names -- from properties * <b><i>propertyName</i>.displayName</b>. * <li>Properties' short descriptions -- from properties * <b><i>propertyName</i>.shortDescription</b>. * </ul> * <p> * The resource bundle will be stored as the bean descriptor's "resourceBundle" * attribute, so that it can be used for further localization. TestBeanGUI, for * example, uses it to obtain the group's display names from properties * <b><i>groupName</i>.displayName</b>. */ public abstract class BeanInfoSupport implements BeanInfo, LocaleChangeListener { private static transient Logger log = LoggingManager.getLoggerForClass(); // Some known attribute names, just for convenience: public static final String TAGS= GenericTestBeanCustomizer.TAGS; public static final String NOT_UNDEFINED= GenericTestBeanCustomizer.NOT_UNDEFINED; public static final String NOT_EXPRESSION= GenericTestBeanCustomizer.NOT_EXPRESSION; public static final String NOT_OTHER= GenericTestBeanCustomizer.NOT_OTHER; public static final String DEFAULT= GenericTestBeanCustomizer.DEFAULT; public static final String RESOURCE_BUNDLE= GenericTestBeanCustomizer.RESOURCE_BUNDLE; /** * The class for which we're providing the bean info. */ private Class beanClass; /** * The BeanInfo for our class as obtained by the introspector. */ private BeanInfo rootBeanInfo; /** * Construct a BeanInfo for the given class. */ protected BeanInfoSupport(Class beanClass) { this.beanClass= beanClass; try { rootBeanInfo= Introspector.getBeanInfo( beanClass, Introspector.IGNORE_IMMEDIATE_BEANINFO); } catch (IntrospectionException e) { log.error("Can't introspect.", e); throw new Error(e.toString()); // Programming error: bail out. } try{ ResourceBundle resourceBundle= ResourceBundle.getBundle( beanClass.getName()+"Resources", JMeterUtils.getLocale()); // Store the resource bundle as an attribute of the BeanDescriptor: getBeanDescriptor().setValue(RESOURCE_BUNDLE, resourceBundle); // Localize the bean name try { getBeanDescriptor().setDisplayName( resourceBundle.getString("displayName")); } catch (MissingResourceException e) { log.debug( "Localized display name not available for bean " +beanClass.getName()); } // Localize the property names and descriptions: PropertyDescriptor[] properties= getPropertyDescriptors(); for (int i=0; i<properties.length; i++) { String name= properties[i].getName(); try { properties[i].setDisplayName( resourceBundle.getString(name+".displayName")); } catch (MissingResourceException e) { log.debug( "Localized display name not available for property " +name); } try { properties[i].setShortDescription( resourceBundle.getString(name+".shortDescription")); } catch (MissingResourceException e) { log.debug( "Localized short description not available for property " +name); } } } catch (MissingResourceException e) { log.warn("Localized strings not available for bean "+beanClass); } JMeterUtils.addLocaleChangeListener(this); } /** * Get the property descriptor for the property of the given name. * * @param name property name * @return descriptor for a property of that name, or null if there's none */ protected PropertyDescriptor property(String name) { PropertyDescriptor[] properties= getPropertyDescriptors(); for (int i=0; i<properties.length; i++) { if (properties[i].getName().equals(name)) { return properties[i]; } } return null; } private int numCreatedGroups= 0; /** * Utility method to group and order properties. * <p> * It will assing the given group name to each of the named properties, * and set their order attribute so that they are shown in the given order. * <p> * The created groups will get order 1, 2, 3,... in the order in which they * are created. * * @param group name of the group * @param names property names in the desired order */ protected void createPropertyGroup(String group, String[] names) { for (int i=0; i<names.length; i++) { PropertyDescriptor p= property(names[i]); p.setValue(GenericTestBeanCustomizer.GROUP, group); p.setValue(GenericTestBeanCustomizer.ORDER, new Integer(i)); } numCreatedGroups++; getBeanDescriptor().setValue( GenericTestBeanCustomizer.ORDER(group), new Integer(numCreatedGroups)); } public BeanInfo[] getAdditionalBeanInfo() { return rootBeanInfo.getAdditionalBeanInfo(); } public BeanDescriptor getBeanDescriptor() { return rootBeanInfo.getBeanDescriptor(); } public int getDefaultEventIndex() { return rootBeanInfo.getDefaultEventIndex(); } public int getDefaultPropertyIndex() { return rootBeanInfo.getDefaultPropertyIndex(); } public EventSetDescriptor[] getEventSetDescriptors() { return rootBeanInfo.getEventSetDescriptors(); } public Image getIcon(int iconKind) { return rootBeanInfo.getIcon(iconKind); } public MethodDescriptor[] getMethodDescriptors() { return rootBeanInfo.getMethodDescriptors(); } public PropertyDescriptor[] getPropertyDescriptors() { return rootBeanInfo.getPropertyDescriptors(); } /* (non-Javadoc) * @see org.apache.jmeter.util.LocaleChangeListener#localeChanged(org.apache.jmeter.util.LocaleChangeEvent) */ public void localeChanged(LocaleChangeEvent event) { // This object is locale-dependent, so if the locale changes, we need // to remove it from the Introspector's BeanInfo cache: Introspector.flushFromCaches(beanClass); // Now this instance is no longer useful -- no more need to listen to // this events (and prevent being GCd): JMeterUtils.removeLocaleChangeListener(this); // Note: another option --just as easy to implement-- would be to // regenerate the locale-dependent information. But this would require // any subclasses grabbing additional locale-dependent information to // override this method, while this solution will work without that. } } 1.2 +2 -2 jakarta-jmeter/src/components/org/apache/jmeter/timers/ConstantThroughputTimerBeanInfo.java Index: ConstantThroughputTimerBeanInfo.java =================================================================== RCS file: /home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/timers/ConstantThroughputTimerBeanInfo.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ConstantThroughputTimerBeanInfo.java 16 Jan 2004 02:31:35 -0000 1.1 +++ ConstantThroughputTimerBeanInfo.java 1 Feb 2004 23:49:02 -0000 1.2 @@ -59,7 +59,7 @@ import java.beans.PropertyDescriptor; -import org.apache.jmeter.testbeans.gui.BeanInfoSupport; +import org.apache.jmeter.testbeans.BeanInfoSupport; public class ConstantThroughputTimerBeanInfo extends BeanInfoSupport { --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Mon Feb 02 14:01:15 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 40454 invoked from network); 2 Feb 2004 14:01:14 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Feb 2004 14:01:14 -0000 Received: (qmail 37200 invoked by uid 500); 2 Feb 2004 14:00:25 -0000 Delivered-To: charles17@example.com Received: (qmail 37156 invoked by uid 500); 2 Feb 2004 14:00:25 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 37080 invoked by uid 500); 2 Feb 2004 14:00:24 -0000 Received: (qmail 37050 invoked from network); 2 Feb 2004 14:00:24 -0000 Received: from unknown (HELO minotaur.apache.org) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Feb 2004 14:00:24 -0000 Received: (qmail 40024 invoked by uid 1720); 2 Feb 2004 14:00:25 -0000 Date: 2 Feb 2004 14:00:25 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Subject: cvs commit: jakarta-jmeter/xdocs/usermanual component_reference.xml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N woolfel 2004/02/02 06:00:25 Modified: xdocs/usermanual component_reference.xml Log: updated the component document to mention setMaintainSession. peter lin Revision Changes Path 1.76 +5 -1 jakarta-jmeter/xdocs/usermanual/component_reference.xml Index: component_reference.xml =================================================================== RCS file: /home/cvs/jakarta-jmeter/xdocs/usermanual/component_reference.xml,v retrieving revision 1.75 retrieving revision 1.76 diff -u -r1.75 -r1.76 --- component_reference.xml 31 Jan 2004 23:39:50 -0000 1.75 +++ component_reference.xml 2 Feb 2004 14:00:25 -0000 1.76 @@ -359,6 +359,10 @@ left blank. If a sampler has values in the proxy host and port text field, it will use the ones provided by the user. This behavior may not be what users expect.</p> + <p>By default, the webservice sampler set SOAPHTTPConnection.setMaintainSession + (true). If you need to maintain the session, add a blank Header Manager. The + sampler uses the Header Manager to store the SOAPHTTPConnection object, since + there apache soap does provide a easy way to get and set the cookies.</p> </description> <properties> --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Mon Feb 02 16:02:35 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 36367 invoked from network); 2 Feb 2004 16:02:35 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Feb 2004 16:02:35 -0000 Received: (qmail 86036 invoked by uid 500); 2 Feb 2004 16:02:27 -0000 Delivered-To: charles17@example.com Received: (qmail 86000 invoked by uid 500); 2 Feb 2004 16:02:27 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 85938 invoked from network); 2 Feb 2004 16:02:26 -0000 Received: from unknown (HELO exchange.sun.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Feb 2004 16:02:26 -0000 Received: (qmail 9347 invoked by uid 50); 2 Feb 2004 16:02:44 -0000 Date: 2 Feb 2004 16:02:44 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Cc: Subject: DO NOT REPLY [Bug 26605] New: - Java Config elements override samplers X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26605>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26605 Java Config elements override samplers Summary: Java Config elements override samplers Product: JMeter Version: unspecified Platform: All URL: http://http:// OS/Version: Other Status: NEW Severity: Major Priority: Other Component: Main AssignedTo: charles17@example.com ReportedBy: charles17@example.com The Java Samplers do not process configuration defaults correctly. If there is a Java configuration element present, then all the values are taken from that, and none of the sampler values have any effect. There is a work-round - don't use the Java config elements - but this is not ideal, hence the severity. --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Mon Feb 02 18:51:52 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 64107 invoked from network); 2 Feb 2004 18:51:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Feb 2004 18:51:52 -0000 Received: (qmail 30667 invoked by uid 500); 2 Feb 2004 18:51:15 -0000 Delivered-To: charles17@example.com Received: (qmail 30598 invoked by uid 500); 2 Feb 2004 18:51:14 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 30546 invoked from network); 2 Feb 2004 18:51:14 -0000 Received: from unknown (HELO exchange.sun.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Feb 2004 18:51:14 -0000 Received: (qmail 23649 invoked by uid 50); 2 Feb 2004 18:51:33 -0000 Date: 2 Feb 2004 18:51:33 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Cc: Subject: DO NOT REPLY [Bug 26612] New: - Listener: Mailer Visualizer does not start up X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26612>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26612 Listener: Mailer Visualizer does not start up Summary: Listener: Mailer Visualizer does not start up Product: JMeter Version: 1.9.1 Platform: All OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: Main AssignedTo: charles17@example.com ReportedBy: charles17@example.com Attempting to add a Mailer Visualizer From: Http Request / Add / Listener / selecting Mailer Visualizer does nothing. --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Mon Feb 02 22:50:58 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 14073 invoked from network); 2 Feb 2004 22:50:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 2 Feb 2004 22:50:57 -0000 Received: (qmail 48239 invoked by uid 500); 2 Feb 2004 22:50:43 -0000 Delivered-To: charles17@example.com Received: (qmail 48204 invoked by uid 500); 2 Feb 2004 22:50:43 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 48181 invoked from network); 2 Feb 2004 22:50:43 -0000 Received: from unknown (HELO exchange.sun.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Feb 2004 22:50:43 -0000 Received: (qmail 18366 invoked by uid 50); 2 Feb 2004 22:51:04 -0000 Date: 2 Feb 2004 22:51:04 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Cc: Subject: DO NOT REPLY [Bug 26621] New: - HTML LInk Parser adding extra characters after first get parameter X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26621>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26621 HTML LInk Parser adding extra characters after first get parameter Summary: HTML LInk Parser adding extra characters after first get parameter Product: JMeter Version: Nightly (Please specify date) Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: Main AssignedTo: charles17@example.com ReportedBy: charles17@example.com I downloaded the latest build (02/02/04) and I am finding the characters "%3F%3D0" are being added after the first get parameter. This has occurred in each case I have used the Html Link Parser. An example below was taken from the request data: http://orinoco:12328/ReadingEntryMgr?command=addselect%3F%3D0&premnum=79962 Consequently this is causing issues for our servlet: java.lang.Exception: unknown command: addselect?=0 The following is from my jmx file which covers the command and premnum parameters shown above. <testelement name="" class="org.apache.jmeter.protocol.http.util.HTTPArgument"> <property name="HTTPArgument.always_encode" propType="org.apache.jmeter.testelement.property.BooleanProperty" xml:space="preserve">false</property> <property name="HTTPArgument.use_equals" propType="org.apache.jmeter.testelement.property.BooleanProperty" xml:space="preserve">true</property> <property name="Argument.value" propType="org.apache.jmeter.testelement.property.StringProperty" xml:space="preserve">addselect</property> <property name="Argument.name" propType="org.apache.jmeter.testelement.property.StringProperty" xml:space="preserve">command</property> <property name="Argument.metadata" propType="org.apache.jmeter.testelement.property.StringProperty" xml:space="preserve">=</property> </testelement> <testelement name="" class="org.apache.jmeter.protocol.http.util.HTTPArgument"> <property name="HTTPArgument.always_encode" propType="org.apache.jmeter.testelement.property.BooleanProperty" xml:space="preserve">false</property> <property name="HTTPArgument.use_equals" propType="org.apache.jmeter.testelement.property.BooleanProperty" xml:space="preserve">true</property> <property name="Argument.value" propType="org.apache.jmeter.testelement.property.StringProperty" xml:space="preserve">${premnum}</property> <property name="Argument.name" propType="org.apache.jmeter.testelement.property.StringProperty" xml:space="preserve">premnum</property> <property name="Argument.metadata" propType="org.apache.jmeter.testelement.property.StringProperty" xml:space="preserve">=</property> </testelement> --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Tue Feb 03 09:43:32 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 26381 invoked from network); 3 Feb 2004 09:43:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 09:43:32 -0000 Received: (qmail 60138 invoked by uid 500); 3 Feb 2004 09:43:05 -0000 Delivered-To: charles17@example.com Received: (qmail 60109 invoked by uid 500); 3 Feb 2004 09:43:05 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 60095 invoked from network); 3 Feb 2004 09:43:05 -0000 Received: from unknown (HELO exchange.sun.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 09:43:05 -0000 Received: (qmail 10293 invoked by uid 50); 3 Feb 2004 09:43:34 -0000 Date: 3 Feb 2004 09:43:34 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Cc: Subject: DO NOT REPLY [Bug 26626] New: - Bad Japanese translation in Constant Throughput Timer X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26626>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26626 Bad Japanese translation in Constant Throughput Timer Summary: Bad Japanese translation in Constant Throughput Timer Product: JMeter Version: 1.9.1 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Main AssignedTo: charles17@example.com ReportedBy: charles17@example.com The label string of "Target Throughput (in sample per munite)" in Constant Throughput Timer GUI that is translated into Japanese is wrong. It says "(in sample per millisecond)" instead of "(in sample per munite)." --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Tue Feb 03 10:13:29 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 50916 invoked from network); 3 Feb 2004 10:13:29 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 10:13:29 -0000 Received: (qmail 62139 invoked by uid 500); 3 Feb 2004 10:13:01 -0000 Delivered-To: charles17@example.com Received: (qmail 62094 invoked by uid 500); 3 Feb 2004 10:13:01 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 62009 invoked from network); 3 Feb 2004 10:13:00 -0000 Received: from unknown (HELO exchange.sun.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 10:13:00 -0000 Received: (qmail 20213 invoked by uid 50); 3 Feb 2004 10:13:29 -0000 Date: 3 Feb 2004 10:13:29 -0000 Message-ID: <charles17@example.com> From: charles17@example.com To: charles17@example.com Cc: Subject: DO NOT REPLY [Bug 26612] - Listener: Mailer Visualizer does not start up X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26612>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26612 Listener: Mailer Visualizer does not start up charles17@example.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From charles17@example.com 2004-02-03 10:13 ------- Reproduced this on 1.9.1. It works on current CVS. Resolving as FIXED. --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Tue Feb 03 18:50:16 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 81871 invoked from network); 3 Feb 2004 18:50:16 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 18:50:16 -0000 Received: (qmail 98386 invoked by uid 500); 3 Feb 2004 18:49:25 -0000 Delivered-To: charles17@example.com Received: (qmail 98347 invoked by uid 500); 3 Feb 2004 18:49:25 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 98304 invoked from network); 3 Feb 2004 18:49:24 -0000 Received: from unknown (HELO web13307.mail.yahoo.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 18:49:24 -0000 Message-ID: <charles17@example.com> Received: from [83.161.120.155] by web13307.mail.yahoo.com via HTTP; Tue, 03 Feb 2004 10:49:29 PST Date: Tue, 3 Feb 2004 10:49:29 -0800 (PST) From: peter lin <charles17@example.com> Subject: Are we ready for a RC? To: JMeter Developers List <charles17@example.com> In-Reply-To: <charles17@example.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-382984181-1075834169=:70522" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-382984181-1075834169=:70522 Content-Type: text/plain; charset=us-ascii I'm almost done setting up roller weblog on my server for load testing purposes. Are we ready to make a release candidate? Once we do, I'll make a test plan that posts messages to the blog. peter lin --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! --0-382984181-1075834169=:70522-- From jmeter-dev-charles17@example.com Tue Feb 03 19:35:41 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 5891 invoked from network); 3 Feb 2004 19:35:41 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 19:35:41 -0000 Received: (qmail 82114 invoked by uid 500); 3 Feb 2004 19:35:31 -0000 Delivered-To: charles17@example.com Received: (qmail 82082 invoked by uid 500); 3 Feb 2004 19:35:30 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 82055 invoked from network); 3 Feb 2004 19:35:30 -0000 Received: from unknown (HELO typhoon.atg.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 19:35:30 -0000 Received: from [83.161.120.155] (helo=mailsvr-uk.atg.com) by typhoon.atg.com with esmtp (Exim 4.14) id 1Ao6KR-0006fp-4K for charles17@example.com; Tue, 03 Feb 2004 14:35:23 -0500 Received: from atg.com ([83.161.120.155]) by mailsvr-uk.atg.com over TLS secured channel with Microsoft SMTPSVC(5.0.2195.5329); Tue, 3 Feb 2004 19:34:52 +0000 Message-ID: <charles17@example.com> Date: Tue, 03 Feb 2004 19:34:21 +0000 From: Jordi Salvat i Alabart <charles17@example.com> Organization: Art Technology Group User-Agent: Mozilla/5.0 (X11; U; Linux i686; ca; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: ca, en-gb, en, fr, es-es, es MIME-Version: 1.0 To: JMeter Developers List <charles17@example.com> Subject: Re: Are we ready for a RC? References: <charles17@example.com> In-Reply-To: <charles17@example.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Feb 2004 19:34:52.0422 (UTC) FILETIME=[CB55BA60:01C3EA8C] X-Spam-Score: -1.4 (-) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1Ao6KR-0006fp-4K*k9lWR6Xbh9o* X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have no objections. There's a ton outstanding bugs, but none of them is regressions -- and there's several tons of fixed ones since 1.9.1, so yes, I think we should go for a RC as soon as possible. -- Salut, Jordi. En/na peter lin ha escrit: > > I'm almost done setting up roller weblog on my server for load testing purposes. Are we ready to make a release candidate? Once we do, I'll make a test plan that posts messages to the blog. > > peter lin > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Tue Feb 03 20:04:38 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 22074 invoked from network); 3 Feb 2004 20:04:38 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 20:04:38 -0000 Received: (qmail 1692 invoked by uid 500); 3 Feb 2004 20:04:27 -0000 Delivered-To: charles17@example.com Received: (qmail 1666 invoked by uid 500); 3 Feb 2004 20:04:26 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 1649 invoked from network); 3 Feb 2004 20:04:26 -0000 Received: from unknown (HELO web13308.mail.yahoo.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 20:04:26 -0000 Message-ID: <charles17@example.com> Received: from [83.161.120.155] by web13308.mail.yahoo.com via HTTP; Tue, 03 Feb 2004 12:04:32 PST Date: Tue, 3 Feb 2004 12:04:32 -0800 (PST) From: peter lin <charles17@example.com> Subject: Re: Are we ready for a RC? To: JMeter Developers List <charles17@example.com> In-Reply-To: <charles17@example.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-764626065-1075838672=:80000" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-764626065-1075838672=:80000 Content-Type: text/plain; charset=us-ascii what do you think sebastian? peter lin Jordi Salvat i Alabart <charles17@example.com> wrote: I have no objections. There's a ton outstanding bugs, but none of them is regressions -- and there's several tons of fixed ones since 1.9.1, so yes, I think we should go for a RC as soon as possible. -- Salut, Jordi. En/na peter lin ha escrit: > > I'm almost done setting up roller weblog on my server for load testing purposes. Are we ready to make a release candidate? Once we do, I'll make a test plan that posts messages to the blog. > > peter lin > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! --0-764626065-1075838672=:80000-- From jmeter-dev-charles17@example.com Tue Feb 03 20:36:40 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 47172 invoked from network); 3 Feb 2004 20:36:39 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 20:36:39 -0000 Received: (qmail 33584 invoked by uid 500); 3 Feb 2004 20:36:24 -0000 Delivered-To: charles17@example.com Received: (qmail 33542 invoked by uid 500); 3 Feb 2004 20:36:23 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 33371 invoked from network); 3 Feb 2004 20:36:22 -0000 Received: from unknown (HELO ms-smtp-03.nyroc.rr.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 20:36:22 -0000 Received: from CAPRICORN (roc-66-67-149-131.rochester.rr.com [83.161.120.155]) by ms-smtp-03.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id i13KaOlK010429 for <charles17@example.com>; Tue, 3 Feb 2004 15:36:25 -0500 (EST) From: charles17@example.com To: JMeter Developers List <charles17@example.com> Date: Tue, 03 Feb 2004 15:36:26 -0500 MIME-Version: 1.0 Subject: Re: Are we ready for a RC? Message-ID: <401FBFFA.15190.E3ED7FA@localhost> Priority: normal In-reply-to: <charles17@example.com> References: <charles17@example.com> X-mailer: Pegasus Mail for Windows (v4.11) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'll make a 2.0 branch if you're ready and then do a build. You guys have done great, btw. I've not been active, but I've still been watching. I tried to run the unit tests, and got an error - checkGuiSet found 3 gui's where it expected 0. This is all new code to me, but I'm guessing this means there are 3 new guis that aren't being tested? -Mike On 3 Feb 2004 at 12:04, peter lin wrote: > > what do you think sebastian? > > peter lin > > > Jordi Salvat i Alabart <charles17@example.com> wrote: > I have no objections. There's a ton outstanding bugs, but none of them > is regressions -- and there's several tons of fixed ones since 1.9.1, so > yes, I think we should go for a RC as soon as possible. > > -- > Salut, > > Jordi. > > En/na peter lin ha escrit: > > > > I'm almost done setting up roller weblog on my server for load testing purposes. Are we ready to make a release candidate? Once we do, I'll make a test plan that posts messages to the blog. > > > > peter lin > > > > > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free web site building tool. Try it! > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-dev- charles17@example.com > For additional commands, e-mail: jmeter-dev- charles17@example.com > > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! -- Michael Stover charles17@example.com Yahoo IM: mstover_ya ICQ: 152975688 AIM: mstover777 --------------------------------------------------------------------- To unsubscribe, e-mail: charles17@example.com For additional commands, e-mail: charles17@example.com From jmeter-dev-charles17@example.com Tue Feb 03 20:46:26 2004 Return-Path: <jmeter-dev-charles17@example.com> Delivered-To: charles17@example.com Received: (qmail 52909 invoked from network); 3 Feb 2004 20:46:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur-2.apache.org with SMTP; 3 Feb 2004 20:46:26 -0000 Received: (qmail 70842 invoked by uid 500); 3 Feb 2004 20:46:14 -0000 Delivered-To: charles17@example.com Received: (qmail 70802 invoked by uid 500); 3 Feb 2004 20:46:14 -0000 Mailing-List: contact charles17@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:charles17@example.com> List-Subscribe: <mailto:charles17@example.com> List-Help: <mailto:charles17@example.com> List-Post: <mailto:charles17@example.com> List-Id: "JMeter Developers List" <jmeter-dev.jakarta.apache.org> Reply-To: "JMeter Developers List" <charles17@example.com> Delivered-To: mailing list charles17@example.com Received: (qmail 70779 invoked from network); 3 Feb 2004 20:46:13 -0000 Received: from unknown (HELO exch-calgary.int.pason.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Feb 2004 20:46:13 -0000 Received: from dhcp-172-16-1-65.int.pason.com ([83.161.120.155]) by exch-calgary.int.pason.com with Microsoft SMTPSVC(6.0.3790.0); Tue, 3 Feb 2004 13:46:16 -0700 From: Mike Verdone <charles17@example.com> To: JMeter Developers List <charles17@example.com> Subject: [PATCH] new controller - RandomOrderController Date: Tue, 3 Feb 2004 13:46:18 -0700 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_aiAIAuF5h757WYc" Message-Id: <charles17@example.com> X-OriginalArrivalTime: 03 Feb 2004 20:46:16.0872 (UTC) FILETIME=[C510EA80:01C3EA96] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --Boundary-00=_aiAIAuF5h757WYc Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello JMeter developers, Attached to this message is a patch that adds a new controller type to JMeter. RandomOrderController executes each of its child nodes at most once, but in a random order. I wrote this in order to simulate a users viewing pages in a random order, while guaranteeing the number of times each page is viewed. The patch is based on the latest CVS trunk (as of writing). It has unit tests and documentation included. Please let me know if this patch is acceptable, as this is my first one. Thanks, Mike. --Boundary-00=_aiAIAuF5h757WYc Content-Type: text/x-diff; charset="us-ascii"; name="jmeter-RandomOrderController.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jmeter-RandomOrderController.diff" Index: src/core/org/apache/jmeter/resources/messages.properties =================================================================== retrieving revision 1.95 diff -u -r1.95 messages.properties --- src/core/org/apache/jmeter/resources/messages.properties 23 Jan 2004 01:18:07 -0000 1.95 +++ src/core/org/apache/jmeter/resources/messages.properties 3 Feb 2004 20:37:02 -0000 @@ -299,6 +299,7 @@ proxy_usekeepalive=Set Keep-Alive ramp_up=Ramp-Up Period (in seconds)\: random_control_title=Random Controller +random_order_control_title=Random Order Controller read_response_message=Read response is not checked. To see the response, please check the box in the sampler. read_response_note=If read response is unchecked, the sampler will not read the response read_response_note2=or set the SampleResult. This improves performance, but it means Index: src/core/org/apache/jmeter/util/JMeterVersion.java =================================================================== retrieving revision 1.9 diff -u -r1.9 JMeterVersion.java --- src/core/org/apache/jmeter/util/JMeterVersion.java 30 Jan 2004 16:05:38 -0000 1.9 +++ src/core/org/apache/jmeter/util/JMeterVersion.java 3 Feb 2004 20:37:02 -0000 @@ -24,7 +24,7 @@ * pattern: VERSION = <quote>.*<quote> * */ - static final String VERSION = "1.9.20040130"; + static final String VERSION = "1.9.20040203"; private JMeterVersion() // Not instantiable { Index: xdocs/usermanual/component_reference.xml =================================================================== retrieving revision 1.76 diff -u -r1.76 component_reference.xml --- xdocs/usermanual/component_reference.xml 2 Feb 2004 14:00:25 -0000 1.76 +++ xdocs/usermanual/component_reference.xml 3 Feb 2004 20:37:03 -0000 @@ -757,6 +757,16 @@ <property name="Condition" required="yes">Javascript code that returns "true" or "false"</property> </properties> </component> + +<component name="Random Order Controller" index="14.2.10" screenshot=""> + <description> + <p>The Random Order Controller is much like a Simple Controller in that it will execute each child + element at most once, but the order of execution of the nodes will be random.</p> + </description> +<properties> + <property name="Name" required="No">Descriptive name for this controller that is shown in the tree.</property> +</properties> +</component> </section> <section name="14.3 Listeners" anchor="listeners"> Index: src/components/org/apache/jmeter/control/RandomOrderController.java =================================================================== RCS file: src/components/org/apache/jmeter/control/RandomOrderController.java diff -N src/components/org/apache/jmeter/control/RandomOrderController.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/components/org/apache/jmeter/control/RandomOrderController.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,215 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2004 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache JMeter" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact charles17@example.com. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache JMeter", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * <http://www.apache.org/>. + */ +package org.apache.jmeter.control; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Iterator; +import java.util.List; + +import junit.framework.TestSuite; + +import org.apache.jmeter.junit.JMeterTestCase; +import org.apache.jmeter.junit.stubs.TestSampler; +import org.apache.jmeter.testelement.TestElement; + +/** + * A controller that runs its children each at most once, but in a random order. + * + * @author Mike Verdone + * @version $Revision$ + */ +public class RandomOrderController + extends GenericController + implements Serializable +{ + /** + * Create a new RandomOrderController. + */ + public RandomOrderController() + { + } + + /** + * @see GenericController#initialize() + */ + public void initialize() + { + super.initialize(); + this.reorder(); + } + + /** + * @see GenericController#reInitialize() + */ + public void reInitialize() + { + super.reInitialize(); + this.reorder(); + } + + /** + * Replace the subControllersAndSamplers list with a reordered ArrayList. + */ + private void reorder() + { + int numElements = this.subControllersAndSamplers.size(); + + // Create a new list containing numElements null elements. + List reordered = new ArrayList(this.subControllersAndSamplers.size()); + for (int i = 0; i < numElements; i++) + { + reordered.add(null); + } + + // Insert the subControllersAndSamplers into random list positions. + for (Iterator i = this.subControllersAndSamplers.iterator(); + i.hasNext(); ) + { + int idx = (int)Math.floor(Math.random() * reordered.size()); + while (true) + { + if (idx == numElements) + { + idx = 0; + } + if (reordered.get(idx) == null) + { + reordered.set(idx, i.next()); + break; + } + idx++; + } + } + + // Replace subControllersAndSamplers with reordered copy. + this.subControllersAndSamplers = reordered; + } + + public static class Test extends JMeterTestCase + { + + public Test(String name) + { + super(name); + } + + public void testRandomOrder() + { + testLog.debug("Testing RandomOrderController"); + RandomOrderController roc = new RandomOrderController(); + roc.addTestElement(new TestSampler("zero")); + roc.addTestElement(new TestSampler("one")); + roc.addTestElement(new TestSampler("two")); + roc.addTestElement(new TestSampler("three")); + TestElement sampler = null; + List usedSamplers = new ArrayList(); + roc.initialize(); + while ((sampler = roc.next()) != null) + { + String samplerName = sampler.getPropertyAsString(TestSampler.NAME); + if (usedSamplers.contains(samplerName)) + { + assertTrue("Duplicate sampler returned from next()", false); + } + usedSamplers.add(samplerName); + } + assertTrue("All samplers were returned", + usedSamplers.size() == 4); + } + + public void testRandomOrderNoElements() + { + RandomOrderController roc = new RandomOrderController(); + TestElement sampler = null; + List usedSamplers = new ArrayList(); + roc.initialize(); + assertTrue(roc.next() == null); + } + + public void testRandomOrderOneElement() + { + RandomOrderController roc = new RandomOrderController(); + roc.addTestElement(new TestSampler("zero")); + TestElement sampler = null; + List usedSamplers = new ArrayList(); + roc.initialize(); + while ((sampler = roc.next()) != null) + { + String samplerName = sampler.getPropertyAsString(TestSampler.NAME); + if (usedSamplers.contains(samplerName)) + { + assertTrue("Duplicate sampler returned from next()", false); + } + usedSamplers.add(samplerName); + } + assertTrue("All samplers were returned", + usedSamplers.size() == 1); + } + } + + public static void main(String args[]) + { + junit.textui.TestRunner.run(suite()); + } + + public static TestSuite suite() + { + TestSuite suite = new TestSuite(); + suite.addTest(new Test("testRandomOrderController")); + return suite; + } + +} Index: src/components/org/apache/jmeter/control/gui/RandomOrderControllerGui.java =================================================================== RCS file: src/components/org/apache/jmeter/control/gui/RandomOrderControllerGui.java diff -N src/components/org/apache/jmeter/control/gui/RandomOrderControllerGui.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/components/org/apache/jmeter/control/gui/RandomOrderControllerGui.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,96 @@ +/* + * ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2004 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer.
{'source': 'Apache Software Foundation Public Mail Archives'}