Forums Register Login

Can't compile JUnit test java

+Pie Number of slices to send: Send
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.

The overall mission is to change the world. When you've done that, then you can read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 857 times.
Similar Threads
Import an Ontology into JSP with Jesstaglib
Problem in building project using Ant build tool
Modifying JBOSS twiddle code
errors generated when running Ant build file in Eclipse
Build phpbb2JForum from source?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 02:32:44.