You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Piotr Kozłowski <pi...@gmail.com> on 2016/05/30 12:06:58 UTC

SampleResult setStartTime

Hello, using bean shell I tried use protected void setStartTime(long), but
each time when I did it I received problem:

in post procesor BeanShell
code:
prev.setStartTime(startTime);

log:
Error in method invocation: Method setStartTime( long ) not found in
class'org.apache.jmeter.samplers.SampleResult'


I surprised because setEndTime works like I want.


Any advice will be welcome

Tx!

Re: SampleResult setStartTime

Posted by sebb <se...@gmail.com>.
On 30 May 2016 at 13:06, Piotr Kozłowski <pi...@gmail.com> wrote:
> Hello, using bean shell I tried use protected void setStartTime(long), but
> each time when I did it I received problem:
>
> in post procesor BeanShell
> code:
> prev.setStartTime(startTime);
>
> log:
> Error in method invocation: Method setStartTime( long ) not found in
> class'org.apache.jmeter.samplers.SampleResult'
>
>
> I surprised because setEndTime works like I want.

setStartTime is protected; it's not intended to be use externally.

setEndTime is public.


>
> Any advice will be welcome
>
> Tx!