selenium fact sheet
TRANSCRIPT
-
8/13/2019 Selenium Fact Sheet
1/15
What is Selenium?
Selenium automates browsers.
It drives browsers natively.
It works with Firefox, Chrome, IE and Opera.
It is most commonly used to automate testin of web applications.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
2/15
Selenium Setup
!ou can run it locally or set it up on several servers to scale your testin.
Selenium can be controlled manually or by most testin frameworks.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
3/15
Writing Tests
"ests can be written natively in Selenium.
Or you can use the Selenium #$I to write in C%, &ava, $ython and 'uby.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
4/15
Running Tests Selenium tests can run manually.
Or throuh your build automation suite.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
5/15
Keyword-Driven Testing
Selenium tests can be con(ured in an external (le.
"his means that a tester can con(ure a set of tests in an Excel sheet )ust by
writin down keywords for each test case alon with any necessary data
without touchin the test code.
*hich in turn means that non+technical testers can con(ure new tests.
"his is called keyword-driven testing.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
6/15
Data-Driven Testing
# Selenium test suite can be written in such a way as to load data for the test
from an external (le or database.
"his means that testers can control the data that is loaded without touchin
the test code.
*hich in turn means that non+technical testers can create new sets of data
that can result in new types of tests.
"his is called data-driven testing.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
7/15
Hybrid Testing
eyword+ and data+driven testin approaches can be combined.
"his ives non+technical testers a lot of -exibility to create new tests that
respond to chanes in the software under test.
ut it re/uires an experienced automation enineer to set up the test suite in a
way that minimi0es the amount of technical maintenance re/uired.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
8/15
Integration and Reports
Since Selenium is )ust an #$I for browser automation, it interates with your
interated development environment or application lifecycle manaement tool
like any other #$I and lets you lo and report results natively in the I1E or
#23.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
9/15
!tensible
Selenium is an open source pro)ect. "he Selenium community has created
pluins and documented solutions that solve most problems.
4ere are a few interestin drivers and extensions5
1rivers for testin on #ndroid and iOS+based browsers.
1rivers for automatin testin desktop applications with #utoI".
1rivers for testin #ndroid and iOS apps with Selenium.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
10/15
Selenium Testing in the Wild
Case study examples of companies that are bene(ttin from Selenium
automation 6even thouh they thouht it wasn7t riht for them8.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
11/15
"re#uently $hanging %ommer%e Site
Conventional wisdom holds that test automation isn7t worth the investment if
the user interface of your application chanes fre/uently. #nd that7s exactly
why one electronics retailer hadn7t bothered with Selenium automation for their
ecommerce site."he truth has lon since moved on from conventional wisdom.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
12/15
9sin Selenium and &ava we enerated :E" and $OS" re/uests throuh4""$, parsed the responses and then used Selenium7s native methods for
validatin test results thereby skippin the user interface entirely.
*e set up a series of Excel spreadsheets with loin, credit card, items to
purchase and other details so that testers can chane the automated tests
without havin to edit the test code.
y automatin one level above the user interface and providin an Excel+
based interface for testers, the retailer was able to automate testin while
minimi0in maintenance in a way that did not re/uire fre/uent maintenance by
an automation enineer.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
13/15
SaaS Web &ppli%ation Testing with Selenium
# software as a service web application provider wanted to automate their
reression test suite to reduce the friction involved in testin and deployin
chanes to their product.
"he e;ort involved in manually runnin their reression testin meant that notall of their builds were bein thorouhly tested before bein pushed out. "hey
hadn7t had any ma)or bus slip into production, but reali0ed that it could
happen at any time.
"he company wasn7t willin to commit the resources to hire a full+time
automation enineer to maintain the test suite either.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
14/15
# hybrid keyword+ and data+driven testin framework was clearly in order. uteven a hybrid automated solution was oin to re/uire too much maintenance
by an automation enineer to )ustify the expense.
In addition to pullin test scenario and test data de(nitions from Excel sheets
in &ava+based test code, we also abstracted pae ob)ect de(nitions to an
external con(uration (le.
"his allowed testers to update existin tests when user interface elements
chaned, and even create some new tests.
1etailed and summary test reports were enerated automatically ivin
testers, developers and manaers the information they need to act on the
results.
www.OptimusQA.com
http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/ -
8/13/2019 Selenium Fact Sheet
15/15
Resour%es
Selenium5 *eb1river 1ocumentation
'oogle $ode5 Selenium $ro)ect 4ome
'oogle Te%hTalks5#utomatin !our rowser ased "estin 9sin
*eb1river
www.OptimusQA.com
http://docs.seleniumhq.org/docs/03_webdriver.jsphttps://code.google.com/p/selenium/http://www.youtube.com/watch?v=lfIzRHNXQhMhttp://www.youtube.com/watch?v=lfIzRHNXQhMhttp://www.optimusqa.com/http://www.optimusqa.com/http://www.optimusqa.com/https://code.google.com/p/selenium/http://www.youtube.com/watch?v=lfIzRHNXQhMhttp://www.youtube.com/watch?v=lfIzRHNXQhMhttp://www.optimusqa.com/http://docs.seleniumhq.org/docs/03_webdriver.jsp