• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can't compile JUnit test java  RSS feed

Posts: 1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I had some working JUnit tests (that weren't unit tests, they were front end tests) which used Selenium.

Now, we want to integrate Selenium with Zephyr which requires being able to run those same tests via a BAT file - via the command-line.

I have the following files in my project src/test/java:
ScreenshotTestRule.java - rule to take snapshot on test failures
SeleniumUtil.java - framework for invoking/resetting selenium
TestSeleniumUtil.java - checks that selenium can open borwsers.
TestJVSUserLogins.java - checks login accounts
TestSubjectAttributes.java - checks subject attributes after login

Now, I was able to compile SeleniumUtil.java into SeleniumUtil.class simply by doing "javac SeleniumUtil.java". That worked. I got the class file.

But I have been utterly failing at compiling the other classes!

Now to me, SeleniumUtil is compiled - so why doesn't javac understand what this object is?

I know there's a lot I'm missing here. I've always used Java inside of Eclipse, or just done JSPs... I haven't been in this situation before in my meager 1.5 year's experience with java (.5 of which was in 1998).

I've been messing around with classpath a lot, but to no avail.

rubbery bacon. crispy tiny ad:
Why should you try IntelliJ IDEA ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!