首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
60
问题
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认证
相关试题推荐
Salt,shellsormetalsarestillusedasmoneyinout-the-waypartsoftheworldtoday.Saltmayseemratherastrange【C1】__
Salt,shellsormetalsarestillusedasmoneyinout-the-waypartsoftheworldtoday.Saltmayseemratherastrange【C1】__
TheTreasurycouldpocket20millionayearinextrafinesoncethecountry’sspeedcameranetworkisexpanded.Motoringorgani
Thetranslatormusthaveanexcellent,up-to-dateknowledgeofhis【C1】______languages,fullfacilityinthehandlingofhistarg
Inthe1930s,anAmericanmeatcompanycameoutwithaspicedhamproductsoldinacan.Beforelong,Spam,asitwascalled,be
[A]Marketforglasscraftsisgrowing[B]Dependenceofcomputerdevelopmentonglass[C]Behindtheadaptabilityofglass[D]
Supposeyouwanttoapplyforajobinacompanyasanofficesecretary.Writeanapplicationemailto1)introduceyourself
Howmenfirstlearnedtoinventwordsisunknown;inotherwords,theoriginoflanguageisamystery.Allwereallyknowistha
Howmenfirstlearnedtoinventwordsisunknown;inotherwords,theoriginoflanguageisamystery.Allwereallyknowistha
Inarareunanimousruling,theUSSupremeCourthasoverturnedthecorruptionconvictionofaformerVirginiagovernor,Robert
随机试题
《谏逐客书》中所说的“异国之乐”有()
应激的中介机制不包括
合同履行中的附随义务包括( )。
姜某以其房屋设定抵押,后因当地房屋过剩,房价下跌,则抵押权人()。
下面对明渠均匀流的描述,正确的是()。
收入型组合要实现的目标是风险最小、收入稳定、股价增长较快。()
中国结算上海分公司在进行中央清算时同时计算有关费用,产生各结算单位的实际应收、应付金额。公式为:实际应收、应付金额=清算金额-交易经手费-印花税-证管费+其他应付费用。( )
不属于定期预算优点的有()。
马赫迪起义
Theauthorityofscience,whichisrecognizedbymostphilosophersofthemodernepoch,isaverydifferentthingfromtheautho
最新回复
(
0
)