首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
81
问题
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
[A]Meetingdifferentneeds[B]Smallerisbetter[C]Betterproductmakesgreaterquantity[D]Qualityvsquantity[E]Chillyc
Ofallthegoodsandservicestradedinthemarketeconomy,pharmaceuticalsareperhapsthemostcontentious.Thoughproducedby
Writeanessayof160-200wordsbasedonthefollowingdrawing.Inyouressay,youshould1)describethedrawingbriefly,
Writeanessayof160-200wordsbasedonthefollowingdrawing.Inyouressay,youshouldfirstdescribethedrawing,theninte
Howmenfirstlearnedtoinventwordsisunknown;inotherwords,theoriginoflanguageisamystery.Allwereallyknowistha
"THESERVANT"(1963)isoneofthosefilmsthatitisimpossibletoforget.Theservantexploitshismaster’sweaknessesuntilh
随机试题
简述支气管哮喘的诊断标准。
培养肠道致病菌常用的选择性培养基是
分解痰液黏蛋白成分而发挥祛痰作用的药物是
建设项目的“三算”不包括()。
以下()是向海关办理加工贸易合同备案时应提交的单证。
某单位进口小轿车100辆,每辆小轿车货价15万元,运抵我国海关前发生的运输费用、保险费用无法确定,经海关查实其他运输公司相同业务的运输费用占货价的比例为2%。关税税率为60%,该单位应向海关缴纳关税税额为()万元。
下列选项中,不属于商业银行短期借款的是()。
公安机关对于现行犯或者重大嫌疑分子,如果有下列情形之一的,哪些可以先行拘留?()
(2013山东)2011年上交所成交额最高的月份,深交所上市公司的市价总值比上月:
数据的组织和存储会直接影响算法的实现方式和【】。
最新回复
(
0
)