文件名称:SoftwareTest
介绍说明--下载内容均来自于网络,请自行研究使用
本例是软件测试课的用例,用以测试电信通话中话费计算时出现的各种问题,尤其是夏至日和冬至日的时间转换问题,以及一个JUnit的简单测试用例。 对电话账单来说,春季和秋季的标准时间与夏时制时间的转换会带来有意思的问题。春季,这种转换发生在(3月末、4月初的)星期日凌晨2:00时,这时时钟要设置为凌晨3:00时。对称的转换通常发生在10月最后一个星期日,时钟要从2:59:59调回到2:00:00。
请为采用以下费率计算用户的每月通话费:
通话时间<=20分钟时,每分钟收费0.05美元,通话时间不到1分钟时按1分钟计算。
通话时间>20分钟时,收费1.00美元,超过20分钟的部分,每分钟0.10美元,不到1分钟时按1分钟计算。
假设:
通话计费时间从被叫方应答开始计算,到呼叫方挂机时结束。
没有超过20个小时的通话。
网上没有找到代码只好自己写一个了。-Google s translation is not reliable.
This case, the software testing course use cases to test telecommunications call charge calculating various problems, especially in the time of the summer solstice and the winter solstice conversion issues, as well as a simple JUnit test cases. For phone bill, spring and fall between standard time and daylight savings time conversion will bring interesting question. , This conversion occurred in the spring (end of March, early April) 2:00 am Sunday morning, when the clock is set to 3:00 pm. The symmetric transition typically occurs the last Sunday in October, the clock from the 2:59:59 transferred back to 2:00:00.
Monthly call charges calculated using the following rates:
Talk time <= 20 minutes, costs $ 0.05 per minute, talk time less than 1 minute 1 minute.
Talk time> 20 minutes and costs $ 1.00, more than a 20-minute parts, $ 0.10 per minute, less than 1 minute 1 minute.
Assumptions:
Call billing time from the called party answers,
请为采用以下费率计算用户的每月通话费:
通话时间<=20分钟时,每分钟收费0.05美元,通话时间不到1分钟时按1分钟计算。
通话时间>20分钟时,收费1.00美元,超过20分钟的部分,每分钟0.10美元,不到1分钟时按1分钟计算。
假设:
通话计费时间从被叫方应答开始计算,到呼叫方挂机时结束。
没有超过20个小时的通话。
网上没有找到代码只好自己写一个了。-Google s translation is not reliable.
This case, the software testing course use cases to test telecommunications call charge calculating various problems, especially in the time of the summer solstice and the winter solstice conversion issues, as well as a simple JUnit test cases. For phone bill, spring and fall between standard time and daylight savings time conversion will bring interesting question. , This conversion occurred in the spring (end of March, early April) 2:00 am Sunday morning, when the clock is set to 3:00 pm. The symmetric transition typically occurs the last Sunday in October, the clock from the 2:59:59 transferred back to 2:00:00.
Monthly call charges calculated using the following rates:
Talk time <= 20 minutes, costs $ 0.05 per minute, talk time less than 1 minute 1 minute.
Talk time> 20 minutes and costs $ 1.00, more than a 20-minute parts, $ 0.10 per minute, less than 1 minute 1 minute.
Assumptions:
Call billing time from the called party answers,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
软件测试\软件测试一\readme.txt
........\软件测试一二实验报告.doc
软件测试
........\软件测试一
........\..........\代码
........\..........\....\InputStringTest.java
........\..........\....\My_Date.java
........\..........\....\TelFeeCal.java
........\..........\....\test.java
........\软件测试二
........\..........\Insurance.java
........\..........\InsuranceTest.java