Selenium is an open source web testing framework that runs automated tests in a browser. It was created by Thoughtworks and consists of Selenium Core, Selenium IDE, Selenium Remote Control, and Selenium on Rails. Selenium allows testing web applications across browsers and platforms and interacts with browser DOM using HTML and JavaScript.
3. What’s Selenium?
• Web testing framework
Created by Thoughtworks
Uses AJAX & magic
4. What’s Selenium?
• Web testing framework
• Runs in a browser
Created by Thoughtworks
Uses AJAX & magic
5. What’s Selenium?
• Web testing framework
• Runs in a browser
• HTML & Javascript
Created by Thoughtworks
Uses AJAX & magic
6. What’s Selenium?
• Web testing framework
• Runs in a browser
• HTML & Javascript
• Open source
Created by Thoughtworks
Uses AJAX & magic
7. What’s Selenium?
• Web testing framework
• Runs in a browser
• HTML & Javascript
• Open source
• http://openqa.org/
Created by Thoughtworks
Uses AJAX & magic
13. Selenium Core
Browser
Application
Just HTML and Javascript, so can be installed in any web/app server.
Install at any convenient path, as long as it’s onthe same server (host & port).
Don’t deploy to live!
14. Selenium Core
Browser
Application
Selenium
Just HTML and Javascript, so can be installed in any web/app server.
Install at any convenient path, as long as it’s onthe same server (host & port).
Don’t deploy to live!
15. Selenium Core
Browser
Application
Selenium
Just HTML and Javascript, so can be installed in any web/app server.
Install at any convenient path, as long as it’s onthe same server (host & port).
Don’t deploy to live!
16. Selenium RC
Browser
Application
No need to change application.
Server launches, drives and kills browser(s).
Acts as proxy to get round same-source policy.
17. Selenium RC
Browser
Selenium
Application
Server
No need to change application.
Server launches, drives and kills browser(s).
Acts as proxy to get round same-source policy.
18. Selenium RC
Browser
Selenium
Tests
Application
Server
No need to change application.
Server launches, drives and kills browser(s).
Acts as proxy to get round same-source policy.
19. Selenium RC
Browser
Selenium
Tests
Application
Server
No need to change application.
Server launches, drives and kills browser(s).
Acts as proxy to get round same-source policy.
20. Selenium RC
Browser
Selenium
Tests
Application
Server
No need to change application.
Server launches, drives and kills browser(s).
Acts as proxy to get round same-source policy.
21. Selenium IDE
Browser
Application
Firefox plugin. Single browser, but cross-platform.
Record, edit and playback.
Import/export various formats (HTML tables is default, like Selenium).
22. Selenium IDE
Browser
Selenium
Application
Firefox plugin. Single browser, but cross-platform.
Record, edit and playback.
Import/export various formats (HTML tables is default, like Selenium).
23. Selenium IDE
Browser
Selenium
Application
Firefox plugin. Single browser, but cross-platform.
Record, edit and playback.
Import/export various formats (HTML tables is default, like Selenium).
24. Selenium on Rails
Browser
Application
Selenium
Only runs in test mode, so you don’t need to remove it to deploy.
25. Selenium on Rails
Browser
ails
Rc
agi
M
Application
Selenium
Only runs in test mode, so you don’t need to remove it to deploy.
28. Pros and Cons
• Runs using a real browser
• Cross-platform & cross-browser
29. Pros and Cons
• Runs using a real browser
• Cross-platform & cross-browser
• Language-agnostic
30. Pros and Cons
• Runs using a real browser
• Cross-platform & cross-browser
• Language-agnostic
• Hard to test across hosts or ports
31. Pros and Cons
• Runs using a real browser
• Cross-platform & cross-browser
• Language-agnostic
• Hard to test across hosts or ports
• including SSL/non-SSL