Jmeter test step with concurrent record time

1, we must first install the JVM, confirmation is not installed and configured, you can enter the command "java -version" Query

2, Jmeter downloaded from the official website, extract

3, according to their own script or recording interface documentation / scripting interface to capture get tested (Note: the essence is through the analog interface protocol browser access to the server)

4, configure the number of threads, each person on behalf of a number of analog operation, if the computer's configuration is not very high, or to test a large number of concurrent, distributed approach would need to use the pressure test. Pressure measurement principle is distributed in a network segment, controlled by a computer as a machine, several control another computer to execute test scripts. Distributed pressure measurement configuration operation is actually very simple, is the main configuration file and start jmeter.properties remote jmeter-server, but if the operation for the first time, it may be a bit difficult, because I feel a little tutorial official difficult to understand, mainly in three steps

(1) Open jmeter.properties, search remote_hosts =, the original IP change ip agent requires remote control (Note: If you also need to participate in testing the machine, it can fill in the IP of the machine), the server .rmi.ssl.disable = False into server.rmi.ssl.disable = true

  (2) Start jmeter-server

(3) Start manipulation jmeter, open the script to be tested, if there is parameterized file, you need to pay attention to the problem of the path, because the parameter file is required on the agent machine, click [Run] - Remote start all all

5, if it is a new project for the performance test, we can discuss the possibility of peak demand and staff, if you really do not know what will peak with the general formula. If the project had been on the line, you can design scene based on experience

6, if you want to set up multiple scenario testing, should be noted that the order of execution of the various components, a reasonable set the scene (this requires a little thought, it is not difficult, you can follow video tutorials or online operations to understand)

7, a tool needs to be installed to monitor the measured performance monitoring server CPU, the operating bandwidth, memory, etc., such as zabbix. This can be used as an aid to analyze the test results

8, analysis of test results, performance tuning

In short: the entire process of testing and operation and maintenance are required to develop close communication. So that efficiency will be much higher. Whether it is recording a script or write a script, I think all the same, in essence, are tested by the configuration interface, but the recorded script usually need to change a lot of content, so be sure to be familiar with the role of the component, which is the most basic Oh.

 

Guess you like

Origin www.cnblogs.com/kittyy/p/11670769.html