You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Antonio Gomes Rodrigues <ra...@gmail.com> on 2016/08/03 17:15:15 UTC

Default engine script language to JSR223 elements

Hi all,

I have a proposition about default engine script language to JSR223
elements (sampler, timer...)

For the moment when we had a JSR223 elements, there is no default engine
script language

And if we forgot to add it we have this error message "2016/08/03 17:46:43
ERROR - jmeter.protocol.java.sampler.JSR223Sampler: Problem in JSR223
script Echantillon JSR223, message:javax.script.ScriptException: Cannot
find engine named: '', ensure you set language field in JSR223 Test
Element:Echantillon JSR223"

My proposal is to put Groovy as default engine script language to avoid
users to check the logs to understand the mistake they have made

Do you think it's a great idea?

Antonio

Re: Default engine script language to JSR223 elements

Posted by Antonio Gomes Rodrigues <ra...@gmail.com>.
Hi,

My proposition of pacth

PR : https://github.com/apache/jmeter/pull/223 commited

Bugzilla : https://bz.apache.org/bugzilla/show_bug.cgi?id=59945

Antonio


2016-08-04 18:34 GMT+02:00 Antonio Gomes Rodrigues <ra...@gmail.com>:

> Great idea
>
> I will try to implement it asap and make a PR
>
> Antonio
>
> 2016-08-04 12:02 GMT+02:00 Milamber <mi...@apache.org>:
>
>>
>> Why not.
>> If the script language has not chosen on the UI, add a INFO (or WARN)
>> message into the log to inform that the script will be interpreted as a
>> groovy script
>>
>>
>> On 03/08/2016 18:15, Antonio Gomes Rodrigues wrote:
>>
>>> Hi all,
>>>
>>> I have a proposition about default engine script language to JSR223
>>> elements (sampler, timer...)
>>>
>>> For the moment when we had a JSR223 elements, there is no default engine
>>> script language
>>>
>>> And if we forgot to add it we have this error message "2016/08/03
>>> 17:46:43
>>> ERROR - jmeter.protocol.java.sampler.JSR223Sampler: Problem in JSR223
>>> script Echantillon JSR223, message:javax.script.ScriptException: Cannot
>>> find engine named: '', ensure you set language field in JSR223 Test
>>> Element:Echantillon JSR223"
>>>
>>> My proposal is to put Groovy as default engine script language to avoid
>>> users to check the logs to understand the mistake they have made
>>>
>>> Do you think it's a great idea?
>>>
>>> Antonio
>>>
>>>
>>
>

Re: Default engine script language to JSR223 elements

Posted by Antonio Gomes Rodrigues <ra...@gmail.com>.
Great idea

I will try to implement it asap and make a PR

Antonio

2016-08-04 12:02 GMT+02:00 Milamber <mi...@apache.org>:

>
> Why not.
> If the script language has not chosen on the UI, add a INFO (or WARN)
> message into the log to inform that the script will be interpreted as a
> groovy script
>
>
> On 03/08/2016 18:15, Antonio Gomes Rodrigues wrote:
>
>> Hi all,
>>
>> I have a proposition about default engine script language to JSR223
>> elements (sampler, timer...)
>>
>> For the moment when we had a JSR223 elements, there is no default engine
>> script language
>>
>> And if we forgot to add it we have this error message "2016/08/03 17:46:43
>> ERROR - jmeter.protocol.java.sampler.JSR223Sampler: Problem in JSR223
>> script Echantillon JSR223, message:javax.script.ScriptException: Cannot
>> find engine named: '', ensure you set language field in JSR223 Test
>> Element:Echantillon JSR223"
>>
>> My proposal is to put Groovy as default engine script language to avoid
>> users to check the logs to understand the mistake they have made
>>
>> Do you think it's a great idea?
>>
>> Antonio
>>
>>
>

Re: Default engine script language to JSR223 elements

Posted by Milamber <mi...@apache.org>.
Why not.
If the script language has not chosen on the UI, add a INFO (or WARN) 
message into the log to inform that the script will be interpreted as a 
groovy script

On 03/08/2016 18:15, Antonio Gomes Rodrigues wrote:
> Hi all,
>
> I have a proposition about default engine script language to JSR223
> elements (sampler, timer...)
>
> For the moment when we had a JSR223 elements, there is no default engine
> script language
>
> And if we forgot to add it we have this error message "2016/08/03 17:46:43
> ERROR - jmeter.protocol.java.sampler.JSR223Sampler: Problem in JSR223
> script Echantillon JSR223, message:javax.script.ScriptException: Cannot
> find engine named: '', ensure you set language field in JSR223 Test
> Element:Echantillon JSR223"
>
> My proposal is to put Groovy as default engine script language to avoid
> users to check the logs to understand the mistake they have made
>
> Do you think it's a great idea?
>
> Antonio
>