SPONSORS:






View RSS Feed

Ronak

Understanding JMeter Element- BSF Sampler

Rate this Entry
by , 06-21-2015 at 02:14 AM (540 Views)
Understanding JMeter Element- BSF Sampler

This sampler allows you to write a sampler using a BSF scripting language.
You may need to download the appropriate jars for the language; they should be put in the JMeter lib directory.

The BSF API has been largely superseded by JSR-223, which is included in Java 6 onwards. Most scripting languages now include support for JSR-223; please use the JSR223 Sampler instead. The BSF Sampler should only be needed for supporting legacy languages/test scripts.

By default, JMeter supports the following languages:
javascript
jexl (JMeter version 2.3.2 and later)
xslt

Unlike the BeanShell sampler, the interpreter is not saved between invocations.

Parameters
Name- Descriptive name for this sampler that is shown in the tree.
Scripting Language- Name of the BSF scripting language to be used. N.B. Not all the languages in the drop-down list are supported by default. The following are supported: jexl, javascript, xslt. Others may be available if the appropriate jar is installed in the JMeter lib directory.
Script File- Name of a file to be used as a BSF script, if a relative file path is used, then it will be relative to directory referenced by "user.dir" System property
Parameters- List of parameters to be passed to the script file or the script.
Script- Script to be passed to BSF language
If a script file is supplied, that will be used, otherwise the script will be used.



Disclaimer: The article/post is posted with the purpose of sharing knowledge and information.
The article may contain references, extract or content from other informative sources.
Researched/Authored/Compiled by -
Ronak Shah
Practice Head - Software Testing (QA), CIGNEX Datamatics

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:06 PM.

Copyright BetaSoft Inc.