[Jmeter Learning] Basic Configuration


Note: The following operations are all modified in jmeter.properties in the bin directory of the Jmeter installation package. If there is no change after modification, delete the comment "#" before the code and then find another way.

1. Permanent Chinese

Search for "language" under this file, and replace the original en with zh_CN

language=zh_CN

insert image description here

2. The display effect is garbled

Search for sampleresult.default.encoding and change to UTF-8

sampleresult.default.encoding=UTF-8

insert image description here

3. The display font is too small

There are many methods on the Internet. After my practice, I think it is a version problem. So if you use the following method and it does not work, you can choose to change the version. If you don’t want to change the version, wait until there is a way to modify it later.
3.1 Modify the theme.
Select "Options - Appearance - System" in Jmeter.
3.2 Modify the font size.
The size of font.size can be set by yourself, but it will basically take effect in the request body of the running result.

jsyntaxtextarea.font.family=Hack
jsyntaxtextarea.font.size=20

insert image description here
3.3 Modify the font size of the UI interface
There is a default size, you can remove the comment first, and modify the size according to your own habits.

jmeter.toolbar.icons.size=32x32
jmeter.tree.icons.size=24x24

insert image description here
insert image description here

3.4 Modify bat
Add the following code at the beginning of Jmeter.bat in the bin directory, and the following "20" can be modified according to your needs.

set JVM_ARGS=%JVM_ARGS% -Dswing.plaf.metal.controlFont=Dialog-20
set JVM_ARGS=%JVM_ARGS% -Dswing.plaf.metal.systemFont=Dialog-20
set JVM_ARGS=%JVM_ARGS% -Dswing.plaf.metal.userFont=SansSerif-20
set JVM_ARGS=%JVM_ARGS% -Dswing.plaf.metal.smallFont=SansSerif-20

insert image description here
3.5 Modify jmeter scale
Search hidpi, find the following, delete the comment

jmeter.hidpi.mode=true
jmeter.hidpi.scale.factor=2.0

3.6 Applicable method of version 5.2.1
Pro-test is effective: JMeter5.2.1 adapts to high resolution
insert image description here

Guess you like

Origin blog.csdn.net/Daisy74RJ/article/details/123919175