1 / 18

Testing Web Applications with Selenium & Selenium Remote Control Gojko Adzic gojko@gojko gojko

Testing Web Applications with Selenium & Selenium Remote Control Gojko Adzic gojko@gojko.com http://gojko.net. Automate Web user interface tests Verify functionality in different browsers on different platforms Check periodically to see if the site is on-line and works correctly.

tamatha
Télécharger la présentation

Testing Web Applications with Selenium & Selenium Remote Control Gojko Adzic gojko@gojko gojko

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Testing Web Applications with Selenium & Selenium Remote Control Gojko Adzic gojko@gojko.com http://gojko.net

  2. Automate Web user interface tests Verify functionality in different browsers on different platforms Check periodically to see if the site is on-line and works correctly Why should you care?

  3. Javascript functional test runner Started by Jason Huggins, Paul Gross and Jie Tina Wang, in 2004. Opensource product Actively developed and maintained by Thoughtworks Download from OpenQA.org Selenium in a nut-shell

  4. Lots of different commands to manipulate DOM elements and verify text, DOM or timing Locate elements by name, id, xpath... Tests are described as tables Selenese – the language of Selenium

  5. Selenium - Core http://selenium.openqa.org/

  6. Selenium - IDE • Firefox extension • Record-replay • Command reference • save/export/load tests http://selenium-ide.openqa.org

  7. Selenium-RC • Automate Selenium tests from Java/.NET/Ruby etc • Execute in multiple browsers, on remote machines • Integrate into wider business tests and CI tools http://selenium-rc.openqa.org

  8. Selenium Grid • Run tests on multiple machines in parallel • Solves the biggest problem with Selenium, speed • Supports EC2 http://selenium-grid.openqa.org

  9. CubicTest • Visual test management • Eclipse-based • Mocking up web sites based on test scripts http://www.cubictest.com

  10. StoryTestIQ • Wiki-based • Mashup of Selenium and FitNesse • Run SQL commands • Integrate with CI tools http://storytestiq.solutionsiq.com/

  11. WebTest fixtures • FitNesse fixtures for Selenium • User-friendly language or direct selenium RC access • Integrate Selenium in your business tests http://www.fitnesse.info/webtest

  12. Domain specific testing language Agile 2008 presentation from Solutions IQ

  13. What's good? • Relatively easy to automate web UI tests • Record/Replay for regression tests • RC allows integration with CI and JUnit/FitNesse tests

  14. What's bad? • Speed: RC->Browser communication is a speed bottleneck (run in grid, overnight)‏ • UI is brittle, tests depending on the UI break a lot (DSTL might fix this, page abstractions as well)‏ • Data-backed tests are not easily repeatable (integrate with DB test engines)‏

  15. Best practices • Use Selenium to verify workflow and session • Don't use it to check business rules • Don't put Selenium tests in your main development build – run them overnight • Have dedicated machines that run tests • DON'T THINK OF THIS AS A REPLACEMENT FOR EXPLORATORY TESTING!!!

  16. Although selenium is an essential trace element, it is toxic if taken in excess. Wikipedia on chemical element Selenium

  17. Links • http://gojko.net • http://www.openqa.org • http://www.solutionsiq.com/agile2008/agile-2008-domain.php • http://storytestiq.solutionsiq.com • http://www.cubictest.com • http://fitnesse.info/webtest

  18. Some important dates • 18th September: Agile Acceptance Testing • 25th September: Script #, .NET response to Google Web Toolkit • 23rd October: Dependency injection with Castle Windsor • 27th November: Asynchronous enterprise .NET applications with NServiceBus • 17th December: Test driven development in .NET

More Related