一个人不应该依附在其他人身上,一个人应该首先自力更生。你应该自己能够独立,能够安顿你自己,那你就不会害怕了。你爱你自己的话,别人不能不爱你吧。

WinRunner和QTP的对比(转载)

上一篇 / 下一篇  2007-06-20 09:47:28 / 个人分类:Mercury

原文 by rickyzhu

厄。。。英文的我没有看。。。只看了中文的部分

WinRunnerQTP的对比

272 Views51Testing软件测试网7rR?A&jv&Wrr

很多初入行的朋友使用测试工具进行功能测试的时候,总是会遇到QTP和WinRunner的选择问题,为什么同样一家公司会出两个功能类似的工具哪? 下面是一篇关于这两个工具的对比介绍,其实从我自己的经验来看,WinRunner虽然推出较早,但是因为一些功能的缺陷,导致后期很难推广,而Quick Test Professinal(QTP)虽然没有师兄WinRunner出道早,然后内功深厚,所以很受欢迎,而且Mercury公司以后的主要发展策略是QTP,虽然文章中说并没有计划Phase out WR,但是已经不再出新版本了. 针对这两个工具的3年左右的使用经验,我的感受是WR比QTP的逊色的地方主要是几点:51Testing软件测试网S wv}#WA5@d

1. WR的对象管理不如QTP那么有效

(NM'rn\ n,V M u0

2. WR的语言主要是基于类C的TSL,是Mercury发明的语言,明显不如基于VBscrīpt的QTP强51Testing软件测试网9FN z/m%nH!q-y)t0CA

3. WR的稳定性不行,而且无意人为的干扰可能导致回放的失败51Testing软件测试网1Uz W2uAo(Vy{

4. WR对Java的支持也不如QTP那么强

7XW.F5RVf^0

51Testing软件测试网 ?h%{%bR0yZ-Sw

o|{]T0

WinRunner vs. QuickTest Pro51Testing软件测试网8G;r1K||{o

Quick Comparison

N!ws[ z^Y)G5VNm0

5pB.`/S v,I0


Vn'RPMK0A s2Ac011

LusM}v,V%v(e0

51Testing软件测试网h})A.VM)[)@c?


51Testing软件测试网OK:A'A-D4bv

51Testing软件测试网P:SBg5vg |

51Testing软件测试网zpPKp(y:qi"Vf E


5|7c(Nm Ac]8U t0

Overview51Testing软件测试网5|0zZg&W"S a`

51Testing软件测试网%bao;RP K0a'V

Today Mercury has two functional testing tools – WinRunner (WR) and QuickTest Professional (QTP).WinRunner has been around since about 1995 while QuickTest Pro has been available since about 2002.We have lots of companies asking us “What’s the difference between WinRunner and QuickTest Pro?” and “If they are both functional testing tools from the same company, then which one of the tools should we use?”This document was developed as a short simple reference in helping to understand the basics about the tools in order to answer these two questions.

X YWAI7d0

Mercury’s position on the two tools is this:

-vv)z'{k{T0

<!--[if !supportLists]-->*<!--[endif]-->The strategic direction for Mercury and its customers for Functional Testing is product integration. The new releases of QTP and WR improve already existing integration where customers can leverage complete WinRunner assets (scrīpts/functions) from QuickTest Pro without any modification to these assets.

(rCn V-[*x0

<!--[if !supportLists]-->*<!--[endif]-->QuickTest Pro 8 has recently been released and WinRunner version 8.0 is planned for November 2004. There are no plans to phase out WinRunner.51Testing软件测试网9XqisF-T&Lf \

<!--[if !supportLists]-->*<!--[endif]-->QuickTest Pro remains Mercury’sprimeproduct for best customer satisfaction and experience. For customers who need both products, Mercury continues to offer Mercury Functional Testing as a combined package of both product offerings. The Business Process Testing system will be extended to incorporate components designed in WinRunner for the WinRunner 8.0 release in November.51Testing软件测试网XiN-O)A

51Testing软件测试网-p!|,N7eV


.K)Z wO'f@ X%El#v0

dF9`\3S k051Testing软件测试网\n0o,~u)QJ


wW~xG0efNl2V0

WinRunner Compared to QuickTest Pro

me-lW9ds ZJ F0

51Testing软件测试网cOBJ3Q3j4wk0\Zf

Environment Coverage Comparison:51Testing软件测试网Zs v7S3_

51Testing软件测试网B0egW"w

<!--[if !supportLists]-->*<!--[endif]-->Common environments shared by both WinRunner and QuickTest Pro:51Testing软件测试网4P` C6I+d

Web-Related Environments51Testing软件测试网Xk@rAX!K UW

IE, Netscape, AOL51Testing软件测试网H-`]Q%Cr!UHq/z

'lr$`i8h&v}rU0

JDK, Java Foundation Classes, AWT51Testing软件测试网 kWxy^V

3r m-S E5L0T} `w'O0

Symantec Visual Café

j)Bn U:Qqnk)_'pk7y0

51Testing软件测试网&X/q1be.ju

ActiveX Controls51Testing软件测试网l;p7`]p!z!D GE

ERP/CRM

~ y&Vq't:^+l0

Oracle: Jinitiator, 11i, NCA51Testing软件测试网.D`ko0A$N WGJ(w

Custom Client Server

GU`O;a/t Z0

Windows

.q2v Y JQ{R%? VkAI?0

51Testing软件测试网J A _+@.u(T.l&V

C++/C

S S P2q K6u0

51Testing软件测试网 @op9Adh"g

Visual Basic

Jog(L7xfW)d0

Operating Systems

6HDg(YWd0

Windows 98, 2000, NT, ME, XP51Testing软件测试网P4}3a*X f"C tW

Legacy

D)k C#a"vP&L*b'B)H0

3270, 5250 Emulators51Testing软件测试网!O#qZ n&z8t'l(e

R7B#^ B/y'R'G0

VT10051Testing软件测试网l9t8Q6h;ky

51Testing软件测试网dX'}Ba'~

<!--[if !supportLists]-->*<!--[endif]-->WinRunner Only Environments:51Testing软件测试网 t3Y/|j8HEh }

Custom Client/Server

'U @ H7U~'w k ~0

PowerBuilder51Testing软件测试网'Y0c.g-qzAW

Wx0|bYo@ PY0

Forte51Testing软件测试网v\WP J Y'y)jf

51Testing软件测试网.sC8i ?/mQ$D-j

Delphi51Testing软件测试网/~Io8a&E

6@Y G]3K!KA]0

Centura51Testing软件测试网$x c`S1a;cC;i/b2t

8zQO?2M&v4K%w` k0

Stingray

`A:Q5AD7Ie0

51Testing软件测试网-N{ G;AVC#^*\c

SmallTalk

}.M8C ^xa0

ERP/CRM51Testing软件测试网z:J h1V0[9r ye;a?/U

Baan

Q%ogA qJd$w0

51Testing软件测试网Eh |uj

PeopleSoft Windows

-`3C||U0

51Testing软件测试网,J/X"T }%{J

Siebel 5, 6 GUI Clients51Testing软件测试网KX+L8r!v5UKmunt

9w)A&W&wrb0

Oracle GUI Forms

\T&ahw+q0

51Testing软件测试网4| \8gEF"OI

<!--[if !supportLists]-->*<!--[endif]-->QuickTest Pro Only Environments:51Testing软件测试网h)L ^7V:P V!Lp"C

ERP/CRM

8Bd,g ~o Gp0

SAP

_Z@;Z"J7u|0

*a[FU3F(]Pp3e6t0

Siebel 7.x

p3oa&k`{{0

6h0yG'p_q7^L0

PeopleSoft 8.x51Testing软件测试网l x @C2ES4K @t

.Net

U,h'N;ID7z},D0Xi$H+C0

WinForms

Z)EA7[+j*Yt?X0

51Testing软件测试网h&w)d!E9p h:ZB S

WebForms51Testing软件测试网8].w*?5WB

51Testing软件测试网!D`M u w Wl(UU@+Y

.Net controls

*Or'D6XM5x,\d+|0

Web Services

#K#iRB'^&Nlw0

XML, HTTP51Testing软件测试网 l0_ |O?"Q6e s

51Testing软件测试网!\eD;N Z+?1V(T"P

WSDL, SOAP

X5^ |@['Gz-g0

k~1cq2NInN0

J2EE, .Net51Testing软件测试网6Y-cb-}*Fy)MVA

Multimedia51Testing软件测试网F0k P c{

RealAudio/Video51Testing软件测试网-I4OMq9l2Q{

51Testing软件测试网 y?%z:}*]~xX~

Flash

A0J.]5]dZdk%W9TzE0

?M7Yhn})ty-z]0

e1`!Iy7| ym0

51Testing软件测试网YFxU9l6pZ NX

Feature Comparison:51Testing软件测试网(Ql_K)k;s2F]2ELE

4^/Y ~8SiBln0

<!--[if !supportLists]-->*<!--[endif]-->Common features found in both WinRunner and QuickTest Pro:

yI6cBgji"s,_2j0

Record/Replay51Testing软件测试网bbp"ae^v SAS

ODBC & Excel Connectivity51Testing软件测试网Q|8FPr#pE

Code Editor & Debugger51Testing软件测试网7yEk5bbi(@2P2RY p

Recovery Manager

(U.g.J1g#_7@,@/xL?n!wR0

Shared Object Repository

-q"X?(?K"M]J7_q+x0

Rapid Object Import

v'a1_)`,St0

Numerous Checkpoints51Testing软件测试网l$z/aO h.y;D

Analog

:ReJ4xn?/RE$T0

scrīpt & Function Libraries51Testing软件测试网`1|`5C_#Do(Et

-k h3hk5qSpT v0

51Testing软件测试网\ v r,DP%c b:qN

<!--[if !supportLists]-->*<!--[endif]-->WinRunner Only Environments:51Testing软件测试网7[*Mn a-jl(D~

Function Generator51Testing软件测试网 {y/{$^avJ

Database Integration

"A\'t+].Ln F0

Run Wizard

Qpcj XD0

TSL

-b8j4fo#_4aZ0

MDI51Testing软件测试网(yWt-ddj1UV

51Testing软件测试网0\&{M U&@2[

51Testing软件测试网$qK,J9Jt

<!--[if !supportLists]-->*<!--[endif]-->QuickTest Pro Only Environments:51Testing软件测试网 c#y1Q#C;B

ActiveScreen51Testing软件测试网bV(h2`GK8Q6A#_#W

TestGuard

J!w\ f n,b\0

Tree View51Testing软件测试网3Zjkq6r*q K/XK [(?

scrīptFusion51Testing软件测试网D?mVS|

Data Table51Testing软件测试网%N [*~?7z;_+f I8u*l

VBscrīpt51Testing软件测试网1n_nTbw$\3n3|

Function Generator*

ba$V"bm0

(coming in v7.0)

a8J2Z&i}E#By h0

Run Wizard*51Testing软件测试网(O}:kPE V7I~

(coming in v7.0)51Testing软件测试网xt"?,Q?

;HG j+t X2}vmLX)r0


3S*Q%~ep0

,gVYv$~i#wg!S0{V0

{Tm9D$k4h _ Cj\0
51Testing软件测试网"pXE6T:DS] e

What We Recommend51Testing软件测试网~G3Qa%Hh N` a

1HQ:Jr3m0

QuickTest Pro is our functional testing tool of choice!

\K\`6^J0

P7J3Z*teN,b'Iq0

m*e:d2{:r/Mu6t0

Most customers are in either of two situations:

cC%z)l x(xJ0

<!--[if !supportLists]-->*<!--[endif]-->Existing WinRunner customers asking “Should we switch to QuickTest Pro?”51Testing软件测试网o^u0l2P

<!--[if !supportLists]-->*<!--[endif]-->New customers asking “Which should we get, WinRunner or QuickTest Pro?”

C \v {RF'l0

:i F @)~#YQcB0

We have been implementing Mercury’s products since 1992 and have senior level expertise in WinRunner.We have been implementing WinRunner since the very first version of it.So like many existing WinRunner customers we have a huge knowledge investment in WinRunner ourselves.However we have worked on the Mercury development team on the QuickTest Pro 6.0 and 6.5 releases, and have solid real-world experience in implementing QuickTest Pro since the 6.0 release.We have found it to be a great tool to use and recommend it to all customers!Overall,we recommend using QuickTest Prounless for some reason you have to use WinRunner due to an unsupported environment not existing in QuickTest Pro.51Testing软件测试网n3lL+O8G~2w[B

51Testing软件测试网2L ?;W"p.I`!SG

Overall, QuickTest Pro is easier to use and implement for both technical and non-technical testers in comparison to WinRunner.QTP offers many features that are found in WinRunner, but are easier to use.QTP also offers many features not found in WinRunner that make test scrīpt creation, enhancement and maintenance easier.

UTU&A:g'U-Esi0

51Testing软件测试网O2j"B$d I3@/]H

Let’s quickly discuss some key issues:51Testing软件测试网T A4D&^!Dzz

<!--[if !supportLists]-->*<!--[endif]-->The WinRunner interface forces the user to look directly at TSL code.TSL is the WinRunner programming language developed by Mercury.It is based on the “C” programming language and therefore looks very similar.For testers who do not have a technical background, they are not always comfortable with having to always look at code.However QuickTest Pro offers a “Tree View” which is an icon-based view of the scrīpt.This is very easy to get used to and non-technical people adapt to it quicker and feel more comfortable working with it.For the technical user, they can always switch over to the “Expert View” in QuickTest and look directly at code, and program away using VBscrīpt.

u?`;YF0}sKv051Testing软件测试网+y-DDoF*e

<!--[if !supportLineBreakNewLine]-->51Testing软件测试网#x%LBqU;^
<!--[endif]-->

2l9T5c|"z rH u F0

<!--[if !supportLists]-->*<!--[endif]-->WinRunner uses TSL which is a proprietary language of Mercury.These types of languages can be very restrictive and you are limited on available resources.QuickTest Pro use the Microsoft programming language VBscrīpt which is very powerful, has lots of capabilities and there are lots of resources available.

.B9@8l Q{W051Testing软件测试网6N^ _By.Z]

<!--[if !supportLineBreakNewLine]-->
l/a&Oj$v?)k1QQo0<!--[endif]-->51Testing软件测试网+z!YCL)`'F,EJ

<!--[if !supportLists]-->*<!--[endif]-->We feel that there are many more “point and click” features in QuickTest Pro than WinRunner.This makes its use easier.51Testing软件测试网x Jr d{UV

f#f*Y4ozR"R#E#Ay0<!--[if !supportLineBreakNewLine]-->
^a^Oia;S0<!--[endif]-->

8I(s-H,r6bw&KA;h0

<!--[if !supportLists]-->*<!--[endif]-->All the same features found in WinRunner are found in QuickTest Pro plus more.51Testing软件测试网TON C+H3Mi\)A P

51Testing软件测试网#vj j6szHPc|

<!--[if !supportLineBreakNewLine]-->
G S(iV$j6S)Zy0<!--[endif]-->

'}Q iqN6L Y0

<!--[if !supportLists]-->*<!--[endif]-->Data Table integration is much easier and simpler with QuickTest Pro.

+r0ho.qn,}'HGM0

f t/mfc-{+Q3|0<!--[if !supportLineBreakNewLine]-->51Testing软件测试网o!k;q/EK+M ?e!C
<!--[endif]-->

%V(l/X1k`0X$Mg"k0

<!--[if !supportLists]-->*<!--[endif]-->Data Driven Testing is easier with more options in QuickTest Pro.

? ql(^_~0]k0

@?gOc d4Ef0<!--[if !supportLineBreakNewLine]-->
3m4rkanq0<!--[endif]-->51Testing软件测试网q AjR|!]o

<!--[if !supportLists]-->*<!--[endif]-->scrīpt enhancements are typically easier with QuickTest Pro because it has the Active Screen where the windows and objects in your application are captured for later use.Using a“point and click” capability you can easily interface with objects, their definitions and create checkpoints after having recorded a scrīpt – without having to navigate back to that location in your application like you have to with WinRunner.This greatly speeds up scrīpt development.

6`B.bs0G Zj(J051Testing软件测试网U4P$N:h}r

<!--[if !supportLineBreakNewLine]-->51Testing软件测试网]`&b2v{)^
<!--[endif]-->

8Q Xal1?)p3Ag0

<!--[if !supportLists]-->*<!--[endif]-->QuickTest Pro currently has built in integration with WinRunner in order to be able to call existing scrīpts, which is great for customers who already have a large test scrīpt investment with WinRunner.Likewise WinRunner 8.0 is to have the ability to also call QuickTest Pro scrīpts.This eases the transition from WinRunner to QuickTest Pro for existing customers.

R\(v8PU,k6P\%A0

vY.b;GP0<!--[if !supportLineBreakNewLine]-->
0sp+oH2CVNd0<!--[endif]-->51Testing软件测试网%xZ!NP t x"}

<!--[if !supportLists]-->*<!--[endif]-->Parameterization is much easier in QuickTest Pro and basically anything in QuickTest Pro can be parameterized (statements, checkpoints and the Object Repository).

TZ)`w,`|ifQ0

9~~ME+T/O!d4q W[0<!--[if !supportLineBreakNewLine]-->
5KXe:WX5Dy*?0q0<!--[endif]-->

]|~2u7S&Y5W0

<!--[if !supportLists]-->*<!--[endif]-->Capturing various output values is easier and simpler with QuickTest Pro.Using this capability with parameterization enables you to easily develop scrīpts thatcan do morein regards to testing.

6r2^.Qn,][y051Testing软件测试网$q2z jj*X2E-Cl*f

<!--[if !supportLineBreakNewLine]-->51Testing软件测试网XKf6k-hfgV;y
<!--[endif]-->

*s@0K8G(_9m0

<!--[if !supportLists]-->*<!--[endif]-->We have been implementing QuickTest Pro in real-world environments and have found it much easier to use, advance features are easier to implement and the scrīpt development is quicker.We really enjoy using QuickTest Pro and highly recommend it as the functional testing tool to use.

fi;O*K _ HT.|'IW0

51Testing软件测试网h$MZi)kfpf-{ N

51Testing软件测试网4i.YU}T?2bb]c.o(Jo

51Testing软件测试网2qIXX]u,D H

QuickTest Pro is our functional testing tool of choice!

g#OG,@ i*|f+`6p0

p8Vedv ~ye0


zzd#`+M;o V6@8]0

gUqF!p2v&U5a051Testing软件测试网!uW iQ`1d:W0A?


%X.u'a0@ z[0

WinRunner51Testing软件测试网-s q~|X]k/|H

Summary:

d&S:w$y^0

s(wMc}(k!bT+K o$G0

This product is a mature tool that has been around since approximately 1995.It interfaces with most of the leading development toolkits using the WindowsAPI and toolkit DLLs to interface with the “Application Under Test”.51Testing软件测试网+E2dF`o1u

51Testing软件测试网d.A-Iy\ n IKm

WinRunner offers a recording feature that will watch the individual tester and generate a test scrīpt to simulate the same actions just performed.The scrīpt is displayed as a program which can be enhanced with checkpoints, logic and special coding/programming.51Testing软件测试网.FH&[ Hh

5O@ I'?R5L&w6{6Nq0

WinRunner also has integration with Excel spreadsheets for data driven testing and the ability to write data out in Excel format or in simple text files.51Testing软件测试网"|Tcd4RR:J$d

51Testing软件测试网nj7B[+J#v2Q|

Here is the descrīption from the Mercury “Features and Benefits” section of the WinRunner web page:51Testing软件测试网:L/tr#^ |Ah

Significantly increase power and flexibility of tests without any programming:The Function Generator presents a quick and error-free way to design tests and enhance scrīpts without any programming knowledge. Testers can simply point at a GUI object, and WinRunner will examine it, determine its class and suggest an appropriate function to be used.51Testing软件测试网#}6i(V)Y'k f3{#Y

Use multiple verification types to ensure sound functionality:WinRunner provides checkpoints for text, GUI, bitmaps, URL links and the database, allowing testers to compare expected and actual outcomes and identify potential problems with numerous GUI objects and their functionality.51Testing软件测试网*M$Nk g.vO{)D3iO

Verify data integrity in your back-end database:Built-in Database Verification confirms values stored in the database and ensures transaction accuracy and the data integrity of records that have been updated, deleted and added.51Testing软件测试网$[s$i q)`GCFt3U A

View, store and verify at a glance every attribute of tested objects:WinRunner’s GUI Spy automatically identifies, records and displays the properties of standard GUI objects, ActiveX controls, as well as Java objects and methods. This ensures that every object in the user interface is recognized by the scrīpt and can be tested.

)F {f?4{ ml0

Maintain tests and build reusable scrīpts:The GUI map provides a centralized object repository, allowing testers to verify and modify any tested object. These changes are then automatically propagated to all appropriate scrīpts, eliminating the need to build new scrīpts each time the application is modified.51Testing软件测试网Xlr3a h uMM I

Test multiple environments with a single application:WinRunner supports more than 30 environments, includin

TAG: Mercury

 

评分:0

我来说两句

Open Toolbar