jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gianc64 <gian...@yahoo.it>
Subject Re: BSF Sampler in JRuby : Passing parameters
Date Thu, 07 Aug 2008 08:05:44 GMT
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


Mime
View raw message