Am 30.12.20 um 16:40 schrieb Tong Sun:
> Hi,
>
> My JSR223 steps have problems, some even have exceptions, but viewing
> from View Result Tree, they are all green and correct.
>
> How to mark those JSR223 steps that have problems red and failed?
>
> I tried to throw an exception, but that killed the whole thread.

That "killing the whole" thread can be configured on the Thread Group.
If you configured "Action to be taken after a Sample Error" to something
starting with "Stop", JMeter will kill threads with Sample errors.

If you mark your samples as failed, JMeter will take the action you
configured.

You have to decide, whether you want JMeter to stop on failure or not.
If you want to let it stop, you have to make sure, that you don't mark
any samples as failed. If you want to let JMeter to continue, you can
use the default behaviour of the JSR223 Sampler, which is to convert
exceptions into failed samples.

Felix

>
> thx
>
> ---------------------------------------------------------------------
> 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