我的地盘我做主!
博客: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"WZiVZ0
hy;L%eN1qE0Function: Add a new Customer51Testing软件测试网Di"W)j+C&l!n0K6O
qP,?"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软件测试网7agW$?-D MT"i
Pxx+O
Ut
|
#bby,m
}0Initial State or Screen Hs+NkH$i2C0
|
51Testing软件测试网{/b
UT%X&~vd Data (Xz&d0LVCr0
|
1X|wD}*J
|0Expected Results (v~[T+~@jk0
^ ]-k:M0S
MN
n qM0(Response) L/Y(oS u-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%TM;{ Kq*b0Main Sales Screen !a"x){8}1BVZ I2[\0
|
1j.h6t@MS0None51Testing软件测试网gW"u2Q6Dv"B7i$n
|
51Testing软件测试网,y%hwC
T \1d)KM Customer Views Screen Displayed.51Testing软件测试网oKX4oHh
|
51Testing软件测试网OluF:J2t ^_![Y
@#s o5A0
51Testing软件测试网[
i|?}D%k3. Click on All Customers51Testing软件测试网K7z@9@F)|x2@YK:T
|
p
@Bi1mUf0Customer View 5Tqup 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\7ZC4K `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(KWq g
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
|
PLW5V:@X0Benefits:
k+O){d
~ |7q0
W1L~
F'P"?5W01. Easier to automated - all have same structure51Testing软件测试网CE j k,d0~
oQ7jB@^a%qw02. Data requirements are clearly defined
i9^(\H(d_0
51Testing软件测试网
[}A0M;GJn3. Navigation is precise 51Testing软件测试网v'g v: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软件测试网_PWEzYk:l3A
51Testing软件测试网l[%R0x{'^in51Testing软件测试网
fj|c$ya51Testing软件测试网^[o(jL#g#hUP?;d/Ac'_&\0Link URL:
http://www.cnblogs.com/tester2test/archive/2006/10/23/537087.html
收藏
举报
TAG: