码迷,mamicode.com
首页 > Web开发 > 详细

Jmeter命令行执行生成HTML报告

时间:2020-02-27 17:35:07      阅读:812      评论:0      收藏:0      [点我收藏+]

标签:add   clu   16px   field   body   nan   xtend   represent   run   

Jmeter命令行执行生成HTML报告

使用GUI方式启动jmeter,运行线程较多的测试时,会造成内存和CPU的大量消耗,导致客户机卡死;

所以一般采用的方式是在GUI模式下调整测试脚本,再用命令行模式执行;

 

1、修改jmeter.properties里的配置文件

 1 jmeter.save.saveservice.output_format=csv
 2 jmeter.save.saveservice.bytes=true
 3 jmeter.save.saveservice.label=true
 4 jmeter.save.saveservice.latency=true
 5 jmeter.save.saveservice.response_code=true
 6 jmeter.save.saveservice.response_message=true
 7 jmeter.save.saveservice.successful=true
 8 jmeter.save.saveservice.thread_counts=true
 9 jmeter.save.saveservice.thread_name=true
10 jmeter.save.saveservice.time=true
11 jmeter.save.saveservice.timestamp_format=ms
12 jmeter.save.saveservice.timestamp_format=yyyy-MM-dd HH:mm:ss
13 jmeter.save.saveservice.print_field_names=true

jmeter.properties文件

技术图片
   1 ################################################################################
   2 # Apache JMeter Property file
   3 ################################################################################
   4 
   5 ##   Licensed to the Apache Software Foundation (ASF) under one or more
   6 ##   contributor license agreements.  See the NOTICE file distributed with
   7 ##   this work for additional information regarding copyright ownership.
   8 ##   The ASF licenses this file to You under the Apache License, Version 2.0
   9 ##   (the "License"); you may not use this file except in compliance with
  10 ##   the License.  You may obtain a copy of the License at
  11 ##
  12 ##       http://www.apache.org/licenses/LICENSE-2.0
  13 ##
  14 ##   Unless required by applicable law or agreed to in writing, software
  15 ##   distributed under the License is distributed on an "AS IS" BASIS,
  16 ##   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17 ##   See the License for the specific language governing permissions and
  18 ##   limitations under the License.
  19 
  20 ################################################################################
  21 #
  22 #                      THIS FILE SHOULD NOT BE MODIFIED
  23 #
  24 # This avoids having to re-apply the modifications when upgrading JMeter
  25 # Instead only user.properties should be modified:
  26 # 1/ copy the property you want to modify to user.properties from jmeter.properties
  27 # 2/ Change its value there
  28 #
  29 ################################################################################
  30 
  31 # JMeter properties are described in the file
  32 # http://jmeter.apache.org/usermanual/properties_reference.html
  33 # A local copy can be found in
  34 # printable_docs/usermanual/properties_reference.html
  35 
  36 #Preferred GUI language. Comment out to use the JVM default locale‘s language.
  37 #language=en
  38 
  39 
  40 # Additional locale(s) to add to the displayed list.
  41 # The current default list is: en, fr, de, no, es, tr, ja, zh_CN, zh_TW, pl, pt_BR
  42 # [see JMeterMenuBar#makeLanguageMenu()]
  43 # The entries are a comma-separated list of language names
  44 #locales.add=zu
  45 
  46 
  47 #---------------------------------------------------------------------------
  48 # XML Parser
  49 #---------------------------------------------------------------------------
  50 
  51 # Path to a Properties file containing Namespace mapping in the form
  52 # prefix=Namespace
  53 # Example:
  54 # ns=http://biz.aol.com/schema/2006-12-18
  55 #xpath.namespace.config=
  56 
  57 #---------------------------------------------------------------------------
  58 # SSL configuration
  59 #---------------------------------------------------------------------------
  60 
  61 ## SSL System properties are now in system.properties
  62 
  63 # JMeter no longer converts javax.xxx property entries in this file into System properties.
  64 # These must now be defined in the system.properties file or on the command-line.
  65 # The system.properties file gives more flexibility.
  66 
  67 # By default, SSL session contexts are now created per-thread, rather than being shared.
  68 # The original behaviour can be enabled by setting the JMeter property to true
  69 #https.sessioncontext.shared=false
  70 
  71 # Be aware that https default protocol may vary depending on the version of JVM
  72 # See https://blogs.oracle.com/java-platform-group/entry/diagnosing_tls_ssl_and_https
  73 # See https://bz.apache.org/bugzilla/show_bug.cgi?id=58236
  74 # Default HTTPS protocol level:
  75 #https.default.protocol=TLS
  76 # This may need to be changed here (or in user.properties) to:
  77 #https.default.protocol=SSLv3
  78 
  79 # List of protocols to enable. You may have to select only a subset if you find issues with target server.
  80 # This is needed when server does not support Socket version negotiation, this can lead to:
  81 # javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
  82 # java.net.SocketException: Connection reset
  83 # see https://bz.apache.org/bugzilla/show_bug.cgi?id=54759
  84 #https.socket.protocols=SSLv2Hello SSLv3 TLSv1
  85 
  86 # Control if we allow reuse of cached SSL context between iterations
  87 # set the value to ‘false‘ to reset the SSL context each iteration
  88 #https.use.cached.ssl.context=true
  89 
  90 # Start and end index to be used with keystores with many entries
  91 # The default is to use entry 0, i.e. the first
  92 #https.keyStoreStartIndex=0
  93 #https.keyStoreEndIndex=0
  94 
  95 #---------------------------------------------------------------------------
  96 # Look and Feel configuration
  97 #---------------------------------------------------------------------------
  98 
  99 #Classname of the Swing default UI
 100 #
 101 # The LAF classnames that are available are now displayed as ToolTip text
 102 # when hovering over the Options/Look and Feel selection list.
 103 #
 104 # You can either use a full class name, as shown below,
 105 # or one of the strings "System" or "CrossPlatform" which means
 106 #  JMeter will use the corresponding string returned by UIManager.get<name>LookAndFeelClassName()
 107 
 108 # LAF can be overridden by os.name (lowercased, spaces replaced by ‘_‘)
 109 # Sample os.name LAF:
 110 #jmeter.laf.windows_xp=javax.swing.plaf.metal.MetalLookAndFeel
 111 
 112 # Failing that, the OS family = os.name, but only up to first space:
 113 # Sample OS family LAF:
 114 #jmeter.laf.windows=com.sun.java.swing.plaf.windows.WindowsLookAndFeel
 115 
 116 # Custom settings for Mac using System LAF if you don‘t want to use Darcula
 117 #jmeter.laf.mac=System
 118 
 119 # Failing that, the JMeter default laf can be defined:
 120 #jmeter.laf=System
 121 
 122 # If none of the above jmeter.laf properties are defined, JMeter uses the CrossPlatform LAF.
 123 # This is because the CrossPlatform LAF generally looks better than the System LAF.
 124 # See https://bz.apache.org/bugzilla/show_bug.cgi?id=52026 for details
 125 # N.B. the laf can be defined in user.properties.
 126 
 127 # LoggerPanel display
 128 # default to false
 129 #jmeter.loggerpanel.display=false
 130 
 131 # Enable LogViewer Panel to receive log event even if closed
 132 # Enabled since 2.12
 133 # Note this has some impact on performances, but as GUI mode must
 134 # not be used for Load Test it is acceptable
 135 #jmeter.loggerpanel.enable_when_closed=true
 136 
 137 # Max lines kept in LoggerPanel, default to 1000 chars
 138 # 0 means no limit
 139 #jmeter.loggerpanel.maxlength=1000
 140 
 141 # Interval period in ms to process the queue of events of the listeners
 142 #jmeter.gui.refresh_period=500
 143 
 144 # HiDPI mode (default: false)
 145 # Activate a ‘pseudo‘-hidpi mode. Allows to increase size of some UI elements
 146 # which are not correctly managed by JVM with high resolution screens in Linux or Windows
 147 #jmeter.hidpi.mode=false
 148 # To enable pseudo-hidpi mode change to true
 149 #jmeter.hidpi.mode=true
 150 # HiDPI scale factor
 151 #jmeter.hidpi.scale.factor=1.0
 152 # Suggested value for HiDPI
 153 #jmeter.hidpi.scale.factor=2.0
 154 
 155 # Toolbar display
 156 # Toolbar icon definitions
 157 #jmeter.toolbar.icons=org/apache/jmeter/images/toolbar/icons-toolbar.properties
 158 # Toolbar list
 159 #jmeter.toolbar=new,open,close,save,save_as_testplan,|,cut,copy,paste,|,expand,collapse,toggle,|,test_start,test_stop,test_shutdown,|,test_start_remote_all,test_stop_remote_all,test_shutdown_remote_all,|,test_clear,test_clear_all,|,search,search_reset,|,function_helper,help
 160 # Toolbar icons default size: 22x22. Available sizes are: 22x22, 32x32, 48x48
 161 #jmeter.toolbar.icons.size=22x22
 162 # Suggested value for HiDPI
 163 #jmeter.toolbar.icons.size=48x48
 164 
 165 # Icon definitions
 166 # default:
 167 #jmeter.icons=org/apache/jmeter/images/icon.properties
 168 # alternate:
 169 #jmeter.icons=org/apache/jmeter/images/icon_1.properties
 170 # Historical icon set (deprecated)
 171 #jmeter.icons=org/apache/jmeter/images/icon_old.properties
 172 
 173 # Tree icons default size: 19x19. Available sizes are: 19x19, 24x24, 32x32, 48x48
 174 # Useful for HiDPI display (see below)
 175 #jmeter.tree.icons.size=19x19
 176 # Suggested value for HiDPI screen like 3200x1800:
 177 #jmeter.tree.icons.size=32x32
 178 
 179 #Components to not display in JMeter GUI (GUI class name or static label)
 180 # These elements are deprecated and will be removed in next version:
 181 # MongoDB Script, MongoDB Source Config, Monitor Results
 182 # BSF Elements
 183 not_in_menu=org.apache.jmeter.protocol.mongodb.sampler.MongoScriptSampler,org.apache.jmeter.protocol.mongodb.config.MongoSourceElement, 184     org.apache.jmeter.timers.BSFTimer,org.apache.jmeter.modifiers.BSFPreProcessor,org.apache.jmeter.extractor.BSFPostProcessor,org.apache.jmeter.assertions.BSFAssertion, 185     org.apache.jmeter.visualizers.BSFListener,org.apache.jmeter.protocol.java.sampler.BSFSampler, 186     org.apache.jmeter.protocol.http.control.gui.SoapSamplerGui
 187 
 188 # Number of items in undo history
 189 # Feature is disabled by default (0) due to known and not fixed bugs:
 190 # https://bz.apache.org/bugzilla/show_bug.cgi?id=57043
 191 # https://bz.apache.org/bugzilla/show_bug.cgi?id=57039
 192 # https://bz.apache.org/bugzilla/show_bug.cgi?id=57040
 193 # Set it to a number > 0 (25 can be a good default)
 194 # The bigger it is, the more it consumes memory
 195 #undo.history.size=0
 196 
 197 # Hotkeys to add JMeter components, will add elements when you press Ctrl+0 .. Ctrl+9 (Command+0 .. Command+9 on Mac)
 198 gui.quick_0=ThreadGroupGui
 199 gui.quick_1=HttpTestSampleGui
 200 gui.quick_2=RegexExtractorGui
 201 gui.quick_3=AssertionGui
 202 gui.quick_4=ConstantTimerGui
 203 gui.quick_5=TestActionGui
 204 gui.quick_6=JSR223PostProcessor
 205 gui.quick_7=JSR223PreProcessor
 206 gui.quick_8=DebugSampler
 207 gui.quick_9=ViewResultsFullVisualizer
 208 
 209 
 210 #---------------------------------------------------------------------------
 211 # JMX Backup configuration
 212 #---------------------------------------------------------------------------
 213 #Enable auto backups of the .jmx file when a test plan is saved.
 214 #When enabled, before the .jmx is saved, it will be backed up to the directory pointed
 215 #by the jmeter.gui.action.save.backup_directory property (see below). Backup file names are built
 216 #after the jmx file being saved. For example, saving test-plan.jmx will create a test-plan-000012.jmx
 217 #in the backup directory provided that the last created backup file is test-plan-000011.jmx.
 218 #Default value is true indicating that auto backups are enabled
 219 #jmeter.gui.action.save.backup_on_save=true
 220 
 221 #Set the backup directory path where JMX backups will be created upon save in the GUI.
 222 #If not set (what it defaults to) then backup files will be created in
 223 #a sub-directory of the JMeter base installation. The default directory is ${JMETER_HOME}/backups
 224 #If set and the directory does not exist, it will be created.
 225 #jmeter.gui.action.save.backup_directory=
 226 
 227 #Set the maximum time (in hours) that backup files should be preserved since the save time.
 228 #By default no expiration time is set which means we keep backups for ever.
 229 #jmeter.gui.action.save.keep_backup_max_hours=0
 230 
 231 #Set the maximum number of backup files that should be preserved. By default 10 backups will be preserved.
 232 #Setting this to zero will cause the backups to not being deleted (unless keep_backup_max_hours is set to a non zero value)
 233 #jmeter.gui.action.save.keep_backup_max_count=10
 234 
 235 #Enable auto saving of the .jmx file before start run a test plan
 236 #When enabled, before the run, the .jmx will be saved and also backed up to the directory pointed
 237 #save_automatically_before_run=true
 238 
 239 #---------------------------------------------------------------------------
 240 # Remote hosts and RMI configuration
 241 #---------------------------------------------------------------------------
 242 
 243 # Remote Hosts - comma delimited
 244 remote_hosts=127.0.0.1
 245 #remote_hosts=localhost:1099,localhost:2010
 246 
 247 # RMI port to be used by the server (must start rmiregistry with same port)
 248 #server_port=1099
 249 
 250 # To change the port to (say) 1234:
 251 # On the server(s)
 252 # - set server_port=1234
 253 # - start rmiregistry with port 1234
 254 # On Windows this can be done by:
 255 # SET SERVER_PORT=1234
 256 # JMETER-SERVER
 257 #
 258 # On Unix:
 259 # SERVER_PORT=1234 jmeter-server
 260 #
 261 # On the client:
 262 # - set remote_hosts=server:1234
 263 
 264 # Parameter that controls the RMI port used by RemoteSampleListenerImpl (The Controller)
 265 # Default value is 0 which means port is randomly assigned
 266 # You may need to open Firewall port on the Controller machine
 267 #client.rmi.localport=0
 268 
 269 # When distributed test is starting, there may be several attempts to initialize
 270 # remote engines. By default, only single try is made. Increase following property
 271 # to make it retry for additional times
 272 #client.tries=1
 273 
 274 # If there is initialization retries, following property sets delay between attempts
 275 #client.retries_delay=5000
 276 
 277 # When all initialization tries was made, test will fail if some remote engines are failed
 278 # Set following property to true to ignore failed nodes and proceed with test
 279 #client.continue_on_fail=false
 280 
 281 # To change the default port (1099) used to access the server:
 282 #server.rmi.port=1234
 283 
 284 # To use a specific port for the JMeter server engine, define
 285 # the following property before starting the server:
 286 #server.rmi.localport=4000
 287 
 288 # The jmeter server creates by default the RMI registry as part of the server process.
 289 # To stop the server creating the RMI registry:
 290 #server.rmi.create=false
 291 
 292 # Define the following property to cause JMeter to exit after the first test
 293 #server.exitaftertest=true
 294 
 295 #
 296 # Configuration of Secure RMI connection
 297 #
 298 # Type of keystore : JKS
 299 #server.rmi.ssl.keystore.type=JKS
 300 #
 301 # Keystore file that contains private key
 302 #server.rmi.ssl.keystore.file=rmi_keystore.jks
 303 #
 304 # Password of Keystore
 305 #server.rmi.ssl.keystore.password=changeit
 306 #
 307 # Key alias
 308 #server.rmi.ssl.keystore.alias=rmi
 309 #
 310 # Type of truststore : JKS
 311 #server.rmi.ssl.truststore.type=JKS
 312 #
 313 # Keystore file that contains certificate
 314 #server.rmi.ssl.truststore.file=rmi_keystore.jks
 315 #
 316 # Password of Trust store
 317 #server.rmi.ssl.truststore.password=changeit
 318 #
 319 # Set this if you don‘t want to use SSL for RMI
 320 #server.rmi.ssl.disable=false
 321 #---------------------------------------------------------------------------
 322 #         Include Controller
 323 #---------------------------------------------------------------------------
 324 
 325 # Prefix used by IncludeController when building file name
 326 #includecontroller.prefix=
 327 
 328 #---------------------------------------------------------------------------
 329 # HTTP Java configuration
 330 #---------------------------------------------------------------------------
 331 
 332 # Number of connection retries performed by HTTP Java sampler before giving up
 333 # 0 means no retry since version 3.0
 334 #http.java.sampler.retries=0
 335 
 336 #---------------------------------------------------------------------------
 337 # Following properties apply to Apache HttpClient
 338 #---------------------------------------------------------------------------
 339 
 340 # set the socket timeout (or use the parameter http.socket.timeout)
 341 # for AJP Sampler implementation.
 342 # Value is in milliseconds
 343 #httpclient.timeout=0
 344 # 0 == no timeout
 345 
 346 # Set the http version (defaults to 1.1)
 347 #httpclient.version=1.1 (or use the parameter http.protocol.version)
 348 
 349 # Define characters per second > 0 to emulate slow connections
 350 #httpclient.socket.http.cps=0
 351 #httpclient.socket.https.cps=0
 352 
 353 #Enable loopback protocol
 354 #httpclient.loopback=true
 355 
 356 # Define the local host address to be used for multi-homed hosts
 357 #httpclient.localaddress=1.2.3.4
 358 
 359 #---------------------------------------------------------------------------
 360 # AuthManager Kerberos configuration
 361 #---------------------------------------------------------------------------
 362 
 363 # AuthManager Kerberos configuration
 364 # Name of application module used in jaas.conf
 365 #kerberos_jaas_application=JMeter
 366 
 367 # Should ports be stripped from urls before constructing SPNs
 368 # for SPNEGO authentication
 369 #kerberos.spnego.strip_port=true
 370 
 371 #---------------------------------------------------------------------------
 372 # Apache HttpComponents HTTPClient configuration (HTTPClient4)
 373 #---------------------------------------------------------------------------
 374 
 375 # define a properties file for overriding Apache HttpClient parameters
 376 # Uncomment this line if you put anything in hc.parameters file
 377 #hc.parameters.file=hc.parameters
 378 
 379 # Preemptively send Authorization Header when BASIC auth is used
 380 #httpclient4.auth.preemptive=true
 381 
 382 # Number of retries to attempt (default 0)
 383 #httpclient4.retrycount=0
 384 
 385 # true if it‘s OK to retry requests that have been sent
 386 # This will retry Idempotent and non Idempotent requests
 387 # This should usually be false, but it can be useful
 388 # when testing against some Load Balancers like Amazon ELB
 389 #httpclient4.request_sent_retry_enabled=false
 390 
 391 # Idle connection timeout (Milliseconds) to apply if the server does not send
 392 # Keep-Alive headers (default 0)
 393 # Set this > 0 to compensate for servers that don‘t send a Keep-Alive header
 394 # If <= 0, idle timeout will only apply if the server sends a Keep-Alive header
 395 #httpclient4.idletimeout=0
 396 
 397 # Check connections if the elapsed time (Milliseconds) since the last
 398 # use of the connection exceed this value
 399 #httpclient4.validate_after_inactivity=1700
 400 
 401 # TTL (in Milliseconds) represents an absolute value.
 402 # No matter what, the connection will not be re-used beyond its TTL.
 403 #httpclient4.time_to_live=2000
 404 
 405 # Max size in bytes of PUT body to retain in result sampler.
 406 # Bigger results will be clipped.
 407 #httpclient4.max_body_retain_size=32768
 408 
 409 #---------------------------------------------------------------------------
 410 # HTTP Cache Manager configuration
 411 #---------------------------------------------------------------------------
 412 #
 413 # Space or comma separated list of methods that can be cached
 414 #cacheable_methods=GET
 415 # N.B. This property is currently a temporary solution for Bug 56162
 416 
 417 # Since 2.12, JMeter does not create anymore a Sample Result with 204 response
 418 # code for a resource found in cache which is inline with what browser do.
 419 #cache_manager.cached_resource_mode=RETURN_NO_SAMPLE
 420 
 421 # You can choose between 3 modes:
 422 # RETURN_NO_SAMPLE (default)
 423 # RETURN_200_CACHE
 424 # RETURN_CUSTOM_STATUS
 425 
 426 # Those mode have the following behaviours:
 427 # RETURN_NO_SAMPLE:
 428 # this mode returns no Sample Result, it has no additional configuration
 429 
 430 # RETURN_200_CACHE:
 431 # this mode will return Sample Result with response code to 200 and
 432 # response message to "(ex cache)", you can modify response message by setting
 433 # RETURN_200_CACHE.message=(ex cache)
 434 
 435 # RETURN_CUSTOM_STATUS:
 436 # This mode lets you select what response code and message you want to return,
 437 # if you use this mode you need to set those properties
 438 # RETURN_CUSTOM_STATUS.code=
 439 # RETURN_CUSTOM_STATUS.message=
 440 
 441 #---------------------------------------------------------------------------
 442 # Results file configuration
 443 #---------------------------------------------------------------------------
 444 
 445 # This section helps determine how result data will be saved.
 446 # The commented out values are the defaults.
 447 
 448 # legitimate values: xml, csv, db.  Only xml and csv are currently supported.
 449 jmeter.save.saveservice.output_format=csv
 450 
 451 # The below properties are true when field should be saved; false otherwise
 452 #
 453 # assertion_results_failure_message only affects CSV output
 454 jmeter.save.saveservice.assertion_results_failure_message=true
 455 #
 456 # legitimate values: none, first, all
 457 #jmeter.save.saveservice.assertion_results=none
 458 #
 459 #jmeter.save.saveservice.data_type=true
 460 jmeter.save.saveservice.label=true
 461 jmeter.save.saveservice.response_code=true
 462 # response_data is not currently supported for CSV output
 463 #jmeter.save.saveservice.response_data=True
 464 # Save ResponseData for failed samples
 465 #jmeter.save.saveservice.response_data.on_error=True
 466 jmeter.save.saveservice.response_message=true
 467 jmeter.save.saveservice.successful=true
 468 jmeter.save.saveservice.thread_name=true
 469 jmeter.save.saveservice.time=true
 470 #jmeter.save.saveservice.subresults=true
 471 #jmeter.save.saveservice.assertions=true
 472 jmeter.save.saveservice.latency=true
 473 # Only available with HttpClient4
 474 #jmeter.save.saveservice.connect_time=true
 475 #jmeter.save.saveservice.samplerData=True
 476 #jmeter.save.saveservice.responseHeaders=True
 477 #jmeter.save.saveservice.requestHeaders=True
 478 #jmeter.save.saveservice.encoding=True
 479 jmeter.save.saveservice.bytes=true
 480 # Only available with HttpClient4
 481 #jmeter.save.saveservice.sent_bytes=true
 482 #jmeter.save.saveservice.url=True
 483 #jmeter.save.saveservice.filename=True
 484 #jmeter.save.saveservice.hostname=True
 485 jmeter.save.saveservice.thread_counts=true
 486 #jmeter.save.saveservice.sample_count=True
 487 #jmeter.save.saveservice.idle_time=true
 488 
 489 # Timestamp format - this only affects CSV output files
 490 # legitimate values: none, ms, or a format suitable for SimpleDateFormat
 491 jmeter.save.saveservice.timestamp_format=ms
 492 jmeter.save.saveservice.timestamp_format=yyyy/MM/dd HH:mm:ss.SSS
 493 
 494 # For use with Comma-separated value (CSV) files or other formats
 495 # where the fields‘ values are separated by specified delimiters.
 496 # Default:
 497 #jmeter.save.saveservice.default_delimiter=,
 498 # For TAB, one can use:
 499 #jmeter.save.saveservice.default_delimiter=\t
 500 
 501 # Only applies to CSV format files:
 502 # Print field names as first line in CSV
 503 #jmeter.save.saveservice.print_field_names=true
 504 
 505 # Optional list of JMeter variable names whose values are to be saved in the result data files.
 506 # Use commas to separate the names. For example:
 507 #sample_variables=SESSION_ID,REFERENCE
 508 # N.B. The current implementation saves the values in XML as attributes,
 509 # so the names must be valid XML names.
 510 # By default JMeter sends the variable to all servers
 511 # to ensure that the correct data is available at the client.
 512 
 513 # Optional xml processing instruction for line 2 of the file:
 514 # Example:
 515 #jmeter.save.saveservice.xml_pi=<?xml-stylesheet type="text/xsl" href="../extras/jmeter-results-detail-report.xsl"?>
 516 # Default value:
 517 #jmeter.save.saveservice.xml_pi=
 518 
 519 # Prefix used to identify filenames that are relative to the current base
 520 #jmeter.save.saveservice.base_prefix=~/
 521 
 522 # AutoFlush on each line written in XML or CSV output
 523 # Setting this to true will result in less test results data loss in case of Crash
 524 # but with impact on performances, particularly for intensive tests (low or no pauses)
 525 # Since JMeter 2.10, this is false by default
 526 #jmeter.save.saveservice.autoflush=false
 527 
 528 #---------------------------------------------------------------------------
 529 # Settings that affect SampleResults
 530 #---------------------------------------------------------------------------
 531 
 532 # Save the start time stamp instead of the end
 533 # This also affects the timestamp stored in result files
 534 sampleresult.timestamp.start=true
 535 
 536 # Whether to use System.nanoTime() - otherwise only use System.currentTimeMillis()
 537 #sampleresult.useNanoTime=true
 538 
 539 # Use a background thread to calculate the nanoTime offset
 540 # Set this to <= 0 to disable the background thread
 541 #sampleresult.nanoThreadSleep=5000
 542 
 543 #---------------------------------------------------------------------------
 544 # Upgrade property
 545 #---------------------------------------------------------------------------
 546 
 547 # File that holds a record of name changes for backward compatibility issues
 548 upgrade_properties=/bin/upgrade.properties
 549 
 550 #---------------------------------------------------------------------------
 551 # JMeter Test Script recorder configuration
 552 #
 553 # N.B. The element was originally called the Proxy recorder, which is why the
 554 # properties have the prefix "proxy".
 555 #---------------------------------------------------------------------------
 556 
 557 # If the recorder detects a gap of at least 5s (default) between HTTP requests,
 558 # it assumes that the user has clicked a new URL
 559 #proxy.pause=5000
 560 
 561 # Add numeric prefix to Sampler names (default true)
 562 #proxy.number.requests=true
 563 
 564 # List of URL patterns that will be added to URL Patterns to exclude
 565 # Separate multiple lines with ;
 566 #proxy.excludes.suggested=.*\\.(bmp|css|js|gif|ico|jpe?g|png|swf|woff|woff2)
 567 
 568 # Change the default HTTP Sampler (currently HttpClient4)
 569 # Java:
 570 #jmeter.httpsampler=HTTPSampler
 571 #or
 572 #jmeter.httpsampler=Java
 573 #
 574 # HttpClient4.x
 575 #jmeter.httpsampler=HttpClient4
 576 
 577 # By default JMeter tries to be more lenient with RFC2616 redirects and allows
 578 # relative paths.
 579 # If you want to test strict conformance, set this value to true
 580 # When the property is true, JMeter follows http://tools.ietf.org/html/rfc3986#section-5.2
 581 #jmeter.httpclient.strict_rfc2616=false
 582 
 583 # Default content-type include filter to use
 584 #proxy.content_type_include=text/html|text/plain|text/xml
 585 # Default content-type exclude filter to use
 586 #proxy.content_type_exclude=image/.*|text/css|application/.*
 587 
 588 # Default headers to remove from Header Manager elements
 589 # (Cookie and Authorization are always removed)
 590 #proxy.headers.remove=If-Modified-Since,If-None-Match,Host
 591 
 592 # Binary content-type handling
 593 # These content-types will be handled by saving the request in a file:
 594 #proxy.binary.types=application/x-amf,application/x-java-serialized-object
 595 # The files will be saved in this directory:
 596 #proxy.binary.directory=user.dir
 597 # The files will be created with this file filesuffix:
 598 #proxy.binary.filesuffix=.binary
 599 
 600 #---------------------------------------------------------------------------
 601 # Test Script Recorder certificate configuration
 602 #---------------------------------------------------------------------------
 603 
 604 #proxy.cert.directory=<JMeter bin directory>
 605 #proxy.cert.file=proxyserver.jks
 606 #proxy.cert.type=JKS
 607 #proxy.cert.keystorepass=password
 608 #proxy.cert.keypassword=password
 609 #proxy.cert.factory=SunX509
 610 # define this property if you wish to use your own keystore
 611 #proxy.cert.alias=<none>
 612 # The default validity for certificates created by JMeter
 613 #proxy.cert.validity=7
 614 # Use dynamic key generation (if supported by JMeter/JVM)
 615 # If false, will revert to using a single key with no certificate
 616 #proxy.cert.dynamic_keys=true
 617 
 618 #---------------------------------------------------------------------------
 619 # Test Script Recorder miscellaneous configuration
 620 #---------------------------------------------------------------------------
 621 
 622 # Whether to attempt disabling of samples that resulted from redirects
 623 # where the generated samples use auto-redirection
 624 #proxy.redirect.disabling=true
 625 
 626 # SSL configuration
 627 #proxy.ssl.protocol=TLS
 628 
 629 #---------------------------------------------------------------------------
 630 # JMeter Proxy configuration
 631 #---------------------------------------------------------------------------
 632 # use command-line flags for user-name and password
 633 #http.proxyDomain=NTLM domain, if required by HTTPClient sampler
 634 
 635 #---------------------------------------------------------------------------
 636 # HTTPSampleResponse Parser configuration
 637 #---------------------------------------------------------------------------
 638 
 639 # Space-separated list of parser groups
 640 HTTPResponse.parsers=htmlParser wmlParser cssParser
 641 # for each parser, there should be a parser.types and a parser.className property
 642 
 643 # CSS Parser based on ph-css
 644 cssParser.className=org.apache.jmeter.protocol.http.parser.CssParser
 645 cssParser.types=text/css
 646 
 647 # CSS parser LRU cache size
 648 # This cache stores the URLs found in a CSS to avoid continuously parsing the CSS
 649 # By default the cache size is 400
 650 # It can be disabled by setting its value to 0
 651 #css.parser.cache.size=400
 652 
 653 # Let the CSS Parser ignore all css errors
 654 #css.parser.ignore_all_css_errors=true
 655 
 656 #---------------------------------------------------------------------------
 657 # HTML Parser configuration
 658 #---------------------------------------------------------------------------
 659 
 660 # Define the HTML parser to be used.
 661 # Default parser:
 662 # This new parser (since 2.10) should perform better than all others
 663 # see https://bz.apache.org/bugzilla/show_bug.cgi?id=55632
 664 # Do not comment this property
 665 htmlParser.className=org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
 666 
 667 # Other parsers:
 668 # Default parser before 2.10
 669 #htmlParser.className=org.apache.jmeter.protocol.http.parser.JTidyHTMLParser
 670 # Note that Regexp extractor may detect references that have been commented out.
 671 # In many cases it will work OK, but you should be aware that it may generate
 672 # additional references.
 673 #htmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
 674 # This parser is based on JSoup, it should be the most accurate but less
 675 # performant than LagartoBasedHtmlParser
 676 #htmlParser.className=org.apache.jmeter.protocol.http.parser.JsoupBasedHtmlParser
 677 
 678 #Used by HTTPSamplerBase to associate htmlParser with content types below
 679 htmlParser.types=text/html application/xhtml+xml application/xml text/xml
 680 
 681 #---------------------------------------------------------------------------
 682 # WML Parser configuration
 683 #---------------------------------------------------------------------------
 684 
 685 wmlParser.className=org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
 686 
 687 #Used by HTTPSamplerBase to associate wmlParser with content types below
 688 wmlParser.types=text/vnd.wap.wml
 689 
 690 #---------------------------------------------------------------------------
 691 # Remote batching configuration
 692 #---------------------------------------------------------------------------
 693 # How is Sample sender implementations configured:
 694 # - true (default) means client configuration will be used
 695 # - false means server configuration will be used
 696 #sample_sender_client_configured=true
 697 
 698 # By default when Stripping modes are used JMeter since 3.1 will strip
 699 # response even for SampleResults in error.
 700 # If you want to revert to previous behaviour (no stripping of Responses in error)
 701 # set this property to false
 702 #sample_sender_strip_also_on_error=true
 703 
 704 # Remote batching support
 705 # Since JMeter 2.9, default is MODE_STRIPPED_BATCH, which returns samples in
 706 # batch mode (every 100 samples or every minute by default)
 707 # Note also that MODE_STRIPPED_BATCH strips response data from SampleResult, so if you need it change to
 708 # another mode
 709 # Batch returns samples in batches
 710 # Statistical returns sample summary statistics
 711 # mode can also be the class name of an implementation of org.apache.jmeter.samplers.SampleSender
 712 #mode=Standard
 713 #mode=Batch
 714 #mode=Statistical
 715 #Set to true to key statistical samples on threadName rather than threadGroup
 716 #key_on_threadname=false
 717 #mode=Stripped
 718 #mode=StrippedBatch
 719 #mode=org.example.load.MySampleSender
 720 #
 721 #num_sample_threshold=100
 722 # Value is in milliseconds
 723 #time_threshold=60000
 724 #
 725 # Asynchronous sender; uses a queue and background worker process to return the samples
 726 #mode=Asynch
 727 # default queue size
 728 #asynch.batch.queue.size=100
 729 # Same as Asynch but strips response data from SampleResult
 730 #mode=StrippedAsynch
 731 #
 732 # DiskStore: Serialises the samples to disk, rather than saving in memory
 733 #mode=DiskStore
 734 # Same as DiskStore but strips response data from SampleResult
 735 #mode=StrippedDiskStore
 736 # Note: the mode is currently resolved on the client;
 737 # other properties (e.g. time_threshold) are resolved on the server.
 738 
 739 #---------------------------------------------------------------------------
 740 # JDBC Request configuration
 741 #---------------------------------------------------------------------------
 742 
 743 # String used to indicate a null value
 744 #jdbcsampler.nullmarker=]NULL[
 745 #
 746 # Max size of BLOBs and CLOBs to store in JDBC sampler. Result will be cut off
 747 #jdbcsampler.max_retain_result_size=65536
 748 
 749 # Database validation query
 750 # based in https://stackoverflow.com/questions/10684244/dbcp-validationquery-for-different-databases list
 751 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
 752 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.FBDrivery|org.mariadb.jdbc.Driver|org.sqlite.JDBC|net.sourceforge.jtds.jdbc.Driver
 753 
 754 #---------------------------------------------------------------------------
 755 # OS Process Sampler configuration
 756 #---------------------------------------------------------------------------
 757 # Polling to see if process has finished its work, used when a timeout is configured on sampler
 758 #os_sampler.poll_for_timeout=100
 759 
 760 #---------------------------------------------------------------------------
 761 # TCP Sampler configuration
 762 #---------------------------------------------------------------------------
 763 
 764 # The default handler class
 765 #tcp.handler=TCPClientImpl
 766 #
 767 # eolByte = byte value for end of line
 768 # set this to a value outside the range -128 to +127 to skip eol checking
 769 #tcp.eolByte=1000
 770 #
 771 # TCP Charset, used by org.apache.jmeter.protocol.tcp.sampler.TCPClientImpl
 772 # default to Platform defaults charset as returned by Charset.defaultCharset().name()
 773 #tcp.charset=
 774 #
 775 # status.prefix and suffix = strings that enclose the status response code
 776 #tcp.status.prefix=Status=
 777 #tcp.status.suffix=.
 778 #
 779 # status.properties = property file to convert codes to messages
 780 #tcp.status.properties=mytestfiles/tcpstatus.properties
 781 
 782 # The length prefix used by LengthPrefixedBinaryTCPClientImpl implementation
 783 # defaults to 2 bytes.
 784 #tcp.binarylength.prefix.length=2
 785 
 786 #---------------------------------------------------------------------------
 787 # Summariser - Generate Summary Results - configuration (mainly applies to non-GUI mode)
 788 #---------------------------------------------------------------------------
 789 #
 790 # Comment the following property to disable the default non-GUI summariser
 791 # [or change the value to rename it]
 792 # (applies to non-GUI mode only)
 793 summariser.name=summary
 794 #
 795 # interval between summaries (in seconds) default 30 seconds
 796 #summariser.interval=30
 797 #
 798 # Write messages to log file
 799 #summariser.log=true
 800 #
 801 # Write messages to System.out
 802 #summariser.out=true
 803 
 804 # Ignore SampleResults generated by TransactionControllers
 805 # defaults to true
 806 #summariser.ignore_transaction_controller_sample_result=true
 807 
 808 
 809 #---------------------------------------------------------------------------
 810 # Aggregate Report and Aggregate Graph - configuration
 811 #---------------------------------------------------------------------------
 812 #
 813 # Percentiles to display in reports
 814 # Can be float value between 0 and 100
 815 # First percentile to display, defaults to 90%
 816 #aggregate_rpt_pct1=90
 817 # Second percentile to display, defaults to 95%
 818 #aggregate_rpt_pct2=95
 819 # Second percentile to display, defaults to 99%
 820 #aggregate_rpt_pct3=99
 821 
 822 #---------------------------------------------------------------------------
 823 # BackendListener - configuration
 824 #---------------------------------------------------------------------------
 825 #
 826 # Backend metrics window mode (fixed=fixed-size window, timed=time boxed)
 827 #backend_metrics_window_mode=fixed
 828 # Backend metrics sliding window size for Percentiles, Min, Max
 829 #backend_metrics_window=100
 830 
 831 # Backend metrics sliding window size for Percentiles, Min, Max
 832 # when backend_metrics_window_mode is timed
 833 # Setting this value too high can lead to OOM
 834 #backend_metrics_large_window=5000
 835 
 836 ########################
 837 # Graphite Backend
 838 ########################
 839 # Send interval in second
 840 # Defaults to 1 second
 841 #backend_graphite.send_interval=1
 842 
 843 ########################
 844 # Influx Backend
 845 ########################
 846 
 847 # Send interval in second
 848 # Defaults to 5 seconds
 849 #backend_influxdb.send_interval=5
 850 #Influxdb timeouts
 851 #backend_influxdb.connection_timeout=1000
 852 #backend_influxdb.socket_timeout=3000
 853 #backend_influxdb.connection_request_timeout=100
 854 
 855 #---------------------------------------------------------------------------
 856 # BeanShell configuration
 857 #---------------------------------------------------------------------------
 858 
 859 # BeanShell Server properties
 860 #
 861 # Define the port number as non-zero to start the http server on that port
 862 #beanshell.server.port=9000
 863 # The telnet server will be started on the next port
 864 
 865 #
 866 # Define the server initialisation file
 867 beanshell.server.file=../extras/startup.bsh
 868 
 869 #
 870 # Define a file to be processed at startup
 871 # This is processed using its own interpreter.
 872 #beanshell.init.file=
 873 
 874 #
 875 # Define the intialisation files for BeanShell Sampler, Function and other BeanShell elements
 876 # N.B. Beanshell test elements do not share interpreters.
 877 #      Each element in each thread has its own interpreter.
 878 #      This is retained between samples.
 879 #beanshell.sampler.init=BeanShellSampler.bshrc
 880 #beanshell.function.init=BeanShellFunction.bshrc
 881 #beanshell.assertion.init=BeanShellAssertion.bshrc
 882 #beanshell.listener.init=etc
 883 #beanshell.postprocessor.init=etc
 884 #beanshell.preprocessor.init=etc
 885 #beanshell.timer.init=etc
 886 
 887 # The file BeanShellListeners.bshrc contains sample definitions
 888 # of Test and Thread Listeners.
 889 
 890 #---------------------------------------------------------------------------
 891 # Groovy function
 892 #---------------------------------------------------------------------------
 893 
 894 #Path to Groovy file containing utility functions to make available to __groovy function
 895 #groovy.utilities=
 896 
 897 # Example
 898 #groovy.utilities=bin/utility.groovy
 899 
 900 #---------------------------------------------------------------------------
 901 # MailerModel configuration
 902 #---------------------------------------------------------------------------
 903 
 904 # Number of successful samples before a message is sent
 905 #mailer.successlimit=2
 906 #
 907 # Number of failed samples before a message is sent
 908 #mailer.failurelimit=2
 909 
 910 #---------------------------------------------------------------------------
 911 # CSVRead configuration
 912 #---------------------------------------------------------------------------
 913 
 914 # CSVRead delimiter setting (default ",")
 915 # Make sure that there are no trailing spaces or tabs after the delimiter
 916 # characters, or these will be included in the list of valid delimiters
 917 #csvread.delimiter=,
 918 #csvread.delimiter=;
 919 #csvread.delimiter=!
 920 #csvread.delimiter=~
 921 # The following line has a tab after the =
 922 #csvread.delimiter=    
 923 
 924 #---------------------------------------------------------------------------
 925 # __time() function configuration
 926 #
 927 # The properties below can be used to redefine the default formats
 928 #---------------------------------------------------------------------------
 929 #time.YMD=yyyyMMdd
 930 #time.HMS=HHmmss
 931 #time.YMDHMS=yyyyMMdd-HHmmss
 932 #time.USER1=
 933 #time.USER2=
 934 
 935 #---------------------------------------------------------------------------
 936 # CSV DataSet configuration
 937 #---------------------------------------------------------------------------
 938 
 939 # String to return at EOF (if recycle not used)
 940 #csvdataset.eofstring=<EOF>
 941 #list in https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html
 942 csvdataset.file.encoding_list=UTF-8|UTF-16|ISO-8859-15|US-ASCII
 943 
 944 
 945 #---------------------------------------------------------------------------
 946 # LDAP Sampler configuration
 947 #---------------------------------------------------------------------------
 948 # Maximum number of search results returned by a search that will be sorted
 949 # to guarantee a stable ordering (if more results then this limit are returned
 950 # then no sorting is done). Set to 0 to turn off all sorting, in which case
 951 # "Equals" response assertions will be very likely to fail against search results.
 952 #
 953 #ldapsampler.max_sorted_results=1000
 954 
 955 # Number of characters to log for each of three sections (starting matching section, diff section,
 956 #   ending matching section where not all sections will appear for all diffs) diff display when an Equals
 957 #   assertion fails. So a value of 100 means a maximum of 300 characters of diff text will be displayed
 958 #   (+ a number of extra characters like "..." and "[[["/"]]]" which are used to decorate it).
 959 #assertion.equals_section_diff_len=100
 960 # test written out to log to signify start/end of diff delta
 961 #assertion.equals_diff_delta_start=[[[
 962 #assertion.equals_diff_delta_end=]]]
 963 
 964 #---------------------------------------------------------------------------
 965 # Miscellaneous configuration
 966 #---------------------------------------------------------------------------
 967 # Used to control what happens when you start a test and
 968 # have listeners that could overwrite existing result files
 969 # Possible values:
 970 # ASK : Ask user
 971 # APPEND : Append results to existing file
 972 # DELETE : Delete existing file and start a new file
 973 #resultcollector.action_if_file_exists=ASK
 974 
 975 # If defined, then start the mirror server on the port
 976 #mirror.server.port=8081
 977 
 978 # ORO PatternCacheLRU size
 979 #oro.patterncache.size=1000
 980 
 981 #TestBeanGui
 982 #
 983 #propertyEditorSearchPath=null
 984 
 985 # Turn expert mode on/off: expert mode will show expert-mode beans and properties
 986 #jmeter.expertMode=true
 987 
 988 # Max size of bytes stored in memory per SampleResult
 989 # Ensure you don‘t exceed max capacity of a Java Array and remember
 990 # that the higher it is, the higher JMeter will consume heap
 991 # Defaults to 0, which means no truncation
 992 #httpsampler.max_bytes_to_store_per_request=0
 993 
 994 # Max size of buffer in bytes used when reading responses
 995 # Defaults to 64k
 996 #httpsampler.max_buffer_size=66560
 997 
 998 # Maximum redirects to follow in a single sequence (default 20)
 999 #httpsampler.max_redirects=20
1000 # Maximum frame/iframe nesting depth (default 5)
1001 #httpsampler.max_frame_depth=5
1002 
1003 # Revert to BUG 51939 behaviour (no separate container for embedded resources) by setting the following false:
1004 #httpsampler.separate.container=true
1005 
1006 # If embedded resources download fails due to missing resources or other reasons, if this property is true
1007 # Parent sample will not be marked as failed
1008 #httpsampler.ignore_failed_embedded_resources=false
1009 
1010 #keep alive time for the parallel download threads (in seconds)
1011 #httpsampler.parallel_download_thread_keepalive_inseconds=60
1012 
1013 # Don‘t keep the embedded resources response data : just keep the size and the md5
1014 # default to false
1015 #httpsampler.embedded_resources_use_md5=false
1016 
1017 # List of extra HTTP methods that should be available in select box
1018 #httpsampler.user_defined_methods=VERSION-CONTROL,REPORT,CHECKOUT,CHECKIN,UNCHECKOUT,MKWORKSPACE,UPDATE,LABEL,MERGE,BASELINE-CONTROL,MKACTIVITY
1019 
1020 # The encoding to be used if none is provided (default ISO-8859-1)
1021 #sampleresult.default.encoding=ISO-8859-1
1022 
1023 # CookieManager behaviour - should cookies with null/empty values be deleted?
1024 # Default is true. Use false to revert to original behaviour
1025 #CookieManager.delete_null_cookies=true
1026 
1027 # CookieManager behaviour - should variable cookies be allowed?
1028 # Default is true. Use false to revert to original behaviour
1029 #CookieManager.allow_variable_cookies=true
1030 
1031 # CookieManager behaviour - should Cookies be stored as variables?
1032 # Default is false
1033 #CookieManager.save.cookies=false
1034 
1035 # CookieManager behaviour - prefix to add to cookie name before storing it as a variable
1036 # Default is COOKIE_; to remove the prefix, define it as one or more spaces
1037 #CookieManager.name.prefix=
1038 
1039 # CookieManager behaviour - check received cookies are valid before storing them?
1040 # Default is true. Use false to revert to previous behaviour
1041 #CookieManager.check.cookies=true
1042 
1043 # Netscape HTTP Cookie file
1044 cookies=cookies
1045 
1046 # Ability to switch to Nashorn as default Javascript Engine used by IfController and __javaScript function
1047 # JMeter works as following:
1048 # - JDK >= 8 and javascript.use_rhino=false or not set : Nashorn
1049 # - JDK >= 8 and javascript.use_rhino=true: Rhino
1050 # If you want to use Rhino on JDK8, set this property to true
1051 #javascript.use_rhino=false
1052 
1053 # Number of milliseconds to wait for a thread to stop
1054 #jmeterengine.threadstop.wait=5000
1055 
1056 #Whether to invoke System.exit(0) in server exit code after stopping RMI
1057 #jmeterengine.remote.system.exit=false
1058 
1059 # Whether to call System.exit(1) on failure to stop threads in non-GUI mode.
1060 # This only takes effect if the test was explicitly requested to stop.
1061 # If this is disabled, it may be necessary to kill the JVM externally
1062 #jmeterengine.stopfail.system.exit=true
1063 
1064 # Whether to force call System.exit(0) at end of test in non-GUI mode, even if
1065 # there were no failures and the test was not explicitly asked to stop.
1066 # Without this, the JVM may never exit if there are other threads spawned by
1067 # the test which never exit.
1068 #jmeterengine.force.system.exit=false
1069 
1070 # How long to pause (in ms) in the daemon thread before reporting that the JVM has failed to exit.
1071 # If the value is <= 0, the JMeter does not start the daemon thread
1072 #jmeter.exit.check.pause=2000
1073 
1074 # If running non-GUI, then JMeter listens on the following port for a shutdown message.
1075 # To disable, set the port to 1000 or less.
1076 #jmeterengine.nongui.port=4445
1077 #
1078 # If the initial port is busy, keep trying until this port is reached
1079 # (to disable searching, set the value less than or equal to the .port property)
1080 #jmeterengine.nongui.maxport=4455
1081 
1082 # How often to check for shutdown during ramp-up (milliseconds)
1083 #jmeterthread.rampup.granularity=1000
1084 
1085 #Should JMeter expand the tree when loading a test plan?
1086 # default value is false since JMeter 2.7
1087 #onload.expandtree=false
1088 
1089 #JSyntaxTextArea configuration
1090 #jsyntaxtextarea.wrapstyleword=true
1091 #jsyntaxtextarea.linewrap=true
1092 #jsyntaxtextarea.codefolding=true
1093 # Set 0 to disable undo feature in JSyntaxTextArea
1094 #jsyntaxtextarea.maxundos=50
1095 # Change the font on the (JSyntax) Text Areas. (Useful for HiDPI screens)
1096 #jsyntaxtextarea.font.family=Hack
1097 #jsyntaxtextarea.font.size=14
1098 
1099 # Set this to false to disable the use of JSyntaxTextArea for the Console Logger panel
1100 #loggerpanel.usejsyntaxtext=true
1101 
1102 # Maximum size of HTML page that can be displayed; default=10 mbytes
1103 # Set to 0 to disable the size check and display the whole response
1104 #view.results.tree.max_size=10485760
1105 
1106 # Order of Renderers in View Results Tree
1107 # Note full class names should be used for non jmeter core renderers
1108 # For JMeter core renderers, class names start with . and are automatically
1109 # prefixed with org.apache.jmeter.visualizers
1110 view.results.tree.renderers_order=.RenderAsText,.RenderAsRegexp,.RenderAsBoundaryExtractor,.RenderAsCssJQuery,.RenderAsXPath,org.apache.jmeter.extractor.json.render.RenderAsJsonRenderer,.RenderAsHTML,.RenderAsHTMLFormatted,.RenderAsHTMLWithEmbedded,.RenderAsDocument,.RenderAsJSON,.RenderAsXML
1111 
1112 # Maximum number of results in the results tree
1113 # Set to 0 to store all results (might consume a lot of memory)
1114 #view.results.tree.max_results=500
1115 
1116 # Maximum size of Document that can be parsed by Tika engine; defaut=10 * 1024 * 1024 (10MB)
1117 # Set to 0 to disable the size check
1118 #document.max_size=0
1119 
1120 #JMS options
1121 # Enable the following property to stop JMS Point-to-Point Sampler from using
1122 # the properties java.naming.security.[principal|credentials] when creating the queue connection
1123 #JMSSampler.useSecurity.properties=false
1124 
1125 # Set the following value to true in order to skip the delete confirmation dialogue
1126 #confirm.delete.skip=false
1127 
1128 # Used by JSR223 elements
1129 # Size of compiled scripts cache
1130 #jsr223.compiled_scripts_cache_size=100
1131 
1132 #---------------------------------------------------------------------------
1133 # Classpath configuration
1134 #---------------------------------------------------------------------------
1135 
1136 # List of directories (separated by ;) to search for additional JMeter plugin classes,
1137 # for example new GUI elements and samplers.
1138 # Any jar file in such a directory will be automatically included,
1139 # jar files in sub directories are ignored.
1140 # The given value is in addition to any jars found in the lib/ext directory.
1141 # Do not use this for utility or plugin dependency jars.
1142 #search_paths=/app1/lib;/app2/lib
1143 
1144 # List of directories that JMeter will search for utility and plugin dependency classes.
1145 # Use your platform path separator to separate multiple paths.
1146 # Any jar file in such a directory will be automatically included,
1147 # jar files in sub directories are ignored.
1148 # The given value is in addition to any jars found in the lib directory.
1149 # All entries will be added to the class path of the system class loader
1150 # and also to the path of the JMeter internal loader.
1151 # Paths with spaces may cause problems for the JVM
1152 #user.classpath=../classes;../lib
1153 
1154 # List of directories (separated by ;) that JMeter will search for utility
1155 # and plugin dependency classes.
1156 # Any jar file in such a directory will be automatically included,
1157 # jar files in sub directories are ignored.
1158 # The given value is in addition to any jars found in the lib directory
1159 # or given by the user.classpath property.
1160 # All entries will be added to the path of the JMeter internal loader only.
1161 # For plugin dependencies this property should be used instead of user.classpath.
1162 #plugin_dependency_paths=../dependencies/lib;../app1/;../app2/
1163 
1164 # Classpath finder
1165 # ================
1166 # The classpath finder currently needs to load every single JMeter class to find
1167 # the classes it needs.
1168 # For non-GUI mode, it‘s only necessary to scan for Function classes, but all classes
1169 # are still loaded.
1170 # All current Function classes include ".function." in their name,
1171 # and none include ".gui." in the name, so the number of unwanted classes loaded can be
1172 # reduced by checking for these. However, if a valid function class name does not match
1173 # these restrictions, it will not be loaded. If problems are encountered, then comment
1174 # or change the following properties:
1175 classfinder.functions.contain=.functions.
1176 classfinder.functions.notContain=.gui.
1177 
1178 
1179 #---------------------------------------------------------------------------
1180 # Additional property files to load
1181 #---------------------------------------------------------------------------
1182 
1183 # Should JMeter automatically load additional JMeter properties?
1184 # File name to look for (comment to disable)
1185 user.properties=user.properties
1186 
1187 # Should JMeter automatically load additional system properties?
1188 # File name to look for (comment to disable)
1189 system.properties=system.properties
1190 
1191 # Comma separated list of files that contain reference to templates and their description
1192 # Path must be relative to JMeter root folder
1193 #template.files=/bin/templates/templates.xml
1194 
1195 
1196 #---------------------------------------------------------------------------
1197 # Thread Group Validation feature
1198 #---------------------------------------------------------------------------
1199 
1200 # Validation is the name of the feature used to rapidly validate a Thread Group runs fine
1201 # Default implementation is org.apache.jmeter.gui.action.validation.TreeClonerForValidation
1202 # It runs validation without timers, with 1 thread, 1 iteration and Startup Delay set to 0
1203 # You can implement your own policy that must extend org.apache.jmeter.engine.TreeCloner
1204 # JMeter will instantiate it and use it to create the Tree used to run validation on Thread Group
1205 #testplan_validation.tree_cloner_class=org.apache.jmeter.validation.ComponentTreeClonerForValidation
1206 
1207 # Number of threads to use to validate a Thread Group
1208 #testplan_validation.nb_threads_per_thread_group=1
1209 
1210 # Ignore BackendListener when validating the thread group of plan
1211 #testplan_validation.ignore_backends=true
1212 
1213 # Ignore timers when validating the thread group of plan
1214 #testplan_validation.ignore_timers=true
1215 
1216 # Number of iterations to use to validate a Thread Group
1217 #testplan_validation.number_iterations=1
1218 
1219 # Force throuput controllers that work in percentage mode to be a 100%
1220 # Disabled by default
1221 #testplan_validation.tpc_force_100_pct=false
1222 
1223 #---------------------------------------------------------------------------
1224 # Think Time configuration
1225 #---------------------------------------------------------------------------
1226 
1227 #
1228 # Apply a factor on computed pauses by the following Timers:
1229 # - Gaussian Random Timer
1230 # - Uniform Random Timer
1231 # - Poisson Random Timer
1232 #
1233 #timer.factor=1.0f
1234 
1235 # Default implementation that create the Timer structure to add to Test Plan
1236 # Implementation of interface org.apache.jmeter.gui.action.thinktime.ThinkTimeCreator
1237 #think_time_creator.impl=org.apache.jmeter.thinktime.DefaultThinkTimeCreator
1238 
1239 # Default Timer GUI class added to Test Plan by DefaultThinkTimeCreator
1240 #think_time_creator.default_timer_implementation=org.apache.jmeter.timers.gui.UniformRandomTimerGui
1241 
1242 # Default constant pause of Timer
1243 #think_time_creator.default_constant_pause=1000
1244 
1245 # Default range pause of Timer
1246 #think_time_creator.default_range=100
1247 
1248 
1249 # Change this parameter if you want to override the APDEX satisfaction threshold.
1250 jmeter.reportgenerator.apdex_satisfied_threshold=500
1251 
1252 # Change this parameter if you want to override the APDEX tolerance threshold.
1253 jmeter.reportgenerator.apdex_tolerated_threshold=1500
1254 
1255 #---------------------------------------------------------------------------
1256 # Naming Policy configuration
1257 #---------------------------------------------------------------------------
1258 
1259 # Prefix used when naming elements
1260 #naming_policy.prefix=
1261 # Suffix used when naming elements
1262 #naming_policy.suffix=
1263 
1264 # Implementation of interface org.apache.jmeter.gui.action.TreeNodeNamingPolicy
1265 #naming_policy.impl=org.apache.jmeter.gui.action.impl.DefaultTreeNodeNamingPolicy
1266 
1267 #---------------------------------------------------------------------------
1268 # Help Documentation
1269 #---------------------------------------------------------------------------
1270 
1271 # Switch that allows using Local documentation opened in JMeter GUI
1272 # By default we use Online documentation opened in Browser
1273 #help.local=false
View Code

 技术图片

 

2、命令行执行

 技术图片

 

 

 

jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]

jmx file脚本文件

result file 生成的jtl测试结果文件

 例:

1 jmeter -n -t C:\Users\Administrator\Desktop\HC_API\CPOC\chargePointConnector.jmx -l C:\Users\Administrator\Desktop\HC_API\CPOC\report\html.jtl -e -o C:\Users\Administrator\Desktop\HC_API\CPOC\result

技术图片

 

 技术图片

 

Jmeter命令行执行生成HTML报告

标签:add   clu   16px   field   body   nan   xtend   represent   run   

原文地址:https://www.cnblogs.com/zibinchen/p/12373183.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!