jmeter 调试取样器

        

              

*************

调试取样器

            

作用:结合查看结果树可查看jmeter属性、运行变量、系统属性

         

           

相关参数说明:

jmeter 属性:jmeter.properties文件中定义的属性,默认不展示(false)
jmeter variables:jmeter运行时变量,包括自定义变量、脚本运行时添加的变量等,默认展示(true)
系统属性:系统属性值,默认不展示(false)

             

              

*************

示例

            

线程组 ==> 用户自定义变量

         

           

线程组 ==> beanShell前置处理器

         

                

线程组 ==> 简单控制器 ==> 调试取样器:只查看运行时变量

         

            

 线程组 ==> 简单控制器 2 ==> 调试取样器:查看jmeter属性、运行时变量

         

            

  线程组 ==> 简单控制器 3 ==> 调试取样器:查看jmeter属性、运行时变量、系统属性

         

                  

简单控制器 ==> 查看结果树

         

              

 简单控制器 2 ==> 查看结果树

# jmeter运行时变量
JMeterVariables:
JMeterThread.last_sample_ok=true
JMeterThread.pack=org.apache.jmeter.threads.SamplePackage@74a8c7f1
START.HMS=144232
START.MS=1642056152229
START.YMD=20220113
TESTSTART.MS=1642057021361
__jm__线程组__idx=0
__jmv_SAME_USER=true
age=20
name=瓜田李下

# jmeter.properties属性
JMeterProperties:
HTTPResponse.parsers=htmlParser wmlParser cssParser
START.HMS=144232
START.MS=1642056152229
START.YMD=20220113
TESTSTART.MS=1642057021361
beanshell.server.file=../extras/startup.bsh
classfinder.functions.contain=.functions.
classfinder.functions.notContain=.gui.
cookies=cookies
cssParser.className=org.apache.jmeter.protocol.http.parser.CssParser
cssParser.types=text/css
csvdataset.file.encoding_list=UTF-8|UTF-16|ISO-8859-15|US-ASCII
gui.quick_0=ThreadGroupGui
gui.quick_1=HttpTestSampleGui
gui.quick_2=RegexExtractorGui
gui.quick_3=AssertionGui
gui.quick_4=ConstantTimerGui
gui.quick_5=TestActionGui
gui.quick_6=JSR223PostProcessor
gui.quick_7=JSR223PreProcessor
gui.quick_8=DebugSampler
gui.quick_9=ViewResultsFullVisualizer
htmlParser.className=org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
htmlParser.types=text/html application/xhtml+xml application/xml text/xml
jdbc.config.check.query=select 1 from INFORMATION_SCHEMA.SYSTEM_USERS|select 1 from dual|select 1 from sysibm.sysdummy1|select 1|select 1 from rdb$database
jdbc.config.jdbc.driver.class=com.mysql.jdbc.Driver|org.postgresql.Driver|oracle.jdbc.OracleDriver|com.ingres.jdbc.IngresDriver|com.microsoft.sqlserver.jdbc.SQLServerDriver|com.microsoft.jdbc.sqlserver.SQLServerDriver|org.apache.derby.jdbc.ClientDriver|org.hsqldb.jdbc.JDBCDriver|com.ibm.db2.jcc.DB2Driver|org.apache.derby.jdbc.ClientDriver|org.h2.Driver|org.firebirdsql.jdbc.FBDriver|org.mariadb.jdbc.Driver|org.sqlite.JDBC|net.sourceforge.jtds.jdbc.Driver|com.exasol.jdbc.EXADriver
jmeter.reportgenerator.apdex_satisfied_threshold=500
jmeter.reportgenerator.apdex_tolerated_threshold=1500
jmeter.version=5.4.1
language=zh_CN
not_in_menu=org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler,org.apache.jmeter.protocol.mongodb.config.MongoSourceElement,org.apache.jmeter.timers.BSFTimer,org.apache.jmeter.modifiers.BSFPreProcessor,org.apache.jmeter.extractor.BSFPostProcessor,org.apache.jmeter.assertions.BSFAssertion,org.apache.jmeter.visualizers.BSFListener,org.apache.jmeter.protocol.java.sampler.BSFSampler,org.apache.jmeter.protocol.http.control.gui.SoapSamplerGui
remote_hosts=127.0.0.1
resultcollector.action_if_file_exists=APPEND
sampleresult.timestamp.start=true
summariser.name=summary
system.properties=system.properties
upgrade_properties=/bin/upgrade.properties
user.properties=user.properties
view.results.tree.renderers_order=.RenderAsText,.RenderAsRegexp,.RenderAsBoundaryExtractor,.RenderAsCssJQuery,org.apache.jmeter.extractor.json.render.RenderAsJsonRenderer,.RenderAsXPath2,org.apache.jmeter.extractor.json.render.RenderAsJmesPathRenderer,.RenderAsXPath,.RenderAsHTML,.RenderAsHTMLFormatted,.RenderAsHTMLWithEmbedded,.RenderAsDocument,.RenderAsJSON,.RenderAsXML
wmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
wmlParser.types=text/vnd.wap.wml

                  

 简单控制器 3 ==> 查看结果树

# jmeter运行时变量
JMeterVariables:
JMeterThread.last_sample_ok=true
JMeterThread.pack=org.apache.jmeter.threads.SamplePackage@70974dbc
START.HMS=144232
START.MS=1642056152229
START.YMD=20220113
TESTSTART.MS=1642057021361
__jm__线程组__idx=0
__jmv_SAME_USER=true
age=20
name=瓜田李下


# jmeter.properties属性
JMeterProperties:
HTTPResponse.parsers=htmlParser wmlParser cssParser
START.HMS=144232
START.MS=1642056152229
START.YMD=20220113
TESTSTART.MS=1642057021361
beanshell.server.file=../extras/startup.bsh
classfinder.functions.contain=.functions.
classfinder.functions.notContain=.gui.
cookies=cookies
cssParser.className=org.apache.jmeter.protocol.http.parser.CssParser
cssParser.types=text/css
csvdataset.file.encoding_list=UTF-8|UTF-16|ISO-8859-15|US-ASCII
gui.quick_0=ThreadGroupGui
gui.quick_1=HttpTestSampleGui
gui.quick_2=RegexExtractorGui
gui.quick_3=AssertionGui
gui.quick_4=ConstantTimerGui
gui.quick_5=TestActionGui
gui.quick_6=JSR223PostProcessor
gui.quick_7=JSR223PreProcessor
gui.quick_8=DebugSampler
gui.quick_9=ViewResultsFullVisualizer
htmlParser.className=org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
htmlParser.types=text/html application/xhtml+xml application/xml text/xml
jdbc.config.check.query=select 1 from INFORMATION_SCHEMA.SYSTEM_USERS|select 1 from dual|select 1 from sysibm.sysdummy1|select 1|select 1 from rdb$database
jdbc.config.jdbc.driver.class=com.mysql.jdbc.Driver|org.postgresql.Driver|oracle.jdbc.OracleDriver|com.ingres.jdbc.IngresDriver|com.microsoft.sqlserver.jdbc.SQLServerDriver|com.microsoft.jdbc.sqlserver.SQLServerDriver|org.apache.derby.jdbc.ClientDriver|org.hsqldb.jdbc.JDBCDriver|com.ibm.db2.jcc.DB2Driver|org.apache.derby.jdbc.ClientDriver|org.h2.Driver|org.firebirdsql.jdbc.FBDriver|org.mariadb.jdbc.Driver|org.sqlite.JDBC|net.sourceforge.jtds.jdbc.Driver|com.exasol.jdbc.EXADriver
jmeter.reportgenerator.apdex_satisfied_threshold=500
jmeter.reportgenerator.apdex_tolerated_threshold=1500
jmeter.version=5.4.1
language=zh_CN
not_in_menu=org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler,org.apache.jmeter.protocol.mongodb.config.MongoSourceElement,org.apache.jmeter.timers.BSFTimer,org.apache.jmeter.modifiers.BSFPreProcessor,org.apache.jmeter.extractor.BSFPostProcessor,org.apache.jmeter.assertions.BSFAssertion,org.apache.jmeter.visualizers.BSFListener,org.apache.jmeter.protocol.java.sampler.BSFSampler,org.apache.jmeter.protocol.http.control.gui.SoapSamplerGui
remote_hosts=127.0.0.1
resultcollector.action_if_file_exists=APPEND
sampleresult.timestamp.start=true
summariser.name=summary
system.properties=system.properties
upgrade_properties=/bin/upgrade.properties
user.properties=user.properties
view.results.tree.renderers_order=.RenderAsText,.RenderAsRegexp,.RenderAsBoundaryExtractor,.RenderAsCssJQuery,org.apache.jmeter.extractor.json.render.RenderAsJsonRenderer,.RenderAsXPath2,org.apache.jmeter.extractor.json.render.RenderAsJmesPathRenderer,.RenderAsXPath,.RenderAsHTML,.RenderAsHTMLFormatted,.RenderAsHTMLWithEmbedded,.RenderAsDocument,.RenderAsJSON,.RenderAsXML
wmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
wmlParser.types=text/vnd.wap.wml


# 系统属性
SystemProperties:
apple.eawt.quitStrategy=CLOSE_ALL_WINDOWS
apple.laf.useScreenMenuBar=true
darklaf.allowNativeCode=false
darklaf.decorations=false
darklaf.treeRowPopup=false
darklaf.unifiedMenuBar=true
file.encoding=UTF-8
file.separator=/
...
sun.cpu.endian=little
sun.font.fontmanager=sun.font.CFontManager
sun.io.unicode.encoding=UnicodeBig
sun.java.command=/Users/huli/Downloads/apache-jmeter-5.4.1/bin/ApacheJMeter.jar
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.net.http.allowRestrictedHeaders=true
user.country=CN
user.dir=/Users/huli
user.home=/Users/huli
user.language=en
user.name=huli
user.region=EN
user.script=Hans
user.timezone=Asia/Shanghai

            

         

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐