2017-06-12 46 views

回答

2

如果你不使用的編譯系統(但我肯定會推薦這樣做),你可以添加TestNG的庫作爲JAR依賴。

  • 下載從最新版本的Maven中心 - org.testng
  • 其作爲庫添加到IntelliJ IDEA的項目

說明如何將jar添加到的IntelliJ項目,你可以在這個問題上找到:Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project

然後,這個jar將被Intellij IDEA編入索引,您將能夠使用TestNG執行測試。

+0

非常感謝@Andrii Abramov –