Home > other >  MAC environment JMeter installation and configuration (a)
MAC environment JMeter installation and configuration (a)

Time:10-05

Regardless of the operating system is Windows, Unix (such as Mac OS), JMeter environment configuration is similar to the basis of need, in this paper, the JMeter for Mac installation and environment configuration, a Mac (small white sad tears)


A, JMeter download
https://jmeter.apache.org/download_jmeter.cgi
Enter the website to download JMeter install package, extract can


Second, parameters configuration
1, JMeter is based on JAVA development, so the first thing to check whether the installed the JAVA JDK
Java - versio find terminal, input, if see below results, said installed


2, configuration variables, there are two ways to
The first is that through the terminal, the input sudo vim/etc/profile; In accordance with the prompted for a password, press the I, into edit mode, enter the following configuration information, (JAVA_HOME, JMETER_HOME according to the actual path for your computer to complete)
Press esc to save, enter the wq! Save the can,


JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0 JDK/Contents/Home"
Export JAVA_HOME
CLASS_PATH="$JAVA_HOME/lib"
JMETER_HOME="/Volumes/HDD/software test tools/JMeter/apache JMeter - 5.2.1"
PATH=". $PATH: $JAVA_HOME/bin: $JMETER_HOME/bin "

The second is more rough, directly find the path/private/etc/profile profile file, modify the file directly,

Open the visit, according to the Command + shift + G, input in the input box/etc, find the profile file, double-click to open, add new parameters to the final,

3, verify the configuration successfully
Open a terminal and into the bin file, under the JMeter input sh JMeter, can open,


Three, the basic operation
1, recording script
Older has introduced some of the data to be recorded script this function, maybe we use much in the practical work, I am simple, generally two ways
One is that JMeter configuration agent for recording,
Agents set up first, there are two kinds of proxy, an agent is set up the system, one is to set the browser proxy, the following is a set of system agent,
1.1 find network - "select advanced Settings -" Settings page agent


1.2 open the JMeter, add the thread group (test plan - "add -" Threads (Users) - "thread group)
Add the HTTP proxy server (test plan - "add -" the test element - "HTTP proxy server)

1.3 set up the proxy server, click record,
Port configuration of proxy port before writing; Fill in the record of the url
Must choose target controller, choice of no pop-up prompt error,



The second is, by other recording tool to record, save for JMX documentation, JMeter import,
Mac was sad, Badboy does not support, can be recorded using blazemeter plug-in installed on Chrome,


  • Related