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,android
Compatible onTime management software, time sequence
Of course, as a software engineer, how can we lack ittesting software
What 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
1. Time sequence
It’s called the best time management tool, and the software manager scores it4.9
It’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
Today month interface
Today - my day
My interface
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 write
So before using JMeter, install it firstJava environment
In 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
It means:Don't use GUI to run stress tests
GUI 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 fileHEAP="-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.
Set the number of threads and the number of loops. I set the number of threads here to500
, cycle once.
2. Configuration components
On the thread group we just created, right-click add > configure component > HTTP request default.
Configure the protocol, address and port of the program we need to test
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
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
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
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.
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.
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.
The command I execute here is:
explain:
testplan/RedisLock.jmx
File path for test plan
testplan/result/result.txt
Is the path to the test result file
testplan/webreport
Save path for Web Report
The web report is as follows:
3. Rice chopsticks
This was discovered by bloggers by accident. It turns out that small programs have developed so rapidly,No code, visualization
Associated with their own small program, you can achieve online publishingExperience version
Here is a screenshot:
Generally speaking, it is very convenient to edit the content through graphical interface
4.hack the box
Hack The Box
Is an online platform that allows you to testYour penetration testing skills
And other members with similar interestsExchange ideas and methods
. It contains some constantly updated challenges.
5.CyberThreat Real-Time Map
CyberThreat Real-Time Map
Is 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 attack
But 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
。