This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes spring dependency injection not working with Selenium Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "spring dependency injection not working with Selenium" Watch "spring dependency injection not working with Selenium" New topic
Author

spring dependency injection not working with Selenium

kalyen kumar
Ranch Hand

Joined: Sep 18, 2008
Posts: 53
Hey,

Here is what i'm doing to get automatic bean wiring for selenium and fitnesse test to run.



When i test this i get the following exception.



All other tests which doesn't use dependency injection run well.

Thanks in advance
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30057
    
149

Kalyen,
Is j2ee.jar in your classpath?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
kalyen kumar
Ranch Hand

Joined: Sep 18, 2008
Posts: 53
Thanks for your response.

The issue got resolved. I was excluding selenium-server artifact. I commented out that part. The tests are working fine.
 
jQuery in Action, 2nd edition
 
subject: spring dependency injection not working with Selenium
 
Similar Threads
Spring Junit test issue
Help with reprinting downloaded text from FTP site onto GUI!
Spring 2.5 - Rolling back first method, when the second method throws Runtime ex
what is WebappLoader.java ?
A Simple Test Framework using JUnit and Spring (Part 1)