LoadRunner面试问题(附答案)

合集下载

军工软件测试面试题目(3篇)

军工软件测试面试题目(3篇)

第1篇一、基础知识1. 请简述软件测试的基本概念、目的和原则。

2. 什么是黑盒测试和白盒测试?请举例说明。

3. 请简述软件测试的四个阶段。

4. 请解释什么是软件缺陷、缺陷报告和缺陷生命周期。

5. 请简述软件测试用例的设计原则。

6. 什么是回归测试?请说明回归测试的目的和意义。

7. 什么是自动化测试?请简述自动化测试的优点和缺点。

8. 请解释什么是单元测试、集成测试、系统测试和验收测试。

9. 请简述软件测试的生命周期。

10. 什么是软件测试环境?请列举常见的测试环境配置。

二、测试方法与工具1. 请简述等价类划分、边界值分析、错误猜测和因果图等测试方法。

2. 请简述如何使用测试用例管理工具(如TestLink、JIRA)。

3. 请简述如何使用自动化测试工具(如Selenium、Appium)。

4. 请简述如何使用性能测试工具(如JMeter、LoadRunner)。

5. 请简述如何使用缺陷管理工具(如Bugzilla、Mantis)。

6. 请简述如何使用持续集成工具(如Jenkins、GitLab)。

7. 请简述如何使用配置管理工具(如SVN、Git)。

三、军工软件测试1. 请简述军工软件的特点和测试要求。

2. 请简述军工软件测试的分类。

3. 请简述军工软件测试的安全性和保密性要求。

4. 请简述军工软件测试的可靠性、可用性和容错性要求。

5. 请简述军工软件测试的实时性要求。

6. 请简述军工软件测试的兼容性要求。

7. 请简述军工软件测试的稳定性要求。

8. 请简述军工软件测试的界面友好性要求。

9. 请简述军工软件测试的易用性要求。

10. 请简述军工软件测试的文档完整性要求。

四、测试用例设计1. 请设计一个简单的登录功能的测试用例。

2. 请设计一个复杂的支付功能的测试用例。

3. 请设计一个涉及到多个模块协同工作的测试用例。

4. 请设计一个针对软件性能的测试用例。

5. 请设计一个针对软件安全性的测试用例。

6. 请设计一个针对软件稳定性的测试用例。

软件测试面试题117道题[技巧]

软件测试面试题117道题[技巧]

软件测试面试题117道题[技巧]软件测试经典面试题汇总1、什么是兼容性测试,兼容性测试侧重哪些方面,2、我现在有个程序,发现在Windows上运行得很慢,怎么判别是程序存在问题还是软硬件系统存在问题,3、测试的策略有哪些,4、正交表测试用例设计方法的特点是什么,5、描述使用bugzilla缺陷管理工具对软件缺陷(BUG)跟踪的管理的流程,6、你觉得bugzilla在使用的过程中,有什么问题,7、描述测试用例设计的完整过程,8、单元测试的策略有哪些,9、LoadRunner分哪三部分,10、LoadRunner进行测试的流程?什么是并发,在lordrunner中,如何进行并发的测试,集合点失败了会怎么样,12、使用QTP做功能测试,录制脚本的时候,要验证多个用户的登录情况/查询情况,如何操作,13、QTP中的Action有什么作用,有几种, 614、TestDirector有些什么功能,如何对软件测试过程进行管理, 15、你所熟悉的软件测试类型都有哪些,请试着分别比较这些不同的测试类型的区别与联系(如功能测试、性能测试……),16、条软件缺陷(或者叫Bug)记录都包含了哪些内容,如何提交高质量的软件缺陷(Bug)记录,17、Beta测试与Alpha测试有什么区别,18、软件的评审一般由哪些人参加,其目的是什么,19、测试活动中,如果发现需求文档不完善或者不准确,怎么处理, 20、阶段评审与项目评审有什么区别,1、什么是兼容性测试,兼容性测试侧重哪些方面,参考答案:兼容测试主要是检查软件在不同的硬件平台、软件平台上是否可以正常的运行,即是通常说的软件的可移植性。

兼容的类型,如果细分的话,有平台的兼容,网络兼容,数据库兼容,以及数据格式的兼容。

兼容测试的重点是,对兼容环境的分析。

通常,是在运行软件的环境不是很确定的情况下,才需要做兼容。

根据软件运行的需要,或者根据需求文档,一般都能够得出用户会在什么环境下使用该软件,把这些环境整理成表单,就得出做兼容测试的兼容环境了。

性能测试面试题目(3篇)

性能测试面试题目(3篇)

第1篇一、基础知识1. 请简述性能测试的定义和目的。

2. 性能测试通常包括哪些类型?3. 什么是负载测试?请举例说明。

4. 什么是压力测试?请举例说明。

5. 什么是并发测试?请举例说明。

6. 什么是基准测试?请举例说明。

7. 什么是稳定性测试?请举例说明。

8. 什么是可恢复性测试?请举例说明。

9. 什么是配置测试?请举例说明。

10. 请简述性能测试中常见的性能指标,如响应时间、吞吐量、错误率等。

11. 请简述性能测试的流程,包括哪些阶段?12. 请简述性能测试工具的作用和常见工具,如JMeter、LoadRunner等。

13. 请简述性能测试中的瓶颈分析方法和优化策略。

14. 请简述性能测试中的数据采集和分析方法。

15. 请简述性能测试中的性能监控和报警机制。

二、性能测试实践1. 请描述一个实际性能测试项目,包括项目背景、目标、测试工具、测试流程等。

2. 请简述如何制定性能测试计划,包括测试目标、测试场景、测试数据等。

3. 请简述如何设计性能测试用例,包括测试场景、测试数据、测试步骤等。

4. 请简述如何搭建性能测试环境,包括硬件、软件、网络等。

5. 请简述如何执行性能测试,包括测试数据准备、测试执行、结果分析等。

6. 请简述如何分析性能测试结果,包括瓶颈分析、优化策略等。

7. 请简述如何编写性能测试报告,包括测试目的、测试方法、测试结果、优化建议等。

8. 请简述如何利用性能测试工具进行性能测试,如JMeter、LoadRunner等。

9. 请简述如何进行压力测试,包括测试目标、测试场景、测试数据等。

10. 请简述如何进行并发测试,包括测试目标、测试场景、测试数据等。

11. 请简述如何进行基准测试,包括测试目标、测试场景、测试数据等。

12. 请简述如何进行稳定性测试,包括测试目标、测试场景、测试数据等。

13. 请简述如何进行可恢复性测试,包括测试目标、测试场景、测试数据等。

14. 请简述如何进行配置测试,包括测试目标、测试场景、测试数据等。

计算机软件面试试题

计算机软件面试试题

计算机软件面试试题
1.描述使用bugzilla缺陷管理工具对软件缺陷(BUG)跟踪的管理的流程?
参考答案: 就是Bugzilla的状态转换图。

2.你觉得bugzilla在使用的过程中, 有什么问题?
参考答案:界面不稳定;根据需要配置它的不同的部分, 过程很烦琐。

流程控制上, 安全性不好界定, 很容易对他人的Bug进行误操作;没有综合的评分指标, 不好确认修复的优先级别。

3.描述测试用例设计的完整过程?
参考答案: 需求分析+需求变更的维护工作;根据需求得出测试需求;逻辑覆盖、循环覆盖、同行评审、桌前检查、代码走查、代码评审、景泰数据流
4.单元测试的策略有哪些?
参考答案: 逻辑覆盖、循环覆盖、同行评审、桌前检查、代码走查、代码评审、景泰数据流
5.LoadRunner分哪三部分?
参考答案: 用户动作设计;场景设计;测试数据分析。

6.什么是并发?在lordrunner中, 如何进行并发的测试?集合点失败了会怎么样?
参考答案:在同一时间点, 支持多个不同的操作。

L
7、使用QTP做功能测试, 录制脚本的时候, 要验证多个用户的登录情况/查询情况, 如何操作?
参考答案:分析用户登录的基本情况, 得出一组数据, 通过性测试/失败性测试的都有(根据TC来设计这些数据), 然后录制登录的脚本, 将关键的数据参数化, 修改脚本, 对代码进行加强, 调试脚本。

loadrunner面试问题

loadrunner面试问题

问题1:LoadRunner响应时间是什么?答:响应时间就是客户端发送请求,服务器返回最后(或者第)一个字节的时间。

LoadRunner的事务函数功能是度量客户端和服务器之间交互时间的。

事务函数最后在分析图表里有,比如你在前边开发脚本的时候你在登陆功能中添加了事务函数,那么controller中运行1000个用户之后,在分析图表中你就会看到1000个用户登录功能所消耗的时间(平均,其中1000个用户用的最多的时间,10000个用户用的最少的时间)。

问题2:页面点击数与页面浏览数什么概念,页面点击数过高会对系统的性能产生什么影响?答:页面点击数:又名“hits”,它包括了点击了某个网页后,浏览器为了显示此网页而附带来的所有图片等支持文件的数量。

“点击数”往往被用来衡量网站服务器的工作负载,也是衡量网站服务器性能的标准之一。

文件数量的增多,会增加网络流量。

页面浏览量(页面量):又名“PageView”,它是指实际被点击的网页数量。

“页面浏览量”往往被用来衡量网站内容的受欢迎程度和被访问情况。

问题3:在LoadRunner中有个Anget,这个Anget具体起什么作用啊?在讲Robot的架构的时候好像也提到过,但是没有讲Anget具体作用,是不是LR与Robot中Anget作用一样的呢?答:Agent 的作用是提供一个宿主环境提供虚拟用户运行,在LoadRunner中叫做Load Generator。

问题4:这个章节中讲到了“响应时间”、“页面点击数”、“吞吐量”这几个概念,我想问一下,“响应时间”越快是不是就越好?“页面点击数”越少是不是就越好?“吞吐量”越大是不是就越好?答:性能是寻找执行效率与功能之间的平衡。

这些不过是性能分析所关注的。

不是越大越好。

问题5:loadrunner如何选择协议?答:首先要熟悉应用程序的架构,采用什么协议进行通讯的.因为LoadRunner主要是通过捕获客户端与服务器之间的数据通讯包,根据这些数据包来生成脚本的.所以,如果协议选择不正确的话,LoadRunner就无法捕获客户端与服务器之间的数据通讯包。

自动化面试面试题目(3篇)

自动化面试面试题目(3篇)

第1篇1. 请简述自动化测试的定义及其与传统测试的区别。

2. 自动化测试有哪些类型?请分别举例说明。

3. 什么是测试用例?测试用例设计的原则有哪些?4. 请简述软件开发生命周期(SDLC)中测试的几个阶段及其主要任务。

5. 什么是回归测试?请说明回归测试的目的和作用。

6. 请简述黑盒测试和灰盒测试的区别。

7. 请简述白盒测试和黑盒测试的区别。

8. 什么是自动化测试脚本?请举例说明自动化测试脚本的作用。

9. 什么是自动化测试框架?请举例说明自动化测试框架的作用。

10. 什么是单元测试?请说明单元测试的目的和作用。

二、工具与技术1. 请简述Selenium自动化测试工具的原理和特点。

2. 请列举Selenium常用的元素定位方法及其优缺点。

3. 请简述Selenium WebDriver和Selenium RC的区别。

4. 请简述Appium自动化测试工具的原理和特点。

5. 请列举Appium常用的元素定位方法及其优缺点。

6. 请简述Robot Framework自动化测试工具的原理和特点。

7. 请列举Robot Framework的测试数据驱动(Data-Driven)测试方法。

8. 请简述JUnit和TestNG测试框架的区别。

9. 请简述Page Object设计模式在自动化测试中的应用。

10. 请简述测试报告在自动化测试中的作用。

三、设计思路1. 请简述自动化测试用例设计的原则。

2. 请说明如何设计自动化测试用例。

3. 请简述自动化测试用例的优先级划分方法。

4. 请简述自动化测试用例的覆盖范围。

5. 请说明如何编写自动化测试脚本。

6. 请简述如何编写自动化测试框架。

7. 请说明如何进行自动化测试环境的搭建。

8. 请简述如何进行自动化测试的持续集成(CI)。

9. 请说明如何进行自动化测试的持续部署(CD)。

10. 请简述如何进行自动化测试的性能优化。

四、问题与解决1. 在自动化测试中,如何处理元素定位不到的情况?2. 在自动化测试中,如何处理元素属性动态变化的情况?3. 在自动化测试中,如何处理验证码?4. 在自动化测试中,如何处理浏览器窗口切换?5. 在自动化测试中,如何处理弹窗?6. 在自动化测试中,如何处理网络延迟?7. 在自动化测试中,如何处理数据库连接问题?8. 在自动化测试中,如何处理日志记录?9. 在自动化测试中,如何处理异常处理?10. 在自动化测试中,如何处理测试数据管理?五、面试题及答案1. 请简述自动化测试的定义及其与传统测试的区别。

软件测试面试题(含答案)

软件测试面试题(含答案)1、你的测试职业发展是什么?考试经验越多,考试能力越高。

所以我的职业发展需要时间积累,一步一步走向高级测试工程师。

而且,我也有了初步的职业规划。

前三年积累了测试经验,按照如何做一名测试工程师的要点要求自己,不断更新自己,修正自己,做好测试任务。

优势在于我对测试坚定不移的信心和热情,虽然经验还不够,但测试需要的基本技能我有信心在工作中得以发挥。

2、你认为测试人员需要具备哪些素质做测试应该要有一定的协调能力,因为测试人员经常要与开发接触处理一些问题,如果处理不好的话会引起一些冲突,这样的话工作上就会不好做。

还有测试人员要有一定的耐心,有的时候做测试很枯燥乏味。

除了耐心,测试人员不能放过每一个可能的错误。

3、你为什么能够做测试这一行虽然我的测试技术还不是很成熟,但是我觉得我还是可以胜任软件测试这个工作的,因为做软件测试不仅是要求技术好,还有有一定的沟通能力,耐心、细心等外在因素。

综合起来看我认为我是胜任这个工作的。

4、测试的目的是什么?测试的目的是找出软件产品中的错误,是软件尽可能的符合用户的要求。

当然软件测试是不可能找出全部错误的。

5、测试分为哪几个阶段?一般来说分为5个阶段:单元测试、集成测试、确认测试、系统测试、验收测试6.单元测试的测试对象、目的、依据和方法?测试对象是模块内部的程序错误,目的是消除局部模块逻辑和功能上的错误和缺陷。

测试依据是模块的详细设计,测试方法是采用白盒测试。

7、怎样看待加班问题加班的话我没有太多意见,但是我还是觉得如果能够合理安排时间的话,不会有太多时候加班的。

8.结合你之前的学习和工作经验,你认为如何做好测试?根据我以前的工作和学习经验,我认为要做好工作,首先要有良好的沟通。

只有沟通无障碍,才能有好的合作,更好的效率。

还有一个就是技术一定要过关,一定要有足够的耐心和良好的工作习惯。

如果有不明白的地方,一定要提出问题,和同事实时交流。

9、你为什么选择软件测试行业因为之前了解软件测试这个行业,觉得他的发展前景很好。

仿真测试面试题目(3篇)

第1篇一、面试背景随着科技的发展,仿真测试在各个领域中的应用越来越广泛。

仿真测试是通过对系统的模拟,验证系统在实际运行中的性能、功能和可靠性。

为了选拔具备仿真测试能力的优秀人才,以下是一份仿真测试面试题目,旨在考察应聘者的理论知识、实际操作能力和解决问题的能力。

二、面试题目一、基础知识部分1. 请简述仿真测试的定义及其在工程中的应用。

2. 仿真测试有哪些类型?请举例说明。

3. 仿真测试的目的是什么?有哪些主要指标?4. 请解释以下概念:仿真模型、仿真环境、仿真结果。

5. 仿真测试的流程有哪些步骤?6. 请列举三种仿真测试工具及其特点。

7. 请简述仿真测试在汽车、航空、航天等领域的应用。

8. 仿真测试与实际测试有什么区别?9. 仿真测试有哪些局限性?10. 仿真测试在软件测试中的应用有哪些?二、实际操作部分1. 请简述以下仿真测试工具的基本操作:(1)MATLAB/Simulink(2)LabVIEW(3)ANSYS2. 请根据以下场景,设计一个仿真测试方案:场景:某智能家居控制系统,需要实现远程控制功能。

3. 请根据以下要求,编写一个仿真测试脚本:要求:测试一个手机APP的登录功能,包括用户名和密码的正确性、网络异常情况下的登录处理等。

4. 请根据以下场景,分析仿真测试结果并给出改进建议:场景:某电梯控制系统在仿真测试中出现故障,导致电梯无法正常运行。

5. 请根据以下要求,进行仿真测试:要求:测试一个无线通信模块的传输距离。

三、问题解决部分1. 请简述以下问题产生的原因及解决方法:问题1:仿真测试结果与实际测试结果不符。

问题2:仿真测试过程中,模型出现异常。

问题3:仿真测试过程中,仿真工具出现故障。

2. 请根据以下场景,分析问题产生的原因并给出解决方案:场景:某汽车控制系统在仿真测试中出现故障,导致车辆无法正常启动。

3. 请简述以下问题产生的原因及解决方法:问题1:仿真测试结果不准确。

问题2:仿真测试过程中,模型过于复杂,导致测试效率低下。

性能测试工程师面试题及答案

性能测试工程师面试题及答案1.请介绍一下您在性能测试方面的经验和专业背景。

答:我拥有六年的性能测试经验,曾在ABC公司领导一支团队成功完成多个大型项目的性能测试任务。

我的专业背景包括计算机科学硕士学位,为我提供了深厚的理论基础,使我能够更好地理解和应对复杂的性能测试挑战。

2.在性能测试中,什么是负载测试,它的主要目的是什么?答:负载测试是通过模拟用户访问和系统负荷,评估系统在正常和峰值负载下的性能表现。

主要目的是确保系统在各种条件下都能提供可接受的性能水平,包括响应时间、吞吐量等方面。

例如,在电商网站上,通过负载测试可以确保在促销活动期间系统能够处理高并发的用户访问而不崩溃。

3.请详细解释性能测试中的“响应时间”和“吞吐量”的概念。

答:响应时间是用户发起请求到系统返回响应所经历的时间,是衡量系统性能的重要指标。

吞吐量则表示系统在单位时间内能够处理的请求数量。

通过监测这两个指标,我们能够评估系统的性能状况。

例如,一个金融交易系统需要快速的响应时间和高吞吐量,以确保及时处理大量的交易请求。

4.您在性能测试中使用过哪些工具,它们的优缺点是什么?答:我熟练使用LoadRunner和JMeter等工具。

LoadRunner具有强大的脚本录制和分析功能,适用于复杂的企业级应用,但相对昂贵。

JMeter是一个开源工具,适用于小型项目,但在处理复杂场景时可能需要更多的手动配置。

在项目选择工具时,我会根据具体需求和预算综合考虑工具的优缺点。

5.请详细描述一个您成功完成的性能测试项目,包括遇到的挑战和解决方法。

答:在上一份工作中,我们负责对一个电商平台进行性能测试。

挑战之一是模拟真实的用户行为,因为平台具有多种交互方式。

我们采用了混合负载测试,结合业务日志和用户行为分析,成功模拟了复杂的用户场景。

另一个挑战是在高负载下发现性能瓶颈。

通过分析数据库索引、优化代码和增加服务器资源,我们最终成功提高了系统的性能,确保了在高峰期的稳定运行。

大厂性能测试面试题目(3篇)

第1篇1. 请简述性能测试的目的和重要性。

2. 请列举几种常见的性能测试指标,并解释它们的意义。

3. 请说明负载测试和压力测试的区别。

4. 请简述如何进行性能测试环境的搭建。

5. 请描述在性能测试过程中,如何发现性能瓶颈。

6. 请简述如何对性能测试结果进行分析。

7. 请说明如何根据性能测试结果对系统进行优化。

8. 请描述如何进行分布式性能测试。

9. 请简述如何进行Web应用的性能测试。

10. 请描述如何进行数据库性能测试。

11. 请简述如何进行内存性能测试。

12. 请简述如何进行CPU性能测试。

13. 请简述如何进行网络性能测试。

14. 请简述如何进行磁盘IO性能测试。

15. 请简述如何进行并发性能测试。

16. 请简述如何进行缓存性能测试。

17. 请简述如何进行Web服务性能测试。

18. 请简述如何进行移动应用性能测试。

19. 请简述如何进行虚拟化性能测试。

20. 请简述如何进行云计算性能测试。

21. 请简述如何进行性能测试的自动化。

22. 请简述如何使用JMeter进行性能测试。

23. 请简述如何使用LoadRunner进行性能测试。

24. 请简述如何使用Gatling进行性能测试。

25. 请简述如何使用Yammer进行性能测试。

26. 请简述如何使用VisualVM进行性能测试。

27. 请简述如何使用Perfmon进行性能测试。

28. 请简述如何使用Wireshark进行性能测试。

29. 请简述如何使用Fiddler进行性能测试。

30. 请简述如何使用Xdebug进行性能测试。

31. 请简述如何进行性能测试的缺陷管理。

32. 请简述如何进行性能测试的持续集成。

33. 请简述如何进行性能测试的持续交付。

34. 请简述如何进行性能测试的文档编写。

35. 请简述如何进行性能测试的团队协作。

36. 请简述如何进行性能测试的项目管理。

37. 请简述如何进行性能测试的风险管理。

38. 请简述如何进行性能测试的质量管理。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1.What is load testing? - Load testing is to test that if theapplication works fine with the loads that result from large number of simultaneous users, transactions and to determine weather it can handle peak usage periods.2.What is Performance testing? - Timing for both read and updatetransactions should be gathered to determine whether systemfunctions are being performed in an acceptable timeframe. This should be done standalone and then in a multi user environment to determine the effect of multiple transactions on the timing of a single transaction.3.Did u use LoadRunner? What version? - Yes. Version 7.2.4.Explain the Load testing process? -Step 1: Planning the test. Here, we develop a clearly defined test plan to ensure the test scenarios we develop will accomplishload-testing objectives. Step 2: Creating Vusers. Here, we create Vuser scrīpts that contain tasks performed by each Vuser, tasks performed by Vusers as a whole, and tasks measured astransactions. Step 3: Creating the scenario. A scenario describes the events that occur during a testing session. It includes a list of machines, scrīpts, and Vusers that run during the scenario. We create scenarios using LoadRunner Controller. We can create manual scenarios as well as goal-oriented scenarios. In manual scenarios, we define the number of Vusers, the load generator machines, and percentage of Vusers to be assigned to each scrīpt. For web tests, we may create a goal-oriented scenario where we define the goal that our test has to achieve. LoadRunner automatically builds a scenario for us. Step 4: Running the scenario.We emulate load on the server by instructing multiple Vusers to perform tasks simultaneously. Before the testing, we set thescenario configuration and scheduling. We can run the entirescenario, Vuser groups, or individual Vusers. Step 5: Monitoring the scenario.We monitor scenario execution using the LoadRunner online runtime, transaction, system resource, Web resource, Web server resource, Web application server resource, database server resource, network delay, streaming media resource, firewall server resource, ERP server resource, and Java performance monitors. Step 6: Analyzing test results. During scenario execution, LoadRunner records the performance of the application under different loads. We useLoadRunner’s graphs and reports to analyze the application’s performance.5.When do you do load and performance Testing? - We perform loadtesting once we are done with interface (GUI) testing. Modern system architectures are large and complex. Whereas single user testingprimarily on functionality and user interface of a system component, application testing focuses on performance and reliability of an entire system. For example, a typical application-testing scenario might depict 1000 users logging in simultaneously to a system. This gives rise to issues such as what is the response time of the system, does it crash, will it go with different software applications and platforms, can it hold so many hundreds and thousands of users, etc.This is when we set do load and performance testing.6.What are the components of LoadRunner? - The components ofLoadRunner are The Virtual User Generator, Controller, and the Agent process, LoadRunner Analysis and Monitoring, LoadRunner Books Online.7.What Component of LoadRunner would you use to record a scrīpt? -The Virtual User Generator (VuGen) component is used to record a scrīpt. It enables you to develop Vuser scrīpts for a variety of application types and communication protocols.8.What Component of LoadRunner would you use to play Back the scrīpt in multi user mode? - The Controller component is used to playback the scrīpt in multi-user mode. This is done during a scenario run where a vuser scrīpt is executed by a number of vusers in a group.9.What is a rendezvous point?- You insert rendezvous points into Vuserscrīpts to emulate heavy user load on the server. Rendezvous points instruct Vusers to wait during test execution for multiple Vusers to arrive at a certain point, in order that they may simultaneously perform a task. For example, to emulate peak load on the bank server, you can insert a rendezvous point instructing 100 Vusers to deposit cash into their accounts at the same time.10.What is a scenario?- A scenario defines the events that occur duringeach testing session. For example, a scenario defines and controls the number of users to emulate, the actions to be performed, and the machines on which the virtual users run their emulations. 11.Explain the recording mode for web Vuser scrīpt? - We use VuGen todevelop a Vuser scrīpt by recording a user performing typical business processes on a client application. VuGen creates the scr īpt by recording the activity between the client and the server.For example, in web based applications, VuGen monitors the client end of the database and traces all the requests sent to, and received from, the database server. We use VuGen to: Monitor thecommunication between the application and the server; Generate the required function calls; and Insert the generated function calls into a Vuser scrīpt.12.Why do you create parameters?- Parameters are like scrīpt variables.They are used to vary input to the server and to emulate real users.Different sets of data are sent to the server each time the scrīpt is run. Better simulate the usage model for more accurate testing from the Controller; one scrīpt can emulate many different users on the system.13.What is correlation? Explain the difference between automaticcorrelation and manual correlation?- Correlation is used to obtain data which are unique for each run of the scrīpt and which are generated by nested queries. Correlation provides the value to avoid errors arising out of duplicate values and also optimizing the code (to avoid nested queries). Automatic correlation is where we set some rules for correlation. It can be application server specific.Here values are replaced by data which are created by these rules.In manual correlation, the value we want to correlate is scanned and create correlation is used to correlate.14.How do you find out where correlation is required? Give few examplesfrom your projects?- Two ways:First we can scan for correlations, and see the list of values which can be correlated. From this we can pick a value to be correlated. Secondly, we can record two scr īpts and compare them. We can look up the difference file to see for the values which needed to be correlated. In my project, there was a unique id developed for each customer, it was nothing but Insurance Number, it was generated automatically and it wassequential and this value was unique. I had to correlate this value, in order to avoid errors while running my scrīpt. I did using scan for correlation.15.Where do you set automatic correlation options? - Automaticcorrelation from web point of view can be set in recording options and correlation tab. Here we can enable correlation for the entire scrīpt and choose either issue online messages or offline actions, where we can define rules for that correlation. Automaticcorrelation for database can be done using show output window and scan for correlation and picking the correlate query tab and choose which query value we want to correlate. If we know the specific value to be correlated, we just do create correlation for the value and specify how the value to be created.16.What is a function to capture dynamic values in the web Vuser scrīpt? - Web_reg_save_param function saves dynamic data information to a parameter.17.When do you disable log in Virtual User Generator, When do you choosestandard and extended logs? - Once we debug our scrīpt and verify that it is functional, we can enable logging for errors only. When we add a scrīpt to a scenario, logging is automatically disabled.Standard Log Option:When you selectStandard log, it creates a standard log of functions and messagessent during scrīpt execution to use for debugging. Disable this option for large load testing scenarios. When you copy a scrīpt toa scenario, logging is automatically disabled Extended Log Option:Selectextended log to create an extended log, including warnings and other messages. Disable this option for large load testing scenarios. When you copy a scrīpt to a scenario, logging is automatically disabled.We can specify which additional information should be added to the extended log using the Extended log options.18.How do you debug a LoadRunner scrīpt? - VuGen contains two optionsto help debug Vuser scrīpts-the Run Step by Step command and breakpoints. The Debug settings in the Options dialog box allow us to determine the extent of the trace to be performed during scenario execution. The debug information is written to the Output window.We can manually set the message class within your scrīpt using the lr_set_debug_message function. This is useful if we want to receive debug information about a small section of the scrīpt only. 19.How do you write user defined functions in LR? Give me few functionsyou wrote in your previous project? - Before we create the User Defined functions we need to create the externallibrary (DLL) with the function. We add this library to VuGen bin directory. Once the library is added then we assign user defined function as a parameter. The function should have the following format: __declspec (dllexport) char* <function name>(char*,char*)Examples of user defined functions are as follows:GetVersion, GetCurrentTime, GetPltform are some of the user defined functions used in my earlier project.20.What are the changes you can make in run-time settings? - The RunTime Settings that we make are: a)Pacing- It has iteration count.b) Log - Under this we have Disable Logging Standard Log and c)Extended Think Time- In think time we have two options like Ignore think time and Replay think time. d) General - Under general tab we can set the vusers as process or as multithreading and whether each step as a transaction.21.Where do you set Iteration for Vuser testing? - We set Iterationsin the Run Time Settings of the VuGen. The navigation for this is Run time settings, Pacing tab, set number of iterations.22.How do you perform functional testing under load? - Functionalityunder load can be tested by running several Vusers concurrently.By increasing the amount of Vusers, we can determine how much load the server can sustain.23.What is Ramp up? How do you set this? - This option is used togradually increase the amount of Vusers/load on the server. Aninitial value is set and a value to wait between intervals can be specified. To set Ramp Up, go to ‘Scenario Scheduling Options’ 24.What is the advantage of running the Vuser as thread? - VuGenprovides the facility to use multithreading. This enables more Vusers to be run pergenerator. If the Vuser is run as a process, the same driver program is loaded into memory for each Vuser, thus taking up a large amount of memory. This limits the number of Vusers that can be run ona singlegenerator. If the Vuser is run as a thread, only one instance of the driver program is loaded into memory for the given number of Vusers (say 100). Each thread shares the memory of the parent driver program, thus enabling more Vusers to be run per generator.25.If you want to stop the execution of your scrīpt on error, how doyou do that?- The lr_abort function aborts the execution of a Vuser scrīpt. It instructs the Vuser to stop executing the Actions section, execute the vuser_end section and end the execution. This function is useful when you need to manually abort a scrīpt execution as a result of a specific error condition. When you end a scrīpt using this function, the Vuser is assigned the status "Stopped". For this to take effect, we have to first uncheck the “Continue on error”option in Run-Time Settings.26.What is the relation between Response Time and Throughput? - TheThroughput graph shows the amount of data in bytes that the Vusers received from the server in a second. When we compare this with the transaction response time, we will notice that as throughputdecreased, the response time also decreased. Similarly, the peak throughput and highest response time would occur approximately at the same time.27.Explain the Configuration of your systems? - The configuration ofour systems refers to that of the client machines on which we run the Vusers. The configuration of any client machine includes its hardware settings, memory, operating system, software applications, development tools, etc. This system component configuration should match with the overall system configuration that would include the network infrastructure, the web server, the database server, and any other components that go with this larger system so as to achieve the load testing objectives.28.How do you identify the performance bottlenecks? - PerformanceBottlenecks can be detected by using monitors. These monitors might be application server monitors, web server monitors, database server monitors and network monitors. They help in finding out the troubled area in our scenario which causes increased response time.The measurements made are usually performance response time,throughput, hits/sec, network delay graphs, etc.29.If web server, database and Network are all fine where could be theproblem? - The problem could be in the system itself or in the application server or in the code written for the application.30.How did you find web server related issues? - Using Web resourcemonitors we can find the performance of web servers. Using these monitors we can analyze throughput on the web server, number of hits per second thatoccurred during scenario, the number of http responses per second, the number of downloaded pages per second.31.How did you find database related issues?- By running “Database”monitor and help of “Data Resource Graph” we can find database related issues. E.g. You can specify the resource you want to measure on before running the controller and than you can see database related issues32.Explain all the web recording options?33.What is the difference between Overlay graph and Correlate graph?- Overlay Graph: It overlay the content of two graphs that sharesa common x-axis. Left Y-axis on the merged graph show’s the currentgraph’s value & Right Y-axis show the value of Y-axis of the graph that was merged. Correlate Graph: Plot the Y-axis of two graphs against each other. The active graph’s Y-axis becomes X-axis of merged graph. Y-axis of the graph that was merged becomes merged graph’s Y-axis.34.How did you plan the Load? What are the Criteria? - Load test isplanned to decide the number of users, what kind of machines we are going to use and from where they are run. It is based on 2 important documents, Task Distribution Diagram and Transaction profile. Task Distribution Diagram gives us the information on number of users for a particular transaction and the time of the load. The peak usage and off-usage are decided from this Diagram. Transaction profile gives us the information about the transactions name and their priority levels with regard to the scenario we are deciding. 35.What does vuser_init action contain? - Vuser_init action containsprocedures to login to a server.36.What does vuser_end action contain? - Vuser_end section containslog off procedures.37.What is think time? How do you change the threshold?- Think timeis the time that a real user waits between actions. Example: Whena user receives data from a server, the user may wait several secondsto review the data before responding. This delay is known as the think time. Changing the Threshold: Threshold level is the level below which the recorded think time will be ignored. The defaultvalue is five (5) seconds. We can change the think time threshold in the Recording options of the Vugen.38.What is the difference between standard log and extended log?- Thestandard log sends a subset of functions and messages sent during scrīpt execution to a log. The subset depends on the Vusertype Extended log sends a detailed scrīpt execution messages to the output log. This is mainly used during debugging when we want information about: Parameter substitution. Data returned by the server. Advanced trace.39.Explain the following functions: - lr_debug_message - Thelr_debug_message function sends a debug message to the output log when the specified message class is set. lr_output_message - The lr_output_message function sends notifications to the Controller Output window and the Vuser log file. lr_error_message - Thelr_error_message function sends an error message to the LoadRunner Output window. lrd_stmt - The lrd_stmt function associates acharacter string (usually a SQL statement) with a cursor. This function sets a SQL statement to be processed. lrd_fetch - The lrd_fetch function fetches the next row from the result set. 40.Throughput - If the throughput scales upward as time progressesand the number of Vusers increase, this indicates that the bandwidth is sufficient. If the graph were to remain relatively flat as the number of Vusers increased, it wouldbe reasonable to conclude that the bandwidth is constraining the volume ofdata delivered.41.Types of Goals in Goal-Oriented Scenario - Load Runner providesyou with five different types of goals in a goal oriented scenario: o The number of concurrent Vuserso The number of hits per secondo The number of transactions per secondo The number of pages per minuteo The transaction response time that you want your scenario 42.Analysis Scenario (Bottlenecks): In Running Vuser graph correlatedwith the response time graph you can see that as the number of Vusers increases, the average response time of the check itinerarytransaction very gradually increases. In other words, the average response time steadily increases as the loadincreases. At 56 Vusers, there is a sudden, sharp increase in the average responsetime. We say that the test broke the server. That is the mean time before failure (MTBF). The response time clearly began to degrade when there were more than 56 Vusers running simultaneously.43.What is correlation? Explain the difference between automaticcorrelation and manual correlation?- Correlation is used to obtain data which are unique for each run of the scrīpt and which are generated by nested queries. Correlation provides the value to avoid errors arising out of duplicate values and also optimizing the code (to avoid nested queries). Automatic correlation is where we set some rules for correlation. It can be application server specific.Here values are replaced by data which are created by these rules.In manual correlation, the value we want to correlate is scanned and create correlation is used to correlate.什么是关联?解释之间的自动关联和手动关联的差异?44.Where do you set automatic correlation options? - Automaticcorrelation from web point of view, can be set in recording options and correlation tab. Here we can enable correlation for the entire scrīpt and choose either issue online messages or offline actions, where we can define rules for that correlation. Automaticcorrelation for database, can be done using show output window and scan for correlation and picking the correlate query tab and choose which query value we want to correlate. If we know the specific value to be correlated, we just do create correlation for the value and specify how the value to be created.你在哪里设置自动关联选项?45.What is a function to capture dynamic values in the web vuser scrīpt?- Web_reg_save_param function saves dynamic data information to a parameter.。

相关文档
最新文档