Load Testing Load testing is a procedure of dumping demand on a software system or computer device to measure the response and performance of the system Load testing helps in estimating the system s behavior under normal and anticipated peak load conditions The maximum operating capacity application is obtained along with any bottlenecks and to determine the element which is causing degradation 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 The Tool I have selected is Load runner HP LoadRunner HP LoadRunner is one of the software testing tool to test the applications in various aspects like system behavior performance under load The prominent reason to select LoadRunner to test the Net application is that this testing tool can simulate thousands of users concurrently using application software It also records and later analyses the performance of the key components The various components of the LoadRunner makes it easy to perform various tests like LoadRunner VuGen Controller Agent process Analysis and tasks with a single testing tool In order to perform the load test the unit test for the methods that need to be tested should be created and add those unit tests into load tests The test controller and test agents can be used to simulate many users to access a server at the same time Reasons for selecting Loadrunner 1 Thick client load testing A thick client is often able to be very efficient with the amount of data that is transferred between it and its server but is also often sensitive to any poor communications links Developing a load test based on thick client activity usually requires significantly more effort for the coding stage of testing as VUGen must be used to simulate the protocol between the client and the server 2 Can handle Multiple users at same time 3 This tool enables you to gather all the required information with respect to the performance and also based on the infrastructure 4 The LoadRunner comprises of different tools namely Virtual User Generator Controller Load Generator and Analysis Each of these can be used for different purposes 5 It also has the best analysis tools which show the cpu utilization etc It also helps to create graphs and reports which will help you analyze our load test 6 Load Runner is tightly integrated with other HP Tools like Unified Functional Test QTP ALM Application Lifecycle Management with empowers you to perform your end to end Testing Processes Load Runner Environment Settings and versions LoadRunner version 8 0 has NET supported environment To Test NET applications that aren t based on a web page we need LoadRunner NET support To install the add in download from http wwwheva mercuryinteractive com solutions technologies net 1 Install LoadRunner 2 Install JDK 3 Setup system path and Classpath for the load runner path Load testing and emulation approach This tool supports Record and replay capabilities and assuming the application supports proxy settings we can configure it to use this tool as a proxy and quickly record your load test for later replaying with increased amount of virtual users Install MS Visual Studio NET before LoadRunner Add in Install LR NET Add in Create a New Project of type Add code to call NET Applications either with GUI or without Add LR transaction and other LR statements Compile and Test Create a Vuser with compiled binary and run in Controller 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 a V B N E T V u s e r T h e V B N E T v ir t u a l u s e r is d e f in e d b y t h e V u s e r C la s s in t e r f a c e T h is in t e r f a c e is C O M c o m p lia n t a n d c o n t a in s t h r e e p u b lic f u n c t io n s c h a r a c t e r iz in g in it ia liz a t io n e x e c u t io n a n d t e r m in a t io n Public Function Initialize As Long Public Function Actions As Long Public Function Terminate As Long T h e a b o v e fu n c tio n s m a y b e m o d ifie d a s r e q u ir e d M a k e s u r e th a t th e a c tio n n a m e s in th e C u s to m A c tio n s s e c tio n o f th e p r o je c t s U S R f ile m a t c h t h e a c t u a l n a m e s I n s im ila r m a n n e r t h e v ir t u a l u s e r in t e r f a c e s n a m e c a n b e c u s t o m iz e d a s lo n g a s it m a t c h e s t h e P R O G I D a t t r ib u t e in t h e P r o je c t s U S R f ile b C N E T V u s e r T h e C N E T v ir tu a l u s e …
View Full Document
Unlocking...