




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner
2、功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-111做性能测试需要知道的知识做性能测试需要知道的知识静态静态 + 动态动态 静态:性能测试工具的基本功能、基本网络知识、脚本编写功底等 动态:根据不同的项目要求学习新的知识 (如:.net、JAVA、Windows操作系统、Linux操作系统等)Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensur
3、e that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-112性能测试组人员组成性能测试组人员组成开发工程师DBA性能测试工程师 Any hard copy of this document is for reference only. Application depende
4、nciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-113性能测试的作用性能测试的作用提供优化建议和程序现状(健壮性)提供优化建议和
5、程序现状(健壮性)1)软件方面 被测试应用程序优化建议:图片大小(流量)、死连接(用户过大造成)、接口的压力、数据库等。2)应用程序服务 各项的参数配置(如:tomcat 的连接数设置、共享内存设置等)。3)数据库服务 连接池的设置、共享内存、缓冲内存等。4)硬件配置 硬盘读写速度(%Disk Time、%Disk Write Time、Avg.Disk sec/Read、 Avg.Disk sec/Write等 )、内存大小(%Committed Bytes In Use、Memory Available Bytes等) CPU处理情况(%Processor Time)。5)程序的现状 在某
6、种环境下所能承受的压力(并发、加载等)。网络Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestComp
7、any InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-114性能测试流程性能测试流程Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be
8、used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-115Create/Edit ScriptsVirtual User Generator 常用功能介绍 1、参数化 2、关联(自动关联和手动关联) 3、检查点 4、其他常用功能(变相检查超链接、协议选择等) 5、环境参数设置(Run-Time Settings) 6、插入事件函数、集合函数等 7、编写脚本 。Any hard copy of this document is for refe
9、rence only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-116Create
10、/Edit ScriptsCreate/Edit Scripts参数化参数化1)选中需要参数化的值,右击,选择【Replace with a parameter】2)添加需要的参数3)设置读取参数值的条件Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated cop
11、ies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-117Create/Edit ScriptsCreate/Edit Scripts关联关联1、自动关联 在脚本准备好的前提下,在工具菜单中点击如图功能2、手动关联 1)找出需要关联的部分(手动排查和利用LR自带的Compare with Script工具) 2)选择 Tree View模式查看脚本,在Server Respons
12、e中 Body找到 该变量 3)在出现该变量的相应页面中右击鼠标,选择【Insert Before.】,然后在【Services】中选择web_reg_save_param函数Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invali
13、d and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-118Create/Edit ScriptsCreate/Edit Scripts关联关联 4)填写相关参数后点 OK 5)返回到 Script View 在脚本自动增加如图的脚本 6)修改脚本中的变量值 去掉脚本中原来的值用 变量名替代 Any hard copy of this document is for reference only. Appli
14、cation dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-119Create/Edit ScriptsCrea
15、te/Edit Scripts检查点检查点 1、在Tree View模式下,在需要添加检查点的页面右击URL 2、在弹出框中选【Insert After】 3、在Services中选择 web_reg_find 函数 4、填写查找文本的条件 5、返回Script View模式, 在脚本中增加如下内容: Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure tha
16、t this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1110Create/Edit ScriptsCreate/Edit Scripts检查点检查点 6)在运行环境中Any hard copy of this document is for reference only. Appl
17、ication dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1111Create/Edit ScriptsCr
18、eate/Edit Scripts Run-Time Settings Run-Time Settings 1)查看Log,调试脚本Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used
19、. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1112Create/Edit ScriptsCreate/Edit Scripts Run-Time Settings Run-Time Settings 2)MiscellaneousAny hard copy of this document is for reference only. Application dependenciesmay cause the footer to displ
20、ay incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1113Create/Edit ScriptsCreate/Edit Scripts Run-Time Settings Run-Time Sett
21、ings 3) Preferences Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompan
22、y InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1114Create/Edit ScriptsCreate/Edit Scripts 插入事件函数、集合函数( 并发)等Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. O
23、utdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1115Create/Edit ScriptsCreate/Edit Scripts 脚本编写脚本编写读写文件Any hard copy of this document is for reference only. Application dependenciesmay cause the footer
24、to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1116Run Load TestsRun Load Tests常用功能介绍 1、运行模式(场景、组、基于目标) 2、Design
25、整体介绍(场景运行条件设置) 3、Run整体介绍(各个图的含义及设置等) 4、虚拟IP设置 5、负载生成器设置 6、错误事件查看 7、监控系统资源(添加被监控对象、参数等)Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid
26、and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1117Run Load TestsRun Load Tests 运行模式运行模式Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to en
27、sure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1118Run Load TestsRun Load Tests Design Design 整体介绍整体介绍Any hard copy of this document is for reference only
28、. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1119Run Load TestsR
29、un Load Tests 虚拟虚拟IPIP设置设置设置IP欺骗的原因:当某个IP的访问过于频繁,或者访问量过大是,服务器会拒绝访问请求,这时候通过IP欺骗可以增加访问频率和访问量,以达到压力测试的效果。某些服务器配置了负载均衡,使用同一个IP不能测出系统的实际性能。LR中的IP欺骗通过调用不同的IP,可很大程度上的模拟实际使用中多IP访问和并测试服务器均衡处理的能力。注意:IP Spoofer 在连接Load Generators 之前启用。要使用IP 欺骗,各个Load Generator 机器必须使用固定的IP,不能使用动态IP。Any hard copy of this documen
30、t is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010
31、-10-1120Run Load TestsRun Load Tests 虚拟虚拟IPIP设置设置怎样添加虚拟IP?Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This d
32、ocument is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1121Run Load TestsRun Load Tests 虚拟虚拟IPIP设置设置IP WizardIP Wizard选项说明:选项说明:Create new settings:第一次运行IP Wizard需要选择该项来增加新的IP。Load previous settings from file:选择保存好的文件,如果以前运行过IP Wizard,可以 选择该项。Restore original sett
33、ings: 此项用于使用IP欺骗进行测试完成后,释放IP 的过程(因为该机会占用大量的IP资源,可能会导致其他机器没有IP可用的尴尬局面,使用该项,可以恢复到原来的状况)。重新启动计算机后,设置的虚拟IP都生效了,此时使用ping会发现都能ping通,并且本机的IP也被改成了第一个虚拟IP地址。确认虚拟IP是否都生效的方法:在运行中输入cmd,在命令窗口录入ipconfig/all,然后就能看到已经生效的所有IP。Any hard copy of this document is for reference only. Application dependenciesmay cause the
34、 footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1122Run Load TestsRun Load Tests 虚拟虚拟IPIP设置设置注意:使用虚拟注意:使用虚
35、拟IP测试测试完成后完成后要打开要打开IP Wizard,释放,释放所有虚拟所有虚拟IP,重新启动,重新启动计算机,否则别人这些计算机,否则别人这些IP时会产生冲突。时会产生冲突。Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are inva
36、lid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1123Run Load TestsRun Load Tests 负载生成器设置负载生成器设置在Controller中选择Scenario,再选择Load GeneratorsAny hard copy of this document is for reference only. Application dependenciesmay cause t
37、he footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1124Run Load TestsRun Load Tests Run Run整体介绍整体介绍Any hard
38、 copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关
39、扩展培训广州欢网科技研发中心测试部2010-10-1125Run Load TestsRun Load Tests 错误事件查看错误事件查看在场景运行中点击Failed Transactions 或ErrorsAny hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated
40、copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1126Run Load TestsRun Load Tests 监控系统资源(针对监控系统资源(针对LinuxLinux)1、保证被监控的服务器能够被成功访问且能被ping通2、loadrunner监控linux配置3、启动NFS服务 先启动portmap: /etc/init.d/portmap start 再执行/s
41、bin/service nfs start4、监控服务器 Any hard copy of this document is for reference only. Application dependenciesmay cause the footer to display incorrect data. You have to ensure that this is acorrect and valid version. Outdated copies are invalid and must not be used. This document is managed in ClearQuestCompany InternalLoadRunner功能介绍及其相关扩展培训广州欢网科技研发中心测试部2010-10-1127Run Load
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年地铁隧道二维位移自动监测系统项目建议书
- 以学生为中心的教育心理学课堂实践
- 智慧城市安防升级保障公共安全技术合作新篇章
- 提升学生自主学习动力的教育心理学方法论
- 数字化校园教育园区的智能升级
- 商业教育中技术应用的新趋势
- 教育心理学在个人自学策略中的应用
- 教育大数据下的学生个性化发展研究
- 2025届河北省秦皇岛市卢龙中学物理高二下期末学业质量监测模拟试题含解析
- 学习动力与学业成就的关系研究
- 中华护理学会成人肠内营养支持护理团标解读
- 2022-2023年人教版八年级化学上册期末测试卷(及参考答案)
- DLT 5175-2021 火力发电厂热工开关量和模拟量控制系统设计规程-PDF解密
- 乙状结肠癌术后护理
- 全国中医优才计划
- 排风工程全过程BIM建模与协同设计
- 提升员工服务能力的实用培训方案
- 数字化系列研究之财务数智化篇:大型集团企业财务管理的数智化
- 锅炉安装知识讲座
- 30题产业研究员岗位常见面试问题含HR问题考察点及参考回答
- 医疗机构内定量检验结果的可比性验证指南
评论
0/150
提交评论