1 / 14

Selenium framework for testing

Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.

zeteo
Download Presentation

Selenium framework for testing

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. Selenium framework for testing

  2. Content • What is Selenium • Selenium Components • Steps to start with Selenium • Selenium Commands • Features of Selenium 2

  3. What is Selenium? • • Selenium is a robust set of tools that supports rapid development of test automation for web-based applications. • • Works anywhere JavaScript is supported • • Hooks for many other languages - Java, Ruby, Python • • Can simulate a user navigating through pages and then assert for specific marks on the pages • • All you need to really know is HTML to start • using it right away 3

  4. Selenium Components 4

  5. Selenium-IDE • IDE stands for Integrated Development Environment. • Which is used for Record and Play back the scripts. • It is an Add on for Mozilla Firefox, which means we can download the Selenium IDE from Mozilla Firefox and we can Record and Run the scripts in Mozilla Firefox only. • Selenium IDE is accountable for user actions. • We can Run the Recorded scripts against other browsers by using Selenium RC. 5

  6. Selenium-RC • RC stands for Remote Control. • It is a Server and launches the Browser. • It acts as a API and Library of Selenium. • We need to configure the Selenium RC with the supported language, then we can automate the application. 6

  7. Selenium-Grid • Selenium Grid is used for launching the multiple browsers with supported operating system in parallel. • We can run the scripts on different browsers in parallel. • It allows you to easily run multiple tests in parallel, on multiple machines, in a heterogeneous environment. 7

  8. Steps to start with Selenium! 1) Begin: write and run tests in Firefox. Selenium IDE is a Firefox add-on that records clicks, typing, and other actions to make a test, which you can play back in the browser. 2) Customize: your language, your browser. Selenium Remote Control (RC) runs your tests in multiple browsers and platforms. Tweak your tests in your preferred language. 3) Deploy: scale out, speed up Selenium Grid extends Selenium RC to distribute your tests across multiple servers, saving you time by running tests in parallel. 8

  9. Selenium Commands • Actions are commands that generally manipulate the state of the application. They do things like “click this link” and “select that option”. Can be called with “AndWait” suffix, e.g. “clickAndWait”. • Accessors examine the state of the application and store the results in variables, e.g. “storeTitle”. They are also used to automatically generate Assertions. • Assertions are like Accessors, but verify that the state of the application conforms to what is expected. Eg. “make sure the page title is X”, “verify that this checkbox is checked”. All Selenium Assertions can be used in 3 modes: “assert”, “verify”, and ” waitFor”. For example, you can “assertText”, “verifyText” and “waitForText”. 9

  10. Featuresof Selenium • Functional Automation tool for Web applications. • Open source, free to use and free of charge. • Supports more languages. • Supports different browsers. • Supports various operating systems. • Supports mobile devices • Can execute the tests while browser is minimized. • Can execute the tests in parralel. • Flexible. 10

  11. Selenium IDE The list of actions in the actual test case to execute The root of web application you want to test The log of the events that were executed, including any errors or warning that may have occurred

  12. Selenium IDE Execution Commands Record test actions Try the test in the Web based TestRunner Reference of the currently selected command Specify commands, including asserts

  13. Questions ? Email Us @ support@zeteoconsulting.com  13

  14. Worldwide Offices: USA (Dallas) India (Pune)Partner Offices: Monterrey (Mexico) Frankfurt (Germany) Stockholm (Sweden) Email:support@zeteoconsulting.com Corporate URL: www.zeteoconsulting.com

More Related