首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
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
87
问题
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
Individualsandbusinesseshavelegalprotectionforintellectualpropertytheycreateandown.Intellectualproper【C1】______fro
In2009theEuropeanCommissioncarriedoutaninvestigationintoMicrosoft.TheAmericansoftwaregianttiedInternetExplorer,
TimeintheAnimalWorldRhythmcontrolseverythinginNature.41Thesunprovidesabasictimerhythmforalllivingcr
Severaltypesoffinancialriskareencounteredininternationalmarketing;themajorproblemsincludecommercial,political,an
Ofallthegoodsandservicestradedinthemarketeconomy,pharmaceuticalsareperhapsthemostcontentious.Thoughproducedby
[A]Developmentwelcomedbycityplanners[B]Reduceddemandsonspaceandenergy[C]Plansforfuturehomes[D]Worldwideexamp
Writeanessayof160-200wordsbasedonthefollowingdrawing.Inyouressay,youshould1)describethedrawingbriefly,
Writealettertoacompanydecliningajoboffer.Inyourletter,youshouldappreciatethejoboffer,andstateyourreason(s)
随机试题
干扰素的抗病毒作用具有_________、_________、_________、_________等特点。
从设计任务的角度看,系统设计可划分为________设计和详细性设计。
阅读下面的两则新闻材料,根据材料回答问题:【材料一】奥巴马总统提名的多名官员遭遇麻烦奥巴马就任总统后不久,曾提名前参议院多数党领袖汤姆.达施勒为卫生部长,但是,就在参议院审议达施勒的提名期间媒体披露了他曾经漏税12.8万美元的丑闻。据悉,
甲状腺肿大时与颈前其他肿块的鉴别,下列哪项最重要()
急性心肌梗死左心功能不全伴频繁多源性室性早搏,用利多卡因无效,应首选下列哪项药物
工程资料管理软件不支持自动计算表格数据。()
下列选项中,不属于环境影响评价应遵循的技术原则的是( )。
高效,精简的项目运作组织和合理的人员配备特别是()是保证项目成功实施和运作的重要条件。
教师的教学策略可以分为以______为主导的教学策略、以学生为中心的教学策略和个别化教学等。
Toughnewrulesforpubsandclubs—includingabanondrinkinggameslikethein-famous"dentist’schair"—willbeintroduced
最新回复
(
0
)