Some time ago there was a server that often had a black screen for unknown reasons. Yesterday I just pulled the server back and first reinstalled the system.
The cause of the last problem was not found, and the access volume was too large, so I was prepared to deploy the WebProgramPerform a stress test.
I haven't officially conducted stress tests on the program before. The loadtest in vsts2005 is used for stress testing, but I didn't use it this time, but another small Microsoft software: Microsoft Web application stress tool.
This software is very easy to use. First, we need to install it. After installation is complete, a dialog box for creating a script style is displayed.
If this is the first time we use it, we will choose manual as appropriate. The following will appear after the selection:
Enter the URL of the website you want to test at the server, and select the execution method as the verb below, such as post and get. Enter the specific address or file in path.
Then we can make a small setting to make our stress test more effective. Select Settings in the left-side tree menu, as shown below:
We can set the test time and intensity here as needed. For example, I can set the threads value to 1000 and the duration to 2 minutes, simulate 2-minute concurrent access for thousands of people.
In addition to the manual mode, we can also select record mode. With this mode, we can easily record test scripts. When our access is complicated, this direct recording method is undoubtedly very easy.
The procedure is as follows:
1) Select record mode
2) check record delay between request-> next
3) Finish
4) An IE window will appear. You can enter the URL you want to test in this window freely, and then execute the Testing behavior, such as submitting and refreshing.
5) after the test is completed, return to the was main window and click Stop record to stop recording the script. Then, the view of the scripts is returned, the following operations are the same as the preceding manual mode.
At this time, we have successfully created a stress test script, followed by running the script and viewing the report.
Run the Script: select the script to be executed-> menu-> scripts-> RUN
View results report: menu-> View-> reports
So far, we have conducted a simple stress test. the whole process is not complex and the software itself is very simple. In fact, was is a software developed with VC/MFC, And the MS Access database is used to store sript and report records, which is completely manufactured in ms.