Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

Time:2021-2-23

preface

Three weeks after graduation, I thought I should have a better idea of time and task. After searching the Internet for a long time, I finally found someone who can work in the companywindow,mac,ios,androidCompatible onTime management software, time sequence

Of course, as a software engineer, how can we lack ittesting softwareWhat a recommendationJMeter

Also seeNo code is required, can realize the website of small programRice chopsticks

Last but not least, AmwayLine target platform, website for penetration test practice (hacker website)Through him, you can understand the means of hacking and preventive measures. His name ishack the box

Another website with XCyberThreat Real-Time Map, you can see the global hacker attack, action track, number

Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

1. Time sequence

It’s called the best time management tool, and the software manager scores it4.9It’s very powerful. I don’t want to say much

I've tested everything on my cell phone, just like in the picture

Events - all interfaces
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

Today month interface
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

Today - my day
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

My interface
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

From recording to planning, time sequence can help you keep everything in order, and you can fully enjoy the fun of efficient life.

2. Software testing tool JMeter

1. Preparation

Because JMeter isUsing java to writeSo before using JMeter, install it firstJava environmentIn this paper, it is better to install Java environment. .

Java environment variable configuration: (you can query Baidu experience if you don’t understand this)

Unzip the downloaded binary package, enter the bin directory, and use the jmeter.bat Start the program.

After startup, there will be two windows, a CMD window and a JMeter GUI. Don’t ignore the prompt information of the CMD window:

Prompt information of CMD window
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

It means:Don't use GUI to run stress testsGUI is only used to create and debug stress tests; do not use GUI to execute stress tests. useTo execute the test, use the following command:

jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]

And modify the environment variable of JMeter batch file
HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m"

Change language to Chinese

The official default is to provide us with simplified Chinese. adopt【Options】->【Choose Language】Change to simplified Chinese

2. Create test

1. Create thread group

On the test plan, right-click add threads (users) thread group.
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

Set the number of threads and the number of loops. I set the number of threads here to500, cycle once.
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

2. Configuration components

On the thread group we just created, right-click add > configure component > HTTP request default.
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

Configure the protocol, address and port of the program we need to test
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

When the domain name and port of all interface tests are the same, you can use this component. Once the server address changes, you only need to modify the default value of the request.

3. Construct HTTP request

Right click [add -] – > [samlper] – > [HTTP request] in the “thread group” to set the request path and data of the API we need to test. I use JSON here

Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

4. Add HTTP request header

On the thread group we just created, right-click add > configure component > HTTP header manager.

Because the data I want to transfer is JSON, I set a content- Type:application/json

Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

5. Add assertion

Right click on the thread group we just createdAdd assertion response assertion.

According to the response data to determine whether the request is normal. I only judge whether the response code is 200. You can also configure error messages

Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

6. Add view result tree

Right click on the thread group we just created[add] -- > [listener] -- > [view result tree].

Add directly, and then click the run button to see the result.

Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

7. Add summary report

On the thread group we just created, right-click add > listener > summary report.

Add directly, and then click the run button to see the result.

Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

In order not to cause unnecessary argument, TPS is hidden. This data does not have any value, just for the article demonstration.
8. Test plan creation completed

Rememberpreservation.

3. Implement test plan

As we said earlier, GUI cannot be used to execute test plan, but command line is needed.

Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

The command I execute here is:Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

explain:

testplan/RedisLock.jmxFile path for test plan

testplan/result/result.txtIs the path to the test result file

testplan/webreportSave path for Web Report

The web report is as follows:
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

3. Rice chopsticks

This was discovered by bloggers by accident. It turns out that small programs have developed so rapidly,No code, visualizationAssociated with their own small program, you can achieve online publishingExperience versionHere is a screenshot:

Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

Generally speaking, it is very convenient to edit the content through graphical interface

4.hack the box

Hack The BoxIs an online platform that allows you to testYour penetration testing skillsAnd other members with similar interestsExchange ideas and methods. It contains some constantly updated challenges.
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website

5.CyberThreat Real-Time Map

CyberThreat Real-Time MapIs a real-time display of global malware attack map, there are many bright arcs on the map, that isHacking activities. Of course, in addition to intuitive view of the global hacker attack activities, you can also viewData of countries under attackBut when I click on the details of each country, anyway, I don’t know what the above is. If you are an “expert” person, you can come to see the gateways. If you are an “layman” like me, we can watch the excitement and point out beside othersJust show it, because he doesn't know
Amway: time management software stress testing software JMeter wechat applet visual code generation hacker website