Perfect Selenium Setup +
It takes some time, but I’m now nearly happy with our Selenium setup. In this series I want to explain what goals existed and how we get a larger suite of Selenium tests running.
You can find some posts around Selenium in this blog, but I want to get in more detail. Also there are some improvements to the solutions which could be really interesting if you start with Selenium or get an idea, how others deal with larger Selenium test suites. I will try to publish a new part every week, because there is so much to say, which wouldn’t fit into one single post.
Goals:
- Continuous integration of web application tests
- Tests in different browsers
- TestNG Setup
- Integration in Maven2
- Faster Selenium tests
Tests:
- Running use cases of the web application
- Running Javascript Unit Tests in different browsers
- Take screenshots of the application
I’m a web developer and no full-time tester, that’s why you should see the posts as support in an agile environment. There are different solutions and methods to test a web application, but I feel very comfortable with coding my tests and provide solutions which helps in the day-to-day work.
Until I will continue with the series, you can have a look at the previous posts:
- Testing of Web 2.0 interfaces (in german, but you will understand the code part)
- Robust portlet testing
- Selenium CI tests with TeamCity
- Selenium testing of massive Ajax Apps
Some folks I know have contributed to and worked on http://selenium-grid.openqa.org/
They recommend it quite highly. You may also want to check out http://studios.thoughtworks.com/cruise-continuous-integration – I’ve seen it used to run selenium for a web application on Windows+IE, Windows+FF, Ubuntu+FF, Fedora+FF all in parallel.
Hello Sidu,
I have tried Selenium Grid and it works really well. It could be a great time saver, because you can run your tests in parallel. But there are just Ant-Tasks to get it running. I am missing a little bit of comfort and our test cases couldn’t run in parallel that easy, because they have dependend test data. Not optimal, but I’m still working on it.
At the moment our tests are fast enough to run on one Selenium Remote Control. The overhead isn’t worth it at the moment.
We have used Cruise Control before and are now using TeamCity.
I will describe our setup in the next posts.
Simon
We started to use Selenium couple of months ago. Now I’m co-developing simple framework for testing web application. Especially for testing ExtJS application but not only.
Our testing framework uses Selenium and TestNG. 4 days ago the project was published on Google Code
KDEV-WTF
http://code.google.com/p/kdev-wtf/
To make manipulation easier the concept of adapters were used. So far the frame work is used for 3 projects and it seems to work fine (for our purposes)
If someone is interested please take a look at project page. The more information will be addad asap.
[...] agimatec » Blog Archive » Perfect Selenium Setup – %tags%Goals:<br /> <br /> * Continuous integration of web application tests<br /> * Tests in different browsers<br /> * TestNG Setup<br /> * Integration in Maven2<br /> * Faster Selenium tests<br /> <br /> Tests:<br /> <br /> * Running use cases of the web application<br /> * Running Javascript Unit Tests in different browsers<br /> * Take screenshots of the application [...]