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

WinRunner和QTP的对比(转载)

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

原文 by rickyzhu

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

WinRunnerQTP的对比

272 Views51Testing软件测试网?8TTM6`^?

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

}ms |;I-B0PrX0

1. WR的对象管理不如QTP那么有效51Testing软件测试网y;s P9[ QG

2. WR的语言主要是基于类C的TSL,是Mercury发明的语言,明显不如基于VBscrīpt的QTP强

_E.y$m{&y%t(t0

3. WR的稳定性不行,而且无意人为的干扰可能导致回放的失败51Testing软件测试网g8q0eJ[&@c

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

f"B4Q-at0

)mT0c7~9rtEh0

51Testing软件测试网!W8bb;rM"ip]

WinRunner vs. QuickTest Pro

j7Q%_9le*l/l7~0

Quick Comparison

#\*^:mc2U Q0

O'Atl}(LgnQ0


@4G)V/V9Ye ^J011
51Testing软件测试网)B)v1I kb$pK2KZ

51Testing软件测试网8`O\|M


51Testing软件测试网2F3}W^ d {)q6Y,L

51Testing软件测试网"Z6y+V"uuHs

wbsJd?,]'ZE{6l#j\0
51Testing软件测试网`u ^0D.bVC

Overview

q+d"m9F0Zme\ ?0

51Testing软件测试网H Ns3r A1C

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.51Testing软件测试网RS.D?;Yfw9b

Mercury’s position on the two tools is this:51Testing软件测试网ra)\/zQ:t

<!--[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.

2^&qd"s+L0

<!--[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.

Ly5v q:C!F7n-w0

<!--[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软件测试网)k2VX"] D

cs2cJ)|,Ow0


51Testing软件测试网_:[ p/|8b8]M

51Testing软件测试网6JaUnJp lu |H/fA

ey*\c(T6Y x)E0
51Testing软件测试网J0V C;v Z"q&?

WinRunner Compared to QuickTest Pro51Testing软件测试网eiF8hTZ;`

.o5k {-`O;T7VR1H7E0

Environment Coverage Comparison:

5S$hG:x'Sj0

b^BQ%VL L&]0

<!--[if !supportLists]-->*<!--[endif]-->Common environments shared by both WinRunner and QuickTest Pro:51Testing软件测试网]Qz3Sa m9l

Web-Related Environments

3Tbk&xgmG"u1DQ0

IE, Netscape, AOL

2t"g.b)w;|M}'?R0

51Testing软件测试网&K Ep,vY4bq)~|Nkv

JDK, Java Foundation Classes, AWT51Testing软件测试网M]J Df%v'O8c

51Testing软件测试网ZQd[D"l'so

Symantec Visual Café51Testing软件测试网~$i)]!`4`i,D9M_{

NWg.g%zvPy;R0

ActiveX Controls

"\Uw}6m.Q+Aw!K Q'B0

ERP/CRM

!m f@9N RD3S,~P0

Oracle: Jinitiator, 11i, NCA51Testing软件测试网 l]Em Fym

Custom Client Server51Testing软件测试网-`bq^8]F

Windows51Testing软件测试网5SVVcDF

]'OS6E G)S0

C++/C51Testing软件测试网*|@Fh5O7n

51Testing软件测试网F(O5L9]} D]fq Y

Visual Basic51Testing软件测试网 Ft B A%YY o0^(@g

Operating Systems51Testing软件测试网}uB TN

Windows 98, 2000, NT, ME, XP51Testing软件测试网+`,f5Y X5_`.C/_g:z

Legacy51Testing软件测试网*]#K.XTl gg,F

3270, 5250 Emulators

'f3B$I;u$T$?VD Zm0

51Testing软件测试网~%w]{$V.a

VT100

e9shI6X0

51Testing软件测试网 w4zJ0]H*sX

<!--[if !supportLists]-->*<!--[endif]-->WinRunner Only Environments:

Ou#I`QR"\ M0

Custom Client/Server

9tv jM^p:m8a0

PowerBuilder

sm\+?#b%C*j0

T8Up P"N7e}!nA0Bp0

Forte

NCa[vW]0

"B0H#[$I(B)h.S Z0

Delphi

.N-R:AU(R0

%Q%nK^D o A*e(n0

Centura

o:[EJ]0

51Testing软件测试网 g&Md(k};Ux

Stingray51Testing软件测试网GN `.a(\Wn?

,I MSk[:T0

SmallTalk

;hz"t8@juT0

ERP/CRM51Testing软件测试网|0a@,P5E t/aY

Baan51Testing软件测试网ae`4d fD.u8P"e

51Testing软件测试网4nlco}

PeopleSoft Windows51Testing软件测试网#cs Hg6]2U

51Testing软件测试网F1Z.wo+m+y

Siebel 5, 6 GUI Clients

;}7q3ur9CuMf0

l8r8P jC7p2{+_!z/kH0

Oracle GUI Forms51Testing软件测试网Xuq,k\

W.@9o:iL#^ E4s+~0

<!--[if !supportLists]-->*<!--[endif]-->QuickTest Pro Only Environments:

2Wx@4V`?h0

ERP/CRM

)}"g$p }9~:`;DC-B~0

SAP51Testing软件测试网l%eZw0t!`)K

51Testing软件测试网:R/h kl|&f?

Siebel 7.x

X.W"` f-R#Bt5?*P)J0

51Testing软件测试网"Xz ~:J^ EZ

PeopleSoft 8.x

,Bw9i"Rzi l,hG0

.Net51Testing软件测试网k7Ng&gnXq

WinForms

a"XQ1zX0

cU@1i%N0

WebForms

Ku u c[rDw0

kqM.u(o2e0

.Net controls

k#n3]*s(J3s)S0

Web Services

/B/nmO2Ht? ^8Ou0

XML, HTTP51Testing软件测试网ra!NyU WT0n!c-l

&q\?#Xa'tl;f Cx+k\0

WSDL, SOAP

H?o0N7zit0

-m+v~.c&C-L,Jfhl0

J2EE, .Net51Testing软件测试网 ~'Z0g+}!]O lT9h(gO

Multimedia51Testing软件测试网A-[wTh[E{

RealAudio/Video51Testing软件测试网P e8ln+h0n;N

51Testing软件测试网;U e`6b h2`e3O

Flash51Testing软件测试网YPVm)L U*\+?

n upP#R;l[&A\c#q0

51Testing软件测试网@_*E~eL+p kI

51Testing软件测试网`~;^3y8j D eL4TJ

Feature Comparison:51Testing软件测试网9dH+CkK8d8U;u.R

51Testing软件测试网(G5sK#d[:B5?0ZK

<!--[if !supportLists]-->*<!--[endif]-->Common features found in both WinRunner and QuickTest Pro:51Testing软件测试网3fKi MRR7Z

Record/Replay51Testing软件测试网*p-j0F Mh-Ue

ODBC & Excel Connectivity51Testing软件测试网.fiI2qU WAH.]

Code Editor & Debugger

%b [)YlG XfX0\2vaD0

Recovery Manager51Testing软件测试网TNB!Sbb

Shared Object Repository51Testing软件测试网 Q0t]} t

Rapid Object Import

^4a#X,Ra d8{$oH0

Numerous Checkpoints

-N$WW,@ a/JK0

Analog51Testing软件测试网3o1KM[ NfN

scrīpt & Function Libraries

xwp5SBX'B-x9l0

L(CB }nP~S!D4n?0

]-R2C:oD TwwZ0

<!--[if !supportLists]-->*<!--[endif]-->WinRunner Only Environments:51Testing软件测试网VZM[&j&q.K

Function Generator51Testing软件测试网5iL?:zf:D}-s

Database Integration

uKs ka"KH0

Run Wizard

cM{};VLs!\0

TSL51Testing软件测试网6R Y&H"Jov

MDI

X ^ v~n0SChB0

51Testing软件测试网vCso/{:QE+kb

YVk3h"E;ql0

<!--[if !supportLists]-->*<!--[endif]-->QuickTest Pro Only Environments:51Testing软件测试网0f W#z9iN7T*oza

ActiveScreen

&VS3G'@0dsQ @0

TestGuard

.zB)]QI }&F6Z0

Tree View

D"v+U&IGWXl8pzT0

scrīptFusion51Testing软件测试网D&d oc4mSY3U(md1d:o^

Data Table

d/H%P.G'{'`1H0

VBscrīpt

&ebvoAH'e$U0

Function Generator*51Testing软件测试网Y\*m0h6v%sz7v

(coming in v7.0)51Testing软件测试网C2b#R{`

Run Wizard*51Testing软件测试网 etOee,a'yQ F;M

(coming in v7.0)

.X S|8bVs0

$O)w'H,S.Pz*V)G.G_D0


xw]!?[ q1c0

+s1zi f$r~']j0

O,[ n+L.nMk0
51Testing软件测试网 xZA Mbq9V0w

What We Recommend51Testing软件测试网u1m%ez+Z

!}'|+p4UB&Tp0

QuickTest Pro is our functional testing tool of choice!51Testing软件测试网g:[`} UkB4N'b

ID;a }7d0

U,]"V:SOZ0

Most customers are in either of two situations:

0dv5YB'|.za0

<!--[if !supportLists]-->*<!--[endif]-->Existing WinRunner customers asking “Should we switch to QuickTest Pro?”51Testing软件测试网$eo1|#V'M

<!--[if !supportLists]-->*<!--[endif]-->New customers asking “Which should we get, WinRunner or QuickTest Pro?”51Testing软件测试网@;a-@4kD"U `H7n

ra K V ?6?'d KK0

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软件测试网.IkhV-L/@

51Testing软件测试网HbMj5oiN

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.

6Aa8q^Un!lT;^0

Bh)vU/N0

Let’s quickly discuss some key issues:51Testing软件测试网cs}2gD"T1?8|c3z

<!--[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.51Testing软件测试网(r(^\ TX5o7t V

51Testing软件测试网l&t-ax9FW

<!--[if !supportLineBreakNewLine]-->
6E m;ZE*Q'stvwf0<!--[endif]-->51Testing软件测试网-F}gW,Y:J

<!--[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.

q t yhd2LLVc$D:E0

XY7w{j.K0<!--[if !supportLineBreakNewLine]-->51Testing软件测试网-[+[%h2y$V-w)l
<!--[endif]-->51Testing软件测试网2F}_6FB9Vd.bV

<!--[if !supportLists]-->*<!--[endif]-->We feel that there are many more “point and click” features in QuickTest Pro than WinRunner.This makes its use easier.

#e r*t ?h[2gG051Testing软件测试网 \@%o&jX ?)^

<!--[if !supportLineBreakNewLine]-->
Xe2nk#N0<!--[endif]-->

7L$d,ItB0

<!--[if !supportLists]-->*<!--[endif]-->All the same features found in WinRunner are found in QuickTest Pro plus more.

x#lN_*N051Testing软件测试网*H v?6|E*vY \a

<!--[if !supportLineBreakNewLine]-->
H;R#f{j-S0<!--[endif]-->51Testing软件测试网OG8r*w#a

<!--[if !supportLists]-->*<!--[endif]-->Data Table integration is much easier and simpler with QuickTest Pro.51Testing软件测试网5e} y pm]!oh

51Testing软件测试网;` ]spY`wZk

<!--[if !supportLineBreakNewLine]-->
(Jz9~sB;d)p/_Q0<!--[endif]-->

D@ FY&act6?0

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

L`$u(K c~H0

4f%JLJp$?S*x0<!--[if !supportLineBreakNewLine]-->51Testing软件测试网$EmrW1o
<!--[endif]-->

zY)D+Yo:E&@k0

<!--[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.51Testing软件测试网's:B*V s SzP

51Testing软件测试网z/K(j,Fm.S&x

<!--[if !supportLineBreakNewLine]-->
'O5i]1E+D T@.J0<!--[endif]-->51Testing软件测试网7Y7X*\%h){ `:}uiU

<!--[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.51Testing软件测试网+OW!D/c:O

i"^8L` pOc%T0<!--[if !supportLineBreakNewLine]-->51Testing软件测试网Y|Oxn9e
<!--[endif]-->

G+fp:? |7`;l3\0

<!--[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).

&i7rI$U3J$l {xC051Testing软件测试网 l$Jo-_$K:e @D@ c

<!--[if !supportLineBreakNewLine]-->51Testing软件测试网)b2M#Y$\Ay4C,_]0@
<!--[endif]-->

1\6[;l8l9f0

<!--[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.51Testing软件测试网3Ai5]H5W-w

(d9l6\3}6R*s `0n:L3SM0<!--[if !supportLineBreakNewLine]-->
O\L"^k0<!--[endif]-->

&KuH?6R6j0

<!--[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.

K l&WP/_&y0

1QjWoz)f_"g0

s4z(\dVXvmS0

51Testing软件测试网7p\1V G;izi9S1r

QuickTest Pro is our functional testing tool of choice!

%V,rP+? m6rI;H@0

51Testing软件测试网+X`TqL AP


51Testing软件测试网Z0E-rz-NV4gGy

51Testing软件测试网:j"n;q,P'sdU+p,o

[i}-Q8?ROK0
51Testing软件测试网7MTw#f9@P

WinRunner51Testing软件测试网m+kc!??*D3w2I

Summary:

R(sLxkw;w0

51Testing软件测试网_ VJaiKU/I

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软件测试网D/\z8Qe7W3P |

:e b ]!A5e1y"fX"a9~)V5Ph0

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软件测试网&[(S&uXWShM1g

,A2\`pn}xfL+^0

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.

3hi(r+~ B|:@1~0

51Testing软件测试网m/h+U_/W

Here is the descrīption from the Mercury “Features and Benefits” section of the WinRunner web page:51Testing软件测试网o9h{U.o^LK+Xu

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软件测试网fl?#[2p

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软件测试网ME(f2kIY _,~^x

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软件测试网C LwzU+z#X

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.51Testing软件测试网\ R$KJLXa/M3_;a

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软件测试网#|(L9E,w0B&^"b5u

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

TAG: Mercury

 

评分:0

我来说两句

Open Toolbar