Anyone here use Selenium for testing web pages?
-
There's a few articles here on CodeProject, but frankly, the ones I've looked at don't seem very good, so I'm looking for a decent "how to" blog / article on using Selenium with C# to automate testing a website. Barring that, what alternative website integration test tools do you use? Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
-
There's a few articles here on CodeProject, but frankly, the ones I've looked at don't seem very good, so I'm looking for a decent "how to" blog / article on using Selenium with C# to automate testing a website. Barring that, what alternative website integration test tools do you use? Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!
Selenium is really good, especially if you use WebDriver and not the player/recorder in Firefox. The default environment Java/Eclipse is (in my opinion) a right pain in the neck. Instead I use Selenium in Visual Studio writing all the tests in c# in standard unit test projects. It as it limitations and mainly I use it for smoke tests/regression tests or to get to a certain point in manual testing. I found it helpful to write a whole bunch of webdriver extension methods and create some code snippets. This makes it a breeze to write tests that are readable and that my testers can use without being programmers. Another thing to consider is giving an ID to all your UI elements, it removes the pain form having to write an XPath filter. The Selenium tests are triggered during continuous integration at check-in time and it just works... nugget makes it easy to find the right packages, I use diverse Selenium Webdrivers (internet Explorer, Chrome, Firefox) so the test are ran against a decent variety of browsers. Selenium is great and easy to use but if Selenium does not cut it for you, you may find Telerik Test Studio a good solution but it's quite expensive. I don't have the time to write any article but maybe I should go to bed later, it's a great subject. ;) Valery.
-
Selenium is really good, especially if you use WebDriver and not the player/recorder in Firefox. The default environment Java/Eclipse is (in my opinion) a right pain in the neck. Instead I use Selenium in Visual Studio writing all the tests in c# in standard unit test projects. It as it limitations and mainly I use it for smoke tests/regression tests or to get to a certain point in manual testing. I found it helpful to write a whole bunch of webdriver extension methods and create some code snippets. This makes it a breeze to write tests that are readable and that my testers can use without being programmers. Another thing to consider is giving an ID to all your UI elements, it removes the pain form having to write an XPath filter. The Selenium tests are triggered during continuous integration at check-in time and it just works... nugget makes it easy to find the right packages, I use diverse Selenium Webdrivers (internet Explorer, Chrome, Firefox) so the test are ran against a decent variety of browsers. Selenium is great and easy to use but if Selenium does not cut it for you, you may find Telerik Test Studio a good solution but it's quite expensive. I don't have the time to write any article but maybe I should go to bed later, it's a great subject. ;) Valery.
Valery Possoz wrote:
I don't have the time to write any article
What you are doing sounds fascinating, and I wish you did have time to write an article for CP on it :)
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut, Jr.