• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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.

when your children are suffering from your punishment, tell your them it will help them write good poetry when they are older. Like this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!