天天看点

eclipse和testng

1. 离线下载testng安装包

http://dl.bintray.com/testng-team/testng-eclipse-release/zipped/

2. 新建-maven项目--选择包--新建other--testng class

3. Pom.xml

项目依赖关系

项目中的依赖关系应该如下所示:

 <依赖性>

   <的groupId> org.testng </的groupId>

   <artifactId的> TestNG的</ artifactId的>

   <版本> 6.8 </版本>

   <范围>测试</范围>

 </依赖性>

  <dependencies>

  <dependency>

            <groupId>org.testng</groupId>

            <artifactId>testng</artifactId>

            <version>6.8.7</version>

            <scope>test</scope>

        </dependency>

    <dependency>

      <groupId>junit</groupId>

      <artifactId>junit</artifactId>

      <version>3.8.1</version>

      <scope>test</scope>

    </dependency>

  </dependencies>

</project>

4testng

eclipse和testng

5.其他包下载

json包下载:http://www.findjar.com/index.x?query=org.codehaus.jettison.json.JSONException

包含以下类

eclipse和testng

velocity包下载:http://velocity.apache.org/

Reportng包下载:https://reportng.uncommons.org/

Guice 包下载:http://www.java2s.com/Code/Jar/g/Downloadguice30jar.htm