Use the test tool Loadrunner, browse blog visits and score actual combat
Note: there should be a lot of tools for browsing blog visits and points on the Internet. I just combined this example to explain the use of Loadrunner.
Experimental blog site: http://blog.csdn.net/jcy58
The steps are as follows:
1. The script you just recorded contains the following figure
Knowledge point 1: this is caused by not shutting down the antivirus software and 360 security guards, so close the 360antivirus software and 360security guards on the Loadrunner installation machine before recording the script.
Compile and run the script, and the content of the following figure appears:
Knowledge point 2: the following is the problem related to js, so when recording the script, select URL recording mode (Loadrunner default is HTML mode), as shown below:
2. Start the recording trip.
If user An is now reading the article "Software reviewer's answer and Analysis 8", the link he is visiting is http://blog.csdn.net/jcy58/article/details/47123997
Knowledge point 3: if user B is reading "typos defects in IBM AppScan official help documents, IBM testers are too careless", then the link he is visiting is http://blog.csdn.net/jcy58/article/details/47081443, so here we need to use parameterization of a very important knowledge point in Loadrunner scripting technology:
The rules for the value of Loadrunner parameterization are as follows:
If the parameters in Loadrunner controller adopt sequential+each iteration (Sequential value method), and the number of virtual users is set to 5 users, then how do you get the parameters during iteration? (the order of parameters is A, B, C)
Answer:
(1) in the first iteration, all five virtual users take parameter A
(2) in the second iteration, all the five virtual users take parameter B
(3) in the third iteration, all five virtual users take parameter C
3. The last step: run the script
Select Simulate a new user on each iteration (simulate a new user for each iteration) and Clear cache on each iteration (clear the cache for each iteration)
Knowledge point 4: let the server mistakenly think that a real new user is visiting the article page on Jin Chaoyang's blog.
Let the script iterate a million times, and your blog visits and points will go up immediately.
Jin Chaoyang
QQ:1091051522
2015-7-31