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

  从网上下载需要用到的两个jar包

   软件测试Lab Junit&Eclemma

  下载地址:https://github.com/junit-team/junit/wiki/Download-and-Install

  在Elcipse中 Project -> Properties中添加两个jar包

  软件测试Lab Junit&Eclemma

2. Install Eclemma with Eclipse

  下载所需要的文件,并将其放在Elcipse主目录下的dropins中,在Eclipse中Help -> Install new software中

  点击Add 然后点击 Local找到文件的所在位置

  软件测试Lab Junit&Eclemma

  然后点击OK则可自动安装完成

  截图如下:

  软件测试Lab Junit&Eclemma

3. Write a java program for the triangle problem and test the program with Junit.

  项目代码已传到github中URL: https://github.com/clownice/TestTriangle

  遇到的问题:创建的测试是创建Junit Test Case 而不是一个独立的类

  截图如下:

  软件测试Lab Junit&Eclemma

  

相关文章:

  • 2022-12-23
  • 2021-12-25
  • 2021-08-17
  • 2022-12-23
  • 2022-01-20
  • 2021-06-27
  • 2021-07-24
  • 2021-12-07
猜你喜欢
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2021-04-20
  • 2022-12-23
  • 2021-05-25
相关资源
相似解决方案