Important Set up before load testing includes:
A suitable time to load-test the application, for instance when no development work is taking place on the server (load testing may cause the server to crash) and/or no other users are accessing the server (else the testing results would not yield the correct measures)
A suitable time to load-test the application, for instance when no development work is taking place on the server (load testing may cause the server to crash) and/or no other users are accessing the server (else the testing results would not yield the correct measures)
- The performance metrics, accepted levels, or SLAs and goals
- Objectives of the test
- The Internet protocol(s) the application is(are) using (HTTPS, HTTP, FTP, etc.)
- If your application has a state, the method used to manage it (URL rewriting, cookies, etc.)
- The workload at normal time and at peak time
- Before load or performance testing application should be stable at least tested at once through the manual method
- Before load testing, do not record any page, which has 404 or server errors
- During load test don’t do real transaction or any money ready work.
- During load testing try to maintain the real scenario as user experience
- Use meaningful test scenarios (use cases are helpful) to construct test plans with 'real-life' test cases.
- Make sure that the machine running Load testing tool has sufficient network bandwidth, so the network connection has little to no impact on the results.
- Let Load Test run for long time periods, hours or days, or for a large number of iterations. This may yield a smaller standard deviation, giving better average results. In addition, this practice may test system availability rate and may highlight any decay in server performance.
- Ensure that the application is stable and optimized for one user before testing it for concurrent users.
- Incorporate 'thinking time' or delays using Timers in your Load testing scenario Test Plan.
- Keep a close watch on the four main things: processor, memory, disk, and network.
- Only run Load testing tool against servers that you are assigned to test, else you may be accused of causing DoS attacks.