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
-1
votes
3 answers

Connect Jmeter to Redis with Beanshell

I want to connect Jmeter to Redis DB, I want to do it via java programming. I added jedis-2.2.1.jar file to lib folder. and create a test plan with only bean-shell preprocessor. I can not understand what I can see, since nothing happened, and the…
Bastian
  • 1,089
  • 7
  • 25
  • 74
-1
votes
2 answers

How to pass the java script into Jmeter script?

My requirement needs to generate the Dynamic year value from 1980 to 2016. We are written the random java command for this requirement. But unable to pass through the jmeter script. May I know how to pass the value through the jmeter script for this…
Kavinkumar Muthu
  • 99
  • 1
  • 5
  • 14
-1
votes
2 answers

Jmeter: Not able to use bean processor variable value in HTTP Request Body

I have a input CSV data file and have a 2 MB file which I need to send with each HTTP request to server. This file has 2 variables. I need to change those variables value from my input file. I'm using Bean shell pre processor. Below is the code…
M_Gandhi
  • 108
  • 2
  • 10
-1
votes
1 answer

Jmeter save response data values to a variables and overwrite it with another values from CSV file

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…
TiredOfProgramming
  • 845
  • 2
  • 16
  • 41
-1
votes
1 answer

How to transfer data from CSV to Excel using Beanshell in JMeter?

I want to save CSV file data into Excel file which is passed in parameterization using Beanshell. If it is possible than please let me know.
nikhil
  • 1
-1
votes
2 answers

how to call .net dll in JMeter

Can we invoke .net dll in JMeter. I have a peice of code written in .net need to use its output in jmeter as a parameter. (I am trying to call .net writen code which generate a key in jmeter.) Can anyone please help?
Nikhil
  • 393
  • 1
  • 6
  • 25
-1
votes
1 answer

Need a script using Bean Shell in Jmeter to read response from one sampler and to call different samplers based on condition/s?

I need to execute a http POST request then based on response I want to execute two different http requests. Which request to execute next, will be decided based on response objects from previous response. I need a Bean shell script which will do…
-1
votes
3 answers

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 like to know how can I handle this in Beanshell Post…
Anonymous
  • 858
  • 4
  • 27
  • 54
-1
votes
1 answer

Choosing id one by one from a variable in jmeter

I want to delete mappings in DB using DataService. For this purpose I run search query for all ids in first thread group. Using this method I put my Ids into the property. Now property has view like that…
Ololowa QA
  • 85
  • 1
  • 1
  • 6
-1
votes
1 answer

Java classes in JMeter with Beanshell sampler

I have a Java project that I need to run as a load test in JMeter. Found some examples that indicated you could make a jar file and put it in the Jmeter lib/ext folder and run it. Works for the simple example program I wrote. Tried to scale up,…
ncable
  • 1
  • 2
-1
votes
1 answer

PAW Server/BeanShell on Android and ADB

I have a need to install APK's remotely and want to use PAW Server. I know PAW Server in itself can't install APK's directly, but I could enable ADB on the devices and use PAW Server's BeanShell scripting to execute adb install. Unfortunately I'm…
MaKR
  • 1,882
  • 2
  • 17
  • 29
-2
votes
1 answer

How to read files from SFTP client without JSch

I'm trying to read a couple of files from SecureFTP client for run a daily report task: The file contents from both the files(.bck file format) looks like this in each…
D C
  • 41
  • 6
-2
votes
1 answer

Exclude few requests which are getting HTTP status code 400

Hi I have a scenario in which i have 2 API's, I'm getting random number of dynamic vlaues from API 1 using a post processor. I need to process all these values in API2, for this requirement I'm using a V function to pass all the values in the URl by…
Mikey8997
  • 7
  • 2
-2
votes
1 answer

How to pass the Dynamic value for the same request in jmeter?

In Jmeter, I have a scenario, that i need to fetch the job_id from the GET Request . so solution is using REGEX for fetching and using it for next requests. But for same GET request which is dynamic value change, How i need to generate the job_id…
Ankitha
  • 1
  • 3
-2
votes
1 answer

Which is the best high performance Jmeter sampler to use for Thrift protocol load testing Beanshell, JSR223 or Java request sampler?

I have a requirement to load test Thrift protocol with very high user load using JMeter. I need to know which is the best and most performant JMeter sampler to use out of Beanshell, JSR223 or Java request with high concurrency load? Appreciate…
user5235510
  • 23
  • 1
  • 8
1 2 3
62
63