I have TestNG suite with 2 tests included into an XML file. Test Suite works just fine if launching via IDE ( Eclipse ). However, I do need to run via command prompt. I try launching it using the following command:
java -cp C:\eclipse\plugins\org.testng.eclipse_6.9.5.201505251947\lib\*;C:\myworkspace\myproject\bin org.testng.TestNG MyTestSuite.xml
The error that occurs is:
[TestNGClassFinder] Warning: Can't link and determine methods of class tests.Test1
[[TestNGClassFinder]] Unable to read methods on class tests.MyTest1 - unable to resolve class reference org/openqa/selenium/WebDriver
[TestNGClassFinder] Warning: Can't link and determine methods of class tests.Test2
[[TestNGClassFinder]] Unable to read methods on class tests.MyTest2 - unable to resolve class reference org/openqa/selenium/WebDriver
TestNG also reports 0 test runs with 0 failures and 0 skips if that's relevant.