Performance test cases

One: Load testing - to calculate the maximum concurrency
Our performance testing process should first test scenarios to design, simulate real business situations occur, then the needle
These scenarios designed to test scripts. In order to expose performance issues, we should as much as possible to simulate the measured object may exist
In the bottleneck of test scenarios
Use of local deployment of a project, we can simulate attendance punch card business.
Business Process:
Punch Home - Click Login - Jump Project - Open attendance Page - attendance punch card
Index performance requirements:
Business daily attendance expected amount of 400 / min, that is, 6.6 / s
To calculate the number of threads to load:
Thread = BC/(60/t) = BC*(t/60)
t: single-user single time-consuming business, as far as possible simulate real user behavior
Single elapsed time = Open the home page (0.5s) + think time (3s) + enter a user name and password (1.5s) + Home Response Time
(0.5s) + punch time attendance (3s) = 8.5s (line take 90%)
BC: traffic, the present embodiment BC = 400
Single service consumption 8.5s

Guess you like

Origin www.cnblogs.com/fighter007/p/11220911.html