Only use Jmeter software to install and download, and share super detailed tutorials that automatically record scripts

Only use Jmeter software to install and download, and automatically record scripts with super detailed tutorials to share

the article directory

360 Browser – Recording
Google Chrome – Recording

foreword

      As a test novice who has just entered the industry for a few months, I want to share my learning experience. Because when Jmeter writes scripts, I feel that there are many places that need to be debugged. But mastering how to write and debug scripts is fundamental. A few days ago, I used my study time to study how to record scripts. During the test, there are many points that need to be tested, but the interface is fixed. So after recording the script, this can be reused, of course, it needs to be debugged according to the test requirements later. The following is the experience summed up in the past two days, I hope it can help you~

1. What is the basic introduction of Jmeter

①-Official meaning: Apache JMeter is a Java-based stress testing tool developed by the Apache organization. Used for stress testing software, it was originally designed for web application testing, but later expanded to other testing areas. It can be used to test static and dynamic resources such as static files, Java servlets, CGI scripts, Java objects, databases, FTP servers, and more.
②—Function: Open source and free, support simple interface, high performance and practicability, all applicable systems: windows, mac, linux systems.

2. Jmeter download, installation steps & environment configuration

Official website address: Apache JMeter - Download Apache JMeter

Step 1: Select Download Releases on the left

insert image description here

Step 2: Select the corresponding version according to the computer

insert image description here

Step 3: Configure the environment. This computer----properties-about-advanced system settings----environment variable {1, address path; 2, increase classpath fixed variable}

insert image description here

%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_HOME%\lib/logkit-2.0.jar;
add classpath fixed variable, click OK

insert image description here

Three, Jmter's basic recording script method

1. To open Jmeter, click the suffix bat file in the bin directory to open it

insert image description here

** After opening, there is a black command console at the back, and a console will appear after 3 seconds, as shown in the figure

insert image description here

Steps: (1) Add Thread Group
      (2) Test Plan----Add----Non-Test Component----HTTP Proxy Server
      (3) Thread Group-----Add----Logic Controller -----RecordingController
      (4)ThreadGroup----Add----Sampler
      (5)ThreadGroup----Add----Listener

After adding everything, it is almost such an interface.

Pay attention to add the address of the page to be recorded in the http request: protocol, server name, request, path

insert image description here

Click on the HTTP proxy server (1) to add the corresponding port number 8888 (2) Target controller: test plan-thread group-recording controller
(3) Grouping: put a new controller into each group Note ----- Target controllers and groups are just for convenient storage and classification of recorded scripts

insert image description here

The above is to set the configuration on the Jmeter software, now let’s add a proxy server in Google Chrome. Computer server IP address + port number (note that this IP address and port number are the same as those set earlier)

insert image description here

Then start in the HTTP proxy server

insert image description here

Finally, click the HTTP proxy server, click Start, and then open the corresponding website to log in, and you can have the corresponding display

insert image description here

The above is the whole process of my operation with Google Chrome, and it is the same with 360 browser. Click to set the proxy, and the steps are similar to those of Google. But it should be noted that a sequential operation is enough.

Four. Summary

In the process of operation, I have summarized several failure handling methods that cannot record scripts:

【1】Follow the steps carefully, and don’t miss the details
【2】Sometimes it fails because of frequent clicks
【3】Re-import the certificate in the bin file
【4】Check whether the port number is occupied, if it is occupied, please replace* *

Guess you like

Origin blog.csdn.net/qq_44361142/article/details/126933763