Getting error Could not find or load main class org.testng.TestNG

后端 未结 6 1086
不思量自难忘°
不思量自难忘° 2020-12-03 15:35

I\'m trying to run TestNG from command line, but it\'s giving me error. Can someone tell me where am I going wrong?

java -cp C:/TestNG directory

6条回答
  •  情深已故
    2020-12-03 16:08

    Check that the lib folder contains testng-6.8.jar(or any other version) file because testng.xml even executes successfully without testng-6.8.jar (or any other version) with the jars that gets added when we add TestNG library.

提交回复
热议问题