Hi
the function returns a string and beanshell probably attempts to evaluate it
try something like
String s = "${__StringFromFile....}";
and so on so that your beanshell is syntactically correct
On Thu, Dec 27, 2012 at 7:33 PM, Dzmitry_Kashlach <dzmitrykashlach@gmail.com
> wrote:
> Hi to everyone!
> Perhaps, my question have been already explained at forum, but I was
> not
> able to find appropriate topic, so I ask it here.
> I want to create test-plan for testing database. All SQL queries should
> be read from external file via BeanShellSampler.
> <http://jmeter.512774.n5.nabble.com/file/n5715661/6.jpg>
>
> <http://jmeter.512774.n5.nabble.com/file/n5715661/7.jpg>
>
> I receive the following error in BeanShellSampler:
> "Response message: org.apache.jorphan.util.JMeterException: Error
> invoking
> bsh method: eval In file: inline evaluation of: ``Update
> Statement,UPDATE
> world.city SET population=3999445 WHERE Name like '%' Up . . . ''
> Encountered "world" at line 1, column 25."
> But script is working itself and SQL queries are executed successfully
> against database. Who can explain the reason of such behavior?
>
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/BeanshellSampler-Error-invoking-bsh-method-eval-tp5715661.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
|