I've been working on developing java based tests using the TestNG framework. I'm trying execute the tests from the command line and am running into the error that is stated in this thread title. The tests run fine through Eclipse on Mac, and they also run fine on Windows command line (as well as Eclipse on Win). I'm fairly new to Mac OS, so i'm probably leaving something out of the CLASSPATH variable. Any thoughts?
The setup I've tried to do is below:
export CLASSPATH=/Users/administrator/git/webdriver/lib/*
java org.testng.TestNG main_site_test_suite.xml
The output is:
[TestNG] [ERROR]
Cannot find class in classpath: platform.mainsite.LogIn
My XML file looks like this:
<test name="Log In Test">
<classes>
<class name="platform.mainsite.LogIn"/>
</classes>
</test>
<test name="Header Test">
<classes>
<class name="platform.mainsite.Header"/>
</classes>
</test>
<test name="Footer Test">
<classes>
<class name="platform.mainsite.Footer"/>
</classes>
</test>
<test name="Body Test">
<classes>
<class name="platform.mainsite.Body"/>
</classes>
</test>