Everything should be tracked!

小布老师LR系列培训视频- LoadRunner概述

上一篇 / 下一篇  2008-11-26 16:20:13 / 个人分类:自动化测试

一、loadrunner概述51Testing软件测试网Z V7I(iMw!~

第一讲:http://www.boobooke.com/v/bbk105951Testing软件测试网H*h"O+s0I ah \
内容:51Testing软件测试网I,Ps4ErY/l @r

1     为什么要进行性能测试

r9[#T(M/`9OX0

2     性能测试的重要意义   “数据大集中”

~(FV:@'@Z(U0

3     典型的企业信息系统

uhtve(r9D.EC0

4     性能测试的原理51Testing软件测试网/I~,?%e-L

5     性能测试的类型

&\0N&Yg7EtK7QPc"m0

Component testing---Find the behavīor and performance of each tier.51Testing软件测试网1MT/['e6p5ZN'da?*u2N

Load testing---Find out weather the system can handle the expected load upon deployment under real world conditions.

p$k0M)c`r"d;~-P,G0

Stress testing---Find the system’s breaking point.Apply testing that measure whether the system’s environment is properly configured to handle expected or potentially unexpected high transaction volumes.51Testing软件测试网'\'@H#J/WM#a ly

Volume testing---Find the stability of the system with respect to handing large amounts of data over extended time periods.

9n$Z9k~\$GD0

6     性能测试的一些例子

o @1}6W K.]0

Application response time

L:d R[b5a9]4G0

Configuration sizing---At what point does degradation in performance occur

t8sds-@0`LZNrK0

Acceptance---Is the system stable enough to go into production?51Testing软件测试网,M.L!n5e~gm }N,g

Regression---Does the new version of the software adversely affect response time?

'}8ABfc0

Reliability---How stable is the system under a heavy work load?

F8dq#C2vg0

Capacity planning51Testing软件测试网cY+Ixff

Bottleneck identification

w7w&w CSb [ {0

Product evaluation---what is the best serve for 100 users?

Sn$bH]Hg |0

7     性能测试贯穿于软件生命周期51Testing软件测试网!mG0} Cj

Planning and Design---What is the server to support 1000 users?

)i5J/M vV7ply(AL0

Development---Does the system response time meet requirement?51Testing软件测试网 ir9N w(`

Deployment---Is the system reliable enough to go into production?51Testing软件测试网 t8S!J Xi KAs

Production---What is the cause of performance degradation?51Testing软件测试网gG!N4z,?

Evolution---How many users can be added without decreasing system performance?51Testing软件测试网iRo+i8e3x_ d d3u

  

7@&F ]1`}yHL O0

第二讲:http://www.boobooke.com/v/bbk1060

-E*A#T(zj*m7x0

 51Testing软件测试网N"]L|e1K/u

1 手工性能测试的局限性51Testing软件测试网R*suU5Z;^

2 LR解决方案

{;]?0t7T'O0

Overcomes resource limitations

#l I9usK6j(uR0

Replaces testers with “Virtual Users”

NU+Sc Kaw6L0

Runs many Vusers on few machines51Testing软件测试网ZLqd0{.]4Nb-Z

Controller manages Virtual Users

uz Z*[Y7F)x0

Allows repeatable tests with scrīpted actions51Testing软件测试网_aKOwf[

provides meaningful results with analysis tools

yq M-Hj4s0

3 LR能干什么?

-N9YF6~$I2w,c0

LR allows you to

_+W'r ]0f(e3Fq0

scale---the application to a predetermined capacity,51Testing软件测试网6fTG%Dt z({

identify---business processes or system components having trouble,51Testing软件测试网2n:meI*uk])U

diagnose---a problem to pinpoint the root cause

6}!r _H9Rt%Gg0

4 LR的组件(4大组件,3大软件)51Testing软件测试网e x.fWO'@5^v&V

脚本录制开发工具VuGen51Testing软件测试网/SY3tBq0n7u}.M9HX

集成控制器Controller51Testing软件测试网6ad1F/`.y

结果分析器Analysis51Testing软件测试网7OZFd~

压力机Load Generator,不是软件,是物理组件51Testing软件测试网 } ].Shqr+Vx [ x$W

5 LR整体架构图51Testing软件测试网 UJ1b$ST]X

6 VuGen---recordsVuser scrīptsthat emulate the steps of real users using the application51Testing软件测试网-_l+EW"X5L]$Ft

7 Controller---the controller is an administrative center for creating, marinating, and executingscenarios. The controller assigns Vusers and load generators to scenarios, starts and stops load tests, and performs other administrative tasks51Testing软件测试网$D4|%\ Ev:B^

8 Analysis---Analysis uses the load test results to creategraphsandreportsthat are used to correlate system information, identify bottlenecks, and performance issues.

|wS2Yi"~0

9 Load Generators---load generators(also know as hosts or injectors) are used to run the Vusers that generate load on the application under test.  Load Generators are physical machines!

&a|%L"{Q0

10)什么是虚拟用户?51Testing软件测试网2l/o1E,BWp#Pa}

Vusers are processes or threads running on the load generator.

-TUjP+I8Gl+d"c2V0

11LR支持的协议51Testing软件测试网-?;`"^*{vC

12)什么是场景(scenario?

.s MW |{Us0

        Elements of a Scenario: Vusers, scrīpts, Number of load generators, run-time settings, run-time monitors.

0o9k$A hX3\*i0

13LR对系统性能的监控

fg7z ai0

        ---Where is the bottleneck?

-eh"[|@T6|1} F5RE0

        ---monitors are non-intrusive and agent-less51Testing软件测试网!oq(D7U4Ig;DiK

        ---monitors gather data for online/offline analysis51Testing软件测试网x;O"F7[ Q R+?

        ---monitors display real-time data during testing51Testing软件测试网3F^1|+o)AW,G W

        ---monitors gather data for offline root cause annlysis after testing

z;|4}J h+D#k0

14LR支持的监控器

? IZ1\W!?h S0

15)性能测试的流程

b.UE-h;rS,VZ3Bc0

plan load test---create VuGen scrīpts---scenario Creation---Scenario Execution<-->results analysis51Testing软件测试网BCi!Oi D e3|G

16)性能测试是一个团队合作

0Or%WEk0

 51Testing软件测试网*E.Ul4BU5B$Hl,z^

二、LoadRunner安装   http://www.boobooke.com/v/bbk106151Testing软件测试网sn J6G)Chu)rE

 

{'m_mq\0

三、录制和回放测试脚本51Testing软件测试网DV2d+`\2M

第一讲:http://www.boobooke.com/v/bbk106351Testing软件测试网;F7NR ~Er"v

1)        创建测试脚本的工作流程51Testing软件测试网 a%e,_$Y2D"`3` v

2)        录制脚本的过程51Testing软件测试网pM`2b}/rC

3)        录制脚本的方法51Testing软件测试网5enM&U.D

sniffer的方法:利用以太网的传播特性

)U0Oq1`of'p0

proxy的方法:更加有通用性51Testing软件测试网#\j9@_BM{

4)       录制的测试脚本的规律51Testing软件测试网R m%y!N3Du dx)z'y

脚本的语句是按照“发---收”的次序排列51Testing软件测试网 ?-v1{/_ Z:u4r$V(a:q

脚本是顺序执行的,没有分支判断或循环51Testing软件测试网 q0xy+\-fRX

以上两种规律适用于任何协议的录制脚本51Testing软件测试网ef;W%pgUV

5)       简单的HTTP通讯举例

#@m4BaY2oxkk;E5m0

第二讲:http://www.boobooke.com/v/bbk106451Testing软件测试网-F3f y F?0e(E Q {

1) 简单的HTTP通讯举例

t-h nX}d.H+p|XK0

2) 脚本两种形式的51Testing软件测试网eN@T.zaP-k+ifW$Z e/n

调试和编程scrīpt

yQ M1Xjx?'J`0

3) 录制选项

#WM)^&Ax0

4) 两种类型的录制方式

t Q:k.N%wN0

html模式:生成的脚本高度浓缩,隶属于一个页面的请求浓缩到一个脚本中51Testing软件测试网$c7S9M9E-x

url模式: 忠实记录收发过程51Testing软件测试网4_;Y$G8c'k.A7J[o

5) HTML模式与URL模式的不同51Testing软件测试网J.H{1h,H1a4])T

6) HTML模式的优缺点

dT Q*_7m9s8Y Oo0

7) URL模式的优缺点

"m'P%{$D7|(ob@0

8) 如何选择这两种模式   51Testing软件测试网I0S!O2V-D}

第三讲:http://www.boobooke.com/v/bbk1065

h.n8A"A7}c"S]0

1)    脚本的结构

yZXmp;@*F0

Vuser_init:脚本启动的时候运行一次

'{:](]:G%p0

Action:脚本的主题函数,可以运行任意次,由run-time setting进行设置51Testing软件测试网Q%mJ'HA.RZ5DNl E

Vuser_end:脚本退出的时候运行一次51Testing软件测试网!H)K*?+c NS\

2)    VuGen回放脚本的目的

@~)c*{'F6ks0

3)    回放测试脚本51Testing软件测试网YxmGFI8u}

4)    运行时刻设置51Testing软件测试网2o0vnh"x`

5)    常用的调试工具

h}+L m.D4k`3Wx0

 

p;]`R p[)i5nV0

小布老师LR系列培训视频- LoadRunner测试Tuxedo应用系统51Testing软件测试网 [ ?2B^Ac+A;}h
http://www.boobooke.com/v/bbk1067
SFR,q9HcG1t.n"c0http://www.boobooke.com/v/bbk106851Testing软件测试网,olF9mc w
http://www.boobooke.com/v/bbk1071
?l3D,[]5w0http://www.boobooke.com/v/bbk1072
51Testing软件测试网@3qe%W2JcsT'Y.j


TAG: 自动化测试

amando的个人空间 引用 删除 amando   /   2013-11-13 16:36:11
刚看了上面的视频,感觉不错,小布老师的讲座都很经典呀!
xiaoxiang_feizi的个人空间 引用 删除 xiaoxiang_feizi   /   2011-11-14 15:31:52
wdlcoke的个人空间 引用 删除 wdlcoke   /   2011-02-16 16:51:17
 

评分:0

我来说两句

日历

« 2024-04-22  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 52204
  • 日志数: 60
  • 建立时间: 2008-08-22
  • 更新时间: 2008-12-12

RSS订阅

Open Toolbar