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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to