New answers tagged

0

Amend your body data as: { "name":"${FirstName}" } Add JSR223 PreProcessor as a child of the request which payload you need to increment Put the following code into "Script" area: def numericPart = (vars.get('FirstName') =~ /(\d+)/)[0][1] as int def incremented = numericPart + 1 vars.put('FirstName', vars.get('FirstName')....


1

The easiest solution is changing your 12345 part to __intSum() and __counter() functions combination, i.e. something like: { "id"="${__intSum(12345,${__counter(,)},)}" } This way you will get an incremented number each time the request is sent More information: How to Use a Counter in a JMeter Test


1

You can read data from the CSV file using CSV Data Set Config For example if you have test.csv file which looks like: 123 456 789 You can configure the CSV Data Set Config like: Once done just use ${JOB_ID} JMeter Variable reference in the URL like: https://xyz-vbjjdnj.com/api/version/collector/${JOB_ID}/results If you want to store the result into a ...


2

Add the following lines to the end of your code: JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.classname", "org.apache.jmeter.report.dashboard.HtmlTemplateExporter"); JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.property.output_dir","report-output/dashboard"); ReportGenerator generator ...


2

I actually found what was wrong in my case. Proxies are blocked in my office due security reasons, so I used environment variable to pass through this. For environment variable was used my login and password, and my old password contained a quotation mark. When I changed password and reconfigured the environment variable, all became okay.


1

Make sure that the java.exe file of the JDK you want to use is in your operating system PATH and it's first there (before any other Java software which may be installed already) and you're using original unchanged jmeter.bat file Install Java SDK to some folder like c:\java Add "bin" folder JDK to your operating system PATH like: set PATH=c:\java\...


2

Given you have jmeter in tags here is a JMeter-related solution. Load testing is the process ensuring that the application can handle the anticipated load hence the process of load testing a web application is simulating real users using real browsers accessing the web application. So you don't need to know about the APIs or backend technologies, you need to ...


Top 50 recent answers are included