System Properties in JMeter

Q

What are system properties in JMeter?

✍: FYIcenter.com

A

Built-in properties are properties exposed to the user interface by JMeter during the execution process. You can access system properties using the __property() or __P() function.

System properties are divided into 3 groups:

1. Sampler properties - Properties used in the sampler that just executed. Examples of Sampler properties are:

HTTPSampler.DO_MULTIPART_POST=false
HTTPSampler.auto_redirects=false
HTTPSampler.connect_timeout=
HTTPSampler.contentEncoding=
HTTPSampler.embedded_url_re=
HTTPSampler.follow_redirects=true
HTTPSampler.method=GET
HTTPSampler.port=
HTTPSampler.postBodyRaw=true
HTTPSampler.protocol=http
HTTPSampler.response_timeout=
HTTPSampler.use_keepalive=true
HTTPsampler.Arguments==()
TestElement.enabled=true
TestElement.name=Latest Exchange Rate
TestElement.test_class=org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
TestPlan.comments=Bla bla...
...

2. JMeter properties - Properties defined and used by JMeter. Examples of JMeter properties are:

START.HMS=081116
START.MS=1511529076394
START.YMD=20121212
TESTSTART.MS=1511529295403
beanshell.server.file=../extras/startup.bsh
cssParser.className=org.apache.jmeter.protocol.http.parser.CssParser
cssParser.types=text/css
gui.quick_0=ThreadGroupGui
gui.quick_1=HttpTestSampleGui
gui.quick_2=RegexExtractorGui
...
jmeter.version=3.3 r1808647
sample_variables=Component,Function
sampleresult.timestamp.start=true
summariser.name=summary
system.properties=system.properties
...

3. System properties - Properties defined in the JVM that runs this JMeter instance. Examples of system properties are:

awt.toolkit=sun.awt.windows.WToolkit
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.8.0_131-b11
java.security.egd=file:/dev/urandom
java.specification.name=Java Platform API Specification
java.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
java.version=1.8.0_131
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
os.arch=amd64
os.name=Windows 7
os.version=6.1
path.separator=;
sun.arch.data.model=64
sun.cpu.endian=little
sun.cpu.isalist=amd64
sun.desktop=windows
sun.io.unicode.encoding=UnicodeLittle
sun.java.launcher=SUN_STANDARD
user.country=CA
user.language=en
user.name=fyicenter
user.timezone=America/New_York
...

 

Built-in Functions in JMeter

List Variables with Debug PostProcessor

Variables and Functions in JMeter

⇑⇑ Apache JMeter Tutorials

2018-01-27, 7963🔥, 0💬