当前位置:
文档之家› 第一部分软件测试综述-第一章_1
第一部分软件测试综述-第一章_1
2013-7-14
6/50 6
背后原因很简单
计算机中设置了一个数据位来关闭燃料, 一个小组测试飞船的脚落地过程,不去注意着地数据位 是否置位 另一个小组测试此后的着陆过程,测试前总是会重置计 算机,清除数据位。 双方独立工作都很好,但从未联合起来。
2013-7-14
7/50 7
Байду номын сангаас
2013-7-14
a swarm of bugs, ranging from JavaScript flaws in Netscape's Communicator to a reboot bug in Microsoft's Internet Explorer.
2013-7-14 21/50
Deregulation of California utilities has to wait: 1998
Two new electrical power agencies charged with deregulating the California power industry postponed their plans by at least three months. The delay let them debug the software that runs the new power grid. Consumers and businesses were supposed to be able to choose from 200 power suppliers as of January 1, 1998. The project was postponed after a seven-day simulation of the new system revealed serious problems. The delay may cost as much as $90 million--much of which may eventually be footed by ratepayers, and which may cause some of the new power suppliers to go into debt or out of business before they even start.
2013-7-14
20/50
Java security holes; browsers simply crash
This is not a single bug but a veritable bug collection. In 1996, a series of security holes in Java, for example, allow hackers to download personal information from someone's PC. To date, the possibility existed prompted many to disable Java in their browsers.
2013-7-14 15/50 15
2013-7-14
16/50 16
1994年秋,迪斯尼发布了第一个面向儿童的多媒 体光盘游戏Lion King Animated Storybook
因为首次进军这个市场,大力的宣传使得销售额 非常客观,称为那个夏季“必买游戏”。 很快,客服电话淹没在愤怒的家长和哭诉玩不成 游戏的孩子们的狂潮中。 后来证实,软件只在少数系统中工作正常(开发 游戏的系统),但在大众系统中不行。
2013-7-14 14/50 14
事后一位作家在他的文章中描述说,那天系 统全部崩溃,“就像一百多个摔跤选手挤在 一个小台子上一样”,每一个人站起来都要 把别人拉到。美国航空公司估计他们在这次 事故中损失了二十多万个预定电话,而哥伦 比亚广播公司甚至都不能到其本地电话局查 询损失的情况。最后调查证明,这次事故的 罪魁祸首是一个复杂软件的升级版本中一行 错误的代码,AT&T进行此次升级的目的是 要加快电话拨叫的速度。
第一部分 软件测试综述
蒋凡
第一章
软件测试的背景
本章重点
软件缺陷如何影响我们的生活? 什么是软件缺陷? 为什么会发生缺陷? 缺陷的代价有多大? 软件测试员做什么? 软件测试的术语和定义
2013-7-14
3/50
什么是软件缺陷?
1.软件错误案例的认识 2.软件故障的术语 3.软件缺陷的正式定义
为什么会出现Bugs?
8/50 8
把缺陷称为bug?
故事发生在1945年9月的一天,一个炎热的下午,机房是一间第一 次世界大战时建造的老建筑,没有空调,所有窗户都敞开着。 Hopper正领着她的研究小组夜以继日地工作,研制一台称为 “MARK II”的计算机,它使用了大量的继电器(电子机械装置, 那时还没有使用晶体管),一台不是纯粹的电子计算机。突然, MARK II死机了。研究人员试了很多次还是启动不来,然后就开始 用各种方法找问题,看问题究竟出现在哪里,最后定位到板子F第 70号继电器出错。Hopper观察这个出错的继电器,惊奇地发现一 只飞蛾躺在中间,已经被继电器打死。她小心地用摄子将蛾子夹 出来,用透明胶布帖到“事件记录本”中,并注明“第一个发现 虫子的实例”,然后计算机又恢复了正常。从此以后,人们将计 算机错误戏称为臭虫(Bug),而把找寻错误的工作称为“找臭虫” (Debug)。Grace Hopper的事件记录本,连同那个飞蛾,现在 都陈列在美国历史博物馆中。
2013-7-14 19/50
Intuit's MacInTax leaks financial secrets: 1995
Intuit's tax software for Windows and Macintosh has suffered a series of bugs, including several that prompted the company to pledge to pay any resulting penalties and interest. The scariest bug was discovered in March 1995: the code included in a MacInTax debug file allowed Unix users to log in to Intuit's master computer, where all MacInTax returns were stored.
一个用户于10/30/1994报告了这个bug,英特尔企
图通过新闻发布和公开声明来掩饰这个问题的严 重性。要求用户证明自己受到这个bug影响才能更 换芯片。 最后,英特尔不得不公开道歉并拿出4.5亿美元来 更换所有问题芯片。
2013-7-14 5/50 5
1999年,登陆飞船在视图登陆火星表面时失 踪。原因在于为了省钱,使用廉价的触点开关 代替昂贵的雷达装置。理论上看,飞船离地面 1800米时,将丢弃降落伞,点燃登陆推进器, 缓缓降落地面,直到飞船脚上的触点开关着地 后关闭推进器。错误修正委员会事后发现,机 械震动也会触发着地开关,结果就是飞船关闭 推进器下落,摔成碎片。
2013-7-14 22/50
What did you get from these cases?
2013-7-14
23/50
不充分的测试 未在多个平台下测试 不正确的测试环境 没有集成测试 没有行为测试 没有压力测试 没有足够的可靠性测试 没有例外(异常)测试 对问题或缺陷没有足够程度的认识
2013-7-14 24/50 24
Unfortunately, bugs in the baggage system caused suitcases to be chewed up and drove automated baggage carts into walls. The airport eventually opened 16 months late, $3.2 billion over budget, and with a mainly manual baggage system.
2013-7-14 17/50
Bug
2013-7-14
18/50
New Denver airport misses its opening: 1995
The Denver International Airport was intended to be a state-of-the-art airport, with a complex, computerized baggage-handling system and 5,300 miles of fiberoptic cabling.
2013-7-14
26/50
What’s quality?
Quality = Customer Satisfaction
Customer to our QA? Internal: receivers in next procedure (PM, FT, TEO) External: users (TEO Tool) Break down quality of WebEx service •Usability (ease to install; ease to use; friendly UI) •Reliability (foundation for enterprise customer) •Performance •Capacity •Scalability •Service manageability •Compatibility •Extensibility
为什么要进行软件测试?
就是因为软件缺陷的存在。因为只有通过测
试,才可以发现软件缺陷。也只有发现了缺 陷,才可以将软件缺陷从软件产品或软件系 统中清理出去。