apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.32k stars 2.09k forks source link

GUI language settings in user.properties without effect #4009

Open asfimport opened 8 years ago

asfimport commented 8 years ago

robert.strauch+apache (Bug 59751): DESCRIPTION

The GUI language is not changed when settings are done in user.properties. If the settings are located in jmeter.properties the GUI language is set to the configured language.

This didn't happen in JMeter 2.13. Language settings from user.properties worked properly.

STEPS TO REPRODUCE

1) Stop JMeter.

2) Edit user.properties in JMeter bin directory and add the following settings.

language=en locales.add=en

3) Start JMeter via jmeter.bat. The GUI is set to German default locale language.

4) Move the settings to jmeter.properties and restart JMeter. The GUI is set to the configured language.

Created attachment gui_user.properties.png: Screenshot showing GUI with language settings in user.properties

Screenshot showing GUI with language settings in user.properties

OS: All

asfimport commented 8 years ago

robert.strauch+apache (migrated from Bugzilla): Created attachment gui_jmeter.properties.png: Screenshot showing GUI with language settings in jmeter.properties

Screenshot showing GUI with language settings in jmeter.properties
asfimport commented 8 years ago

robert.strauch+apache (migrated from Bugzilla): Created attachment user.properties: Sample user.properties

user.properties ````properties # Sample user.properties file # ## Licensed to the Apache Software Foundation (ASF) under one or more ## contributor license agreements. See the NOTICE file distributed with ## this work for additional information regarding copyright ownership. ## The ASF licenses this file to You under the Apache License, Version 2.0 ## (the "License"); you may not use this file except in compliance with ## the License. You may obtain a copy of the License at ## ## http://www.apache.org/licenses/LICENSE-2.0 ## ## Unless required by applicable law or agreed to in writing, software ## distributed under the License is distributed on an "AS IS" BASIS, ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ## See the License for the specific language governing permissions and ## limitations under the License. #--------------------------------------------------------------------------- # Classpath configuration #--------------------------------------------------------------------------- # # List of paths (separated by ;) to search for additional JMeter plugin classes, # for example new GUI elements and samplers. # A path item can either be a jar file or a directory. # Any jar file in such a directory will be automatically included, # jar files in sub directories are ignored. # The given value is in addition to any jars found in the lib/ext directory. # Do not use this for utility or plugin dependency jars. #search_paths=/app1/lib;/app2/lib # List of paths that JMeter will search for utility and plugin dependency classes. # Use your platform path separator (java.io.File.separatorChar in Java) to separate multiple paths. # A path item can either be a jar file or a directory. # Any jar file in such a directory will be automatically included, # jar files in sub directories are ignored. # The given value is in addition to any jars found in the lib directory. # All entries will be added to the class path of the system class loader # and also to the path of the JMeter internal loader. # Paths with spaces may cause problems for the JVM #Example for windows (; separator) #user.classpath=../classes;../lib;../app1/jar1.jar;../app2/jar2.jar #Example for linux (:separator) #user.classpath=../classes:../lib:../app1/jar1.jar:../app2/jar2.jar # List of paths (separated by ;) that JMeter will search for utility # and plugin dependency classes. # A path item can either be a jar file or a directory. # Any jar file in such a directory will be automatically included, # jar files in sub directories are ignored. # The given value is in addition to any jars found in the lib directory # or given by the user.classpath property. # All entries will be added to the path of the JMeter internal loader only. # For plugin dependencies using plugin_dependency_paths should be preferred over # user.classpath. #plugin_dependency_paths=../dependencies/lib;../app1/jar1.jar;../app2/jar2.jar #--------------------------------------------------------------------------- # Logging configuration #--------------------------------------------------------------------------- #log_level.jorphan.reflect=DEBUG # Warning: enabling the next debug line causes javax.net.ssl.SSLException: Received fatal alert: unexpected_message # for certain sites when used with the default HTTP Sampler #log_level.jmeter.util.HttpSSLProtocolSocketFactory=DEBUG #log_level.jmeter.util.JsseSSLManager=DEBUG # Enable Proxy request debug #log_level.jmeter.protocol.http.proxy.HttpRequestHdr=DEBUG #--------------------------------------------------------------------------- # Reporting configuration #--------------------------------------------------------------------------- # If you want to debug reporting, uncomment this line #log_level.jmeter.report=DEBUG # Configure this property to change the report title #jmeter.reportgenerator.report_title=Apache JMeter Dashboard # Change this parameter if you want to change the granularity of over time graphs. #jmeter.reportgenerator.overall_granularity=60000 # Change this parameter if you want to change the granularity of Response time distribution # Set to 500 ms by default #jmeter.reportgenerator.graph.responseTimeDistribution.property.set_granularity=500 # Change this parameter if you want to keep only some samples. # Regular Expression which Indicates which samples to keep for graphs and statistics generation. # Empty value means no filtering #jmeter.reportgenerator.sample_filter= # Change this parameter if you want to override the APDEX satisfaction threshold. #jmeter.reportgenerator.apdex_satisfied_threshold=500 # Change this parameter if you want to override the APDEX tolerance threshold. #jmeter.reportgenerator.apdex_tolerated_threshold=1500 # Indicates which graph series are filtered (regular expression) # In the below example we filter on Search and Order samples # Note that the end of the pattern should always include (-success|-failure)? # TransactionsPerSecondGraphConsumer suffixes transactions with "-success" or "-failure" depending # on the result #jmeter.reportgenerator.exporter.html.series_filter=(Search|Order)(-success|-failure)? # Indicates whether only controller samples are displayed on graphs that support it. #jmeter.reportgenerator.exporter.html.show_controllers_only=false language=en locales.add=en jmeter.save.saveservice.timestamp_format=YYYY-MM-dd HH:mm:ss.SSSS sampleresult.default.encoding=UTF-8````
asfimport commented 8 years ago

@pmouawad (migrated from Bugzilla): This was always like this even in 2.13 version. It is a known issue but I see it is not documented anywhere. Note that to change correctly language, you should also add JVM property.