Jmeter Learning (1) -- Environment Configuration

Source: Internet
Author: User

 

Preface:

I recently resigned from my previous company and joined an outsourcing company to perform interface tests. Since I only used soapui and postman to perform interface tests (initial requests), during this holiday, I tried jmeter.

Old rules: first understand the background of jmeter (The following two paragraphs are found online)

Apache jmeter is a Java-based stress testing tool developed by Apache. Used for stress testing of software, which was initially designed for Web application testing, but subsequently extended to other testing areas. It can be used to test static and dynamic resources, such as static files, Java small service programs, CGI scripts, Java objects, databases, and FTP servers. Jmeter can be used to simulate huge loads on servers, networks, or objects, from different pressure categories to test their strength and analyze the overall performance. In addition, jmeter can perform functional/regression tests on the application and verify that your program returns the expected results by creating scripts with assertions. To maximize flexibility, jmeter allows the use of regular expressions to create assertions.

Apache jmeter can be used to test the performance of static and dynamic resources (such as files, Servlets, Perl scripts, Java objects, databases and queries, and FTP servers. It can be used to simulate heavy loads on servers, networks, or objects to test their strength or analyze the overall performance under different pressure types. You can use it for Graphic analysis of performance or test your server/script/object in high concurrency load.

---- Baidu

Configure the environment (take the latest jmeter5.0 download as an example)

I. Configure the JDK environment (I have already configured the environment when using ADB. Here I will briefly describe the specifics. Baidu is also very simple)

1. My computer is win7 system, first download JDK package, I download version 1.8, refer to: https://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html

2. After installation, configure the environment variables, refer to the link: https://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html

The default installation path (if changed, remember the path). Take c: \ Program Files \ Java as an example. The environment variable for advanced JDK configuration on the computer is as follows:

Create a java_home variable separated by a comma (;) and enter c: \ Program Files \ Java \ jdk1.8.0 _ 181

Create a new path variable and separate it with the; Sign: % java_home % \ bin; % java_home % \ JRE \ bin;

Create a new classpath variable separated by a comma (;) and fill in:.; % java_home % \ Lib \ tools. Jar (note the first one)

3. Check whether the configuration is successful. Run CMD and enter Java-version (there is a space between Java and-version)

If the version information is displayed, the installation and configuration are successful.

 

2. jmeter Environment Construction

1. Download The jmeter package, Reference Path: http://jmeter.apache.org/download_jmeter.cgi,

Why use this package, not very clear, Data Portal: https://www.cnblogs.com/richered/p/8324039.html

 

 

 

2. jmeter environment variable Configuration:
Variable name: jmeter_home
Variable value: D: \ normal \ apache-jmeter-5.0 \ bin (based on your own decompression directory, the author uses the jmeter5.0 Version)
Variable name: classpath
Variable value: % jmeter_home % \ Lib \ ext \ apachejmeter_core.jar; % jmeter_home % \ Lib \ jorphan. jar; % jmeter_home % \ Lib/logkit-2.0.jar;


OK, environment variable configuration ends, you can find the jmeter. BAT file under D: \ normal \ apache-jmeter-5.0 \ bin (bin directory under the installation directory), right click to run as administrator. The following interface indicates that jmter is successfully configured. We can work overtime happily.

 

 

3. Set Language

Do you think you can enjoy the best (overtime) after installation? No, no. We also need to set the text as a Chinese character that we are good.

Start jmeter to find options, choose language, and Chinese (select it from simplified and Traditional Chinese)

 

There are also other settings, the portal: 79603887

 

Jmeter Learning (1) -- Environment Configuration

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.