Re: About BeanShell

2013-03-21 Thread Jitesh Thakur
That's a very good method to script, another way is to use JSR223 sampler /Pre-Postprocessor and use any coding language to write your script (I prefer beanshell). You can call your script here and use different variables in parameters field which you can use in your script using args[] array and f

Re: About BeanShell

2013-03-20 Thread Adrian Speteanu
+1 for last part... Its a great method to setup your script file in the same element with all the other static variables (so you can make all changes in a single place.) On Wed, Mar 20, 2013 at 2:34 AM, Stott, Charlie wrote: > Hi Jakob, > > > * suppose I created a set of functions in an externa

RE: About BeanShell

2013-03-19 Thread Stott, Charlie
Hi Jakob, > * suppose I created a set of functions in an external script file - how to > call > these from my script a) Read the file into a variable, then 'run' the variable using __javaScript function. Or b) Use the beanshell pre-processor and enter the filename in the 'Script file' field.

About BeanShell

2013-03-19 Thread Jakob van Bethlehem
Hello, While developing a test script, I find that I need to quite some scripting, which can be done, but the user manual is not very verbose regarding this topic (as far as I can see). Currently, some very practical questions I have: * suppose I created a set of functions in an external script