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

后端 未结 6 1096
不思量自难忘°
不思量自难忘° 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:24

    Path of TestNG.jar file was not set up. Follow instructions of following site to set up. It worked for me: http://qtp-automate.blogspot.com/2011/10/running-selenium-testng-test-from.html

提交回复
热议问题