jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Adding script before loading configuration
Date Wed, 29 Aug 2018 05:14:08 GMT
Setup thread group would not work for a user needing some init code for
recording.

On Wednesday, August 29, 2018, sebb <sebbaz@gmail.com> wrote:

> On 28 August 2018 at 19:40, Philippe Mouawad <philippe.mouawad@gmail.com>
> wrote:
> > Hello,
> > This exists currently with Beanshell and I agree this should be possible
> > with JSR223 as we advise to move out from Beanshell and it's the last
> place
> > where Beanshell is needed.
>
> I don't think that's quite true.
>
> Beanshell allows the user to set up a server that can be used to
> access the internals of JMeter at run-time.
> It's not secure, so should only be used on a suitably protected
> system, but it can be very useful at times, especially for very
> long-running tests.
>
> I don't think JSR223 allows that currently.
> It may (or may not) be possible with other scripting languages.
>
> > Property:
> >
> >    - beanshell.init.file=
> >
> >
> > See JMeter#startOptionalServers
> >
> > So if you propose a patch, I'll be happy to merge it.
>
> Note that a startup script could be done by using a startup thread group.
> Such groups did not exist when beanshell was first added, so that was
> not an option then.
>
> > Regards
> >
> > On Tue, Aug 28, 2018 at 3:04 PM Jmeter Tea <jmetertea@gmail.com> wrote:
> >
> >> Hello,
> >>
> >> Many times users expect to setup configuration elements before execution
> >> (as below question)
> >> I wonder if we can add a option to run a JSR223 script on load or before
> >> executing a run to setup some variables/properties that can be used in
> >> configuration elements
>
> Try using a setup thread group.
>
> >>
> >> Thank you
> >>
> >>
> >> https://stackoverflow.com/questions/52058206/using-
> property-variable-value-from-jenkins
> >>
> >
> >
> > --
> > Cordialement.
> > Philippe Mouawad.
>


-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message