On 26 August 2013 09:32, ankush upadhyay <[email protected]> wrote:
> Hello All,
>
> I am creating load testing script and want to integrate groovy script.
> Here are the steps that I am following to integrate Groovy:
>
>    1. download latest groovy binaries from http://groovy.codehaus.org/
>    2. copy groovy-all-1.0.jar to jmeter/lib directory

OK.

>    3. download latest bsf binaries from http://jakarta.apache.org/bsf/ (I
>    was using version 2.4.0)

Not necessary.

>    4. replace bsf-2.3.0.jar in jmeter/lib with bsf.jar from the version you
>    just downloaded

JMeter uses BSF 2.4.0 from version 2.3RC3.
If the lib directory contains bsf-2.3.0.jar you are either using an
obsolete version of JMeter or the installation is badly broken.

>    5. start jmeter
>    6. create BSF Sampler and specify "groovy" as a scripting language (see
>    screenshot below)

Use the JSR223 Sampler instead.

The BSF 2.x library uses a completely different API from the BSF 3.x library.
BSF 3.x was a version of JSR223 for use on Java 1.5.
Meter now requires Java 1.6+, and Java 1.6 includes JSR223.
There is rarely any need to use the BSF Sampler any more, as most
scripting languages have been updated to support JSR-223.
The BSF Sampler may still be needed for legacy languages and test scripts.

>    7. type your groovy script and run it
>
> but when I run the test. Jmeter print error
> log org.apache.bsf.BSFException: unsupported language: Groovy on console.
>
> Please correct me if I am doing some thing wrong or is there any thing
> missing.
>
> --
> ------
> Regards
> @Ankush Upadhyay@

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to