欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

软件测试lab1

发布时间:2025/7/14 编程问答 42 豆豆
生活随笔 收集整理的这篇文章主要介绍了 软件测试lab1 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

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

作业要求:

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

  • Install Eclemma with Eclipse
  • 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看一下主类的覆盖情况,没有覆盖到所有

     

    再加一个测试用例

     

     

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

    转载于:https://www.cnblogs.com/quxingming/p/6529883.html

    《新程序员》:云原生和全面数字化实践50位技术专家共同创作,文字、视频、音频交互阅读

    总结

    以上是生活随笔为你收集整理的软件测试lab1的全部内容,希望文章能够帮你解决所遇到的问题。

    如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。