天天看點

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