- 55
- 0
- 约2.89千字
- 约 8页
- 2020-11-12 发布于山东
- 举报
软件测试课堂测验
第一次测验:
Consider an application App that takes two inputs name and age, where name is a nonempty string containing at most 20 alphabetic characters and age is an integer that must satisfy the constraint 0≤age≤120. The App is required to display an error message if the input value provided for age is out of range. The application truncates any name that is more than 20-character in length and generates an error message if an empty string is supplied for name.
1) Please find out the equivalence classes(等价类) . ( 30 分)
2) Construct test cases using the equivalence classes derived(in1) (20 分)答案:
Consider a method fp, brief for findPrice, that takes two inputs code and qty. The item code is represented by the integer code and the quantity purchased by another integer variable qty. fp accesses a database to find and display the unit price, the description, and the total price of the item corresponding to code. fp is required to display an error message, and return, if either of the two inputs is incorrect. Assuming that an item code must be in the range 99 999 and quantity in the range 1 100. Please give your test cases using boundary-value analysis(.50 分)
答案:
第二次:
1.Develop a decision table for the descriptions below
No charges are reimbursed(报销)to the patient until the deductible(扣除) has been met. After the deductible has been met, the amount to be reimbursed depends on whether or not the doctor or hospital is a Preferred Provider. For preferred providers
Doctors office visits are reimbursed at 65% and Hospital visits are reimbursed at 95%. For other providers reimburse 50% for Doctors Office visits or 80% for Hospital visits.
答案:
2.Develop a decision table for the YesterDate function.
答案:
第三次:
Cause-Effect Testing: In a given network, the sendfile command is used to send a file to a user on a different file server. The sendfile command takes three arguments: the first argument should be an existing file in the sender’s home directory, the second argument should
您可能关注的文档
最近下载
- 海绵城市建设项目监理技术方案.docx VIP
- 《陈涉世家》PPT课件一等奖新优质课比赛公开课获奖.ppt VIP
- 监理工程安全管理方案.doc VIP
- 物理学史全套课件-物理学史.ppt VIP
- 【湘少版英语字帖】三年级下册单词表衡水体字帖(湖南少年儿童出版社三年级起点含音标).pdf VIP
- (热门!)ISO 37001-2025 反贿赂管理体系要求及使用指南(中文版-译-2025).docx VIP
- 物理学史 全套课件.ppt VIP
- 有载分接开关 1.doc VIP
- GB50189-2015公共建筑节能设计标准.docx VIP
- 中华人民共和国传染病报告卡及填卡说明2026版.doc VIP
原创力文档

文档评论(0)