Commit Graph

2011 Commits

Author SHA1 Message Date
Vladimir Sitnikov da4bf49675 chore: drop xerces:xercesImpl dependency, avoid renovate bumping xml-apis to v2
xml-apis 2.0.2 is a mere relocation to 1.0.b2, so it makes no sense using v2
2025-10-31 20:47:59 +03:00
Vladimir Sitnikov b86754e536 chore: remove mongodb plugin 2025-10-31 20:19:43 +03:00
Vladimir Sitnikov 47bd32e0aa style: resolve issues identified by errorprone 2025-10-31 12:04:16 +03:00
Felix Schumacher 6abfb4d5cd Fix markup 2024-09-27 19:26:28 +02:00
Felix Schumacher 356775da35 More occurrences of com.mysql.jdbc.Driver / replace them all 2024-09-27 18:56:48 +02:00
David Getzlaff 9643596b15 Update component_reference.xml for com.mysql.cj.jdbc.Driver 2024-09-27 18:54:31 +02:00
David Coomber 174ba3178f Fixed grammar 2024-06-23 14:01:12 +02:00
David Coomber 339c793250 Fixed typo 2024-06-21 19:49:42 +03:00
Vladimir Sitnikov 09c3f810dd change: use Java 17 as the build target, require Java 17+ for execution 2024-01-09 11:44:25 +03:00
Vladimir Sitnikov 9b258623b0 fix: add property bindings to reduce code duplication in UI classes and make "configure and modifyTestElement" simple in most cases 2023-12-27 14:45:41 +03:00
Vladimir Sitnikov 4340b2a048 doc: update documentation for sampleresult.default.encoding default value
sampleresult.default.encoding defaults to DEFAULT_HTTP_ENCODING which moved
to UTF-8, so updating the documentation accordingly.

See https://github.com/apache/jmeter/issues/6005#issuecomment-1617473097
2023-07-03 10:16:57 +03:00
Vladimir Sitnikov 7a7e946ea8 feat: add Copy Code action to copy test element as code
It produces a draft code, so it is easier to start using DSL
by generating code from the UI.
2023-06-15 08:15:38 +03:00
Vladimir Sitnikov ef61d4eb0e feat: add DSL for programmatic test plan creation 2023-06-15 08:15:15 +03:00
Vladimir Sitnikov cabc3fbe15 chore: use testFixtures sourceset instead of depending on all the test classes
This change enables cleaner separation between "actual tests" and "support classes for the tests".

For instance, `:src:core` might provide dummy samplers like `ThreadSleep` for testing purposes.
`ThreadSleep` would depend on `src/test/main` (since it would `extend AbstractSampler`),
 and other modules (e.g. tests in `:src:protocols:http`) might need that `ThreadSleep` sampler.

It won't be practical to create `core-testkit` modules for every module,
so we move those reusable test classes to `testFixtures/...` source set.

See https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures
2023-06-08 13:37:07 +03:00
Felix Schumacher ae8c1ec2ba Add more variables to template to compute sampler names
The new variables are
 * method - HTTP method of the request
 * host   - host of the URL recorded (called domain in the sampler)
 * scheme - scheme of the URL recorded (called protocol in the sampler)
 * port   - port of the URL recorded
 * url    - URL as recorded

Issue #5820

Co-authored-by: Alex Schwartz <alexschwartz01@gmail.com>

Guard message formats that might have been given by user

As Vladimir pointed out, we might have users, that construct
a format string with a part, that might be interpreted by
MessageFormat. So let us guard those.

asdf
2023-06-05 17:40:16 +03:00
Vladimir Sitnikov d0bdbafd7b fix: disable FunctionProperty caching
Previously it cached the values based on iteration number only
which triggered wrong results on concurrent executions.

The previous behavior can be temporary restored with
function.cache.per.iteration=true property.
2023-05-12 07:23:27 +03:00
Vladimir Sitnikov eedabdd6c0
feat: use ServiceLoader to find implementations instead of searching classes in jars (#5885)
ServiceLoader is Java standard approach for locating implementaitons,
and it allows pluggability without relying on a filesystem layout.

Fixes https://github.com/apache/jmeter/issues/5883
2023-05-11 16:20:17 +03:00
Felix Schumacher ec3122abf1 Issue 5694: Document changed formatter for function __time()
Closes #5694
2023-02-20 14:39:36 +01:00
Felix Schumacher 0619b848c6 Javadoc link for commons-math has changed 2023-02-20 14:02:41 +01:00
Felix Schumacher 8fba9d96aa Make note more prominent in docs 2022-11-19 17:26:31 +01:00
Felix Schumacher db847c1027 Change naming the default to inner text
The long description in the required field let to a line
break in my browser, where the complete text rendered in
the title column.

We might think about a special default attribute for the
arguments, that could be used to specify a default value.

Closes #5731
2022-11-19 13:44:29 +01:00
orimarko 3a1e7c5536
UPPER is the default case for changeCase 2022-11-10 13:44:26 +02:00
Vladimir Sitnikov 65789f8800 doc: add load profile samples to Open Model Thread Group documentation 2022-07-08 16:56:37 +03:00
Milamber 4f05afcdd6
Update the section about JMeter and HiDPI screens.
Add mention to Java property sun.java2d.uiScale.
2022-05-06 18:48:03 +00:00
Felix Schumacher 40de048e0e 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
2022-04-12 18:21:22 +02:00
Felix Schumacher 53a992c817 Correct wording in JMESPath JSON extractor 2022-03-14 20:15:27 +01:00
Felix Schumacher 619bd069e8 Add documentation for the feature flag jmeter.regex.engine 2022-03-05 21:01:41 +01:00
Felix Schumacher 9c16f2fdb3 Rephrase docs a bit
Don't use 'here' or similar as link text. Remove space at the end of line.
2022-03-05 20:58:06 +01:00
shblue21 4ea72b5028 Write graphite guide in realtime section
write graphite setting, in realtime section,
with simple pickle protocol

Closes #699
2022-03-05 20:56:20 +01:00
Vladimir Sitnikov d4f637130d [Bug 63620] Disable kerning when document lenght exceeds 10K
The treshold can be configured via text.kerning.max_document_size
2022-02-13 13:01:04 +03:00
Vladimir Sitnikov dbbe8e6e35 [Bug 63620] Fix GUI freeze when viewing response body with long lines
GUI gets unresponsive when the response contains long lines (e.g lines exceeding 100K chars).
The workaround is to add artificial line breaks.

We try to break on word boundaries first, and if not possible,
we break on char boundaries (e.g. large chunks of base64 data).

view.results.tree.max_line_size=110000 (defaults to 110K)
view.results.tree.soft_wrap_line_size=100000 (defaults to max_line_size/1.1)

CPU spin trace looks as follows:

"AWT-EventQue...
...
        at sun.font.GlyphLayout.layout(Unknown Source)
...
        at java.awt.font.TextLine.<init>(Unknown Source)
        at java.awt.font.TextMeasurer.makeTextLineOnRange(Unknown Source)
        at java.awt.font.TextMeasurer.getLayout(Unknown Source)
...
        at javax.swing.text.JTextComponent.setDocument(Unknown Source)
        at org.apache.jmeter.visualizers.SamplerResultTab.setTextOptimized(SamplerResultTab.java:695)
...
2022-02-13 13:01:04 +03:00
Felix Schumacher 85580b49ee Whitespace change (remove tab, as we normally use spaces here) 2022-01-24 20:51:01 +01:00
Felix Schumacher 04548fd208 Use English typographic conventions for colons (no space in front) 2022-01-24 20:35:21 +01:00
Felix Schumacher 160ec244b7 Correct more typos (it's vs. its) 2022-01-24 19:08:52 +01:00
Felix Schumacher d87a25bb19 Fix typo (mainly to trigger buildbot) 2022-01-24 19:02:10 +01:00
Felix Schumacher 3e54034a25 Fix markup for components reference
Broken with last commit for JSON Path Assertion

Bugzilla Id: 65794
2022-01-19 19:33:04 +01:00
Felix Schumacher 278255de85 Fail JSONPath Assertion on indefinite paths and no assertion value
The docs for JSONPath Assertion state, that it will fail the assertion,
when no element is found with the given JSON path. This was currently
not followed, when an indefinite path was used. In such a case, the
JSONPath library would return an empty list, which the assertion logic
would log as OK.

With this change we let the assertion fail, when
 * an indefinite path was given
 * and an empty list is extracted
 * and no assertion value is given

Bugzilla Id: 65794
2022-01-19 19:07:34 +01:00
Felix Schumacher 6a5cac0ad7 JSON Assertion always successful with indefinite paths
Add a note to the component reference for JSON Path Assertions

Bugzilla Id: 65794
2022-01-18 17:36:49 +01:00
Vladimir Sitnikov 417846471d Open Model Thread Group: load generator with programmable profile
See https://github.com/apache/jmeter/pull/674
See https://lists.apache.org/thread.html/r62952bcf60212202f742329015c110c3b9da0d8c48ded6b9b833f04d%40%3Cdev.jmeter.apache.org%3E
2021-12-02 16:17:48 +03:00
Vladimir Sitnikov a22e121723 Change jmeter.exit.check.pause to 0 by default so tests do not show "The JVM should have exited but did not" warning 2021-11-27 19:47:34 +03:00
Felix Schumacher 6fc21f8813 Add description of kerberos.spnego.use_canonical_host_name to property reference and jmeter.properties 2021-11-20 17:14:13 +01:00
Mariusz 4d518fffa6 timeShift function docs update. 2021-09-21 12:31:10 +02:00
Felix Schumacher a334994f88 Document default for shift value on timeShift function 2021-09-18 13:12:06 +02:00
Felix Schumacher 02005769ab Some markup changes to timeShift doc 2021-09-18 12:56:06 +02:00
Felix Schumacher 2c511c646f Add missing documentation about 'Same user on each iteration' for Thread Groups.
Re-added this bit, as it seems to got lost somehow.

Originally contributed by njkuzas with commit acdb6482dd

Part of #643
Bugzilla Id: 65128
2021-09-02 18:41:12 +02:00
Felix Schumacher c3528555f4 Allow pooling of Prepared Statements in JDBC
Bugzilla Id: 65515
2021-08-21 13:56:40 +02:00
Felix Schumacher ec1d462f36 Add a note to the dashboard docs about the new property
Part of Bugzilla Id: 65353
2021-06-05 15:21:31 +02:00
Felix Schumacher 1202761066 Spelchack
Bugzilla Id: 65353
2021-06-04 21:50:09 +02:00
Felix Schumacher 1647a2b0cb Make the estimator used for calculating percentiles on the dashboard configurable
Bugzilla Id: 65353
2021-06-03 19:34:56 +02:00
Felix Schumacher 0c97fd659f JSON Extractor and JSON JMESPath Extractor ignore sub-samples
The UI for those elements suggest, that the extractors would
look into sub-samples for matches (or even could be configured
to use only values from the sub-samples). Adapt the implementation
to make that assumption true.

Bugzilla Id: 65269
2021-06-03 11:11:09 +02:00