460 questions
1
vote
2
answers
140
views
Using JSR223 in JMeter to format parametrized sql queries
I'm using a JSR223 Sampler (Groovy) in JMeter to read an SQL query from a file and process it before execution. The file contains key-value pairs in a semicolon-separated format, where the query key ...
0
votes
1
answer
103
views
How to use threadLocalReader with BufferedReader in Jmeter?
I have a text file (.txt) and am opening the file using JSR223 Sampler under once only controller like:
BufferedReader br = new BufferedReader(new FileReader(filePath)
vars.putObject("br",br)...
0
votes
1
answer
105
views
Save results from Jmeter to SQL Server database
In Jmeter.
Does anyone know how to save all results from a test and store them in SQL Server?
Is it possible to store the results directly in SQL Server, or do I need to load them via a CSV file?
I ...
0
votes
1
answer
48
views
how to use the long value by csv data set config
i am testing on a API and the response for the get request is given in the format of JSON. so by using JSON extractor i extracted the required data for my next sampler requests. the configuration of ...
0
votes
1
answer
63
views
How to capture array values from a HTTP JSON response payload using JMeter PostProcessor and create/write it in a new CSV file?
I need to create a new CSV file by capturing 100s of array values retured as part of a JSON response Payload.
My response payload for a GET call:
{ "total": 5, "limit": 5, "...
0
votes
1
answer
30
views
which thread group or what changes to do in thread group, to send continous data through TCP protocol to server without waiting for the response
I want to do load testing for a server where i will be sending request with data continously.
Requirement: In jmeter , i want to send requests with data(text) through TCP protocol continously for long ...
0
votes
1
answer
83
views
Do we have Sample Diameter Script using JMeter JSR223 Pre Processors for Authentication, Authorization and Accounting
I tried following the steps mentioned in this link for diameter load testing using JMeter
https://dzone.com/articles/diameter-server-load-testing-a-guide
and got stuck in writing my own AAA module ...
1
vote
1
answer
41
views
How to increase a variable value by 5% and pass it in another request
How to increase a variable value by 5% in beanshell and pass it in another request.
Lets say I am fetching a value using JSON extractor and saving it in a variable. I need to add 2% in this value and ...
0
votes
1
answer
63
views
JSR223 Postprocessor is not working under tearDown thread group
I have created a test plan and added setup thread group where few pre-requisites are verified using different HTTP requests and respective JSR223 assertions. Failed assertions related data i.e. ...
0
votes
1
answer
935
views
How to generate/pass unique UUID to Threads independent of each other in JMeter's Stepping Thread Group
Issue Description
I have a script with 2 different samples nested inside a Stepping Thread Group (Not the usual Thread Group).
Each sample has a JSR223 PreProcessor that has a small code to generate ...
0
votes
1
answer
56
views
JSR223 Pre Processor generated value looks like garbage data after encryption
Our website is generating a dynamic loginkey which uses AES. Now, since I'm not using the encrypt.js code that they used on the website.
I tried to replicate this part of the code from the website ...
0
votes
1
answer
474
views
Problem in JSR223 script JSR223 Sampler:javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method:
I have an encrypt.js script that is used to encrypt and decrypt the password entered by user. It is embedded in the application webpage.
I try to load the same script in jmeter using this code
load ('/...
0
votes
1
answer
455
views
Resolve: org.hibernate.validator.spi.scripting.ScriptEvaluatorNotFoundException: HV000232: No JSR 223 script engine found for language "javascript"
I'm encountering an issue with Hibernate Validator 6.2.3 while using Java 17. When attempting to validate entities using org.hibernate.validator.constraints.ScriptAssert, I'm getting the following ...
-1
votes
1
answer
231
views
How to access GitHub Repository test data file via Jmeter JSR223 PreProcessor script?
SCENARIO:
I have a JMeter script (e.g, jmeterScript.jmx) that needs to be triggered via Jenkins Job (auto-scheduled).
This script has a JSR223 PreProcessor, through which it needs to access a CSV file ...
-2
votes
1
answer
178
views
JSR223 PreProcessor.Passing data from the array to post request parameters
There are 2 requests.
In the first request through the Regular Expression Extractor I get data that looks like
VAR_1=foo
VAR_2=bar
VAR_3=base
VAR_N=NNN
VAR_matchNr=N
The data is stored in the ...