Selenium – Testing Tool   By:Pravin Mishra   [email_address]
Contents  <ul><li>Why testing? </li></ul><ul><li>Selenium Overview </li></ul><ul><li>Benefits of selenium </li></ul><ul><l...
Why testing?  <ul><li>Confidence=>Verification that our system behaves as it is suppose to.  </li></ul><ul><li>Manually  <...
What is selenium? <ul><li>Selenium is an open source automation testing tool for automating web based applications.  It ca...
<ul><li>Programming Languages </li></ul><ul><ul><ul><li>Ruby. </li></ul></ul></ul><ul><ul><ul><li>Java. </li></ul></ul></u...
<ul><li>Browsers </li></ul><ul><li>Mozilla </li></ul><ul><li>IE 6,7,8 </li></ul><ul><li>Google Chrome </li></ul><ul><li>Op...
<ul><li>Operating Systems </li></ul><ul><li>Windows  </li></ul><ul><li>Mac  </li></ul><ul><li>Linux/Unix  </li></ul>
Benefits of Selenium <ul><li>- Open source - Works on multiple browsers Mozilla,    Chrome, IE, Opera, Safari </li></ul><u...
What is selenium IDE? <ul><li>Record and run functionality.  </li></ul><ul><li>It gets installed as an add-on on Mozilla a...
What is selenium RC(remote control)? <ul><li>Execute in multiple browsers, on remote machines </li></ul><ul><li>Automate S...
What is selenium 2 OR web driver? <ul><li>Selenium 2 or Webdriver is the new version of Selenium. </li></ul><ul><li>What i...
Installing Selenium IDE <ul><li>Installing Selenium is a two step process </li></ul><ul><ul><li>First : If Firefox is not ...
IE Version of Selenium <ul><li>Is there an IE version of Selenium IDE? </li></ul><ul><ul><li>No, at this point of time Sel...
Check Firefox Version <ul><li>Click on the Mozilla Firefox </li></ul><ul><li>Go to Help    About as shown below: </li></u...
Installing Selenium IDE <ul><li>Open the Firefox browser window (*1) </li></ul><ul><li>Go to Tools    Check whether Selen...
Installing Selenium IDE <ul><li>Open the Firefox browser window (*1) </li></ul><ul><li>In the navigation tool bar type the...
Installing Selenium IDE <ul><li>Click Allow if Firefox prevents to install </li></ul>Click Allow
Installing Selenium IDE <ul><li>When the Software Installation Window appears, select “Selenium IDE” (*5) </li></ul><ul><l...
Installing Selenium IDE <ul><li>Now, in the Firefox browser go to Tools and verify whether “Selenium IDE” is displayed (*8...
Selenium IDE Click Selenium IDE in the menu which will bring the Selenium IDE to you (*9) The list of actions in the actua...
Selenium IDE Execution Commands Record test actions Try the test in the Web based TestRunner Specify commands, including a...
Test Creation Demo in https://login.secureserver.net
Login to https://login.secureserver.net   Click on Tools || Selenium IDE
Selenium IDE in recording Mode
Add Login Details
Click On Submit
Login Successfully
Selenium IDE records the Test Steps Stop Recording
Save Test Case/Test Suite
Run the entire Test Suite/Each Test Case See RESULT Here
THANKS Questions? By:Pravin Mishra Rails/UI Developer [email_address]
Upcoming SlideShare
Loading in …5
×

Selenium By Pravin Mishra

1,776 views
1,703 views

Published on

On 29th Jan 2012 present a presentation on Selenium, one of the fast growing &amp; widely adopted testing framework At maisasolutions.

1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
1,776
On SlideShare
0
From Embeds
0
Number of Embeds
25
Actions
Shares
0
Downloads
93
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Selenium By Pravin Mishra

  1. 1. Selenium – Testing Tool By:Pravin Mishra [email_address]
  2. 2. Contents <ul><li>Why testing? </li></ul><ul><li>Selenium Overview </li></ul><ul><li>Benefits of selenium </li></ul><ul><li>Component of selenium. </li></ul><ul><li>Selenium IDE Introduction </li></ul><ul><li>Installing Selenium IDE </li></ul><ul><li>Running a Simple Test </li></ul><ul><li>Installing Useful Tools for Writing Tests </li></ul><ul><li>Creating Selenium Test Suites </li></ul><ul><li>Questions? </li></ul>
  3. 3. Why testing? <ul><li>Confidence=>Verification that our system behaves as it is suppose to. </li></ul><ul><li>Manually </li></ul><ul><li>Automated </li></ul><ul><li>->Automated testing is less painful and much easier. </li></ul>
  4. 4. What is selenium? <ul><li>Selenium is an open source automation testing tool for automating web based applications. It can only automate web based applications . It works on multiple browsers and multiple operating systems . Being open source and very strong in nature, demand for this tool is increasing. </li></ul>
  5. 5. <ul><li>Programming Languages </li></ul><ul><ul><ul><li>Ruby. </li></ul></ul></ul><ul><ul><ul><li>Java. </li></ul></ul></ul><ul><ul><ul><li>C#. </li></ul></ul></ul><ul><ul><ul><li>PHP </li></ul></ul></ul><ul><ul><ul><li>Python </li></ul></ul></ul><ul><ul><ul><li>Perl </li></ul></ul></ul>
  6. 6. <ul><li>Browsers </li></ul><ul><li>Mozilla </li></ul><ul><li>IE 6,7,8 </li></ul><ul><li>Google Chrome </li></ul><ul><li>Opera 8,9,10 </li></ul><ul><li>Safari </li></ul>
  7. 7. <ul><li>Operating Systems </li></ul><ul><li>Windows </li></ul><ul><li>Mac </li></ul><ul><li>Linux/Unix </li></ul>
  8. 8. Benefits of Selenium <ul><li>- Open source - Works on multiple browsers Mozilla,    Chrome, IE, Opera, Safari </li></ul><ul><li>- Works on multiple Operating Systems </li></ul><ul><li>- Supports many languages </li></ul><ul><li>- Tests Ajax Applications </li></ul><ul><li>- Tests Flash Applicatons </li></ul><ul><li>- Can do Database Testing </li></ul><ul><li>- Multiple test frameworks are supported </li></ul><ul><li>- Can be used for Functional and UI testing </li></ul>
  9. 9. What is selenium IDE? <ul><li>Record and run functionality. </li></ul><ul><li>It gets installed as an add-on on Mozilla and works only on Mozilla. </li></ul><ul><li>That's why RC or webdriver comes in picture. </li></ul><ul><li>We can write our own extensions and implement loops, if statements, use arrays, parameterize test cases. </li></ul><ul><li>All this is done with the help of user extensions. One needs to know JavaScript in order to do this because the core engine of IDE is JavaScript based. </li></ul>
  10. 10. What is selenium RC(remote control)? <ul><li>Execute in multiple browsers, on remote machines </li></ul><ul><li>Automate Selenium tests from Java/.NET/Ruby etc </li></ul><ul><li>Integrate into wider business tests and CI tools </li></ul>
  11. 11. What is selenium 2 OR web driver? <ul><li>Selenium 2 or Webdriver is the new version of Selenium. </li></ul><ul><li>What is Selenium GRID </li></ul><ul><li>Run tests on multiple machines in parallel </li></ul><ul><li>Solves the biggest problem with Selenium, speed </li></ul>
  12. 12. Installing Selenium IDE <ul><li>Installing Selenium is a two step process </li></ul><ul><ul><li>First : If Firefox is not installed in your machine then Install Firefox </li></ul></ul><ul><ul><li>Second : If Selenium IDE is not installed on your machine then Install Selenium IDE Plug-in </li></ul></ul>
  13. 13. IE Version of Selenium <ul><li>Is there an IE version of Selenium IDE? </li></ul><ul><ul><li>No, at this point of time Selenium IDE works only for Firefox. You can write your test scripts via IDE and then use the Selenium Core TestRunner or Selenium RC to execute them on IE. </li></ul></ul>
  14. 14. Check Firefox Version <ul><li>Click on the Mozilla Firefox </li></ul><ul><li>Go to Help  About as shown below: </li></ul><ul><li>Check the version name </li></ul><ul><li>What is your version? </li></ul>In this About Window, it shows Firefox version 2.0.0.16
  15. 15. Installing Selenium IDE <ul><li>Open the Firefox browser window (*1) </li></ul><ul><li>Go to Tools  Check whether Selenium IDE already exist there (*2) </li></ul><ul><li>If you see “Selenium IDE”, Hurray, You are already having Selenium IDE plug-in is installed in your Firefox browser </li></ul><ul><li>If not installed then follow the instruction on the next slide </li></ul>Check whether Selenium IDE is already installed *1 *2
  16. 16. Installing Selenium IDE <ul><li>Open the Firefox browser window (*1) </li></ul><ul><li>In the navigation tool bar type the below URL: </li></ul><ul><ul><li>http://seleniumhq.org/download/ </li></ul></ul><ul><ul><li>Under Downloads Choose Selenium IDE(*1) </li></ul></ul>Don’t do this in IE browser Click download
  17. 17. Installing Selenium IDE <ul><li>Click Allow if Firefox prevents to install </li></ul>Click Allow
  18. 18. Installing Selenium IDE <ul><li>When the Software Installation Window appears, select “Selenium IDE” (*5) </li></ul><ul><li>Press Install button </li></ul><ul><li>“ Selenium IDE” Add on is installed (*6) </li></ul><ul><li>Click on “Restart Firefox” button(*6) </li></ul>*5 Restart to take effect of the Selenium Plug-in *6
  19. 19. Installing Selenium IDE <ul><li>Now, in the Firefox browser go to Tools and verify whether “Selenium IDE” is displayed (*8). </li></ul><ul><li>If found, then the Selenium IDE installation is completed. ( Congrats ! ) </li></ul>*8 Selenium IDE is successfully installed
  20. 20. Selenium IDE Click Selenium IDE in the menu which will bring the Selenium IDE to you (*9) 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
  21. 21. 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
  22. 22. Test Creation Demo in https://login.secureserver.net
  23. 23. Login to https://login.secureserver.net Click on Tools || Selenium IDE
  24. 24. Selenium IDE in recording Mode
  25. 25. Add Login Details
  26. 26. Click On Submit
  27. 27. Login Successfully
  28. 28. Selenium IDE records the Test Steps Stop Recording
  29. 29. Save Test Case/Test Suite
  30. 30. Run the entire Test Suite/Each Test Case See RESULT Here
  31. 31. THANKS Questions? By:Pravin Mishra Rails/UI Developer [email_address]

×