You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Maxime Chassagneux <ma...@gmail.com> on 2017/03/09 08:52:02 UTC

Variable in BackendListener

Hello,

I can't variabilize parameter of BackendListener when I start a run via
remote test.
None of the value is replace.

If I put something like this :

influxdbUrl => ${__P(influxdbUrl, http://xxx.fr/influxdb_query/write?db=
qualif}

It cause one error :

2017-03-09 08:46:36,232 ERROR o.a.j.s.RemoteListenerWrapper:
testStarted(host) on tlsqninjec10:7080
java.lang.IllegalStateException: Failed calling setupTest
Caused by: java.net.MalformedURLException: no protocol: ${__P(influxdbUrl,
http://xxx.fr/influxdb_query/write?db=qualif)}

Of course it work localy.

Is it normal ? Any tips ? Where I have to start looking for fix it ?

Re: Variable in BackendListener

Posted by Maxime Chassagneux <ma...@gmail.com>.
Hi,

Could you look at the #283 PR on github to review my patch.

Thanks.

2017-03-09 14:58 GMT+01:00 Maxime Chassagneux <ma...@gmail.com>
:

>
> 2017-03-09 14:42 GMT+01:00 sebb <se...@gmail.com>:
>
>> On 9 March 2017 at 08:52, Maxime Chassagneux
>> <ma...@gmail.com> wrote:
>> > Hello,
>> >
>> > I can't variabilize parameter of BackendListener when I start a run via
>> > remote test.
>> > None of the value is replace.
>> >
>> > If I put something like this :
>> >
>> > influxdbUrl => ${__P(influxdbUrl, http://xxx.fr/influxdb_query/w
>> rite?db=
>> > qualif}
>>
>> Where exactly did you use this?
>>
>
> Here : https://www.dropbox.com/s/s569388q4s9x2c4/2017-03-09_
> 145548.png?dl=0
>
>
>>
>> > It cause one error :
>> >
>> > 2017-03-09 08:46:36,232 ERROR o.a.j.s.RemoteListenerWrapper:
>> > testStarted(host) on tlsqninjec10:7080
>> > java.lang.IllegalStateException: Failed calling setupTest
>> > Caused by: java.net.MalformedURLException: no protocol:
>> ${__P(influxdbUrl,
>> > http://xxx.fr/influxdb_query/write?db=qualif)}
>>
>> That indicates that the string is not being parsed for variable
>> references.
>>
>> > Of course it work localy.
>> >
>> > Is it normal ? Any tips ? Where I have to start looking for fix it ?
>>
>> The BackendListener code. Add some debug if necessary.
>>
>
> I will try :)
>
>

Re: Variable in BackendListener

Posted by Maxime Chassagneux <ma...@gmail.com>.
2017-03-09 14:42 GMT+01:00 sebb <se...@gmail.com>:

> On 9 March 2017 at 08:52, Maxime Chassagneux
> <ma...@gmail.com> wrote:
> > Hello,
> >
> > I can't variabilize parameter of BackendListener when I start a run via
> > remote test.
> > None of the value is replace.
> >
> > If I put something like this :
> >
> > influxdbUrl => ${__P(influxdbUrl, http://xxx.fr/influxdb_query/write?db=
> > qualif}
>
> Where exactly did you use this?
>

Here : https://www.dropbox.com/s/s569388q4s9x2c4/2017-03-09_145548.png?dl=0


>
> > It cause one error :
> >
> > 2017-03-09 08:46:36,232 ERROR o.a.j.s.RemoteListenerWrapper:
> > testStarted(host) on tlsqninjec10:7080
> > java.lang.IllegalStateException: Failed calling setupTest
> > Caused by: java.net.MalformedURLException: no protocol:
> ${__P(influxdbUrl,
> > http://xxx.fr/influxdb_query/write?db=qualif)}
>
> That indicates that the string is not being parsed for variable references.
>
> > Of course it work localy.
> >
> > Is it normal ? Any tips ? Where I have to start looking for fix it ?
>
> The BackendListener code. Add some debug if necessary.
>

I will try :)

Re: Variable in BackendListener

Posted by sebb <se...@gmail.com>.
On 9 March 2017 at 08:52, Maxime Chassagneux
<ma...@gmail.com> wrote:
> Hello,
>
> I can't variabilize parameter of BackendListener when I start a run via
> remote test.
> None of the value is replace.
>
> If I put something like this :
>
> influxdbUrl => ${__P(influxdbUrl, http://xxx.fr/influxdb_query/write?db=
> qualif}

Where exactly did you use this?

> It cause one error :
>
> 2017-03-09 08:46:36,232 ERROR o.a.j.s.RemoteListenerWrapper:
> testStarted(host) on tlsqninjec10:7080
> java.lang.IllegalStateException: Failed calling setupTest
> Caused by: java.net.MalformedURLException: no protocol: ${__P(influxdbUrl,
> http://xxx.fr/influxdb_query/write?db=qualif)}

That indicates that the string is not being parsed for variable references.

> Of course it work localy.
>
> Is it normal ? Any tips ? Where I have to start looking for fix it ?

The BackendListener code. Add some debug if necessary.

Re: Variable in BackendListener

Posted by Maxime Chassagneux <ma...@gmail.com>.
Hi,

Thanks for answer,

I try the -G option from controller , and it doesn't work :

I start jmeter like this :

jmeter.bat -GinfluxdbUrl=http://xxx.fr/influxdb_query/write?db=qualif
--addprop "%USERPROFILE%\jmeter\user.properties"

then via GUI mode start a distributed run and still this error :

Still : no protocol: ${__P(influxdbUrl,
http://xxx.fr/influxdb_query/write?db=qualif)

By the way, I don't rly want affect properties, but the default value ....
but replace value aren't set for BackendListener.

Regards


2017-03-09 10:22 GMT+01:00 UBIK LOAD PACK Support <su...@ubikloadpack.com>
:

> Hello,
>
> In distributed mode use:
> -G from controller
> or -J on jmeter-server
>
> Regards
>
> On Thu, Mar 9, 2017 at 9:52 AM, Maxime Chassagneux <
> maxime.chassagneux@gmail.com> wrote:
>
> > Hello,
> >
> > I can't variabilize parameter of BackendListener when I start a run via
> > remote test.
> > None of the value is replace.
> >
> > If I put something like this :
> >
> > influxdbUrl => ${__P(influxdbUrl, http://xxx.fr/influxdb_query/write?db=
> > qualif}
> >
> > It cause one error :
> >
> > 2017-03-09 08:46:36,232 ERROR o.a.j.s.RemoteListenerWrapper:
> > testStarted(host) on tlsqninjec10:7080
> > java.lang.IllegalStateException: Failed calling setupTest
> > Caused by: java.net.MalformedURLException: no protocol:
> ${__P(influxdbUrl,
> > http://xxx.fr/influxdb_query/write?db=qualif)}
> >
> > Of course it work localy.
> >
> > Is it normal ? Any tips ? Where I have to start looking for fix it ?
> >
>
>
>
> --
>
> Regards
> Ubik Load Pack <http://ubikloadpack.com> Team
> Follow us on Twitter <http://twitter.com/ubikloadpack>
>
>
> Cordialement
> L'équipe Ubik Load Pack <http://ubikloadpack.com>
> Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>
>

Re: Variable in BackendListener

Posted by UBIK LOAD PACK Support <su...@ubikloadpack.com>.
Hello,

In distributed mode use:
-G from controller
or -J on jmeter-server

Regards

On Thu, Mar 9, 2017 at 9:52 AM, Maxime Chassagneux <
maxime.chassagneux@gmail.com> wrote:

> Hello,
>
> I can't variabilize parameter of BackendListener when I start a run via
> remote test.
> None of the value is replace.
>
> If I put something like this :
>
> influxdbUrl => ${__P(influxdbUrl, http://xxx.fr/influxdb_query/write?db=
> qualif}
>
> It cause one error :
>
> 2017-03-09 08:46:36,232 ERROR o.a.j.s.RemoteListenerWrapper:
> testStarted(host) on tlsqninjec10:7080
> java.lang.IllegalStateException: Failed calling setupTest
> Caused by: java.net.MalformedURLException: no protocol: ${__P(influxdbUrl,
> http://xxx.fr/influxdb_query/write?db=qualif)}
>
> Of course it work localy.
>
> Is it normal ? Any tips ? Where I have to start looking for fix it ?
>



-- 

Regards
Ubik Load Pack <http://ubikloadpack.com> Team
Follow us on Twitter <http://twitter.com/ubikloadpack>


Cordialement
L'équipe Ubik Load Pack <http://ubikloadpack.com>
Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>