JMeter Getting Started

Source: Internet
Author: User
Tags windows support

  • Download and install
    • : http://jmeter.apache.org/download_jmeter.cgi
    • Download release version directly, unzip to use
      • Run directly in MAC, Linux: JMeter file
      • Run: Jmeter.bat file in Windows
  • Environmental requirements
    • JVM6 or above
    • Operating system
      • Linux, MAC, Windows support, specific details please see: http://wiki.apache.org/jmeter/JMeterAndOperatingSystemsTested
  • Example: Using JMeter to verify the return content of an interface request
    • Search for 1 from http://zzk.cnblogs.com to verify the contents of the results page: enough to continuously output 0
    • Request interface:http://zzk.cnblogs.com/s?w=1&t=b
  • Steps
    • New "Thread Group", named: Request Content Validation
      • Other options take the default
    • New "Sampler--http request" in thread group, named: request content
      • Server name or IP:zzk.cnblogs.com
      • Path:/s?w=1&t=b
      • Other options take the default
    • New "assert-response assertion" in HTTP requests, naming: Content assertion validation
      • Click "Add" in "mode to test" and enter " enough output 0" in a new line
      • Other options take the default

The Request Content verification feature has been completed as of the steps above. Click on the "Start" button in the interface and the JMeter is running normally. Log information:

2015/08/06 20:07:14 info-jmeter.util.bsftestelement:registering jmeter version of JavaScript engine as Work-round for BSF-22 2015/08/06 20:07:15 Info-jmeter.protocol.http.sampler.httpsamplerbase:cannot Find ClassName property for HTMLP Arser, using default 2015/08/06 20:07:15 Info-jmeter.protocol.http.sampler.httpsamplerbase:parser for text/html are 20 15/08/06 20:07:15 Info-jmeter.protocol.http.sampler.httpsamplerbase:parser for Application/xhtml+xml was 2015/08/06 20 : 07:15 info-jmeter.protocol.http.sampler.httpsamplerbase:parser for Application/xml is 2015/08/06 20:07:15 INFO-JM Eter.protocol.http.sampler.HTTPSamplerBase:Parser for Text/xml is 2015/08/06 20:07:15 info-jmeter.protocol.http.samp Ler. Httpsamplerbase:parser for TEXT/VND.WAP.WML is Org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2015/08/06 20:07:15 info-jmeter.gui.util.menufactory:skipping Org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui 2015/08/06 20:07:15 INFO-JMEter.gui.util.MenuFactory:Skipping Org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui 2015/08/06 20:07:15 Info-jorphan.exec.keytoolutils:keytool found at ' keytool ' 2015/08/06 20:07:15 warn-jmeter.protocol.http.pr Oxy. Proxycontrol:http (S) Test Script Recorder SSL Proxy would use the keys that could not work for embedded resources in File/users /yjshi/downloads/apache-jmeter-2.13/bin/proxyserver.jks 2015/08/06 20:07:15 Info-jmeter.samplers.sampleresult: Note:sample timestamps is START times 2015/08/06 20:07:15 Info-jmeter.samplers.sampleresult:sampleresult.default.enc Oding is set to Iso-8859-1 2015/08/06 20:07:15 info-jmeter.samplers.sampleresult:sampleresult.usenanotime=true 2015/08 /06 20:07:15 info-jmeter.samplers.sampleresult:sampleresult.nanothreadsleep=5000 2015/08/06 20:10:31 info-jmeter.se Rvices. Fileserver:default base= '/users/yjshi ' 2015/08/06 20:10:31 info-jmeter.services.fileserver:set new base= '/Users/yjsh I/desktop ' 2015/08/06 20:10:31 INFO  -Jmeter.save.SaveService:Testplan (JMX) version:2.2.  Testlog (JTL) version:2.2 2015/08/06 20:10:31 info-jmeter.save.saveservice:using saveservice Properties File encoding UTF-8 2015/08/06 20:10:31 info-jmeter.save.saveservice:using saveservice Properties file version 1656252 2015/08/06 2 0:10:31 info-jmeter.save.saveservice:using Saveservice Properties version 2.8 2015/08/06 20:10:31 Info-jmeter.save. Saveservice:all Converter versions present and correct 2015/08/06 20:10:31 Info-jmeter.engine.standardjmeterengine:li Steners'll be started after enabling running version 2015/08/06 20:10:31 info-jmeter.engine.standardjmeterengine:to Revert to the earlier behaviour, define Jmeterengine.startlistenerslater=false 2015/08/06 20:10:31 INFO-JMETER.ENGINE.S Tandardjmeterengine:running the test! 2015/08/06 20:10:31 info-jmeter.samplers.sampleevent:list of Sample_variables: [] 2015/08/06 20:10:31 INFO-JMETER.S Amplers. Sampleevent:list of Sample_variables: [] 2015/08/06 20:10:31 info-jmeter.gui.util.jmetermenubar:setrunning (true,*local*) 2015/08/06 20:10:31 info-jmeter.en Gine. Standardjmeterengine:starting threadgroup:1: Thread Group 2015/08/06 20:10:31 info-jmeter.engine.standardjmeterengin E:starting 1 threads for group Thread group. 2015/08/06 20:10:31 Info-jmeter.engine.standardjmeterengine:thread would continue on error 2015/08/06 20:10:31 INFO- Jmeter.threads.ThreadGroup:Starting Thread Group number 1 threads 1 ramp-up 1 perthread 1000.0 delayedstart=false 2015/08 /06 20:10:31 info-jmeter.threads.jmeterthread:jmeterthread.startearlier=true (see jmeter.properties) 2015/08/06 20:10:31 info-jmeter.threads.jmeterthread:running Postprocessors in forward order 2015/08/06 20:10:31 info-jmeter.t Hreads. threadgroup:started Thread Group number 1 2015/08/06 20:10:31 info-jmeter.engine.standardjmeterengine:all thread Grou PS has been started 2015/08/06 20:10:31 Info-jmeter.threads.jmeterthread:thread started:Thread Group 1-1 2015/08/06 20:10:31 info-jmeter.protocol.http.sampler.httphcabstractimpl:local host = CNyjshi.local 2   015/08/06 20:10:31 info-jmeter.protocol.http.sampler.httphc4impl:http Request Retry count = 0 2015/08/06 20:10:31 INFO -Jmeter.protocol.http.sampler.HTTPHC4Impl:Setting up HTTPS trustall scheme 2015/08/06 20:10:31 INFO-JMETER.UTIL.JSS esslmanager:using default SSL protocol:tls 2015/08/06 20:10:31 info-jmeter.util.jssesslmanager:ssl Session Context: Per-thread 2015/08/06 20:10:32 info-jmeter.threads.jmeterthread:thread is done:thread Group 1-1 2015/08/06 20:10:32 I Nfo-jmeter.threads.jmeterthread:thread finished:thread Group 1-1 2015/08/06 20:10:32 INFO-JMETER.ENGINE.STANDARDJM Eterengine:notifying test listeners of end of Test 2015/08/06 20:10:32 info-jmeter.gui.util.jmetermenubar:setrunning (  false,*local*)

In order to improve the JMeter report content, add the corresponding "listener"

    • Added "listener"--"view result tree", "aggregated report", "assertion result", three items added (Common listener module)
    • Click on the "Start" button again and the listener you just added will have the result output
      • "View results Tree" "request specific results and content": To see the specific "Sampler results", "request", "Response data" (to see if the HTTP request passed correctly)
      • Aggregated report aggregated Statistics Results report: Aggregated statistical reports for the execution results of this launch, including request time, throughput, error rate (data can be taken from here when the report is written)
      • Assertion result report for all assertions: results for all assertions involved in this launch (pass or no)

JMeter Getting Started

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.