You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by sebb <se...@gmail.com> on 2007/05/01 01:12:37 UTC
Re: Reporting controller errors to engine
The Exception is
JMeterStopThreadException
which is what StringFromFile uses.
On 30/04/07, sebb <se...@gmail.com> 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
> <an...@informatik.uni-oldenburg.de> 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: Andre.van.Hoorn@Informatik.Uni-Oldenburg.DE
> > -----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: jmeter-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
Re: Reporting controller errors to engine
Posted by Andre van Hoorn <An...@Informatik.Uni-Oldenburg.DE>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Sebb,
sebb schrieb:
> The Exception is
>
> JMeterStopThreadException
yeah thanks. Works fine and is what I was searching for.
André
>
> On 30/04/07, sebb <se...@gmail.com> 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
>> <an...@informatik.uni-oldenburg.de> wrote:
> 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é
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGN1OsLKwmE5jzZmkRAoXBAJ4o/CdJhcqnGEBt7xPmL1Hmp//sPwCfbQtv
Y/5fQUwzmg8VWVdlaYbbQRQ=
=j7BX
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org