It will not help to enable beanshell logging.

But you should check jmeter.log for any beanshell error messages -
e.g. perhaps java.exe was not found or could not be started.

I tried

exec("netstat");

and that displayed OK in the console window.

S.

On 21/08/06, Alec Swan <[EMAIL PROTECTED]> wrote:
I just tried print(), System.out.println(..) and System.err.println(). All of them print 
messages to the jmeter.bat console, but not in jmeter.log. However,  I can't find where 
messages from exec("java -version") get printed out. Do I need to enable 
logging for beanshell in jmeter.properties?

sebb <[EMAIL PROTECTED]> wrote: Java on Linux should work in the same way as 
far as stdout and stderr
are concerned.

Try:

print("test message");

in BeanShell - that will be written to stdout.

If that appears, but the output from exec() does not, then perhaps the
exec output is not being written to stdout.

You can also try the following in BeanShell:

System.out.println("stdout");
System.err.println("stderr");

and see where they go.

On 21/08/06, Daman Jawda  wrote:
> Yes Unfortunately I run jmeter in linux - if stdout would indeed appear on
> my shell , even though i invoke jmeter with an ampersand at the end, I
> should check the shell for the output of scripts invoked using beanshell
> exec() call in jmeter. But I don't recall seeing any such output on the
> shell since I often go back to the shell while jmeter is running.
>
> Hmmm.
> Without this output my test script would be useless.
>
>
>
> On 8/20/06, sebb  wrote:
> > JMeter does not change stdout or stderr, so it will appear in the
> > command-line console used to start JMeter (unless you used javaw, in
> > which case I'm not sure where stdout goes - it may be thrown away).
> >
> > The same would apply if you wrote your own sampler in Java.
> >
> > On 20/08/06, Jaw Dat  wrote:
> > > On Sat, 2006-08-19 at 00:23 +0100, sebb wrote:
> > >
> > > > The BeanShell Sampler can execute a command-line.
> > > >
> > > > I think it is as simple as
> > > >
> > > > exec("command-line");
> > > >
> > >
> > > Where do we see the output from this command-line command? Where to look
> > > for the stdout output from such a command called with exec() ??????
> > > Thanks.
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > 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]





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

Reply via email to