Overview:
Hi Testers!!
In this tutorial, you will learn more about BeanShell scripting used with JMeter scripts.
Below are the topics which are covered as part of this session:
- BeanShell Scripting Basics
- Using commonly used methods
- Setting variables and using in Jmeter scripts
=> Click here for The Complete Free Training On JMeter (20+ Videos)
Here is a Video Tutorial:
BeanShell PreProcessor can be used to extract values from the previous response and then make use of the same in the following scripts. Just as other preprocessors like RegularExpression and XPath Extractor works, BeanShell PreProcessor makes use of scripting to extract values.
You can also generate dynamic userIDs, Passwords, etc. making use of BeanShell sampler and then store them in variables that can be used by other samplers or following requests. You can use IF, WHILE conditions to defines looping scenarios also depending on the test cases which is being executed.
=> Click here for The Complete Free Training On JMeter (20+ Videos)