You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by gianc64 <gi...@yahoo.it> on 2008/08/07 10:05:44 UTC
Re: BSF Sampler in JRuby : Passing parameters
Excuse me,
maybe I could avoid to post this question
I have found an alternate way for resolve my problem:
I've defined a VARIABLE in "Reference Name" field in a XPath Extractor
window.
( The HTTP Sampler is processed by XPath ) .
The variable is referenced in Ruby script in this way:
"${VARIABLE}".to_s
and now it work.
Thanx
gianc64
gianc64 wrote:
> Hi,
>
> I need help for this question:
>
> I have a ruby script ( executing some XPath extraction from a XML file
> and
> build POST http request using BSF Sampler and JRuby ) and I need
> to supply it with parameters ( the XML file name ) on the BSF Sampler
> window in the
> "Parameters to pass to script/file" field.
>
> Launching :
>
> jruby ./script.rb <XML File name> from CLI
>
> it's ok but from JMeter don't running fine.
>
>
> Thanx
>
> gianc64
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org