我的地盘我做主! 博客:http://tester2test.cnblogs.com/   msn:win_soft@163.com

老外写的一个测试用例

上一篇 / 下一篇  2007-07-12 12:18:22 / 个人分类:性能测试

 

s#Fgsr sa0Test case example: 51Testing软件测试网;SI:xIoE2`6R

:?3N*f$p}-_R'T H0Test Case ID: CUST.0151Testing软件测试网v:U+MJu `?:Ll

"P8n#W5t1HT5[0Function: Add a new Customer51Testing软件测试网+k5lb*H^^E

51Testing软件测试网SJ;k+[5Yp D1J

Data Assumptions: Customer database has been restored

9_2da$A2sQV0 51Testing软件测试网-|8?(k?g6I)n c{v

General Description:51Testing软件测试网kI SMnn6^*s1xM

B L'z3v n)S0Add a new customer, via the Customer Add screen, and validate that new Customer was displayed corrected on the All Customer Screen.51Testing软件测试网 nJ({6uB

51Testing软件测试网 k)C@4k)\ l

Action

@HM I q~~Z0
51Testing软件测试网k+N;Jre,J/d6F*r

Initial State or Screen

'E%zZ*i*J0

({9`A'k:^*Q;D0Data51Testing软件测试网fp]?n5AY:yY

'[0k?(w2c5xy5^j0Expected Results

J [-i,Tr%U;^!\%Z"B'?+K+\0

-M1yN Pt0(Response)

ytE h$LU0\\0

1N^5YuIV%O4N01. Bring up Sales application via the Windows Icon

yU4b0W5vss2Q"u0
51Testing软件测试网{4b`-yI9d4\9W

Program Manager51Testing软件测试网5fC n(HUI

+b#vb"U$ee z+~$A0None

cF_ZCq0

Af*m^d2V nK4?0Main Sales Application Menu displayed

t:e6]3W8}$SmOe0
51Testing软件测试网dpY8wu t)y

 51Testing软件测试网Z6N9VJ$QK

51Testing软件测试网gFf:ti

2. From Views Menu Select Customer.51Testing软件测试网'k qDCc\I:G

51Testing软件测试网9Q!~)DWzu5nS R

Main Sales Screen

"gx!OqC$bqcr0
51Testing软件测试网3FY$ya7\

None51Testing软件测试网'j3i(JSk~F

DVI8I Pq(_O0Customer Views Screen Displayed.51Testing软件测试网+yA(h?a gl

51Testing软件测试网nXg Q,Y8y(u&VD{'Ed

 

f4~*H#?dc8F*V+a Cb8n#c0

1W/o vL,O+C@ q03. Click on All Customers51Testing软件测试网U"v6Hz%Y+]2s

51Testing软件测试网_CK4?C?5{

Customer View51Testing软件测试网o#N ?~H,c%@D

51Testing软件测试网-X Pz.TG

None

3m3?HFw/c u%B2}6K_0

'Qk+I(A?0Customer window is displayed with title "All Customers".

z2t&` o/G)A\$V-B/`n0
51Testing软件测试网1vQ0T2L&Q#|f*F

4. Click on Add Button51Testing软件测试网h"o|[ M

.Lu f"c9]5~Q}0Customer - All Customer51Testing软件测试网3m1T,J#LzA

!mPuF+k3]#hSZ0None51Testing软件测试网9|m{7] c)rO-];W$Ks

)ny c"bu+M,l4IzW0Add Customer Screen is displayed.

,zo6PN"Zk5d!^h^e0
51Testing软件测试网Y~)nX+KZ

 

h _'K3z"L0 51Testing软件测试网_M.T][i"]zR

5. Enter data to add a new customer and single click the add button.51Testing软件测试网/YNX1dND8s[

51Testing软件测试网:{kg!Vu Uyo

Add Customer

d,zP m)Nh1w0

%L%Z$L] F0Name: John Doe

e)wP4OAv0

`"w#V"XwhX0Addr: 123 Main st.

'O-_-q$P~2mQ,ID-o0

,s&_zzG E0City: San Francisco51Testing软件测试网]$IY@p |8k

bAQS m0(Or refer to data sheet:51Testing软件测试网 Rw4S}\'_

Lu-G'a5IA"F0Data Sheet - #105)51Testing软件测试网Y J0TP'X~

51Testing软件测试网2@"jfV$y r jG,do

Data display in indicated fields.51Testing软件测试网TZF4i*Z-A6^

51Testing软件测试网 |5C#|Q2b`,H,P`

 

.| ?m2Vg_4?jL \0 51Testing软件测试网ZE {/P7X8ucu

(Or: as defined by data sheet.)

F8cZJ(G/HR`#mJ0

H6tMmrV/Y}C/C0Benefits:51Testing软件测试网i O#ds4S&L:_.q

51Testing软件测试网VsNx+]

1. Easier to automated - all have same structure

0qE/Qs:aD!E8| O1G0

T)B:k'JHM(^-J02. Data requirements are clearly defined51Testing软件测试网_]W(N~1a[@

3~EC v pqZ jW03. Navigation is precise 51Testing软件测试网"BZ_c?8yyV _;Ru X

51Testing软件测试网L}M)Yl(w X fF

4. Expected results for each action is specific - no guess work involved 51Testing软件测试网]H6['K@+s{w;O

o^k:C DaQ0 51Testing软件测试网'q4t0C!F P'DusU!KJ

51Testing软件测试网,gof[.`
51Testing软件测试网Q"FbO^9L*D/W
测试者家园 2006-10-23 11:13 发表评论
51Testing软件测试网?s2j5b8PI#I

};A(mZ Hvi0Link URL: http://www.cnblogs.com/tester2test/archive/2006/10/23/537087.html

TAG:

 

评分:0

我来说两句

Open Toolbar