Is it possible in Jmeter to take the variable (for example ${variable_1} which value I received from the response body of HTTP request with the help of regex , read some .csv file and find the row (imagine all the rows have different values) that starts with exact the same value as ${variable_1}, then read next cell in this row (pretty much .csv file contains only 2 columns) and whatever value is there, overwrite it to ${variable_1}? I was told that this is possible with the help of BeanShell, but I'm not really familiar with scripting in it. Any suggestions are greatly appreciated.
Jmeter save response data values to a variables and overwrite it with another values from CSV file
1k views Asked by TiredOfProgramming At
1
There are 1 answers
Related Questions in SCRIPTING
- How do I react to external program launch inside an Automator workflow?
- can anyone help me for NSIS Script I have a case where I need to check cases can be 3.3 3.42 23.5 23.56w 3.467 999.999 999.99a but not 1.b or 8..a
- How do I restart a batch file in PowerShell?
- Trouble updating a Field in Salesforce via a Python Script
- What are JCL Alternitives for Embeded Applications?
- grep expression behaving weird (unix/mac) while reading a conf file
- Why is my bash script showing [2: command not found?
- How can I modify my code to negate this error?
- Find Specified Software - Powershell
- how to change Value to something specific and not add to it?
- How can I run this Powershell function from a batch file on windows?
- How to make toggle key to switch between two seperate functions lua script(logitech)
- My quiz automatically submits when i plug in a chrome extension that involves doing an api call
- How to "make" a variable that contains another variable value?
- function not recognizable inside scriptblock in PowerShell script
Related Questions in JMETER
- i have extracted some values using regex in beanshell postprocessor now i have to pick a random value and store it into a varaible?
- Jmeter Java DSL - getting issues when using rpsThreadGroup
- How to configure api http request with load testing
- Jmeter resolution variable with remote
- Need to read different line from different files using CSV read function in JMeter
- How to enter user input in jmeter console (without doing parameterization)
- Optimal way to replace different parts of a structured string(XML) with random string values of different lengths in a JMeter JSR223 Samper (groovy)
- Jmeter query about script recording
- In Jmeter, for ISO8583 Sampler, how can I read the data from CSV file?
- Use JMeter to simulate receiving websocket broadcasts similar to okhttp3
- is their any industry standard for performing 300K load test (Thermostat->HVAC system)?
- How to perform multiple HTTP requests with unique IP addresses from my local
- Jmeter => How to add a jmx file in the transaction controller
- How to send huge JSON with PDF encoded over HTTPS in JMeter?
- How can I create a random(seed) function using a custom seed for Jmeter?
Related Questions in BEANSHELL
- i have extracted some values using regex in beanshell postprocessor now i have to pick a random value and store it into a varaible?
- Jmeter - Conditional execution
- SailPoint Policy - Using a script to check user's department
- JMeter BeanShell PreProcessor
- How to use specific line rows from csv file for different no of threads in thread groups. How to create & store data in csv from bean shell processor
- Does anyone know how to do uploaded Image convert to base64 encoding in JMeter and send through HTTP body?
- Runtime java code (string) injection and execution
- using beanshell pre processor i need to achieve 1 request 30 Ids
- Getting "sailpoint.connector.ConnectorException: Build Rule must return a map" error while aggregating the groups from delimited file
- How to resolve this in BeanShell?
- Beanshell Script to generate sequence of strings
- How to write random function using Beanshell postprocessor using JMeter
- JMeter response times and the response times I get on my server are very different
- Remove json key from response in jmeter and feed processed response as request to next sampler
- how to replace variables in a string in jmeter?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Here you go:
Demo:
See How to Use BeanShell: JMeter's Favorite Built-in Component article for more details on using scripting in JMeter tests.
Also be aware than Beanshell has some serious performance drawbacks and isn't compatible with code written in Java 7+ syntax (generics, labmdas, multiple catches, etc.). If you change the variable using one thread somewhere in setUp Thread Group - this is fine, but if the number of threads is high and/or CSV file is big - it is better to consider JSR223 Sampler and Groovy language instead.