Questions tagged [jmeter-5.0]

Use this tag for questions specific to Apache Jmeter 5.0 (r1840935), released on 19 September 2018. Always specify also the jmeter tag

This release brings a lot of new features and improvements, and also fixes bugs:

  • JMeter 5.0 is tested on Java 8 to 10, Java 11 should also work.

  • Rest support has been improved

  • In distributed testing, JMeter now automatically prefixes thread names with engine host and port
  • XPath 2.0 is supported in a new element called XPath2 extractor
  • Search feature has been improved to allow you to iterate in the tree over search results and do necessary replacements through Next/Previous/Replace/Replace/Find buttons
  • You can now restart JMeter from menu File → Restart
  • A new Graph Total Transactions per second has been added to the HTML Web Report
  • A New function __threadGroupName has been introduced to obtain ThreadGroup name

JMeter artifacts can be downloaded on Maven Central :

   <groupId>org.apache.jmeter</groupId>
   <artifactId>ApacheJMeter</artifactId>
   <version>5.0</version>
1037 questions
2
votes
0 answers

Expected Condition interface error in WebDriver sampler in JMeter

I want to use Expected Condition interface and implement apply method as follows in WebDriver sampler. This script for loading multiple charts on single page but it give me error javax.script.ScriptException: In file: inline evaluation of: import…
2
votes
0 answers

How to set null JSON values as JMeter variables

For a given sample JSON (this is only an example, the real JSON is much larger): { "username":"Admin", "text":"test message", "attachments":[ { "title":"demo server", "title_link":"${link}", "text":"sample text", …
Mate Mrše
  • 7,997
  • 10
  • 40
  • 77
2
votes
3 answers

How to change HTTP Request Path for multiple HTTP Requests at once in Jmeter

I have created JMeter HTTP request sampler project using Blazemeter recorder which created Jmx.file I have opened the same in JMeter to modify and fix the errors. I have more than 100 HTTP requests with Name as…
Rohit A
  • 23
  • 4
2
votes
1 answer

JMeter Is not saving the results to file when execute from Java Code

When I call jmeter test from gui then it works properly but when I call the run or runTests of Standard JMeter Engine, it do not save anything in /tmp/jmeter. How can I make it happen? How can I execute and fetch the api payload from Java Code saved…
user6457056
2
votes
0 answers

JMeter - Execute HTTP Request until Response Headers matches

I'm new with JMeter and I'm working with a script for checking the cache, the scenario was to: do a GET request verify that it has been cached do a DELETE request verify that the cache has been deleted However since there are three instances in…
2
votes
2 answers

API testing using jmeter

I am trying to do some API testing in Jmeter. I was trying to follow this https://octoperf.com/blog/2018/04/23/jmeter-rest-api-testing/ . But I need to get token from cookie. Can anyone suggest me a solution? Using Jmeter version 5.0 Sorry, if this…
A J
  • 1,439
  • 4
  • 25
  • 42
2
votes
1 answer

JMeter - How to use the jQuery (not CSS) extractor

Using jMeter 4.0, I need to extract the value of an element which I cannot identify directly, but I can identify one of its siblings. I want to use jQuery like so: $("#someId").parent().find(".title") That is garden variety jQuery: 'get the parent…
RKMNRGRT
  • 33
  • 4
1
vote
1 answer

JMeter: Unexpected behavior with identical values for return URL and client ID after a successful test

JMeter: Unexpected behavior with identical values for return URL and client ID after a successful test I'm currently working with JMeter for performance testing of an application that implements the OpenID Connect (OIDC) protocol for…
Sibi
  • 11
  • 1
1
vote
1 answer

How to generate previous month first date in jmeter?

I used timeShift function (${__timeShift(yyyy-MM-01'T'00:00:00.000'Z',,-P1M,,)}) to generate the previous month first date but the jmeter was still print the current month's first date. I also tried ${__timeShift(yyyy-MM-01,,,-P1M)} and…
1
vote
0 answers

how to give an expression for 2 dimenional json array

I need to get the all rid's which we have common IDs type ID 1182 { "Master": "SMaster", "Field": [ "rid", "sid", "sname", "stype", "isPrimary" ], "Data": [ [ 150986, 55, "PERF_01", 1182, 1 ], [ 150987, 55, "PERF_01", …
Vivek
  • 11
  • 3
1
vote
2 answers

How to correlate session id in request body

[this correlation part](https://i.stack.imgur.com/xxaFH.png) If any one know how to solve problem. Please send the answers
1
vote
1 answer

Unable to reach the requested number of requests while running jmeter distributed

I am working with 1 master, 50 slaves. Number of threads: 20 I have 1 thread and there are 3 samples in it. I'm starting the tests, but as a result of the test, I see that you are going 500-700 requests. 1000 requests from each should go. But it…
tolgagul
  • 11
  • 2
1
vote
2 answers

Jmeter CLI stops tests after sometime. Any ideas?

When I run Jmeter from Windows CLI, after some random time, the tests are being stopped or stuck. I can click on ctrl+C (one time) just to refresh the run but part of the request will be lost during the time it was stuck.
1
vote
1 answer

Why is the difference between the min and max values ​of jmeter so large?

Why is the difference between the minimum and maximum values ​​of jmeter so large? All tested under the same conditions. laptop reboot tested under different conditions
Klee
  • 11
  • 1
1
vote
1 answer

JMETER Test plan with multiple thread groups

Can a jmeter test plan(JMX) with multiple thread groups have same name for all the thread groups and samplers inside?? What's the downside if we use this way
POTL12345
  • 19
  • 4