loadrunner培训文档

上传人:suns****4568 文档编号:89212170 上传时间:2019-05-21 格式:PPT 页数:123 大小:2.29MB
返回 下载 相关 举报
loadrunner培训文档_第1页
第1页 / 共123页
loadrunner培训文档_第2页
第2页 / 共123页
loadrunner培训文档_第3页
第3页 / 共123页
loadrunner培训文档_第4页
第4页 / 共123页
loadrunner培训文档_第5页
第5页 / 共123页
点击查看更多>>
资源描述

《loadrunner培训文档》由会员分享,可在线阅读,更多相关《loadrunner培训文档(123页珍藏版)》请在金锄头文库上搜索。

1、,LoadRunner Quick Tutorial,LR78-SLIDES-01A,大纲,Load runner介绍 规划 编写脚本 脚本录制、调试、优化 场景设计 用户数、场景类型、场景计划、运行设置、实时监控 场景执行 调试场景、小压力运行、100%负载测试、压力测试 结果分析 常用指标观察、生成测试报告,第一节,LoadRunner 介绍,为什么要进行压力测试,The failure of a mission-critical application can be costly Assure performance and functionality under real-world

2、conditions Locate potential problems before your customers do Reduce development time Reduce infrastructure costs,压力测试分类,Find out whether the system can handle the expected load upon deployment under real-world conditions.,Find the applications breaking point. Apply testing that measures whether the

3、 applications environment is properly configured to handle expected or potentially unexpected high transaction volumes.,Find the stability of the system with respect to handling large amounts of data over extended time periods.,Find the behavior and performance of each tier.,压力测试目标举例,Application res

4、ponse time How long does it take to complete a task? Configuration sizing Which configuration provides the best performance level? Acceptance Is the system stable enough to go into production? Regression Does the new version of the software adversely affect response time?,Reliability How stable is t

5、he system under a heavy work load? Capacity planning At what point does degradation in performance occur? Bottleneck identification What is the cause of degradation in performance? Product evaluation What is the best server for 100 users?,Testers,Load Generation,System Under Test,Do you have the tes

6、ting resources? Testing personnel Client machines,How do you synchronize users?,How do you collect and analyze results?,How do you achieve test repeatability?,Everybody, click the SEARCH button again,手工测试的问题,Database server,Application server,LoadRunner解决方案,Overcomes resource limitations,Provides me

7、aningful results with analysis tools,Allows repeatable tests with scripted actions,Analysis,Runs many Vusers on few machines,Replaces testers with “Virtual Users“,Controller manages Virtual Users,Database server,Vusers,Virtual User load generator,Application server,Load Generation,System Under Test,

8、LoadRunner的实现方法,LoadRunner is a complete solution to conduct automated load testing before, during, and after application deployment. LoadRunner allows you to.,Scale,Identify,Diagnose,the application to a predetermined capacity.,business processes or system components having trouble.,a problem to pi

9、npoint the root cause.,LR VUGEN,Vuser Script Recorder records Vuser scripts that simulate the steps of real users using the application.,LR CONTROLLER,The Controller is an administrative center for creating, maintaining and executing Scenarios. The Controller assigns Vusers and load generators to Sc

10、enarios, starts and stops load tests and performs other administrative tasks.,LR ANALYSIS,LR Analysis provides graphs and reports. These graphs and reports summarize the system performance.,LoadRunner 组件,LoadRunner 支持的环境,Web: HTTP(S) CORBA WAP COM RMI LDAP Winsock Streaming FTP IIOP POP3 iMode RealP

11、layer MS Media Voice XML SMTP,Databases: Oracle MS SQLServer DB2 Sybase Informix ODBC,Middleware Protocols: CORBA COM EJBs TUXEDO Jolt JDBC MQSeries,Platforms: NT, 2000, XP Sun HP IBM Linux,ERP/CRM: Oracle Apps. SAP Siebel PeopleSoft Clarify Baan,Legacy: 3270 5250 VT100,Internet/Intranet,Database se

12、rver,App servers,Web servers,Clients,什么是 Scenario?,Scenario A scenario is a file that defines which Vusers to execute, the number of Vusers to run, the goals of the test, which computer hosts the Vusers and the conditions under which to run the load test.,LoadRunner的工作方式,Database server,App servers,

13、Web servers,LR CONTROLLER,LOAD GENERATOR 2 (NY),LR ANALYSIS,LOAD GENERATOR 1 (SF),Create scenarios and assign them to load generators.,Generates load and sends performance data to controller.,Access the reports and graphs.,Generates load and sends performance data to controller.,硬件配置需求,压力测试流程,Define

14、 Goals Analyze system Gather System Usage Data,Record Scripts and turn scripts into Vusers by adding test data and user behavior,Create Scenarios based on your goals,Execute Scenarios for testing first, running 100% and overloading,Analyze results data and pinpoint bottlenecks,Fine tune system based

15、 on analysis data and re-run the scenario,Tweak System Based on Analysis,Rerunning the scenario indicates whether performance has improved and whether goals have been achieved.,压力测试是一项团队工作,LoadRunner 团队工作,Tweak System Based on Analysis,LR Expert,LR Expert,LR Expert,LR Expert,LR Expert,返回大纲,第二节,规划,在创

16、建脚本之前要进行充分的规划,规划阶段的内容,建立负载测试的目标 制定出可以用数量衡量的目标标准 分析被测系统的业务运行状况 确定要录制哪些商业流程(business processes) 确定业务高峰的负载情况和时间 把需要测试的BP的操作步骤形成正式文档 准备测试数据 收集系统的技术信息 确定系统的架构 确定系统各部件的软件情况,使用什么样的数据库服务器?Web服务器? 以帮助我们在合理的时间内确定系统瓶颈,本次培训使用的Demo软件,Start Programs Mercury Tours,返回大纲,第三节,编写脚本,录制Web脚本的方法,1. 运行VuGen,创建新的脚本,4. 开始录制,5. 进行正常的业务流程的操作,6. 当业务操作完毕后,按Stop Recording将录制结束,7. 保存脚本,2. 选择创建Web(HTTP/HTML) protocol的脚本,3. 设定录制选项 Recording Options.,DEMO

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 其它相关文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号