• 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 ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Can't compile JUnit test java  RSS feed

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

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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!