To run JUnit tests from Linux terminal,
- Change current working directory to the source directory of the files
- To compile tests, run command
javac -cp ".:<path to selenium-server-standalone-xxx.jar>" SampleTests.java
- To run tests,
java -cp ".:<path to selenium-server-standalone-xxx.jar>" org.junit.runner.JUnitCore SampleTests
In Windows, replace ":" in classpath with ";"
No comments:
Post a Comment