On 14/03/07, chris <[EMAIL PROTECTED]> wrote:
hi! in my BeanShellFunction.bshrc file i have following 2 functions defined:String methodOne(String foo) { return foo; } String methodTwo(String foo, String bar) { return foo + " " + bar; } calling the first method in a http request (as a parameter) i use ${__BeanShell(methodOne("foo"))}; the first method works. the second method: ${__BeanShell(methodTwo("foo","bar"))} does NOT work. does calling a beanshell method only work with exact one parameter??
No, but you need to escape the comma to stop the function parser from getting confused. See: http://jakarta.apache.org/jmeter/usermanual/functions.html#how It's buried in the paragraph - I'll see about making that clearer. There should also have been a message in jmeter.log to warn you about this (or perhaps that was added after 2.2)
i attached a testscript for this problem. the 2 functions must be defined in BeanShellFunction.bshrc.
Please don't send attachments to the list.
moreover, in jmeter.properties you have to activate beanshell.function.init=BeanShellFunction.bshrc. thanks in advance, chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

