文件名称:SoftwareTest

  • 所属分类:
  • 数据结构常用算法
  • 资源属性:
  • [Java] [源码]
  • 上传时间:
  • 2013-05-02
  • 文件大小:
  • 238kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 孙**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

本例是软件测试课的用例,用以测试电信通话中话费计算时出现的各种问题,尤其是夏至日和冬至日的时间转换问题,以及一个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,
(系统自动生成,下载前可以参看下载内容)

下载文件列表





软件测试\软件测试一\readme.txt

........\软件测试一二实验报告.doc

软件测试

........\软件测试一

........\..........\代码

........\..........\....\InputStringTest.java

........\..........\....\My_Date.java

........\..........\....\TelFeeCal.java

........\..........\....\test.java

........\软件测试二

........\..........\Insurance.java

........\..........\InsuranceTest.java

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org