2. Selenium is a free (open source) automated testing suite
for web applications across different browsers and
platforms. It is quite similar to HP Quick Test Pro (QTP
now UFT) only that Selenium focuses on automating
web-based applications. Testing done using Selenium
tool is usually referred as Selenium Testing.
Selenium is not just a single tool but a suite of software's,
each catering to different testing needs of an
organization. It has four components.
3. COMPONENTS :
Selenium Integrated Development Environment (IDE)
Selenium Remote Control (RC)
WebDriver
Selenium Grid
4. Selenium IDE: Record and playback
Selenium RC : It is a Server and launches the Browser
,it acts as a API and Library of Selenium.
WebDriver : Selenium WebDriver is a collection of open
source APIs which are used to automate the testing of a
web application.
Selenium Grid : It allows you to easily run multiple tests
in parallel, on multiple machines, in a heterogeneous
environment.
5. INVENTION ?
Simon Stewart created WebDriver
circa 2006 when browsers and web applications
were becoming more powerful and more restrictive
with JavaScript programs like Selenium Core. It
was the first cross-platform testing framework
that could control the browser from the OS
level.
6. PROS & CONS
PROS:
Simpler installation, Browser interaction is easy,
fast execution time ,
CONS:
Requires programming language , more time taking
than selenium ide,
7. WHY SELENIUM WEBDRIVER
To use a certain programming language in
designing your test case.
To test applications that are rich in AJAX-based
functionalities.
To execute tests on the HtmlUnit browser.
To create customized test results.
To decrease the manual hours on the same thing
again and again
8. METHODS TO WRITE TEST CASES
Data driven method :
driver.findElements(By.id(“xyz”)).sendkeys(“a”);
Keyword driven method : Using OR properties file
Hybrid driven method : Using both data and
keyword driven methods
9. WHY SHOULD WE MOVE TO AUTOMATION
Automation in our company will make our product
more reliable
Testing is executed by software tools, so it is
significantly faster than a manual approach.
Practical option when the test cases are run
repeatedly over a long time period.
Lesser amount of time will be used for checking the
same things again and again
10. HOW SELENIUM IS IMPORTANT IN AGILE
To fulfill the needs for fast deployment,
In agile methodology, a lot of changes comes again
and again , if the speed of development is high
rather than testing , one can well imagine what it
will cost the company
If same test cases are run with different data and
conditions