WinRunner与QTP——我们该选择谁
上一篇 / 下一篇 2007-08-18 09:49:09 / 个人分类:转贴好文
相关阅读:
- QTP识别对象和操作对象的原理 (songfun, 2007-3-26)
- MS Active Accessibility 接口技术编程尝试 (songfun, 2007-7-12)
- 师者,该“授人以鱼”还是“授人以渔”并非你想的那么简单 (songfun, 2007-7-29)
TAG: 转贴好文
- 引用 删除 keyisoft_ylw / 2016-04-07 14:39:31
-
评 1 分
- 引用 删除 songfun / 2007-09-02 22:18:08
-
Mercury Interactive, WinRunner, and QuickTest Pro
Introduction
This document was created because of the major amount of confusion out there about Mercury's intentions with WinRunner and QuickTest Pro. There have been a lot of questions about whether scripts would have to be converted, thrown away, or be reusable. I talked with Mercury over the span of a couple conference calls to get things cleared up. The content and direction of the this document comes from questions that were offered by QAForums users and questions that I had for my own knowledge.
This thread should not be replied to, please reference it in other threads. Thanks. I will update this thread as needed, with information confirmed by Mercury.
From what I have gathered from questions that I've been asked and the statements that I'm hearing, I think *most* of everyone's fears about this new dynamic can be summed up with what Mercury has been saying all along:
WinRunner and its support are not going away.
Now, the 'how will things be handled in the future' and 'will WR do this and will QTP do that' issues are going to take some discussion. So, here we go.
"Ok, I got QTP and I've got an app that I'm testing with it. What about my WR stuff? Should I just throw those scripts out?" No, no, no. Again, I say, "No." QTP is going to (if not already) have the ability to launch WR and have your scripts run. You're not going to lose all the scripts, etc. that you've built. You've had your WR scripts call other WR scripts before... it's going to be the same concept. And what's coming in the "near future" is a centralized results set. Where you run your WR/QTP scripts and they call QTP/WR scripts and your reported results at the end of your test run are all in one place.
So an environment that has been using WR and need a .NET solution would build .NET app scripts in QTP and:
a.Have your WR scripts call your QTP/.Net tests
b.Run your QTP/.Net scripts and call your WR scripts as needed.
- 引用 删除 songfun / 2007-08-22 11:52:56
-
这位同行的文章的原始出处在
http://www.blogjava.net/xingcyx/archive/2006/12/25/89932.aspx
- 引用 删除 songfun / 2007-08-22 11:52:27
-
网上另一个同行总结的:
测试工具QTP与WinRunner的比较
QTP,全称为Quick Test Professional,它与WinRunner同为MI公司开发的功能强大的功能测试工具。从时间上来看,WinRunner在1995年便已经推出,远早于QTP,而QTP直到2002年才正式推出。从MI公司提供的一些官方资料来看,虽然他们宣称暂时不准备淘汰WinRunner,但他们的宣传资料上又明确表示,QTP已经具备了WinRunner中几乎所有的特性,同时具备了一些独有的特性,并且总体来说,使用更简单、更易扩展和维护,推荐新用户使用QTP,并建议已使用WinRunner的老客户逐渐实现转换。由此看来,MI公司实际上已经有使用QTP逐步取代WinRunner的计划。更重要的是,QTP对J2EE,.NET架构的应用程序支持得比WinRunner要好(从我实际的试用过程中,也感到确实是如此),因此我认为,从我们公司的实际情况出发,针对产品综合部今后将逐步开展自动化测试的计划,QTP应该是一个比较好的选择。
不论是WinnRunner还是QTP,它们都是功能十分强大的测试工具,加上目前国内关于测试工具的培训和文档资料,实在是少之又少,因此要完全了解和掌握它们,绝不是一朝一夕的事情。在这里我只能就目前对它们的理解程度粗略地介绍一下二者的两点主要不同之处。
1、 使用的脚本语言不同。WinRunner使用的是TSL语言,这是MI公司独有的语言,有特殊性,因此在学习上会有一定难度,不过好在它与C 语言比较类似,如果测试人员有一定的C语言编程基础,会相对容易一些。而QTP使用的则是微软的VBScript语言,比较通用,而且也相对简单易学。从语言上的比较上来看,我个人觉得在编程能力上,WinRunner更胜一筹,因为它拥有相当丰富的C语言函数库,而相对而言,QTP则更大众化,它面向的是没有太多技术背景和编程经验的测试人员。
2、 QTP8.0具有的一大特性:关键字驱动测试(keyword-driven testing)。它的具体操作方法我将有另外的文档详细说明,这里只是简单介绍一下。通过“关键字驱动测试”,测试人员不需要“录制”测试脚本,而可以改成“设计”测试脚本。即:先将应用程序的GUI对象添加到QTP的对象仓库(Object Repository)中,然后针对每一个需要操作到的对象设计每个测试步骤。我个人感觉,这的确是一个很酷的特性,它使我们可以不必实际去操作应用程序,就可以编写出测试脚本,这样做既节省了时间,而且还有一个更大的好处就是可以在应用程序还没有设计完成,或者由于出错无法正常执行的时候仍然可以编写我们的测试脚本。应用程序只需要有使用界面(UI),而不必实际运行,测试人员就可以开始建立测试脚本,为我们实施自动化测试赢得更充足的时间。而在 WinRunner中,虽然也可以采用先学习对象,然后编写代码的方式来完成测试脚本,但这样做要求测试人员对TSL语言比较熟悉才做得到,远不如QTP 来得简单。在实际的操作中我还发现,有些时候采用录制的方法无法捕获对应用程序的操作,此时改用关键字驱动测试却可以收到不错的效果。
3、相对WinRunner,QTP还具有很多优点,例如“数据表整合”,“Active Screen”,“point and click”,更容易参数化等等,但对于这几点我还没有深入的做过比较,如果今后我对此有了更多的体会和了解,我将再作整理。
标题搜索
日历
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
1 | 2 | ||||||||
3 | 4 | 5 | 6 | 7 | 8 | 9 | |||
10 | 11 | 12 | 13 | 14 | 15 | 16 | |||
17 | 18 | 19 | 20 | 21 | 22 | 23 | |||
24 | 25 | 26 | 27 | 28 | 29 | 30 | |||
31 |
我的存档
数据统计
- 访问量: 452972
- 日志数: 138
- 图片数: 4
- 建立时间: 2006-11-26
- 更新时间: 2013-08-30