100 likes | 350 Views
Selenium. Val Kravets , Luis Sanchez, Allen Chung, Phillip Anderson, Leyla Norooz , Brian Ramnarian , Todd Watson. Selenium. Portable software testing framework for web applications Developed by ThoughtWorks in 2004 Open source application released under the Apache 2.0 license
E N D
Selenium Val Kravets, Luis Sanchez, Allen Chung, Phillip Anderson, LeylaNorooz, Brian Ramnarian, Todd Watson
Selenium • Portable software testing framework for web applications • Developed by ThoughtWorks in 2004 • Open source application released under the Apache 2.0 license • Made up of the Selenium WebDriver, Remote Control, Integrated Development Environment, and Grid applications
What is Selenium • Selenium is a tool that allows you to launch a browser, drive the browser (open a url, enter some data, click on a link) and check the browser state (a section is visible, specific text is present, a widget is disabled) • You drive the key piece in charge of controlling the browser (through the Selenium IDE, Remote Control, or WebDriver) by sending HTTP requests that follow a specific Selenium protocol
Selenium IDE • Selenium IDE allows you to record and then playback tests through Firefox (user doesn't need to know the scripting language) • Can also write test cases in multiple languages including Ruby, PHP, Java, C# and Python
Remote Control You’ll want to use Selenium-RC whenever your test requires logic not supported by Selenium-IDE. For example, Selenium-IDE does not directly support: • condition statements • iteration • logging and reporting of test results • error handling, particularly unexpected errors • database testing • test case grouping • re-execution of failed tests • test case dependency • screenshot capture of test failures
WebDriver • WebDriver originally was a separate project from Selenium. • WebDriver uses a different underlying framework from Selenium’s javascript Selenium-Core. It also provides an alternative API with functionality not supported in Selenium-RC. WebDriver does not depend on a javascript core embedded within the browser, therefore it is able to avoid some long-running Selenium limitations.
When to use WebDriver One should use WebDriver when requiring improved support for • Mult-browser testing including improved functionality for browsers not well-supported by Selenium-1.0. • Handling multiple frames, multiple browser windows, popups, and alerts. • Page navigation. • Drag-and-drop. • AJAX-based UI elements
Selenium Grid Selenium-Grid allows the Selenium-RC solution to scale for large test suites and for test suites that must be run in multiple environments. Selenium-Grid allows you to run your tests in parallel to boost performance and to allow users to run tests in different environments
Live Demo -Demo of Webdriver application -Demo of Selenium IDE record/playback feature on Firefox