LoadRunner Tutorial

Welcome to the LoadRunner tutorial. The tutorial is a self-paced guide that leads you through the process of load testing, and helps familiarize you with the LoadRunner testing environment.

The tutorial is accessible as part of the LoadRunner Help Center, or a printer-friendly version is available as a PDF file. Click LoadRunner Tutorial, or on a LoadRunner machine, select Start > All Programs > HP Software > HP LoadRunner > Documentation > Tutorial > Tutorial - Print Version.

What will you learn during this tutorial?

  • Lessons 1 through 4 describe how to develop a Vuser script using VuGen - the Virtual User Generator.
  • Lessons 5 and 6 explain how to design and run load tests using the LoadRunner Controller.
  • Lesson 7 introduces the Analysis tool, showing you how to create graphs and reports which will help you analyze your load test.

At the conclusion of this tutorial, you will be ready to design, run, and monitor a simple load test on your own system. It is recommended that you work through the tutorial in the order in which the information is presented.

What are the LoadRunner components?

LoadRunner contains the following components:

  • The Virtual User Generator or VuGen records end-user business processes and creates an automated performance testing script, known as a Vuser script.
  • The Controller organizes, drives, manages, and monitors the load test.
  • Analysis helps you view, dissect, and compare the results of the load tests.

  • Load Generators, computers that run Vusers to generate a load on the system.

LoadRunner Terminology

Term Description
Transaction

You define transactions to measure the performance of your system. A transaction is a set of end-user actions that represent typical application activity. For example: Log in, navigate to a search dialog, enter a search string, click the search button, and log out.

Business Process A sequence of steps in your application that represent a use case or a business function. It includes one or more transactions. For example: Searching a product catalog, booking a flight, or placing an order.
Scenario A collection of business processes. A scenario defines the events that occur during a testing session, based on performance requirements. For example, a scenario might include a combination of "Create new account", "Search for flight", and "Purchase ticket" business processes.
Virtual Users or Vusers Vusers emulate the actions of human users working on your system. A scenario can contain tens, hundreds, or even thousands of Vusers.
Vuser Script The recorded actions of a business process performed in your application.
Protocol

The method of communication between a client and the server.

Script footprint

The script footprint is defined by the quantities of the various load generator resources that are required to execute the Vuser script. Typical resources include memory, CPU power, and disk space.

What is the LoadRunner load testing process?

Load testing with LoadRunner typically consists of five phases: planning, script creation, scenario definition, scenario execution, and results analysis.

  1. Plan Load Test. Define your performance testing requirements, for example, number of concurrent users, typical business processes, and required response times.
  2. Create Vuser Scripts. Use VuGen to capture the end-user activities into automated scripts.
  3. Define a Scenario. Use the Controller to set up the load test environment.
  4. Run a Scenario. Use the Controller to drive, manage, and monitor the load test.
  5. Analyze the Results. Use LoadRunner Analysis to create graphs and reports, and evaluate the system performance.

Define Performance Requirements

This tutorial will use a travel service application. Imagine that you are the performance engineer responsible for signing off that the application meets the needs of your business. Your project manager has given you four criteria for approving the product for release:

  1. The application must successfully handle 10 concurrent travel agents.
  2. The application must be able to process 10 simultaneous flight bookings with response time not exceeding 90 seconds.
  3. The application must be able to handle 10 travel agents running simultaneous itinerary checks with response time not exceeding 120 seconds.
  4. The application must be able to handle 10 agents signing in and signing out of the system with response time not exceeding 10 seconds.

This tutorial will walk you through the process of building load tests that validate each of the business requirements.

Where to go from here

Now that you have been introduced to the LoadRunner basics, you can proceed to Using the HP Web Tours Sample Application.

http://lrhelp.saas.hp.com/en/latest/help/WebHelp/Content/Tutorial/Introducing_LoadRunner.htm

LoadRunner Tutorial的更多相关文章

  1. HP LoadRunner 12.02 Tutorial T7177-88037教程独家中文版

    HP LoadRunner 12.02 Tutorial T7177-88037教程独家中文版 Tylan独家呕血翻译 转载请注明出自“天外归云”的博客园 Welcome to the LoadRun ...

  2. LoadRunner基础知识

    什么是自动化性能测试?利用产品.人员和流程来降低应用程序.升级程序或补丁程序部署风险的一种手段 什么是自动化性能测试的核心?向预部署系统施加工作负载,同时评估系统性能和最终用户体验 LoadRunne ...

  3. LR11

    HP LoadRunner Readme for the Windows operating system Software version: 11.00 Publication date: Octo ...

  4. LoadRuner12.53教程(一)

    LoadRunner教程 L   o   a   d   R   u   n   n   e   r   jiào教   chéng程 Welcome to the LoadRunner tutori ...

  5. 如何从零基础开始学习LoadRunner12(一)

    如何从零基础开始学习LoadRunner12(一) 上一篇文章讲到了如何安装LR12的教程,这一篇文章来讲一下怎么利用LoadRunner自带的Sample来学习LoadRunner的基本使用. 首先 ...

  6. LoadRunner结果分析与生成报告

    启动Analysis会话 1.打开HP LoadRunner2.打开LoadRunner Analysis在LoadRunner Analysis选项卡中单击分析负载测试3.打开Analysis会话文 ...

  7. LoadRunner脚本准备

    脚本录制1.启动LoadRunner2.打开VuGen在LoadRunner Launcher窗格中,单击创建/编辑脚本3.创建一个空白Web脚本在“新建虚拟用户”对话框里选择新建脚本的协议一般选择W ...

  8. loadrunner 基础-学习笔记一

    由于公司要使用loadrunner暂停学习jmeter 1 loadrunner组件: virtual user generator:录制最终用户业务流程并创建自动化性能测试脚本,vuser脚本 co ...

  9. LoadRunner使用教程

    1.了解Loadrunner 1.1 LoadRunner 组件有哪些? LoadRunner 包含下列组件: ➤ 虚拟用户生成器用于捕获最终用户业务流程和创建自动性能测试脚本(也称为虚拟用户脚本). ...

随机推荐

  1. Mac OSX下面的博客客户端Marsedit使用

       在windows下面,有一个很好用的博客客户端,叫做windows live writer,不得不感叹,其所见即所得的方面真的是很方便,特别是还可以方便的把word上的内容直接帖上去,包括文件中 ...

  2. js加载优化三

    Javascript性能优化之异步加载和执行 Author:小欧2013-09-17 随着科技的发展,如今的网站和五六年前相比,现在的人们对web的要求越来越高了,用户体验,交互效果,视觉效果等等都有 ...

  3. SQL Server 索引的自动维护 <第十三篇>

    在有大量事务的数据库中,表和索引随着时间的推移而碎片化.因此,为了增进性能,应该定期检查表和索引的碎片,并对具有大量碎片的进行整理. 1.确定当前数据库中所有需要分析碎片的表. 2.确定所有表和索引的 ...

  4. Match类

    Regex在匹配的时候,常常会返回一个Match类的对象,今天就来看看怎么玩这个对象. 一.属性 Captures 按从里到外.从左到右的顺序获取由捕获组匹配的所有捕获的集合(如果正则表达式用 Reg ...

  5. 剑指offer-面试题13.在O(1)时间删除链表节点

    题目:给定单向链表的头指针和一个节点指针,定义一个函数在O(1)时间删除该节点. 链表节点与函数的定义如下. 通常我们删除某个节点都是从头开始遍历到需要删除节点的前一个节点. 然后使得该节点的next ...

  6. vi常用命令笔记

    1.Vi 删除全部内容,删除某行到结尾,删除某段内容 (1)转到文件指定行 nG (2)删除所有内容(先用G转到文件尾) ,使用: $G :1,.d (3)删除第9行到第200行的内容(先用200G转 ...

  7. 对中级Linux 用户非常有用的20 个命令

    也许你已经发现第一篇文章非常的有用,这篇文章是继对初级Linux用户非常有用的20个命令的一个延伸. 第一篇文章的目的是为新手准备的而这篇文章则是为了Linux的中高级用户.在这里你将学会如何进行自定 ...

  8. JVM工作原理和特点(一些二逼的逼神面试官会问的问题)

    作为一种阅读的方式了解下jvm的工作原理 ps:(一些二逼的逼神面试官会问的问题) JVM工作原理和特点主要是指操作系统装入JVM是通过jdk中Java.exe来完毕,通过以下4步来完毕JVM环境. ...

  9. Unity 之圆环算法

    首先我们要明白圆环生成的原理,其实说白了并不是圆环,而是圆.因为我们使用的预制物体时Cube(物体本身是有大小的)难免会有发生实物的折叠看起来给人的感觉是圆环而已. 1.1 几何中我们要画一个圆,因为 ...

  10. onvif规范 中文介绍

    什么是ONVIF ? ONVIF规范描述了网络视频的模型.接口.数据类型以及数据交互的模式.并复用了一些现有的标准,如WS系列标准等. ONVIF规范的目标是实现一个网络视频框架协议,使不同厂商所生产 ...