首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
Fred has been told he needs to test a component of the new content management application under development to validate its data
Fred has been told he needs to test a component of the new content management application under development to validate its data
admin
2013-12-19
65
问题
Fred has been told he needs to test a component of the new content management application under development to validate its data structure, logic, and boundary conditions. What type of testing should he carry out?
选项
A、Acceptance testing
B、Regression testing
C、Integration testing
D、Unit testing
答案
D
解析
D正确。单元测试(unit testing)指的是在一个受控的环境里对单一组件进行测试以验证数据结构、逻辑和边界条件。在程序员开发了一个组件之后,会使用若干不同的值、在许多不同的情形中进行测试。单元测试可以在开发的早期阶段开始,通常会贯穿整个开发阶段。单元测试的优点之一就是能在开发周期的早期阶段发现问题,在哪个时候改变个体单元要更加容易,成本也更低。
A不正确。因为接受测试(acceptance testing)的执行是为了确保代码符合客户的要求。这个测试用于测试部分或全部应用程序,通常不用于测试单一组件。
B不正确。因为回归测试(regression testing)指的是变化发生后对系统重新进行测试,以确保系统的功能、性能和保护措施。从根本上讲,回归测试是为了识别由于程序变化而出现的、引起功能停止运行的故障。开发人员在修复一个问题时不经意间又创建了一个新问题,或者在修复一个新问题时却破坏了旧问题的修复的情况很常见。回归测试可能包括检查以前修复的故障以确保它们没有再次出现,以及重新运行以前的测试。
C不正确。因为集成测试(integration testing)指的是验证组件是否能像设计说明中规定的那样一起运行。在进行单元测试后,单个组件或者单元被组合在一起进行测试,以验证它们是否达到功能、性能、可靠性等方面的要求。
转载请注明原文地址:https://kaotiyun.com/show/nAhZ777K
0
CISSP认证
相关试题推荐
Individualsandbusinesseshavelegalprotectionforintellectualpropertytheycreateandown.Intellectualproper【C1】______fro
In2009theEuropeanCommissioncarriedoutaninvestigationintoMicrosoft.TheAmericansoftwaregianttiedInternetExplorer,
TimeintheAnimalWorldRhythmcontrolseverythinginNature.41Thesunprovidesabasictimerhythmforalllivingcr
[A]Meetingdifferentneeds[B]Smallerisbetter[C]Betterproductmakesgreaterquantity[D]Qualityvsquantity[E]Chillyc
Fastingglucose(葡萄糖)andinsulin(胰岛素)levelsremainwithinnormalrangeforwomenusinginjectableororalcontraception,withonl
Writeanessayof160-200wordsbasedonthefollowingdrawing.Inyouressay,youshould1)describethedrawingbriefly,
Writeanessayof160-200wordsbasedonthefollowingdrawing.Inyouressay,youshould1.describethedrawingbriefly,2.e
DespiteincreasedairportsecuritysinceSeptember11th,2001,thetechnologytoscanbothpassengersandbaggageforweaponsan
RobertF.Kennedyoncesaidthatacountry’sGDPmeasures"everythingexceptthatwhichmakeslifeworthwhile".WithBritainv
RobertF.Kennedyoncesaidthatacountry’sGDPmeasures"everythingexceptthatwhichmakeslifeworthwhile".WithBritainv
随机试题
短期资金市场的功能是调剂短期资金的余缺,其特点表现在()。①融资期限短,最短的只有半天或一天,最长不超过一年;②融资的目的是为解决短期资金周转的需要,短期资金市场的资金供给主要是资金所有者的暂时闲置资金,资金需求一般用于满足流动资金的临时不足;③
外感温热病初期,伤津较轻,多见瘀血内阻,气不化津,津不上承,多见
如向离体完整线粒体中加入某一化合物后,检测反应体系无ATP生成,而耗氧量明显增加,说明此化合的可能是
根据《工程监理企业资质管理规定》,专业甲级资质标准包括()。
取得证券交易所席位的条件是()
《明史.舆服志》记载“(洪武)十四年(公元1381年)令农衣绸、纱、绢、布,商贾止(通‘只’)衣绢、布。……正德(明武宗年号)元年(公元1506年)禁商贩、仆役、倡优、下贱不许服用貂裘。”这说明()。
搜狐:新浪
A、 B、 C、 D、 A在左边的四个图形中,第一个图形顺时针旋转90°得第二个图形,依此类推,第四个图形是第三个图形顺时针旋转90°所得。依此规律,处的第五个图形应是第四个图形顺时针旋转90°所得。
青海湖的湟鱼是味道鲜美的鱼,近年来由于自然环境的恶化和人类的过度捕捞,数量大为减少,成了珍稀动物。凡是珍稀动物都是需要保护的动物。如果以上陈述为真,以下陈述都必然为真,除了:
下面关于S3C2410嵌入式微处理器芯片GPIO端口的叙述中,错误的是()。
最新回复
(
0
)