帮我翻译一下

边界值分析法实例文章出处:51testing博客作者:发布时间:2007-01-31实例:“某一为学生考试试卷评分和成绩统计的程序,其规格说明指出了对程序的要求:程序的输... 边界值分析法实例

文章出处:51testing博客 作者: 发布时间:2007-01-31

实例:
“某一为学生考试试卷评分和成绩统计的程序,其规格说明指出了对程序的要求:
程序的输入文件由80个字符的一些记录组成,这些记录分为三组:
(1)标题:这一组只有一个记录,其内容为输出报告的名字。
(2)试卷各题标准答案记录:每个记录均在第80个字符处标以数字“2”。该组的第一个记录的第1至第3个字符为题目编号(取值1—999)。第10至59个字符给出第1至第50题的答案(每个合法字符表示一个答案)。该组的第2,第3,等等记录相应为第51至第100,第101至第150,等等题的答案。
(3)每个学生的答卷描述:该组中每个记录的第80个字符均为数字“3”。每个学生的答卷在若干个记录中给出。如甲的首记录第1至第9字符给出学生姓名及学号,第10至59字符列出的是甲所做的第1至第50题的答案。若试题数超过50,则其第2,第3,等等记录分别给出他的第51至第100,第101至150,等等题的解答。然后是学生乙的答案记录。
若学生最多为200人,输入数据的形式如下图所示:
该程序应给出4个输出报告,即:
按学生学号排序,每个学生的成绩(答对的百分比)和等级报告。
按学生得分排序,每个学生的成绩。
平均分数,最高与最低分之差。
按题号排序,每题学生答对的百分比。
以下两个表分别针对输入条件和输出条件,根据其边界值设置了测试用例。(共43个测试用例)
输入条件 测试用例
输入文件 空输入文件

标题 无标题记录
只有1个字符的标题
具有80个字符的标题

出题个数 出了1个题
出了50个题
出了51个题
出了100个题
出了999个题
没有出题
题目数是非数值量

答案记录 标题记录后没有标准答案记录
标准答案记录多1个
标准答案记录少1个

学生人数 学生人数为0
学生人数为1
学生人数为200
学生人数为201

生答题 某学生只有1个答卷记录,但有2个标准答案记录
该学生是文件中的第1个学生
该学生是文件中的最后1个学生

学生答题 某学生有2个答卷记录,但仅有1个标准答案记录
该学生是文件中的第1个学生
该学生是文件中最后1个学生

输出条件 测试用例

学生得分 所有学生得分相同
所有学生得分都不同
一些学生(不是全部)得分相同(用以检查等级计算)
1个学生得分0分
1个学生得分是100分
输出报告
(1)(2) 1个学生编号最小(检查排序)
1个学生编号最大
学生数恰好使报告印满1页(检查打印)
学生人数使报告1页打印不够,尚多1人
输出报告
(3) 平均值最大值(所有学生均得满分)
平均值为0(所有学生都得0分)
标准偏差取最大值(1学生得0分,1学生得100分)
标准偏差为0(所有学生得分相同)
输出报告
(4) 所有学生都答对第1题
所有学生都答错第1题
所有学生都答对最后1题
所有学生都答错最后1题
报告打印完1页后,恰剩1题未打
题数恰好使得报告打印在1页上
展开
 我来答
yayaweimi
推荐于2016-06-25 · 超过19用户采纳过TA的回答
知道答主
回答量:173
采纳率:0%
帮助的人:0
展开全部
The importation document of the procedure is constitute by some records of 80 character lists, these records is divided into three:
(1)Headline:This onlies have a record, its contents for output the name of the report.
(2)Try a standard answer record:Each record all marks with the numeral in the 80th character list"2".That first record 1st goes to the 3rd character list as the topic serial number.(take to be worth 1-999)The 10-59th character list gives the 1st to go to the 50th answer.(each legal character list mean an answer)That 2nd, the 3rd, the etc. record correspond for the 51th to the 100th, the 101th to the 150th, the answer of the etc..
(3)The answer book description of each student:That in each one record of the 80th character list all is numeral"3".The answer book of each student gives in some records.Give student's name and registration number such as head character lists with the 1st to the 9th record of A, what 10-59 character lists list is the 1st that A do to go to the 50th answer.If try number over 50, then its 2nd, the 3rd, the etc. record gives respectively he is the 51th to the 100th, the 101-150th, the solution of the etc..Then is the answer record of student's B.
If the student is 200 people at most, the form of the importation data is shown as diagram below:
That procedure should give 4 exportations to report, namely:
Press student the registration number row preface, the result(answer to of percentage) of each student reports with grade.
Press student to get a goal the row preface, the result of each student.
Average marks, bad tallest and lowest cent.
Press a number row preface, each student's answer to of percentage.
Following two watches aim at the importation condition and output a condition respectively, establishing a test to use an example according to its boundary value.(Total 43 tests use an example)
Input the condition test uses an example
Input a document an empty importation a document

The headline has no headline record
Only 1 headline of character list
Have 80 headlines of character lists

Made out questions the piece 1
50
51
100
999
Make out questions
The topic few right and wrongs number measure

Answer the record has no standard answer record after the headline record
The standard answer record has another 1
Standard answer record little 1

The enrollment enrollment is 0
Enrollment is 1
Enrollment is 200
Enrollment is 201
Learn
Living the answer a some student to only have 1 answer book record, but have 2 standard answer records
That student is the 1st student in the document
That student is the last within document student

Student the answer the some student have 2 answer book records, but have 1 standard answer record only
That student is the 1st student in the document
That student is the last is in the document student

Output the condition test uses an example

The student gets a goal all students to get a goal a homology
All students get a goal all different
Some students(is not all) get a goal a homology(check a grade calculation in order to)
1 student gets a goal 0 centses
1 student's get a goal is 100 centses
Output a report
(1)(2) 1 student serial number is minimum(check row preface)
1 student's serial number is the biggest
The student's number makes the report print full one page by luck(the check print)
The enrollment makes to report the 1 pages print not enough, still many one persons
Output a report
(3) Equally be worth the biggest value(all students all get full marks)
Equally be worth to 0(all students get 0 cent)
The standard deviation takes the biggest value(the 1 students get 0 cent, the 1 students get 100 cent)
Standard deviation for 0(all students get a goal a homology)
Output a report
(4) All students answers to the 1st
All students answers are wrong the 1st
All students answers to the last
All lasts with wrong students answers
The report remained 1 and beat just after printing one page through
The number makes the report print by luck in one page top
愁死了123
2007-02-09
知道答主
回答量:31
采纳率:0%
帮助的人:0
展开全部
带蓝牙模块的手机gprs50m包月(10块) + 笔记本蓝牙模块(笔记本自带)..
速度倒是很慢.
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
匿名用户
2007-02-08
展开全部
复杂`
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式