Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Selenium IDE
Selenium RC
Selenium WebDriver
Selenium Grid
————————————
1) What is Selenium?
• Selenium is a suite of software tools to automate Web
Browsers.
• It is an Open source suite of tools mainly used for Functional
and Regression Test Automation.
MS Windows
Linux
Macintosh etc…
Mozilla Firefox
IE
Google Chrome
Safari
Opera etc…
C#
Python
Perl
Ruby
PHP
————————————
2) History of the Selenium Project
• Selenium first came to life in 2004.
• In 2006, Selenium WebDriver was launched at Google.
Selenium 1
(Selenium IDE + Selenium RC + Selenium Grid)
Selenium 2
(Selenium IDE + Selenium RC + Selenium WebDriver +
Selenium Grid)
————————————
3) Selenium’s Tools Suite
i) Selenium IDE
It is a Firefox browser plug in, used to create and execute Test
cases.
• Create Test Cases, Test suites (We can Record test cases or
type Test steps using element locators and Selenese
commands)
Java,
C#
Perl
Python
Ruby
PHP
MS Windows
Linux
Macintosh etc…
—————————
Drawback of Selenium WebDriver
5) Selenium License
8) Advantages of Selenium
9) Disadvantages of selenium
Macintosh
Apple OX
b) Application Environment
i) CUI based – Selenium doesn’t support.
ii) Windows based-Selenium doesn’t support.
Python
Perl
Ruby
PHP
IE
Safari
Opera etc…
> Anybody can download and use all Selenium projects with
free of cost.
> Anybody can modify the source code and distribute the
source code
> Add Selenium WebDriver .jar files to Java project and use
Webdriver features.
v) Difficult to use.
9) Limited support for Image Testing Rich support for Image Testing
11) No other tool integration for Test management. UFT can be integrated with ALM/QC for Test Manag
12) New features may not work properly. New features will properly.
14) Supports Web Applications only Supports Desktop and Web Applications.
i) Test Planning
1) Selenium IDE
a) Using Recording
2) Selenium WebDriver
Selenium IDE:
Selenium WebDriver
2) Parameterization
Replacing constant (fixed) values using
Parameters(Variables/Function Parameter etc…)
3) Synchronization
What is Synchronization?
4) Error Handling
Handling expected and unexpected errors.
What is debugging?
> Good support for Selenium with Java, You can get more help
documentation and code implementations from internet.
Example:
Integer
Character
String
Float
Boolean etc…
a) Local Variables
b) Instance variables
a) Arithmetic Operators
b) Relational Operators
c) Bitwise Operators
d) Logical Operators
e) Assignment Operators
f) Miscellaneous Operators
—————————————–
Flow Control Statements
Conditional Statements
Loop Statements
vi) Conditional Statements
a) If Statement
b) Switch Statement
——————
Types of Condition
b) Compound Condition
c) Nested condition
———————–
Usage of Conditional Statements
a) For loop
b) While loop
c) Do While loop
i) Inheritance
ii) Polymorphism
iii) Abstraction
iv) Encapsulation
————————————
i) Inheritance
> Inheritance is a mechanism in which one Object acquires all
the properties and behaviors of Parent object.
Java Supports:
a) Single Inheritance
c) Hierarchal Inheritance
Poly-means Many
Morphs -means forms/ways
b) Run-time Polymorphism
b) Interface (100%)
——————————————-
iv) Encapsulation
> Encapsulation is a process of wrapping code and data
together into a single unit.
a) Built in Packages
> Java is Securable, Using Java we can develop virus free and
tamper free systems.
—————————————–
Usage of Java
> Developing Desktop Applications (Ex: Acrobat Reader)
> Developing web Applications
> Java program file name should exactly match with class
name.