You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Eitan Ben-Noach <Ei...@sandisk.com> on 2007/01/28 11:36:31 UTC

How to use __log() function

Hi,

 

Where in the Test Plan should I insert  the __log() function in order to
print messages into STDOUT or STDERR?

 

Is it possible to print values of variables ( i.e. ${group_id} )

 

Thanks,

Eitan 


Re: How to use __log() function

Posted by sebb <se...@gmail.com>.
On 28/01/07, Eitan Ben-Noach <Ei...@sandisk.com> wrote:
> Hi,
>
>
>
> Where in the Test Plan should I insert  the __log() function in order to
> print messages into STDOUT or STDERR?
>

Anywhere that you can use a variable.

E.g. if the host field contains

${myhost}

and you want to both log and use this, use

${__log(${myhost},OUT)}

instead.

You can use the __logn() function to log a message but not affect the
field in which it is placed.

E.g.

${myhost}${__logn(Host=${myhost},OUT)}

would set the field to the value of "myhost" and log the message "Host=<myhost>"


>
>
> Is it possible to print values of variables ( i.e. ${group_id} )
>

Yes
>
> Thanks,
>
> Eitan
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org