The Exception is

JMeterStopThreadException

which is what StringFromFile uses.


On 30/04/07, sebb <[EMAIL PROTECTED]> wrote:
Have a look at StringFromFile - if I recall correctly, that can stop
the current thread at the end of the file.

I think there is also a Thread Stop Exception/Error - cannot remember
the name offhand, but it is probably caught in the JMeterThread class.

On 30/04/07, Andre van Hoorn
<[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
>
> I developed a (markov-)controller which basically reads a configuration
> file and builds an internal model within its overridden method
> 'initialize'. The next sample to be returned by the method 'next'
> depends on the model generated on initialization time.
>
> I'm wondering how to report errors to the JMeter engine when
> 'initialize' or 'next' are executed. For example the file to be read
> does not exist or it contains an inconsistent model. The JMeter engine
> shall react according to a sampler error, i.e. depending on the thread
> group configuration
>
> - - the test continuous,
> - - the thread stops or
> - - the entire test stops.
>
> Existing controllers and config elements seem to simply continue on
> errors as far as I could see in the JMeter source code (e.g. invalid
> conditions are evaluated as false, IO exceptions when reading a CSV file
> are only catched but no error is reported to the engine.
>
> Best regards,
>
> André
>
>
> - --
>  André van Hoorn
>  Birkenweg 21
>  D-26725 Emden
>
>  Telefon:  +49 (4921) 954231
>  E-Mail:   [EMAIL PROTECTED]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGNcrnLKwmE5jzZmkRAp1ZAJwLdpsHro4Af9OnR58/yWJP8cbkcgCgjang
> Q05FJYW2I16vEv988Jdyrr8=
> =hXxi
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> 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