Selenium

10
Val Kravets, Luis Sanchez, Allen Chung, Phillip Anderson, Leyla Norooz, Brian Ramnarian, Todd Watson Selenium

description

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 - PowerPoint PPT Presentation

Transcript of Selenium

Page 1: Selenium

Val Kravets, Luis Sanchez, Allen Chung, Phillip Anderson, Leyla Norooz, Brian Ramnarian, Todd Watson

Selenium

Page 2: 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

Selenium

Page 3: 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

What is Selenium

Page 4: Selenium

• 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

Selenium IDE

Page 5: Selenium

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

Remote Control

Page 6: Selenium

• 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.

WebDriver

Page 7: Selenium

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

When to use WebDriver

Page 8: Selenium

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

Selenium Grid

Page 9: Selenium

-Demo of Webdriver application-Demo of Selenium IDE record/playback feature on Firefox

Live Demo

Page 10: Selenium

Questions?