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 best solutions below
Related Questions in SCRIPTING
- Using arrow keys to rotate an object
- bash functions returns "command not found"
- Calling javascript file from html file doesn't work at all
- Detecting corrupt characters in UTF-8 encoded text file
- Can I automate auto-app installation on my Android device?
- iMacros website form dropdown menu
- How to use multiple classes in multiple files in scripts?
- mIRC: Check if INI-file has a key
- Cannot open: c:\users\...\temp\package.cab when running Process.Start
- Using Gawk and Printf in a Bash script
- How can I edit a binary file under Windows by scripting
- interpreting a script through F#
- NET USE command to connect to a shared folder on local LAN
- Script to get List of logged in users
- find the lines where sequence/sorting is broken in linux
Related Questions in JMETER
- Jmeter JDBC Connection Configuration Parametrization of Database URL for accessing SQL Database
- html data after login to mail server
- JMeter Requests are concurrent requests or sequential requests?
- Why am I receiving Response code: Non HTTP response code: java.net.SocketException?
- Getting connection refused error when trying to communicate through HTTPS
- ELB generating 504 GATEWAY_TIMEOUTS w/ 2 EC2 instances - Packets not reaching Servers
- Using Jmeter OS Process Sampler to collect script data
- Clicking an email verification link using jmeter
- How to run Java code in in JMeter and pass vairables from java code to Jmeter script
- Error instantiating class:class:null java.lang.reflect.InvocationTargetException
- how to get an attribute value from a href link in Jmeter
- Token Parsing Error: Lexical error
- Do we need to use JMeter Tool for .jmx file generation or write java code using eclipse etc
- using JMeter proxy recorder behind company proxy with SSL manager
- Can anyone explain me following RandomString
Related Questions in BEANSHELL
- Token Parsing Error: Lexical error
- Unable to call object from a List located in external BeanShell script [Jmeter]
- Typed variable declaration : Void initializer error in beanshell sampler Jmeter
- variable is assigned a null value in jmeter beanshell sampler
- Deleting unnecessary symbols from variable in Jmeter
- how to get a string with double quotes and split it in jmeter
- Jmeter - BeanShell assertion is not running
- How to get value from property in BeanShell (jmeter)
- Choosing id one by one from a variable in jmeter
- Jmeter BeanShell - compare between int to counter
- JSON web token generator for JMeter
- Jmeter save response data values to a variables and overwrite it with another values from CSV file
- Using Beanshell sampler return value in JMeter while condition
- How to add rendezvous point in jmeter
- How to edit summary.csv file after jmeter load run
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)
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?
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.