软件测试与维护(试卷B)答案==.doc
Four short words sum up what has lifted most successful individuals above the crowd: a little bit more.-author-date软件测试与维护(试卷B)答案=诚信应考,考试作弊将带来严重后果姓名 学号 学院 专业 座位号 ( 密 封 线 内 不 答 题 )密封线线_ _ 诚信应考,考试作弊将带来严重后果! 华南理工大学期末考试软件测试与维护试卷B注意事项:1. 考前请将密封线内填写清楚; 2. 前2题答案请直接答在试卷上,第3题答案请答在答题纸上 3考试形式:闭卷; 4. 本试卷共 三 大题,满分100分,考试时间120分钟。题 号一二三总分得 分评卷人1 Explain the following concept in your own words.( 25 points/5 points each)1) W model2) stub也有人称为存根程序,用以模拟被测模块工作过程中所调用的模块。桩模块由被测模块调用,它们一般只进行很少的数据处理,例如打印入口和返回,以便于检验被测模块与其下级模块的接口3) Acceptance Testing在软件产品完成了功能测试和系统测试之后、产品发布之前所进行的软件测试活动它是技术测试的最后一个阶段,也称为交付测试。 4) Testcase满足特定目的的测试数据、测试代码、测试规程的集合是发现软件缺陷的最小测试执行单元有特殊的书写标准和基本原则5) software maintenance软件维护是指软件系统交付使用以后,为了改正错误或满足新的需要而修改软件的过程。4种类型:改正性维护、适应性维护、完善性维护、预防性维护2 Answer the following question briefly in your own words( 41 points)1、Briefly describe JUnit framework through drawing its structure graph? (8 points)s 2、Briefly describe the primary tasks of Unit Testing?(6 points)1、 模块接口测试2、 模块局部数据结构测试3、 模块边界条件测试4、 模块独立执行通路测试5、 模块的各条错误处理通路测试3、How do you understand the relation between the Cost of Bugs and time when Bug is found?(6 points)4、Please descricbe the difference between Top-down Integration and Bottom-up Integration through drawing their model graph?(8 points)l Top-downa) Start with top-level modulesb) Use stubs for lower-level modulesc) As each level is completed, replace stubs with next level of modulesl Bottom-upa) Start with bottom-level modulesb) Use drivers for upper-level modulesc) As each level is completed, replace drivers with next level of modules 自底向上自顶向下集成早早基本程序能工作时间晚早需要驱动程序是否需要桩程序否是计划与控制容易难绘图,优缺点对比5、What is the relation between Software Testing and SQA? (5 points) SQA 是管理工作、审查对象是流程、强调以预防为主 测试是技术实施工作、测试对象是产品、主要是以事后检查(文档、程序)为主 SQA指导测试、监控测试 测试为SQA提供依据 测试是SQA的一个环节、一个手段6、What is the Stress Testing? Briefly describe the process of Stress Testing through using Loadrunner testing tool ? (8 points)压力测试是一种基本的质量保证行为,它是每个重要软件测试工作的一部分。压力测试是在一种需要反常数量、频率或资源的方式下,执行可重复的负载测试或强度测试,以检查程序对异常情况的抵抗能力,找出性能瓶颈。包括:稳定性压力测试和破坏性压力测试。n 1)Virtual User Generator 创建脚本n 2)中央控制器(Controller)来调度虚拟用户n 3)运行脚本n 分析scenarion 4)分析测试结果3 应用题:( 34 points/17 points each))Please draw the program process graph and control flow graph for the following program,and design testcases through using the techniques of decision coverage?(17 points)void Func(int a, int b,int c)if (a>0 and b>0) a=a-b; if(c>0) c=a+b;else c=a+1; else c=b+1;a>0and b>0c>0 c=a+bc=a+1c= b+1TF1345TF6End7a=a-b2判定:a>0 and b>0, a<=0 or b<=0; c>0, c<=0 程序流程图4分、控制流图3分、判定7分、用例3分2、There is a file management system which requires users to enter a date that is expressed by year and month. The date is limited from January 1990 to December 2049 and is composed of six characters, year is expressed by the first four characters , month is expressed by the last two characters .Please design testcases to check the date through using techniques of Equivalence Partitioning and Boundary Conditions. (17 points)输入等价类有效等价类编号无效等价类编号日期的类型及长度1.6位数字字符 and在19902049之间and在0112之间2.有非数字字符3.少于6位数字字符4.多于6位数字字符年份范围5.小于19906.大于2049月份范围7.小于018.大于12 边界值: 6位, 1990,2049,01,12 6位,5位,7位 1990,1989 2049,2050 00,13等价类8分,等价类用例4分,边界值与用例5分,-