is it possible? Selenium webdriver + Maven + Spring framework

2,796 views
Skip to first unread message

Prasad Bodke

unread,
Jul 11, 2013, 9:31:25 AM7/11/13
to seleniu...@googlegroups.com, webd...@googlegroups.com
Hi Friends,

Can we implement Selenium webdriver + Maven + Spring framework?
If any one of you already implement this, please share your ideas, project template, code snippet.
I want to implement this, please give your inputs.


--
Prasad Bodke
09320675131

Shawn Knight

unread,
Jul 11, 2013, 10:46:44 AM7/11/13
to seleniu...@googlegroups.com, webd...@googlegroups.com
Is it possible to implement Spring as described above, yes; in addition, I use testNG. Spring builds a number of my "behind the scenes" classes, including the my webdriver class that is autowired into each test class. If you are using Spring 3, have a look at spring profiles. 

Thomas Sundberg

unread,
Jul 11, 2013, 11:26:40 AM7/11/13
to Selenium Users, webd...@googlegroups.com
On 11 July 2013 15:31, Prasad Bodke <prasad...@gmail.com> wrote:
> Hi Friends,
>
> Can we implement Selenium webdriver + Maven + Spring framework?
> If any one of you already implement this, please share your ideas, project
> template, code snippet.
> I want to implement this, please give your inputs.
>

It is posible. I wrote a bit about it a while ago,
https://thomassundberg.wordpress.com/2009/04/17/integration-test-a-web-application-with-selenium/

HTH
Thomas


--
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://thomassundberg.wordpress.com/
Twitter: @thomassundberg

Better software through faster feedback

Rajya Lakshmi

unread,
Jul 15, 2013, 8:29:33 AM7/15/13
to seleniu...@googlegroups.com, webd...@googlegroups.com

Jon Thor Austen

unread,
Nov 13, 2014, 10:43:15 AM11/13/14
to seleniu...@googlegroups.com, webd...@googlegroups.com
My work partners and I rewrote our framework from pure TestNG into Spring with just a dash of TestNG with the help from a Spring developer.   We don't use Async and i dont know how to use Async, probably because I am using TestNG to fork my threads. I do use a singleton WebDriverManager class using ThreadLocal. So, not sure if that helps you. The only Spring annotations I use are basically Component, Configuration, Aspect, Autowired, Bean, and RunWith.   

I am still learning Spring myself, as a QA engineer, though and so it is still too much for me to elaborate on yet but someday soon I will write a blog post about it.   I think a blog article on this subject is badly needed and when I have learned how to relay the information I will. 

-Jon
Reply all
Reply to author
Forward
0 new messages