Selenium

518 views

Published on

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

Published in: Technology
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total views
518
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
24
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

Selenium

  1. 1. Selenium framework for testing
  2. 2. Content 2  What is Selenium  Selenium Components  Steps to start with Selenium  Selenium Commands  Features of Selenium
  3. 3. What is Selenium? 3 • 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
  4. 4. Selenium Components 4
  5. 5. Selenium-IDE 5 • 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.
  6. 6. Selenium-RC 6 • 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.
  7. 7. Selenium-Grid 7 • 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.
  8. 8. Steps to start with Selenium! 8 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.
  9. 9. Selenium Commands 9 • 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”.
  10. 10. Features of Selenium 10 • 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.
  11. 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. 12. Selenium IDE Execution Commands Record test actions Try the test in the Web based TestRunner Specify commands, including asserts Reference of the currently selected command
  13. 13. Questions ? 13 Email Us @ support@zeteoconsulting.com
  14. 14. Worldwide Offices: USA (Dallas) India (Pune) Partner Offices: Monterrey (Mexico) Frankfurt (Germany) Stockholm (Sweden) Email: support@zeteoconsulting.com Corporate URL: www.zeteoconsulting.com

×