首页 > 其他 > 详细

软件测试lab1

时间:2017-03-10 12:34:05      阅读:155      评论:0      收藏:0      [点我收藏+]

---恢复内容开始---

作业要求:

Install Junit(4.12), Hamcrest(1.3) with Eclipse

  1. Install Eclemma with Eclipse
  2. Write a java program for the triangle problem and test the program with Junit.

a)      Description of triangle problem:

Function triangle takes three integers a,b,c which are length of triangle sides; calculates whether the triangle is equilateral, isosceles, or scalene.

 

 

安装Junit(4.12), Hamcrest(1.3) Eclemma请看上一篇博客/上一次作业

 

首先写好需要用到的类和测试类

 技术分享

 

代码请看https://github.com/StarLight1125/Software-Test

 

Junit 和Eclemma 使用截图如下

 技术分享

 

技术分享

 

用Eclemma看一下主类的覆盖情况,没有覆盖到所有

 

再加一个测试用例

技术分享

 

 

---恢复内容结束---

软件测试lab1

原文:http://www.cnblogs.com/quxingming/p/6529883.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!