svn commit: r910946 - in /jakarta/jmeter/trunk/bin: jmeter-n-r.cmd jmeter-n.cmd jmeter-t.cmd
Author: sebb Date: Wed Feb 17 12:19:41 2010 New Revision: 910946 URL: http://svn.apache.org/viewvc?rev=910946view=rev Log: Allow for spaces in the file name Modified: jakarta/jmeter/trunk/bin/jmeter-n-r.cmd jakarta/jmeter/trunk/bin/jmeter-n.cmd jakarta/jmeter/trunk/bin/jmeter-t.cmd Modified: jakarta/jmeter/trunk/bin/jmeter-n-r.cmd URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/bin/jmeter-n-r.cmd?rev=910946r1=910945r2=910946view=diff == --- jakarta/jmeter/trunk/bin/jmeter-n-r.cmd (original) +++ jakarta/jmeter/trunk/bin/jmeter-n-r.cmd Wed Feb 17 12:19:41 2010 @@ -38,10 +38,10 @@ if a == a%1 goto winNT2 rem Allow special name LAST -if aLAST == a%1 goto winNT3 +if LAST == %1 goto winNT3 rem Check it has extension .jmx -if a%~x1 == a.jmx goto winNT3 +if %~x1 == .jmx goto winNT3 :winNT2 echo Please supply a script name with the extension .jmx pause Modified: jakarta/jmeter/trunk/bin/jmeter-n.cmd URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/bin/jmeter-n.cmd?rev=910946r1=910945r2=910946view=diff == --- jakarta/jmeter/trunk/bin/jmeter-n.cmd (original) +++ jakarta/jmeter/trunk/bin/jmeter-n.cmd Wed Feb 17 12:19:41 2010 @@ -38,10 +38,10 @@ if a == a%1 goto winNT2 rem Allow special name LAST -if aLAST == a%1 goto winNT3 +if LAST == %1 goto winNT3 rem Check it has extension .jmx -if a%~x1 == a.jmx goto winNT3 +if %~x1 == .jmx goto winNT3 :winNT2 echo Please supply a script name with the extension .jmx pause Modified: jakarta/jmeter/trunk/bin/jmeter-t.cmd URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/bin/jmeter-t.cmd?rev=910946r1=910945r2=910946view=diff == --- jakarta/jmeter/trunk/bin/jmeter-t.cmd (original) +++ jakarta/jmeter/trunk/bin/jmeter-t.cmd Wed Feb 17 12:19:41 2010 @@ -36,10 +36,10 @@ if a == a%1 goto winNT2 rem Allow special name LAST -if aLAST == a%1 goto winNT3 +if LAST == %1 goto winNT3 rem Check it has extension .jmx -if a%~x1 == a.jmx goto winNT3 +if %~x1 == .jmx goto winNT3 :winNT2 echo Please supply a script name with the extension .jmx pause - To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org
svn commit: r911021 - /jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java
Author: sebb Date: Wed Feb 17 15:34:24 2010 New Revision: 911021 URL: http://svn.apache.org/viewvc?rev=911021view=rev Log: Initial implementation of interruptible Modified: jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java Modified: jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java?rev=911021r1=911020r2=911021view=diff == --- jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java (original) +++ jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java Wed Feb 17 15:34:24 2010 @@ -39,6 +39,7 @@ import org.apache.commons.io.IOUtils; import org.apache.jmeter.samplers.AbstractSampler; import org.apache.jmeter.samplers.Entry; +import org.apache.jmeter.samplers.Interruptible; import org.apache.jmeter.samplers.SampleResult; import org.apache.jmeter.testelement.property.BooleanProperty; import org.apache.jmeter.testelement.property.IntegerProperty; @@ -49,7 +50,7 @@ /** * Sampler that can read from POP3 and IMAP mail servers */ -public class MailReaderSampler extends AbstractSampler { +public class MailReaderSampler extends AbstractSampler implements Interruptible { private static final Logger log = LoggingManager.getLoggerForClass(); private static final long serialVersionUID = 240L; @@ -75,6 +76,8 @@ public static final int ALL_MESSAGES = -1; // special value +private volatile boolean busy; + public MailReaderSampler() { setServerType(TYPE_POP3); setFolder(INBOX); @@ -134,7 +137,8 @@ parent.setSampleCount(n); // TODO is this sensible? -for (int i = 0; i n; i++) { +busy = true; +for (int i = 0; busy i n; i++) { StringBuilder cdata = new StringBuilder(); SampleResult child = new SampleResult(); child.sampleStart(); @@ -205,6 +209,8 @@ log.debug(, ex);// No need to log normally, as we set the status parent.setResponseCode(500); // $NON-NLS-1$ parent.setResponseMessage(ex.toString()); +} finally { +busy = false; } if (parent.getEndTime()==0){// not been set by any child samples @@ -462,4 +468,13 @@ sb.append(]); return sb.toString(); } + +/** + * {...@inheritdoc} + */ +public boolean interrupt() { +boolean wasbusy = busy; +busy = false; +return wasbusy; +} } - To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org
DO NOT REPLY [Bug 48753] CookieManager is not available when run with jdk 1.6.0_13
https://issues.apache.org/bugzilla/show_bug.cgi?id=48753 --- Comment #7 from Milamber milambersp...@gmail.com 2010-02-17 17:10:44 UTC --- I don't have this problem with a fresh kubuntu 9.10 64bits install. JMeter Cookie manager works. * with sun-java6-jdk 1.6u15 from ubuntu repository * and with jdk-6u13-linux-x64.bin from Sun java website check your PATH and CLASSPATH? -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org
svn commit: r911118 - in /jakarta/jmeter/trunk: src/core/org/apache/jmeter/resources/ src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/ src/protocol/mail/org/apache/jmeter/protocol/mail/sampl
Author: sebb Date: Wed Feb 17 17:55:07 2010 New Revision: 98 URL: http://svn.apache.org/viewvc?rev=98view=rev Log: Replace ComboBox with JTextField TODO: New screen layout needs to be fixed. Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/gui/MailReaderSamplerGui.java jakarta/jmeter/trunk/xdocs/usermanual/component_reference.xml Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties?rev=98r1=97r2=98view=diff == --- jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties (original) +++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties Wed Feb 17 17:55:07 2010 @@ -458,15 +458,11 @@ mail_reader_all_messages=All mail_reader_delete=Delete messages from the server mail_reader_folder=Folder: -mail_reader_imap=IMAP -mail_reader_imaps=IMAPS mail_reader_num_messages=Number of messages to retrieve: mail_reader_password=Password: -mail_reader_pop3=POP3 -mail_reader_pop3s=POP3S -mail_reader_port=Port (optional): -mail_reader_server=Server: -mail_reader_server_type=Server Type: +mail_reader_port=Server Port (optional): +mail_reader_server=Server Host: +mail_reader_server_type=JavaMail Protocol (e.g. pop3, imaps): mail_reader_storemime=Store the message using MIME mail_reader_title=Mail Reader Sampler mail_sent=Mail sent successfully Modified: jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java?rev=98r1=97r2=98view=diff == --- jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java (original) +++ jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java Wed Feb 17 17:55:07 2010 @@ -66,21 +66,17 @@ private final static String NUM_MESSAGES = num_messages; // $NON-NLS-1$ private static final String NEW_LINE = \n; // $NON-NLS-1$ private final static String STORE_MIME_MESSAGE = storeMimeMessage; - -// Needed by GUI -public final static String TYPE_POP3 = pop3; // $NON-NLS-1$ -public final static String TYPE_POP3S = pop3s; // $NON-NLS-1$ -public final static String TYPE_IMAP = imap; // $NON-NLS-1$ -public final static String TYPE_IMAPS = imaps; // $NON-NLS-1$ //- +public static final String DEFAULT_PROTOCOL = pop3; // $NON-NLS-1$ + public static final int ALL_MESSAGES = -1; // special value private volatile boolean busy; public MailReaderSampler() { -setServerType(TYPE_POP3); -setFolder(INBOX); +setServerType(DEFAULT_PROTOCOL); +setFolder(INBOX); // $NON-NLS-1$ setNumMessages(ALL_MESSAGES); setDeleteMessages(false); } Modified: jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/gui/MailReaderSamplerGui.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/gui/MailReaderSamplerGui.java?rev=98r1=97r2=98view=diff == --- jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/gui/MailReaderSamplerGui.java (original) +++ jakarta/jmeter/trunk/src/protocol/mail/org/apache/jmeter/protocol/mail/sampler/gui/MailReaderSamplerGui.java Wed Feb 17 17:55:07 2010 @@ -19,11 +19,11 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; +import java.awt.event.FocusEvent; +import java.awt.event.FocusListener; import javax.swing.ButtonGroup; -import javax.swing.DefaultComboBoxModel; import javax.swing.JCheckBox; -import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; @@ -38,12 +38,12 @@ import org.apache.jmeter.util.JMeterUtils; import org.apache.jorphan.gui.layout.VerticalLayout; -public class MailReaderSamplerGui extends AbstractSamplerGui { +public class MailReaderSamplerGui extends AbstractSamplerGui implements ActionListener, FocusListener { private static final long serialVersionUID = 240L; // Gui Components -private JComboBox serverTypeBox; +private JTextField serverTypeBox; private JTextField serverBox; @@ -68,13 +68,6 @@ private JCheckBox storeMimeMessageBox; //
DO NOT REPLY [Bug 48753] CookieManager is not available when run with jdk 1.6.0_13
https://issues.apache.org/bugzilla/show_bug.cgi?id=48753 Florian Hopf h...@synyx.de changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #8 from Florian Hopf h...@synyx.de 2010-02-17 19:04:43 UTC --- It also works for me when downloading a fresh version of jdk 1.6.0_18 so I would consider this as fixed. Thanks a lot for your help, maybe this can at least be useful as a reference for somebody else. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org
[Jakarta-jmeter Wiki] Update of JMeterLinks by Victor Klepikovskiy
Dear Wiki user, You have subscribed to a wiki page or wiki category on Jakarta-jmeter Wiki for change notification. The JMeterLinks page has been changed by Victor Klepikovskiy. http://wiki.apache.org/jakarta-jmeter/JMeterLinks?action=diffrev1=22rev2=23 -- * [[http://markov4jmeter.sourceforge.net/|Markov4JMeter]] - Open source (Apache License Version 2.0) JMeter plug-in allowing to extend a Test Plan by probabilistic user profiles based on Markov chains and elements known from state diagrams, e.g. guards and actions. Moreover, Markov4JMeter allows to vary the number of active concurrent threads during a test run based on user-definable mathematic formulae. + * [[http://jmeter-tips.blogspot.com/|JMeter Tips]] - Blog of Victor Klepikovskiy about JMeter tips and tricks + - To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org
DO NOT REPLY [Bug 48762] New: Warning: Constant Timer was interrupted
https://issues.apache.org/bugzilla/show_bug.cgi?id=48762 Summary: Warning: Constant Timer was interrupted Product: JMeter Version: 2.3.4 Platform: PC OS/Version: Windows XP Status: NEW Severity: blocker Priority: P2 Component: HTTP AssignedTo: jmeter-dev@jakarta.apache.org ReportedBy: roland_wettst...@jdpa.com Hi, I have the following load testing set up: Thread Group1 http Request Sampler Timer - delay timer (30 seconds0 Listener - Summary Report Listener - View Result Tree Thread Group2 ' ' ' Thread Group125 Each thread group contains one single http Request sampler to a RESTService Each http Request sampler has a delay timer attached as a child Each thread group also contains two listeners to capture the http response. Command for http sampler: GET Path value for http sampler: /Application_Name/client_name/user_name/action\startdate\enddate \datatype I choose 125 separate thread groups as each http request sends different user_name, startdate, enddate, and datatype. So, this way, I can capture the response for each request separately. When JMeter runs it creates 125 threads running concurrently, each thread running about twice a minute. The created threads send their request to the service which, in return spawns off its own threads, to access text indexed data. The way I have set JMEter set up works very well if the start and enddate are very close together, only a small range of text indexes need to be accessed. If the date range increases to over one week then the thread response degradetes to where some threads hardly get the chance to run. Also, I encounter the following error messages in JMeter's log file: WARN - jmeter.threads.JMeterThread: Interrupting: U8 Load Test 8-1 sampler: GET Verbatims Text One Month Request WARN - jmeter.threads.JMeterThread: The delay timer was interrupted - probably did not wait as long as intended. Sorry if this is logged at the incorrect place if this issue deems not to be a bug. Any information on this is greatly appreciated. Roland -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org
[Jakarta-jmeter Wiki] Update of JMeterLinks by Andrey Pohilko
Dear Wiki user, You have subscribed to a wiki page or wiki category on Jakarta-jmeter Wiki for change notification. The JMeterLinks page has been changed by Andrey Pohilko. The comment on this change is: Added link to yet another custom plugins. http://wiki.apache.org/jakarta-jmeter/JMeterLinks?action=diffrev1=23rev2=24 -- * [[http://jmeter-tips.blogspot.com/|JMeter Tips]] - Blog of Victor Klepikovskiy about JMeter tips and tricks + * [[http://code.google.com/p/jmeter-plugins/|JMeter Plugins]] - Project for various custom JMeter plugins at Google Code + - To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org