Load Testing Abstract Load Testing Load testing is the process of putting demand on a system or device and measuring its response Load testing is performed to determine a system s behavior under both normal and anticipated peak load conditions Load Testing tool The principle of a load testing tool is to simulate the behavior of real users with virtual users The load testing tool can then record the behavior of the site under the load and give information on the virtual users experiences Load testing software is often distributive in nature It is applied on multiple servers running simultaneously with each server simulating multiple virtual users In many cases the testing company has developed its own proprietary browser that can be combined with a set of instructions tailored to the testing of each client business The testing company maintains ongoing records of the virtual users experiences at the test site including response times and errors Load testing tool Load Runner Load Runner is a kind of load testing tools that can forecast the behavior and properties of the system Load Runner find and make sure the problem through the simulation of millions of users implement concurrent load and real time performance monitoring Through the use of Load Runner enterprise can shorten test time in maximum limit optimize performance and speed up the release cycle of the application system The main steps of the load testing by means of Load Runner include making load test plan test scripts create running scene the running of load testing monitoring scene the analysis of results Load Runner contains many components some important common are Visual User Generator here in after referred to as VuGen Controller Analysis Load Runner advantages include testers can create virtual users by means of the VuGen easily and set up test scripts testers can quickly build the test plan of multiple virtual users by meaning of Controller testers can observe the performance of the application system by means of the Load Runner real time monitor testers can quickly find the position and the reason of the system s error by means of Analysis tools and make the corresponding modification How to do load Testing LOAD TESTING 1 Making Load Test Plan 1 1 Load testing goal This paper implemented load testing for the e commerce applications system by means of Load Runner analyzed results and improved the performance of the system based on the test results 1 1 1 Design Test Case When testers design load test cases the testers should take the application characteristics of the electronic commerce system into consideration 1 1 2 The construction of the load testing environment The load testing object of the telecommunication equipment sales system will be deployed on the server so the network environment of the load testing simulated the practical environment of the running system Considering the characteristics of the server s network environment we built the open environment for load testing instead of the local area network environment 1 2 Build Test Scripts 1 2 1 Record test scripts According to the above test cases we recorded three test scripts by means of the Visual User Generator which is a component of the Load Runner The three test scripts are the script of browsing commodity the script of searching commodity and the script of online shopping 1 2 2 The development of affairs The usability of the basic script is generally not useful tests need deploy affairs perfect script in the basic script in order to analyze the response time of the typical operation and to increase the script availability There are two ways of the deploying affairs in the Script first during record the test script testers will insert the Start Transaction of the affairs in the front of the sequence of operations and insert the End Transaction of the affairs in the rear of the sequence of operations by means of the toolbar Second after record the script testers insert the start and end points of the affairs in proper position according to the script meaning 1 3 The development of set points The purpose of the deployment of the set points in the test script is to measure the server performance index under the big pressure 2 Create running Scene Before running the load testing in order to simulate the actual operation environment preferably testers must create a reasonable operation scene by considering the reality
View Full Document
Unlocking...