Questions tagged [beanshell]

Lightweight scripting for Java

From the official site:

BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. BeanShell dynamically executes standard Java syntax and extends it with common scripting conveniences such as loose types, commands, and method closures like those in Perl and JavaScript

943 questions
-2
votes
1 answer

Regex to extract data in cell and pass to subsequent request where it is needed in Jmeter

I am using this regex to extract data in cell and pass to subsequent request where it is needed in JMeter. Using Reg-ex to extract the data in…
-2
votes
2 answers

How to print CSV file input parameters in CSV file using bean shell processor in jmeter?

I'm facing some issue while creating the script to print input test data+response for that data. I want to print input test data also, for example: cards 98765432 98765432 Results CSV file:should be Cards,Results 98765432,PASS 98765432,FAIL How…
Rajesh Om
  • 483
  • 2
  • 15
  • 39
-2
votes
2 answers

how to extract parameter in beanshell

How to extract parameter in beanshell. Please give me some example or link. Thank you.
Jheng Ibasco
  • 1
  • 1
  • 2
  • 5
-2
votes
1 answer

jmeter stress/break point performance test using constant throughput timer

IN JMETER , How can we change the constant throughput timer value Using a ( JavaScript or Bean Shell) function ? Say for example, test duration is 60 mins . constant throughput timer initially set to 4000 samples per min then hold the load for 5…
-2
votes
1 answer

how to get a string with double quotes and split it in jmeter

I have the following string that is being returned from a regex extractor in a HTTP…
mo0206
  • 791
  • 5
  • 20
  • 36
-3
votes
1 answer

Multiple sorting for file generated from beanshell scripting

I am generating the .txt file from beanshell scripting. Now I am having problem for sorting. If anyone can give any idea that will be great help. The file looks like: UserId FirstName LastName Status roleId 2025 A B Active …
-3
votes
1 answer

Jmeter Beanshell keeps adding backslash to parameter value

I have a simple scenario - let's say I need to set a cookie from user defined variable: https://image.prntscr.com/image/v0J2SU5MQiejS9yY2aNuog.png I'm using BeanShell pre-processor: import org.apache.jmeter.protocol.http.control.Cookie; import…
-3
votes
1 answer

JMeter Response data submit to continue for next actions

I came across some problem in Jmeetere if you guys have some advice please shave with me. I send request for my application, and i click after the link open, in Response data i got Script is disabled. Please click Submit to continue Submit . the…
Enwar
  • 3
  • 1
-3
votes
1 answer

I have a piece of code written in java need to run it in jmeter

I have a piece of code written in java need to run it in jmeter. I am trying to execute this code in jmeter beanshell sampler but facing lots of error. can anyone help me with this. I want to extract now and urlEncodedSign in a variable and need to…
Nikhil
  • 393
  • 1
  • 6
  • 25
-3
votes
1 answer

Debug and Finding error in Bean Shell in Android

I'm using paw server and bean shell scripting in HTML which return the data in JSON form somehow I can't get any data from the script and I am not able to debug the script . Here is the code import android.net.Uri; import…
ahmad faraz
  • 138
  • 2
  • 7
-3
votes
1 answer

Bean Shell eval function implementation

I want to evaluate regular expression in my project and want to use something similar to eval function of bean shell. Can anyone tell me implementation of eval function of Bean Shell?
iamdeowanshi
  • 1,039
  • 11
  • 19
-4
votes
2 answers

Manipulating an object

I have an object which looks like this. { "A": [ "1", "2", "3" ] } I want to manipulate the object to get the following result: { "A": [{ "A": "1" }, { "A": "2" }, { "A": "3" }] } What is the way to…
arun
  • 1
  • 1
-5
votes
1 answer

i am trying to get the no.of matches of response code 200 in the response assertion

The code i have written for that is as folows: try { byte [] samplerdata = ctx.getPreviousResult().getResponseCode(); String samplerdatastring = new String(samplerdata, "UFT-8"); vars.put("samplerdata", samplerdatastring); …
1 2 3
62
63