首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
69
问题
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://www.kaotiyun.com/show/nAhZ777K
0
CISSP认证
相关试题推荐
Salt,shellsormetalsarestillusedasmoneyinout-the-waypartsoftheworldtoday.Saltmayseemratherastrange【C1】__
TheTreasurycouldpocket20millionayearinextrafinesoncethecountry’sspeedcameranetworkisexpanded.Motoringorgani
Thetranslatormusthaveanexcellent,up-to-dateknowledgeofhis【C1】______languages,fullfacilityinthehandlingofhistarg
Fewthingssay"forgetI’mhere"quitesoeloquentlyastheposeoftheshy—theavertedgaze,thehunchedshoulders,thebodypi
Writeanessayof160~200wordsbasedonthefollowingdrawing.Inyouressay,youshould1)describethedrawingbriefly,
Writeanessayof160-200wordsbasedonthefollowingdrawing.Inyouressay,youshould1)describethedrawingbriefly,
Writealettertoacompanydecliningajoboffer.Inyourletter,youshouldappreciatethejoboffer,andstateyourreason(s)
Foryears,sportsfanaticshaveturnedtostatisticstohelpthemgaugetherelativestrengthorweaknessesofdifferentteams,
Foryears,sportsfanaticshaveturnedtostatisticstohelpthemgaugetherelativestrengthorweaknessesofdifferentteams,
Howmenfirstlearnedtoinventwordsisunknown;inotherwords,theoriginoflanguageisamystery.Allwereallyknowistha
随机试题
下列关于冬眠低温治疗期间的护理叙述正确的是【】
下列关于视网膜上两种感光细胞的叙述,错误的是
在牙体预备时未做预防性扩展可能导致的主要不良后果是
下列关于水泥混凝土路面原材料的说法,错误的是()。
下列各项工程中,需要编制分部(分项)工程施工组织设计的有()。
计算个人所得税时,允许税前全额扣除的公益、救济性捐赠是()。
A.inflationB.shortC.uptoA.previousshocksresultedindouble-digit【T7】______andglobaleconomicdeclineB.taxesacco
Atwork,asinlife,attractivewomengetalotofgoodlucks.Studieshaveshownthattheyaremorelikelytobe【C1】______than
Whatwillthesonhavetodofirst?
Peoplewhoarenotself-confidentdependtoomuchonthepraiseofothersinordertofeelgoodaboutthemselves.
最新回复
(
0
)