JMeter Learning (ii) Recording script, JMeter learning recording script
Environment
Badboy Version 2.1.1
jdk:1.7.0_67
Apache JMeter-2.11
----------------------------------------------------------------------------------------------------
JMeter recording scripts There are several ways, the most common method is to us
In Linux using Jmeter To do performance testing requires 4 prerequisites, these 4 prerequisites have been mentioned in the previous document, repeat the deepening impression:(1) locally installed Xshell reference securecrt-conversion key-xshell-Configuration service-Log in to a remote Linux server using Xshell(2) Linux has a Java operating Environment Reference "jmeter-installation jdk-configuration
In general, the programming tools IDE provides the appropriate debugging modules for developers to use in order to locate the problem more quickly. So what debugging tools does JMeter provide for us to use while jmeter writing test scripts?JMeter commonly used debuggers have the following five kinds:1. View tree: See the result trees. Including request informatio
Official website: http://jmeter.apache.org/building.html1, in Apach official website download source code: http://jmeter.apache.org/download_jmeter.cgiApache-jmeter-2.11_src.tgz(try to download the latest version), unzip it after downloading2, this machine follows ant: :http://ant.apache.orgAnt Installation Method:Http://www.cnblogs.com/yuzhongwusan/archive/2013/03/26/2982411.html3, the understanding and introduction of Build.xml file: Http://zh
The JMeter test plan has an option called the "function test mode", which , if selected, causes the JMeter to record every sampled data returned from the server. If you select a file in the test listener, the data will be written to the file. This is useful if you try a smaller test to ensure that the JMeter is configured correctly and that your server is returni
Article content reproduced in: http://lib.csdn.net/article/softwaretest/25700, and add personal someThis article opens the journey for developing a plugin for jmeter, and we choose to use the function component as the starting object for plug-in development, and in the previous chapters we divide it into non-GUI components, and the reason to choose it is not only because the function plugin is minimalist in terms of development, And in the actual use
Aggregation reports are one of the most highly used listeners in JMeter use, and can be added by right-clicking and selecting Add/Listener/aggregate reports. After executing the JMeter script, the aggregation report appears as follows:The columns are defined as follows:Label: Tag name, organized as: {Thread Group name}:{http request name}, can be simply understood as HTTP request name# Samples: Total number
How to create different CSV files for different JMeter engine:1, if you need more than JMeter engine to read different CSV files, you can use a variable to distinguish${__p (InstanceID)}, the value of InstanceID is starting from 1, corresponding to each jmeter enginesIf you use two JMeter engine, you can define two fil
multiple threads for concurrent testing, therefore, random numbers are very important. Common functions are: (1) _ random generates random integers; (2) _ randomstring generates random strings;
Set the number of concurrent threads in the thread group to 10000. Save the thread and run it. The graphic result is as follo
Before using JMeter to do performance testing, basically use their own laptop.The following analysis is carried out considering the network transmission and utilization of system resources:1 on the notebook, start-cmd "ping Server" to get the transfer time. "Ping the Server" on a Linux machine to get the transmission time, the two time is similar, think does not affect the test result2 generally I used to test the Linux test machine and notebook compu
Copyright Disclaimer: During reprinting, please use hyperlinks to indicate the original source and author information of the article and this statementHttp://zlfoxy.blogbus.com/logs/16785336.html
7. Create a database test plan
In this section, you will learn how to create a basic test plan to test a database server. you will create ten users to send 5 SQL requests to the database server. at the same time, you will tell the user to run the test three times. therefore,
JMeter Learning (2) recording script, jmeter learning recording script
Environment
Badboy version 2.1.1
JDK: 1.7.0 _ 67
Apache JMeter-2.11
Bytes ----------------------------------------------------------------------------------------------------
JMeter recording scripts can be used in multiple ways. The most common me
JMeter is a Java-written software feature and functionality. The ability to test the tool, its recording script is too clumsy and complex. Badboy is a dynamic application testing tool developed in C + +, which has powerful screen recording and playback functions, and provides graphical results analysis function, just to compensate for the shortcomings of JMeter. Therefore, doing web testing using these two
I. Using JMeter to send gzip dataSometimes we need to impersonate the client after compressing the data, sending (POST) to the server side. Usually this happens on the mobile terminal. The benefit of doing so is that you can save traffic. Of course, the data returned by the server can also be in gzip format, and the terminal needs to be decompressed before the data is displayed. The same is to save network traffic.1. First we put the data to post, sav
the corresponding "value".There are several ways to set parameter values: 1. Use the function in JMeter to get the parameter value, __random,__threadnum,__csvread,__stringfromfile, the method is called as follows: ${__random (,,)},$,${__ Csvread (,)},${__stringfromfile (,,,)}. See the use of the JMeter function, you can find the JMeter function on the Function
the corresponding "value".There are several ways to set parameter values: 1. Use the function in JMeter to get the parameter value, __random,__threadnum,__csvread,__stringfromfile, the method is called as follows: ${__random (,,)},$,${__ Csvread (,)},${__stringfromfile (,,,)}. See the use of the JMeter function, you can find the JMeter function on the Function
Previously wrote an article through the "HTTP Cookie Manager" to implement the login state operation, you need to configure each key-value pair (as shown), relatively cumbersome configuration. In fact, we can also use the "HTTP header Manager" to add Cookie information in order to achieve the login state operation.The procedure is as follows:1. Obtain a cookie (via browser, as shown in the following Firefox browser), for example, to obtain cookie information via the browser and save to text Cook
Recently, people often asked JMeter 3.0 when using the generated HTML report chart in the Chinese garbled problem. Here, a brief talk about the solution of the method.Information about the encoding is as follows:1, check the control CSV, XML and other configuration results file generation, read the file encoding format is correct.Configuration file path: ${jmeter_home}/bin/saveservice.properties, the corresponding information is as follows: 2, view $
Report Dashboard: extension modules provided after JMeter3.0, support for drawing graphs and statistics from the test plan, and generating graphical reports of HTML page formats.
Quick Start DemoFirst, prepare the test plan Mock_api. jmxPrepare a simple test plan, such as request an interface Http://10.1.102.75:8000/mock/api/jmeter, return {"Code": 1, "MSG": "OK"}Ii. execute the test and generate the report at the end of the testcommand-line form
Generally own manual settings JMeter will be more troublesome, if one side of the operation of the page, submit the form, while the ability to automatically generate JMeter script, it is very convenient; BadBoy: Record jmeter script; Donwload url:http:// The Www.badboy.com.au/download/add Badboy interface is as follows:
We can enter the address in the field o
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.