jmeter.git
3 months agoRemove unused variable
Felix Schumacher [Mon, 18 Apr 2022 14:49:13 +0000 (16:49 +0200)] 
Remove unused variable

Specify charset, when none is given and use isEmpty.

3 months agoGet rid of warning about converting long to float
Felix Schumacher [Mon, 18 Apr 2022 14:42:41 +0000 (16:42 +0200)] 
Get rid of warning about converting long to float

by introducing a new private assertion method.
While we are here, convert to junit5 and add another assertion method
to check vor valid range.

3 months agoSilence warning about mutable enums
Felix Schumacher [Mon, 18 Apr 2022 14:36:36 +0000 (16:36 +0200)] 
Silence warning about mutable enums

We are probably not using the enum as a pattern correctly, but it works
for us now. Might be worth to look further into this.

3 months agoMake error prone happier by using static inner class
Felix Schumacher [Mon, 18 Apr 2022 14:33:26 +0000 (16:33 +0200)] 
Make error prone happier by using static inner class

While we are here, switch to junit5 methods.

3 months agoMake error prone happy by re-throwing catched exception
Felix Schumacher [Mon, 18 Apr 2022 13:58:44 +0000 (15:58 +0200)] 
Make error prone happy by re-throwing catched exception

and while we are here, update to junit5
and get rid of unused code

3 months agoGet rid of error prone warnings because of missing explicit default character encoding
Felix Schumacher [Mon, 18 Apr 2022 13:46:26 +0000 (15:46 +0200)] 
Get rid of error prone warnings because of missing explicit default character encoding

While we are in the sources, use try-with, isEmpty and other minor clean-ups.
Don't encode ASCII printable characters as unicode sequences, as they are
decoded by Java anyway and are obfuscating the code unnecessarily.
Remove unused method variables and parameters, when possible.
Use ArrayList instead of LinkedList, when possible (more will follow).

3 months agoCorrect mail address in changes.xml
Felix Schumacher [Mon, 18 Apr 2022 15:18:04 +0000 (17:18 +0200)] 
Correct mail address in changes.xml

3 months agoSpecify the char encoding when decoding bytes into strings
Felix Schumacher [Wed, 13 Apr 2022 14:17:56 +0000 (16:17 +0200)] 
Specify the char encoding when decoding bytes into strings

As all other commits related to #708, this is based on patch by Wilson Kurniawan (wilson at visenze.com)

Closes #708

3 months agoFurther silence error prone warnings
Felix Schumacher [Wed, 13 Apr 2022 13:55:02 +0000 (15:55 +0200)] 
Further silence error prone warnings

Replace JdkObsolete with JavaUtilDate where we can't replace usage of new Date()
Use Instant and other newer APIs from java.time, where we can replace Date() without
changing our API.

And while we are here, we can get use some more isEmpty calls.

Part of #708

3 months agoSuppress InlineMe warnings from error prone
Felix Schumacher [Wed, 13 Apr 2022 10:35:51 +0000 (12:35 +0200)] 
Suppress InlineMe warnings from error prone

Part of #708

3 months agoFurther silence error prone warnings
Felix Schumacher [Wed, 13 Apr 2022 10:35:10 +0000 (12:35 +0200)] 
Further silence error prone warnings

Replace JdkObsolete with JavaUtilDate where we can't replace usage of new Date()
Use Instant and other newer APIs from java.time, where we can replace Date() without
changing our API.

Part of #708

3 months agoReplace java.util.Date with java.time based objects
Felix Schumacher [Tue, 12 Apr 2022 18:51:18 +0000 (20:51 +0200)] 
Replace java.util.Date with java.time based objects

Part of #708

3 months agoUse a finer filter to disable warnings about java.util.Date
Felix Schumacher [Tue, 12 Apr 2022 18:31:33 +0000 (20:31 +0200)] 
Use a finer filter to disable warnings about java.util.Date

and keep them locally

Part of #708

3 months agoFix simple errorprone violations
Wilson Kurniawan [Tue, 12 Apr 2022 09:04:34 +0000 (17:04 +0800)] 
Fix simple errorprone violations

3 months agoAdd necessary trusted-keys in checksum.xml
Wilson Kurniawan [Mon, 11 Apr 2022 23:55:07 +0000 (07:55 +0800)] 
Add necessary trusted-keys in checksum.xml

3 months agoRevert "Update ActiveMQ to 5.17.0"
Felix Schumacher [Tue, 12 Apr 2022 16:31:48 +0000 (18:31 +0200)] 
Revert "Update ActiveMQ to 5.17.0"

This reverts commit 76d1de31243a942591a107f6d58e030daa1e4d55.

Seems, that Java 9+ is needed. JMeter has to be able to run
with Java 8.

3 months agoAdd missing changelog entry for view hack
Felix Schumacher [Tue, 12 Apr 2022 16:31:43 +0000 (18:31 +0200)] 
Add missing changelog entry for view hack

3 months agoHack to make rendering of large text results faster
Felix Schumacher [Sun, 20 Mar 2022 15:27:18 +0000 (16:27 +0100)] 
Hack to make rendering of large text results faster

Currently the used JEditorPane is slow when using large texts, as it
tries to find good places to break words.

This hack disables word wrapping by using non-wrapping views
for every element in the JEditorPane.

Introduce a new setting view.results.tree.simple_view_limit for view results tree

This setting is used to decide, whether the text view should switch to a simpler
view model. That can help to get rid of UI unresponsiveness on large contents.

Closes #706

3 months agoUpdate ActiveMQ to 5.17.0
Felix Schumacher [Tue, 12 Apr 2022 16:17:45 +0000 (18:17 +0200)] 
Update ActiveMQ to 5.17.0

and its dependent usage of Spring framework to 5.3.18

4 months agoUse current screenshot for save-to-file listener in documentation
NaveenKumar Namachivayam [Wed, 30 Mar 2022 01:00:47 +0000 (21:00 -0400)] 
Use current screenshot for save-to-file listener in documentation

Based on patch by NaveenKumar Namachivayam (catch.nkn at gmail.com)
Used Gimp to make new image less wide and used pngquant to make it
use less bytes.

Closes #707
Bugzilla Id: 65983

4 months agoCorrect wording in JMESPath JSON extractor
Felix Schumacher [Mon, 14 Mar 2022 19:15:27 +0000 (20:15 +0100)] 
Correct wording in JMESPath JSON extractor

4 months agoprepare new version 5.5 v5.5-rc1
Milamber [Sat, 12 Mar 2022 14:27:44 +0000 (15:27 +0100)] 
prepare new version 5.5

5 months agoHide the 'go to top' button in print mode
Felix Schumacher [Wed, 9 Mar 2022 16:49:02 +0000 (17:49 +0100)] 
Hide the 'go to top' button in print mode

5 months agoMarkup changes and insertion of titles for new and noteworthy stuff
Felix Schumacher [Wed, 9 Mar 2022 16:40:08 +0000 (17:40 +0100)] 
Markup changes and insertion of titles for new and noteworthy stuff

5 months agoKeep JSyntaxTextArea text value for use in headless mode
Peter Paul Bakker [Mon, 17 Jan 2022 15:15:05 +0000 (16:15 +0100)] 
Keep JSyntaxTextArea text value for use in headless mode

Closes #696

5 months agoCorrect typos and markup
Felix Schumacher [Sun, 6 Mar 2022 10:30:15 +0000 (11:30 +0100)] 
Correct typos and markup

5 months agoUse ./gradlew autostyleApply to get rid of unwanted whitespace and ordering
Felix Schumacher [Sat, 5 Mar 2022 20:41:27 +0000 (21:41 +0100)] 
Use ./gradlew autostyleApply to get rid of unwanted whitespace and ordering

5 months agoUsed Junit 5 assertions API to keep it consistent with Junit 5 tests
Sampath Kumar Krishnasamy [Tue, 8 Feb 2022 09:33:46 +0000 (09:33 +0000)] 
Used Junit 5 assertions API to keep it consistent with Junit 5 tests

Closes #697

5 months agoAdd changelog entries for feature switch Oro/Java Regex
Felix Schumacher [Sat, 5 Mar 2022 20:17:53 +0000 (21:17 +0100)] 
Add changelog entries for feature switch Oro/Java Regex

PR #700: Add a switch to replace Oro Regex implementation by the built-in Java one.

Bugzilla Id: 57672
Closes #700

5 months agoAdd documentation for the feature flag jmeter.regex.engine
Felix Schumacher [Wed, 2 Mar 2022 20:31:54 +0000 (21:31 +0100)] 
Add documentation for the feature flag jmeter.regex.engine

5 months agoChange property name for regex engine switch
Felix Schumacher [Wed, 2 Mar 2022 20:07:19 +0000 (21:07 +0100)] 
Change property name for regex engine switch

Make switch flag internally always a privatestatic final variable, as it
might help the JIT compiler to remove dead code.

5 months agoUse constants for static Java Regex Patterns
Felix Schumacher [Wed, 2 Mar 2022 15:10:04 +0000 (16:10 +0100)] 
Use constants for static Java Regex Patterns

5 months agoMove static pattern to private constant
Felix Schumacher [Wed, 2 Mar 2022 14:56:46 +0000 (15:56 +0100)] 
Move static pattern to private constant

5 months agoUse Pattern cache in more places
Felix Schumacher [Wed, 2 Mar 2022 14:46:23 +0000 (15:46 +0100)] 
Use Pattern cache in more places

5 months agoEnable passing of system properties to tests via special namespace
Felix Schumacher [Wed, 2 Mar 2022 11:27:26 +0000 (12:27 +0100)] 
Enable passing of system properties to tests via special namespace

If a system property prefixed with jmeter.properties. is found, Gradle will
now pass it as a system property without that prefix to the unit tests.
That allows to set system properties (which might be used as jmeter properties)
to the unit tests, without setting them in the JVM, that is used by Gradle.

5 months agoOrder import
Felix Schumacher [Tue, 1 Mar 2022 19:19:18 +0000 (20:19 +0100)] 
Order import

5 months agoEnable testing of Java Regex instead of Oro on travis
Felix Schumacher [Tue, 1 Mar 2022 19:16:50 +0000 (20:16 +0100)] 
Enable testing of Java Regex instead of Oro on travis

5 months agoJava Regex replaceAll() would replace too much
Felix Schumacher [Tue, 1 Mar 2022 19:12:12 +0000 (20:12 +0100)] 
Java Regex replaceAll() would replace too much

The Java Regex implementation sees an empty group at the end of
a string, when matching against .*. So let us rephrase our wish
to at least one character.

5 months ago$ is a special character in Java Regex
Felix Schumacher [Tue, 1 Mar 2022 19:10:29 +0000 (20:10 +0100)] 
$ is a special character in Java Regex

Guard it for usage within a Regex

5 months agocurly braces are special in Java Regex
Felix Schumacher [Tue, 1 Mar 2022 19:09:09 +0000 (20:09 +0100)] 
curly braces are special in Java Regex

Oro seems to get along with the escaped braces, so use them for testing
both implementations

5 months agoJava Regex split() works quite different to oro split()
Felix Schumacher [Tue, 1 Mar 2022 19:08:11 +0000 (20:08 +0100)] 
Java Regex split() works quite different to oro split()

Use a different approach to split the template and correct the
difference between Java Regex groupCount() and Oro groups()

5 months agoJava Regex and oro differ in groups() vs groupCount()
Felix Schumacher [Tue, 1 Mar 2022 19:05:54 +0000 (20:05 +0100)] 
Java Regex and oro differ in groups() vs groupCount()

Oro seems to count group(0) twice

5 months agoJava Regex and Oro differ when considering line ending
Felix Schumacher [Tue, 1 Mar 2022 19:03:29 +0000 (20:03 +0100)] 
Java Regex and Oro differ when considering line ending

and use DOT_ALL to match new lines

5 months agoPass system property for regex switch to the tests
Felix Schumacher [Tue, 1 Mar 2022 16:49:32 +0000 (17:49 +0100)] 
Pass system property for regex switch to the tests

5 months agoBreak lines that are longer than 120 characters
Felix Schumacher [Sat, 26 Feb 2022 15:50:45 +0000 (16:50 +0100)] 
Break lines that are longer than 120 characters

5 months agoUse newer junit5 Assertion methods
Felix Schumacher [Sat, 26 Feb 2022 15:49:46 +0000 (16:49 +0100)] 
Use newer junit5 Assertion methods

5 months agoAdd tests for new methods in JMeterUtils
Felix Schumacher [Sat, 26 Feb 2022 15:49:00 +0000 (16:49 +0100)] 
Add tests for new methods in JMeterUtils

5 months agoUse Pattern cache from JMeterUtils
Felix Schumacher [Sat, 26 Feb 2022 15:29:10 +0000 (16:29 +0100)] 
Use Pattern cache from JMeterUtils

5 months agoUse Pattern cache from JMeterUtils
Felix Schumacher [Sat, 26 Feb 2022 15:27:53 +0000 (16:27 +0100)] 
Use Pattern cache from JMeterUtils

5 months agoUse Pattern cache from JMeterUtils
Felix Schumacher [Sat, 26 Feb 2022 15:26:47 +0000 (16:26 +0100)] 
Use Pattern cache from JMeterUtils

5 months agoUse Pattern cache from JMeterUtils
Felix Schumacher [Sat, 26 Feb 2022 15:24:06 +0000 (16:24 +0100)] 
Use Pattern cache from JMeterUtils

5 months agoUse Pattern cache from JMeterUtils
Felix Schumacher [Sat, 26 Feb 2022 15:22:27 +0000 (16:22 +0100)] 
Use Pattern cache from JMeterUtils

5 months agoUse Pattern cache from JMeterUtils and extract constant Pattern
Felix Schumacher [Sat, 26 Feb 2022 15:14:01 +0000 (16:14 +0100)] 
Use Pattern cache from JMeterUtils and extract constant Pattern

5 months agoUse Pattern-cache from JMeterUtils
Felix Schumacher [Sat, 26 Feb 2022 15:04:09 +0000 (16:04 +0100)] 
Use Pattern-cache from JMeterUtils

This will help in test plans with lots of threads (1000 tested)

5 months agoUse private instead of protected for new methods
Felix Schumacher [Sat, 26 Feb 2022 13:35:44 +0000 (14:35 +0100)] 
Use private instead of protected for new methods

They should not be used outside of this class.

5 months agoUse correct variable to compile regex
Felix Schumacher [Sat, 26 Feb 2022 13:29:13 +0000 (14:29 +0100)] 
Use correct variable to compile regex

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Sat, 26 Feb 2022 10:27:02 +0000 (11:27 +0100)] 
Add a switch to decide which regex engine should be used

This one uses the new cache for Java based Regex-Patterns in JMeterUtils

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Fri, 25 Feb 2022 15:42:15 +0000 (16:42 +0100)] 
Add a switch to decide which regex engine should be used

This one uses the new cache for Java based Regex-Patterns in JMeterUtils

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Thu, 24 Feb 2022 20:06:37 +0000 (21:06 +0100)] 
Add a switch to decide which regex engine should be used

This one uses the new cache for Java based Regex-Patterns in JMeterUtils

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Thu, 24 Feb 2022 19:52:07 +0000 (20:52 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoUse newer jupiter Assertions
Felix Schumacher [Thu, 24 Feb 2022 19:45:08 +0000 (20:45 +0100)] 
Use newer jupiter Assertions

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Thu, 24 Feb 2022 19:42:22 +0000 (20:42 +0100)] 
Add a switch to decide which regex engine should be used

This one uses the new cache for Java based Regex-Patterns in JMeterUtils

5 months agoMake errorProne happy and remove unused parameter from newly introduced private method
Felix Schumacher [Thu, 24 Feb 2022 19:34:31 +0000 (20:34 +0100)] 
Make errorProne happy and remove unused parameter from newly introduced private method

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Thu, 24 Feb 2022 19:22:56 +0000 (20:22 +0100)] 
Add a switch to decide which regex engine should be used

This one uses the new cache for Java based Regex-Patterns in JMeterUtils

5 months agoAdd missing closing parenthesis in javadoc
Felix Schumacher [Thu, 24 Feb 2022 19:10:44 +0000 (20:10 +0100)] 
Add missing closing parenthesis in javadoc

5 months agoUse correct order of extractors
Felix Schumacher [Thu, 24 Feb 2022 19:01:18 +0000 (20:01 +0100)] 
Use correct order of extractors

too many No's there :)

5 months agoFix missing 'contains'/'find' for pattern
Felix Schumacher [Thu, 24 Feb 2022 18:49:02 +0000 (19:49 +0100)] 
Fix missing 'contains'/'find' for pattern

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Thu, 24 Feb 2022 18:40:14 +0000 (19:40 +0100)] 
Add a switch to decide which regex engine should be used

5 months agouse 'modern' Java features as isEmpty and contains
Felix Schumacher [Thu, 24 Feb 2022 18:04:48 +0000 (19:04 +0100)] 
use 'modern' Java features as isEmpty and contains

5 months agoRename property for regex cache size
Felix Schumacher [Thu, 24 Feb 2022 18:00:46 +0000 (19:00 +0100)] 
Rename property for regex cache size

That way -- as Vladimir pointed out -- it would be more consistent to
a potentially renamed property jmeter.regex.engine, which would
replace the boolean property jmeter.use_java_regex.

5 months agoRemove useless semicolon
Felix Schumacher [Thu, 24 Feb 2022 16:53:51 +0000 (17:53 +0100)] 
Remove useless semicolon

5 months agoAdd a cache to store compiled Patterns into JMeterUtils
Felix Schumacher [Thu, 24 Feb 2022 16:41:49 +0000 (17:41 +0100)] 
Add a cache to store compiled Patterns into JMeterUtils

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Thu, 24 Feb 2022 16:00:43 +0000 (17:00 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Thu, 24 Feb 2022 15:32:26 +0000 (16:32 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Thu, 24 Feb 2022 11:04:52 +0000 (12:04 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoRemove unused parameter in private method
Felix Schumacher [Thu, 24 Feb 2022 10:53:19 +0000 (11:53 +0100)] 
Remove unused parameter in private method

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Wed, 23 Feb 2022 21:03:59 +0000 (22:03 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Wed, 23 Feb 2022 20:59:41 +0000 (21:59 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Wed, 23 Feb 2022 20:08:10 +0000 (21:08 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Wed, 23 Feb 2022 19:47:54 +0000 (20:47 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Wed, 23 Feb 2022 19:42:13 +0000 (20:42 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Wed, 23 Feb 2022 19:27:48 +0000 (20:27 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Wed, 23 Feb 2022 19:14:59 +0000 (20:14 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Wed, 23 Feb 2022 17:44:44 +0000 (18:44 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Tue, 22 Feb 2022 15:43:20 +0000 (16:43 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Tue, 22 Feb 2022 15:37:13 +0000 (16:37 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoRemove unused local variable
Felix Schumacher [Tue, 22 Feb 2022 15:36:47 +0000 (16:36 +0100)] 
Remove unused local variable

this is the old default else branch, where implicitly  is true.

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Mon, 21 Feb 2022 21:02:15 +0000 (22:02 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoRemove unnecessary second argument for substring (we want it all)
Felix Schumacher [Mon, 21 Feb 2022 20:53:18 +0000 (21:53 +0100)] 
Remove unnecessary second argument for substring (we want it all)

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Mon, 21 Feb 2022 20:52:19 +0000 (21:52 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Mon, 21 Feb 2022 20:34:34 +0000 (21:34 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Mon, 21 Feb 2022 20:31:49 +0000 (21:31 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Mon, 21 Feb 2022 20:23:10 +0000 (21:23 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Mon, 21 Feb 2022 20:20:32 +0000 (21:20 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Mon, 21 Feb 2022 20:16:28 +0000 (21:16 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Mon, 21 Feb 2022 20:04:17 +0000 (21:04 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoAdd a switch to decide which regex engine should be used
Felix Schumacher [Mon, 21 Feb 2022 19:58:54 +0000 (20:58 +0100)] 
Add a switch to decide which regex engine should be used

5 months agoUse isEmpty instead of comparing length to zero
Felix Schumacher [Mon, 21 Feb 2022 19:40:11 +0000 (20:40 +0100)] 
Use isEmpty instead of comparing length to zero

5 months agoRephrase docs a bit
Felix Schumacher [Sat, 5 Mar 2022 19:58:06 +0000 (20:58 +0100)] 
Rephrase docs a bit

Don't use 'here' or similar as link text. Remove space at the end of line.

5 months agoWrite graphite guide in realtime section
shblue21 [Mon, 21 Feb 2022 04:32:29 +0000 (13:32 +0900)] 
Write graphite guide in realtime section

write graphite setting, in realtime section,
with simple pickle protocol

Closes #699