20.You want to use the Web to let __(224)__ users or your customers look __(225)__ corporate information. But you want to keep installation at the user end __(226)__ and you don't want just __(227)__ to get __(228)__ your databases. That may be where an application server enters the picture. For more user machineindependent, these software packages, typically written in the __(229)__ programming language for use on Windows __(230)__ -based systems, act as go-betweens __(231)__ browser-equipped end users to the databases that __(232)__ the information they need to __(233)__. (224): A. informer B. internal C. inside D. outside (225): A. at B. by C. in D. out (226): A. simple B. simply C. single D. singly (227): A. any B. anyone C. anything D. anywhere (228): A. into B. off C. onto D. out (229): A. C B. C++ C. SQL D. JAVA (230): A. NC B. NT C. PC D. PT (231): A. link B. linkage C. linking D. links (232): A. held B. helt C. hold D. holt (233): A. access B. accessing C. assert D. asserting
答案:(BAABA,DBCCA )
简答题(每题4,共5道)
1. 你认为一个优秀的测试工程师应该具备2. 哪些素质?
答案:(1)沟通能力
(2)转移情绪能力
(3)技术能力
(4)自信心
(5)外交能力
(6)幽默感
(7)很强的记忆力
(8)耐心
(9)怀疑精神
(10)自我督促
(11)洞察力
3. 软件开发模型分哪几种?
答案:
瀑布模型
螺旋模型
第四代技术模型
原型模型
构件组装模型
混合模型
4. 软件生命周期分哪几个阶段?
答案:
问题定义
可行行研究 计划阶段
需求分析
软件设计
代码编写 开发阶段
软件测试
运行与维护 维护阶段
5. 请描述软件测试活动的生命周期。
答案:
软件测试活动从项目的需求分析阶段开始,了解软件产品需求,开始撰写测试计划;
在项目的详细设计阶段,测试人员通过详细设计说明书,更深入
的了解软件设计标准,并能够设计测试用例;
在编码阶段,测试人员可以介入到代码级测试中(白盒测试),发现BUG,提交BUG,
并跟踪BUG 状态;
在测试阶段,测试人员执行测试用例(黑盒测试),发现BUG,提交BUG,
并跟踪BUG 状态,直至BUG修改完毕;
测试任务结束后,测试人员要统计分析BUG分布、解决情况,撰写测试报告,
最终将给该软件产品是否可以发布给一个最终的结论。
6. 画出软件测试技术图。
设计题(每题5,共4道)
1.画出下列伪码程序的程序流程图。
START
IF m THEN
WHILE n DO
A
B
END DO
ELSE
BLOCK
C
D
END BLOCK
END IF
STOP
2.根据下面给出的规格说明,利用等价类划分的方法,给出足够的测试用例。
“一个程序读入三个整数。把此三个数值看成是一个三角形的三个边。这个程序要打印出信息,说明这个三角形是三边不等的、是等腰的、还是等边的。”
答案: 设三角形的三条边分别为A, B, C。如果它们能够构成三角形的三条边,必需满足:
A > 0,B > 0,C > 0,且A + B > C,B + C > A,A + C > B。
如果是等腰的,还要判断是否A = B,或B = C,或A = C。
对于等边的,则需判断是否A = B,且B = C,且A = C。
列出等价类表:
输入条件 有效等价类 无效等价类
是否三角形的三条边 (A > 0) (1), (B > 0) (2),
(C > 0) (3), (A + B > C), (4)
(B + C > A) (5), (A + C > B) (6) A 0 (7), B 0 (8), C 0 (9),
A + B C (10), A + C B (11),
B + C A (12)
是否等腰三角形 (A = B) (13), (B = C) (14),
(A = C) (15) (A B) and (B C) and (A C) (16)
是否等边三角形 (A = B) and (B = C) and (A = C)
(17) (A B) (18), (B C) (19),
(A C) (20)
设计测试用例:输入顺序是〖A,B,C〗
〖3,4,5〗覆盖等价类 (1), (2), (3), (4), (5), (6)。满足即为一般三角形。
〖0,1,2〗覆盖等价类 (7)。不能构成三角形。 若不考虑特定A, B, C,
〖1,0,2〗覆盖等价类 (8)。同上。 三者取一即可
〖1,2,0〗覆盖等价类 (9)。同上。
〖1,2,3〗覆盖等价类 (10)。同上。 若不考虑特定A, B, C,
〖1,3,2〗覆盖等价类 (11)。同上。 三者取一即可
〖3,1,2〗覆盖等价类 (12)。同上。
〖3,3,4〗覆盖等价类 (1), (2), (3), (4), (5), (6), (13)。 满足即为等腰三角形,
〖3,4,4〗覆盖等价类 (1), (2), (3), (4), (5), (6), (14)。 若不考虑特定A, B, C,
〖3,4,3〗覆盖等价类 (1), (2), (3), (4), (5), (6), (15)。 三者取一即可
〖3,4,5〗覆盖等价类 (1), (2), (3), (4), (5), (6), (16)。不是等腰三角形。
〖3,3,3〗覆盖等价类 (1), (2), (3), (4), (5), (6), (17)。是等边三角形
〖3,4,4〗覆盖等价类 (1), (2), (3), (4), (5), (6), (14), (18)。 不是等边三角形,
〖3,4,3〗覆盖等价类 (1), (2), (3), (4), (5), (6), (15), (19)。 若不考虑特定A, B, C,
〖3,3,4〗覆盖等价类 (1), (2), (3), (4), (5), (6), (13), (20)。 三者取一即可
3.设要对一个自动饮料售货机软件进行黑盒测试。该软件的规格说明如下:
“有一个处理单价为1元5角钱的盒装饮料的自动售货机软件。若投入1元5角硬币,按下“可乐”、“雪碧”或“红茶”按钮,相应的饮料就送出来。若投入的是2元硬币,在送出饮料的同时退还5角硬币。”
(1) 试利用因果图法,建立该软件的因果图;
(2) 设计测试该软件的全部测试用例。
答案:
(1) 因果图
输入条件(原因) 输出条件(结果)
投入1元5角硬币 (1) (21) 退还5角硬币
E
投入2元硬币 (2) (11) (22) 送出“可乐”饮料
按“可乐”按钮 (3) (23) 送出“雪碧”饮料
按“雪碧”按钮 E (4) (12) (24) 送出“红茶”饮料
按“红茶”按钮 (5)
(2) 测试用例设计
1 2 3 4 5 6 7 8 9 10 11
输
入 投入1元5角硬币 (1) 1 1 1 1 0 0 0 0 0 0 0
投入2元硬币 (2) 0 0 0 0 1 1 1 1 0 0 0
按“可乐”按钮 (3) 1 0 0 0 1 0 0 0 1 0 0
按“雪碧”按钮 (4) 0 1 0 0 0 1 0 0 0 1 0
按“红茶”按钮 (5) 0 0 1 0 0 0 1 0 0 0 1
中间
结点 已投币 (11) 1 1 1 1 1 1 1 1 0 0 0
已按钮 (12) 1 1 1 0 1 1 1 0 1 1 1
输
出 退还5角硬币 (21) 0 0 0 0 1 1 1 0 0 0 0
送出“可乐”饮料 (22) 1 0 0 0 1 0 0 0 0 0 0
送出“雪碧”饮料 (23) 0 1 0 0 0 1 0 0 0 0 0
送出“红茶”饮料 (24) 0 0 1 0 0 0 1 0 0 0 0
测试用例 每一纵列为一个测试用例
4.英译汉
Security
Security functions will be moved from software to hardware, where they’ re more tamper-proof. In September, Intel announced that it would work with VeriSign Inc. to implement in hardware VeriSign’s digital certificate technology for notebook computers that use Intel’s Banias processors. Users then won’t have to install vulnerable digital certificate software.
Smart cards that hold passwords and encryption keys, used with personal identification numbers, will provide another level of authentication beyond simple keyed-in passwords. Further out, portables will be fitted with biometric devices such as fingerprint or retina readers.
安全
安全功能将从软件移到硬件,在硬件中它们更能防止泄密。2001年9月,英特尔公司宣布将于VeriSign公司合作,为采用英特尔Banias处理器的笔记本计算机用硬件实现VeriSign的数字证书技术。用户不再要安装易受攻击的数字证书软件。
装有口令和加密密钥的智能卡(它与个人的身份证号码一起使用),提供了超过简单的键盘输入口令的认证。进一步发展,便携机将配备生物测量装置,如指纹或视网膜阅读器。