测试部分题目答案Word版

  • 格式:doc
  • 大小:33.50 KB
  • 文档页数:7

1.What's the goal of a software tester?(软件测试员的目标是什么)软件测试员的目标是尽可能早一些找出软件缺陷,并确保其得以修复。

2.What's wrong with just testing that a program works as expected?(仅仅测试程序是否按预期方式运行有何错误)这最多只能算测试问题的一半。

用户不一定遵守规则,软件测试员需要证实不按规定操作有何后果。

此外,如果测试员进行测试没有打破沙锅问到底的态度,就会遗漏某些软件缺陷。

3.Given that it's impossible to test a program completely, what information do you think should be considered when deciding whether it's time to stop testing?(假定无法完全测试某一程序,在决定是否应该停止测试时要考虑哪些问题)终止测试没有一定的时间,每一个项目都会有所不同。

形成决定的因素有:是否仍然会发现大量的软件缺陷?项目小组对已经执行的测试满意吗?报告的软件缺陷是否已经确定哪些需要修复,哪些不需要?产品是否已经满足了客户的需求?4.Can a software tester perform white-box testing on a specification?(软件测试员可以对产品说明书进行白盒测试吗?)如果测试员参与了定义说明书的过程就可以。

他可以参加焦点人群,易用性研究和市场研讨会,了解用于定义特性和整个产品的过程。

但是这存在一定的风险,因为这些信息诱使测试员倾向于假定说明书是正确的。

5.Explain what's wrong with this specification statement: When the user selects the Compact Memory option, the program will compress the mailing list data as small as possible using a Huffman-sparse-matrix approach.(指出下属产品说明中的错误:当用户选择Compact Memory选项时,程序将邮件列表数据压缩到可能与Huffman解析矩阵方法同样大小的尺寸。

)错误在于使用了“与…同样大小”的说法,这一点无法测试,因为该说明法没有量化,不精确。

说明书应该声明压缩究竟达到何种程度才行。

另外,该声明没有做到与代码无关。

它在算法级上解释了特性如何工作,不属于要求的文档内容。

用户不关心压缩怎样工作,只关心它做什么。

6.Explain what a tester should worry about with this line from a spec: The software will allow up to 100 million simultaneous connections, although no more than 1 million will normally be used.(解释软件测试员应该担心下述产品说明的哪些内容:尽管使用的模拟连接通常不超过一百万个,但是该软件最多允许一亿个。

)能否测试。

典型应用只有一百万个倒无关紧要。

如果产品说明书声明有一百万种可能性,那么,一百万个连接都要测试。

测试员需要设法测试这么多的可能性,或者让说明书做着把最大可能性降低到接近典型应用的数目。

7.What are a few drawbacks or cautions to consider when deciding to use software test tools and automation?(在决定使用软件测试工具和自动化时,要考虑哪些缺点或者注意事项?)因为软件在产品开发过程中会变化,测试工具也要随着变化。

测试员可能会落入陷阱,花费太多时间去设计工具和自动化,而忽视了实际测试。

容易过分依赖自动化。

自己动手测试是无可替代的。

8.Assume that you have a 10-character-wide ZIP code text box, such as the one shown in Figure 5.13. What equivalence partitions would you create for this text box?(假设有一个文本框要求输入10个字符的邮政编码,对于该文本框应该进行怎样的等价分配?)至少应该有以下的等价区间:合法的5位数字邮政编码。

合法是指所有字符都是数值,不是指投入使用的现有邮政编码。

合法的9位数字(带连线的9位数字)邮政编码5位以下数字。

例如只有4位数字。

9位以下数字。

5位以上数字。

例如不带连线的8位数字9位以上数字。

10位数字,无连线。

连线位置不对。

连线不止一条。

无数字和无连线。

9.Is it possible to have a high-quality and low-reliability product? What might an example be?(有没有质量很高但是可靠性很差的产品?请举例说明)A4:有可能,但是它取决于客户对质量的期望。

不少人购买高性能跑车,认为提速、时速、式样、舒适度和装饰好就是高质量。

此类汽车一般可靠性较差,经常抛锚,修理费用昂贵,而车主不把可靠性差当做质量问题10.What's the difference between dynamic white-box testing and debugging?(动态白盒测试和调试有何区别?)这两个过程存在交叉,但是动态白盒测试是为了发现软件缺陷,而调试的目标是修复软件缺陷。

在分离和查找软件缺陷原因时发生交叉。

11.Do you always design your black-box test cases first? Why?Design your test cases based on what you believe the software is supposed to do. Then use white-box techniques to check them and make them most efficient a few benefits of using software test tools and automation.(说出使用软件测试工具和自动化的一些好处。

)它们可以加快执行测试案例的时间,能够提高软件测试员的效率,留出更多的时间进行测试计划和测试案例开发。

它们准确、精确,而且不会懈怠。

13.List some examples of poorly designed or inconsistent UIs in products you're familiar with.(列举熟悉的产品中设计不当或者UI不一致的离子)这个看情况答就行了,比如什么确认和取消按钮的布局啊,不看手册不会调整收音机时间之类的。

14.What's one of the simplest, but effective, types of test automation?(最简单但很有效的测试自动化类型是什么?)按键及鼠标操作录制回放是有效找出软件缺陷最简单的自动化类型。

15.What's the purpose of a test plan?(测试计划的目的是什么?)为了解释ANSI/ IEEE 829定义,测试计划的目的是定义测试活动的范围、方法、资源和进度,明确要测试的条目、要测试的特性、要实施的测试任务、对每个任务的个人反映,以及与计划相关的风险。

简而言之,使项目小组其他成员了解和接受测试小组如何努力测试软件。

16.What is a test case specification?(什么是测试案例说明?)Other than a traditional document, what means can you use to present your test cases?(除了传统文档,可以用什么方式表述测试案例?)这个文档定义了测试的实际输入值和预期输入结果,还指明了具体的环境要求、程序要求和测试案例之间的依赖性。

表格、真值表、列表和示意图——对自己、其他测试员、项目小组其他成员有效表示测试案例的任何形式。

下面的无参考答案17.If there's no definitive right or wrong user interface, how can it be tested?(既然用户界面没有明确的对与错,怎样测试呢?)软件测试员应该检查其是否符合7个重要原则:符合标准和规范、直观、一致、灵活、舒适、正确和实用。

18.Why is it the process of creating the plan that matters, not the plan itself?Because all the issues and questions defined in a test plan either impact or are influenced by other project functional groups or team members. Getting everyone to understand and agree to the contents of the plan is what matters. Privately creating a paper document and putting it on a shelf is not just a waste of time, but also jeopardizes the project.19.Give three situations where the testing of all independent paths through a program may not detect program errors.第一:如果程序本身违反了设计规范,独立路径测试无法检测出这类错误。

第二:如果程序遗漏了路径,独立路径无法检测。

第三:独立路径测试发现不了一些与数据相关的错误20.Can you explain how the number of defects is measured?The number of defects is one of the measures used to measure test effectiveness. One of the side effects of the number of defects is that all bugs are not equal. So it becomes necessary to weight bugs according tothere criticality level. If we are using the number of defects as the metric measurement the following are the issues:The number of bugs that originally existed significantlyimpacts the number of bugs discovered, which in turns gives awrong measure of the software quality.All defects are not equal so defects should be numbered witha criticality level to get the right software quality measure.21.In which software life cycle phase does testing occur? (软件测试发生在软件生命周期的哪个阶段?)在“检查周期”中执行。