All Questions
Tagged with beanshell post-processor
10 questions
0
votes
1
answer
70
views
JMeter: Update Empty JSON hashmap groovy
Response from http request:
{"Preferredvalue":{"notations":[]}}
def response = new groovy.json.JsonSlurper().parse(prev.getResponseData())
I am able to get up to notations and ...
0
votes
1
answer
5k
views
Is python a good choice to go with JMeter performance testing? [closed]
I know a little bit of python and I think its easier to understand than java. So I want to continue with python even while using JMeter. Is python a good choice to go with JMeter? I know that ...
0
votes
1
answer
483
views
Need resutls upto two decimal i.e seconds and miliseconds in jmeter
I want to add my summary report results in the email body. So I have added the bean shell post-processor against my request and add the below functions in it.
*<BeanShellPostProcessor guiclass=&...
0
votes
1
answer
420
views
writing comma separated values in jmeter to a txt file and then reuse them
I want to fetch order id from a variable in loop and store them in txt file separated with a comma(eg:"12345,12346,12347) and then use all the values in one go.
I am getting following error while ...
0
votes
1
answer
373
views
How to update Column name at the time of exporting CSV using Jmeter beanshell post processor
I had exported the response in CSV using JMeter beanshell post processor using following code but column name is not present.
f = new FileOutputStream("CaseCreate.csv", true);
p = new PrintStream(f)...
0
votes
1
answer
5k
views
Getting the follwoing Error "Typed variable declaration : Class: Workbook not found in namespace"
I am receiving the following error,
2019-01-24 12:11:27,579 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import org.apache.jmeter.threads....
0
votes
1
answer
85
views
Compare the returned Json response with the posted response
I have an API to save employee details to DB and I post the data using an HTTP POST API "/empDetails" and I post the details like "emp_name", "emp_id" and "emp_age"
Sample Payload,
{
"emp_name": "...
0
votes
2
answers
3k
views
How to capture request and response values in Jmeter and store it in file?
I am using Jmeter as Load Test tool.
I passing one parameter through request and in response I am getting only one parameter in result. response. I want to save both request and response in csv file.
...
1
vote
1
answer
707
views
jMeter BeanShell postprocessor synchronization
I have some performance tests in jMeter and in one HTTP request I have BeanShell PostProcessor. It should write user email address at the top of CSV file (newest on top). Its very important, that this ...
-1
votes
3
answers
2k
views
JMeter: How to provide condition in Beanshell post processor just to log successful/failed signup
Scenario is: 1000 users signup at same time.
Now, if the response message in "View results in a Tree" is "1", its successful registration,
But if response message "3", its failed request.
I would ...