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

老外写的一个测试用例

上一篇 / 下一篇  2007-01-12 11:13:09 / 个人分类:性能测试

 

{2JH f)c TE"K0Test case example:

's:T!uMB)u+{r%gz0

#E3~ c2rj0Test Case ID: CUST.01

K] o"W Z iVZ0

hy;L%eN1qE0Function: Add a new Customer51Testing软件测试网Di"W)j+C&l!n0K6O

q P,?"o0b0Data Assumptions: Customer database has been restored 51Testing软件测试网0vzdB^Z

a G9iQtL} W4C0General Description:

N,C(rilV0

+z8d*z{\0Add a new customer, via the Customer Add screen, and validate that new Customer was displayed corrected on the All Customer Screen.51Testing软件测试网7` o;D;k(|bA

'k2a(iK/~7B0Action 51Testing软件测试网7ag W$?-D MT"i Pxx+O Ut

#bby,m }0Initial State or Screen

Hs+NkH$i2C0
51Testing软件测试网{/b UT%X&~vd

Data

(Xz&d0L VC r0

1X|wD}*J |0Expected Results

(v~[T+~@jk0

^ ]-k:M0S MN n qM0(Response)

L/Y(oSu-k?0
51Testing软件测试网5QG av3?#}

1. Bring up Sales application via the Windows Icon

&`;{#q8XT7R0
51Testing软件测试网/D4`U+^~ u.Ke

Program Manager

*o0M*y*Vl }-]!c0
51Testing软件测试网i*J-J H*^U

None

+msyt/@y4g0
51Testing软件测试网.O3|b9|%I"r`

Main Sales Application Menu displayed

*g'[5[&Zy3a7k)V0
51Testing软件测试网SL-FX:SL)zF

 

,Z1sN4A0Rq:[I0D0 51Testing软件测试网b C3T]$b.e*T7d4r^

2. From Views Menu Select Customer.

4LB)smZ,Jg8M0

4N#I%T M;{ Kq*b0Main Sales Screen

!a"x){8}1BVZ I2[\0

1j.h6t@MS0None51Testing软件测试网gW"u2Q6Dv"B7i$n

51Testing软件测试网,y%hwC T\1d)K M

Customer Views Screen Displayed.51Testing软件测试网oKX4oHh

51Testing软件测试网OluF:J2t

 

^_![Y @#so5A0 51Testing软件测试网[ i|?}D%k

3. Click on All Customers51Testing软件测试网K7z@9@F)|x2@Y K:T

p @Bi1mUf0Customer View

5T qu p P'P z0

#e;QT&a&|9|"Z.bD0None

izMl.TlM-R0
51Testing软件测试网A'S _Jq:MyM;MC Xm

Customer window is displayed with title "All Customers".51Testing软件测试网:j@zHsl

kdt1fo-ed^#L X04. Click on Add Button

M3T+yuSI@?2Y0
51Testing软件测试网5c {WI!n H"d

Customer - All Customer51Testing软件测试网8^0T*Us4y6N x{{5@

51Testing软件测试网+Gn T{&P4dT2]

None51Testing软件测试网"xf IY H8uk

51Testing软件测试网2C\7Z C4K `u GwO

Add Customer Screen is displayed.51Testing软件测试网#mt2RJn _,H

51Testing软件测试网pd@R!E%e!Z

 

7W ra$]2Mf0

1MqP#|:zRN8j7fc05. Enter data to add a new customer and single click the add button.

F#?5CX.Iz,oR;W0

L4Kv Dk DG&R'q-p0Add Customer51Testing软件测试网~E;m!S/cv6L

Wa Bs B2L*B0Name: John Doe51Testing软件测试网/];b:F2q3`

`i+kTD N n0Addr: 123 Main st.51Testing软件测试网(sf'pU(?,y:I

A9o3T(KWqg pvM0City: San Francisco

;{A+Opdg \0 51Testing软件测试网H9Dh;ba5g$v

(Or refer to data sheet:

7{a)lB xJ;TlIm0

:F`k3U7uX9o0Data Sheet - #105)51Testing软件测试网7a~7}DJ]5s0~

51Testing软件测试网#t)E^+En

Data display in indicated fields.

GM](F q2_!F!U0 51Testing软件测试网b,y j;rYXL/i{*@(T

 51Testing软件测试网#C&WDN U+Ev

51Testing软件测试网Y!t(_-G\*?0jz3e

(Or: as defined by data sheet.)

-L-b;vxa;X OQ0

P LW5V:@X0Benefits:

k+O){d ~|7q0

W1L~ F'P"?5W01. Easier to automated - all have same structure51Testing软件测试网CEjk,d0~

oQ7j B@^a%qw02. Data requirements are clearly defined

i9^(\H(d_0 51Testing软件测试网 [}A0M;GJn

3. Navigation is precise 51Testing软件测试网 v'gv:I"M.u

\z _#nED8m04. Expected results for each action is specific - no guess work involved 51Testing软件测试网^q ^wX.`6mlZ

ZkY&Y`N~+Q0 51Testing软件测试网_PWEz Yk:l3A

51Testing软件测试网l[%R0x{'^in
51Testing软件测试网 fj|c$ya
测试者家园 2006-10-23 11:13 发表评论
51Testing软件测试网^[o(jL#g#h

UP?;d/Ac'_&\0Link URL: http://www.cnblogs.com/tester2test/archive/2006/10/23/537087.html

TAG:

wangjq399的个人空间 引用 删除 wangjq399   /   2012-02-17 20:31:18
看见内容有点晕
wangjq399的个人空间 引用 删除 wangjq399   /   2012-02-17 20:30:46
3
引用 删除 willowflx   /   2011-09-19 15:24:33
5
 

评分:0

我来说两句

Open Toolbar