OK. I can output the value.(true/false)
Can't I use "${__log(${JMeterThread.last_sample_ok},OUT)}" == "true" in a if
condition and set a user parameter with the text I want in a child of the
if-condition?
So it should be possible to output every text I want.
I tried but it didn't work. I can't see why not.
Any hints?
Greetings
Andreas
-----Ursprüngliche Nachricht-----
Von: sebb [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 25. April 2006 15:47
An: JMeter Users List
Betreff: Re: simple output
The variable "JMeterThread.last_sample_ok" is set to "true" or "false"
after all assertions have been processed, so you could put
${__log(${JMeterThread.last_sample_ok},OUT)}
If you want something other than "true" and "false", you will need to
use JavaScript or BeanShell.
S.
On 25/04/06, Ziemerle, Andreas <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to do a simple action with jmeter but I can't find the way it
> works.
> My example looks like:
>
> http-request
> assertion
>
> If the assertion is failed I want to write 'text1' to std -Out
> ${__log(${text1},OUT)}
>
> In the other case I want to write 'text2' to std. out.
>
> Is there any way to do this?
>
> Greetings
> Andreas
---------------------------------------------------------------------
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]