LoadRunner Learning Experience

Source: Internet
Author: User
Tags autoload call back generator

Mercury LoadRunner is a load testing tool for predicting system behavior and performance. LoadRunner is able to test the entire enterprise architecture by identifying and locating problems by simulating tens of millions of users in the form of concurrent load and real-time performance monitoring. By using LoadRunner, organizations can minimize test time, optimize performance, and accelerate the release cycle of application systems.

At present, the enterprise's network application environment must support a large number of users, the network architecture contains all kinds of application environment and different vendors to provide software and hardware products. Unpredictable user loads and increasingly complex application environments cause companies to worry about problems such as slow user response, system crashes, and so on. All this inevitably leads to loss of corporate earnings. Mercury Interactive's LoadRunner enables organizations to protect their sources of revenue by maximizing existing IT resources without acquiring additional hardware and ensuring that end users have a good evaluation of the quality, reliability, and scalability of their testing applications in all aspects of the application system.

LoadRunner is an automated load testing tool for a variety of architectures that can predict system behavior and optimize system performance. The LoadRunner test object is the entire enterprise system that helps you find and discover problems faster by simulating the actual user's actions and implementing real-time performance monitoring. In addition, LoadRunner can support a wide range of protocols and technologies to provide special solutions for your particular environment.

Easily create virtual users

With LoadRunner's virtual User generator, you can easily create a system load. The engine can generate virtual users and simulate the real user's business operation behavior in the way of virtual users. It records the business process (the following order or ticket booking) and translates it into a test script. With virtual users, you can generate thousands of user accesses at the same time on Windows, UNIX, or Linux machines. So loadrunner can greatly reduce the hardware and human resources required for load testing. In addition, LoadRunner's Turboload patented technology can.

Provide a high adaptability. Turboload allows you to generate hundreds of thousands of online users and millions of hits per day.

After you create a test script with Virtual User generator, you can parameterize it by allowing you to test your application with several different sets of actual data that reflect the load capacity of the system. As an example of an order entry process, a parameterized operation replaces fixed data in records, such as order numbers and customer names, with variable values. Randomly enter the possible order number and customer name within these variables to match the actions of multiple actual users.

LoadRunner through its data Wizard to automatically realize the parameterization of its tests. Data Wizard is directly connected to the database server, where you can get the data you need, such as the order number and user name, and enter it directly into the test script. This avoids the need to process data manually, and data Wizard saves you a lot of time.

To further determine that your virtual user can simulate real users, you can use LoadRunner to control certain behavioral characteristics. For example, you can easily control the number of transactions, the frequency of transactions, the user's thinking time, and the connection speed, just by clicking the mouse.

Create a real load

After virtual users are established, you need to set up your load scenarios, business process mix, and number of virtual users. With LoadRunner Controller, you can quickly organize a multiuser test scenario. The Controller Rendezvous feature provides an interactive environment in which you can build a continuous and cyclic load and manage and drive a load test scenario.

Also, you can use its Schedule service to define when users are accessing the system to generate load. That way, you can automate the test process. You can also use Controller to qualify your load scenario in which all users perform an action---such as logging into an inventory application----to simulate peak loads. In addition, you can monitor the performance of each component in the system architecture----including servers, databases, network devices, and so on----to help customers determine the configuration of the system.

LoadRunner provides you with more testing flexibility through its autoload technology. With AutoLoad, you can set test objectives and optimize the testing process based on the current number of users. For example, your goal could be to determine the number of clicks per second or transactions per second that your application system is enduring.

Positioning performance Issues

LoadRunner contains integrated real-time monitors, and you can observe the performance of the application system at any time during the load test process. These performance monitors show you real-time performance of transactional performance data (such as response time) and other system components, including application server, Web server, network devices, and databases. This allows you to assess the performance of these system components from both the customer and the server side during the testing process, thereby finding the problem faster.

Furthermore, using the LoadRunner contentcheck TM, you can determine whether the application functions under the load are normal or not. Contentcheck detects the contents of the application's network packets when virtual users runs, and determines whether any errors are transmitted. Its real-time browser helps you to observe the performance of your program from an end-user perspective.

Analyze the results to pinpoint the problem

Once the test is complete, LoadRunner collects all the test data and provides you with advanced analysis and reporting tools to quickly find performance issues and trace back to the original. Using the LoadRunner Web Transaction Detail monitor, you can see how long it takes to download all the images, frames, and text to each page. For example, this transaction detail analysis mechanism can

Enough to analyze whether the application system slows down because of a large size graphics file or a third party data component. In addition, the WEB Transaction Detail monitor decomposes the response time to the end of the client, network, and server to identify the problem and locate the component that is really wrong. For example, you can decompose the network latency to determine the DNS resolution time, the time it takes to connect to a server, or SSL authentication. By using the LoadRunner analysis tool, you can quickly find the location and cause of the error and make adjustments accordingly.

Duplicate test guarantees high performance of system release

A load test is a repeating process. Each time an error situation is processed, you will need to perform a load test on your application under the same scenario. To verify that your modifications improve performance.

Test for Enterprise Java beans

LoadRunner fully supports the load test for EJBS. These java-based components run on the application server and provide a wide range of application services. By testing these components, you can identify and resolve problems that may arise early in application development.

With LoadRunner, you can easily understand the performance of your system. Its controller allows you to repeatedly perform the same test scenarios as before the error modification. Its html-based reports provide you with a benchmark for comparing performance results to measure how much improvement has been made over time and to ensure successful applications. Because these reports are html-based text, you can publish them on your company's intranet for easy access.

Maximize return on investment

All Mercury Interactive products and services are integrated and designed to work together in a completely compatible manner. Because they have the same core technology, test scripts from LoadRunner and Activetest TM can be reused for performance monitoring in the Mercury Interactive load test Services project. Using the Mercury Interactive monitoring function--topaz TM and Activewatch TM, the test scripts can be reused to balance the investment gains. More importantly, you can provide a complete application performance management solution for the testing of the pre-production and production system monitoring.

Support for wireless application protocols

As the number and type of wireless devices increase, your test plan needs to meet both traditional browser-based users and wireless internet devices, such as mobile phones and PDAs. LoadRunner supports 2 of the most widely used protocols: WAP and I-mode. In addition, through the load test system's overall architecture, LoadRunner allows you to fully detect these wireless internet systems by recording only one script at a time.

Support Media Stream Application

LoadRunner can also support media stream applications. To ensure that end users have a good operational experience and high-quality Media stream, you need to detect your media stream application. With LoadRunner, you can record and replay any popular multimedia data stream format to diagnose system performance problems, find the original, and analyze the quality of the data.

Complete support for the enterprise application environment.

LoadRunner supports a wide range of protocols that can test various IT infrastructures.


Installation of 2.2 LoadRunner

Step 1 Download a alcohol 120% software
Step 2 runs./loadrunner 8.0 (Web Site Load Test tool-good). ISO for installation, or automatic operation, in the interface to install. (A custom installation is recommended and a new user is established prior to installation, i.e. not installed on the administrator user)
Use the following registration code after the Step 3 installation is complete
MB clients
Aeamauik-yafekekjjkeea-bcjgi
10000 Web Clients
Aeabexfr-ytiekekjjmfkekekwbraunqju-kbygb

It is recommended that you use virtual machine installation (e.g. VMWARE5)

Download address for LoadRunner8.2
[Url]http://lib.verycd.com/2005/01/07/0000034096.html[/url]

LoadRunner Summary:

1, WebLogic need to be pre-configured, when used, will not downtime.
2, resource utilization vs load, if the relationship conforms to the law, can infer program development without bottlenecks, server configuration without bottlenecks.
3, LR, concurrency and online mode, when the licence is insufficient to choose the concurrency mode, otherwise all have to choose the online mode, to real simulation of the real environment. In addition, when a terminal is connected to several servers, this time the test can only be used concurrent, can not be used online.
4, ask the question of the project: when the on-line. Submit the test for quality assurance or time assurance. Whether the server is stand-alone or shared.
5, the user has two kinds, one kind is the actual user (live, gasp), one kind is the system user (for example batch process)
6, before the development of the test, to ask the development of the question:
Can the application server copy it? If not, call back;
Can the database be copied? If not, call back;
If you can copy, then when the user visits increase, when the system performance is not up to, buy the server, and then copy the application server and database to the new server on the good.
7, performance test cases: Scene name, operating procedures, dynamic data points, thinking time, checkpoint.
8, in LR, return HTTP200 error, is correct, the system has been tested is not wrong, this is LR bug.
9, make the data, if the data to be made associated with multiple tables in the database, you can use LR script, let it run itself, the data out. Programming in a database is not a simple thing to do.

Some problems in the installation of 2.3 LoadRunner

What is the mi_viewer password after the WinXP installation is complete.

Windows XP installed under the LR8.0, after the installation of the machine to restart, do not see the original user, only a mi_viewer, crashed, should be installed when not careful to see caused it.
Has my previous user been deleted? Mi_viewer What is the user's password?

miorchid#1, use this password to enter the system.

When running WinRunner, do not start normally, how to do.

This is often a problem with virtual machine installation. The best way is to configure the virtual machine and uninstall WinRunner and install it again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.