BeanShell Processor Tutorial 2: Advanced Usage

BeanShell is the most powerful component of Apache JMeter. You can execute any Java code by using BeanShell scripts. If you are new to BeanShell, please take a look basic usage of BeanShell Processor. In this BeanShell tutorial, I want to deep dive into BeanShell  and show you some other example of its usage. If you're familiar with Java or any other language, it is very easy to get used to it. Sample 1: Dealing with Dates Dates are the most frightening component of any developer and testers also. In case you need deal with dynamic dates during your test, [...]

By | 2018-07-31T20:45:59+00:00 May 29th, 2018|Tags: , |

BeanShell Processor Tutorial 1: Basic Usage

Even though general functionalities of JMeter cover many needs of a performance test, you might need additional scripting. Apache JMeter has the functionality to run Java code snippets during your test execution. BeanShell has access to internal JMeter features and any library located in your JMeter lib folder. BeanShell can be executed as a pre/postcondition or as a sampler. The only difference is that pre/post conditions will not be listed in JMeter Listeners. When using BeanShell, you can use “vars” variable to get and set values generated in the test context. This post will cover those functionalities. BeanShell vars.get() usage [...]

By | 2018-07-31T20:53:23+00:00 March 23rd, 2018|Tags: , |