Introduction to Selenium
1) Introduction to Selenium
2) History of the Selenium Project
3) Selenium Components / Selenium's Tool Suite
4) Platforms supported yesteryear Selenium
5) Selenium License
6) Testing Frameworks together with other Tools used inwards selenium
7) Advantages of Selenium
8) Disadvantages of Selenium
9) Selenium versus UFT (formerly QTP)
10) Selenium Environment Setup
-------------------------------------------------------
1) Introduction to Selenium
> Selenium is mainly used for Functional together with Regression Testing
> Selenium is an Open Source Software
> Selenium is a suite of Software Tools to automate Web Browsers.
> Selenium supports diverse operating environments.
MS Windows
Linux
Macintosh etc...
> Selenium supports diverse Browsers
Mozilla Firefox
Google Chrome
IE
Safari
Opera Etc...
---------------------
Note: Selenium IDE supports Mozilla Firefox browser only.
> Selenium supports diverse programming languages to write programs (Test Scripts).
Java
C#
Python
Perl
Ruby
PHP
-------------------------------------------------------
2) History of the Selenium Project
> Selenium get-go came to life inwards 2004.
> In 2006, Selenium WebDriver was launched at Google.
> In 2008, the whole Selenium squad decided to merge Selenium WebDriver amongst selenium RC
in gild to cast to a greater extent than powerful tool called Selenium 2.0
Selenium 1.0
(Selenium IDE + Selenium RC + Selenium Grid)
Selenium 2.0
(Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid)
Selenium 3.0 Coming
-------------------------------------------------------
3) Selenium’s Tool suite / Selenium Components
i) Selenium IDE
ii) Selenium RC (*Out Dated)
iii) Selenium WebDriver
iv) Selenium Grid
i) Selenium IDE (Integrated Development Environment)
It is a Firefox Browser Add on, used to practice together with execute Test cases.
Selenium IDE features:
> Create Test Cases, Test Suites
(Record or Type Test Steps)
> Edit Cases
> Execute Test Cases, Test suites
> Debug Test Cases
> Enhance Test Cases
> Export Test Cases to other formats (java, ruby etc...)
Note: Selenium IDE Test Case default format is .html
--------------------------------------------------------------
Drawbacks of Selenium IDE
> It industrial plant on Mozilla Firefox Browser only.
> It doesn't back upwardly programming logic/features to elevate Test Cases
> It doesn't back upwardly Data Driven Testing
> It is non suitable for complex Test illustration design
> No centralized maintenance of Elements / objects
------------------------------------
ii) Selenium RC (* Out Dated)
-----------------------------------
iii) Selenium WebDriver
> Selenium WebDriver is a Programming Interface (No IDE) to practice together with execute Test Cases.
Selenium WebDriver - Programming Interface, no IDE
Selenium IDE - IDE but no Programming interface
UFT/QTP - IDE every bit good every bit Programming Interface
-----------------------------------------------------------
Selenium WebDriver supports diverse programming languages
Java
C#
Python
Perl
PHP
Ruby
--------------------------------------------------------
Selenium WebDriver Supports diverse browsers
Mozilla Firefox
Google Chrome
IE
Safari
Opera Etc...
-----------------------------------------------
Selenium Supports diverse operating environments
MS Windows
Linux
Macintose Etc...
--------------------------------------------------------------
Drawbacks of Selenium WebDriver
> No built-in Result Reporting facility
> Selenium WebDriver has no IDE, takes to a greater extent than fourth dimension to practice Test Cases.
> It doesn't direct maintain an integrated spread canvas for Data driven testing
-----------------------------------
iv) Selenium Grid
> Selenium Grid Executes Test cases across multiple browsers, operating environments
and machines inwards Parallel
> Selenium Grid 2.0 supports Selenium RC Test Cases together with Selenium WebDriver Test Cases.
-----------------------------------
You Focus on:
Test Automation using Selenium
i) Selenium WebDriver
(To practice together with execute Test Cases using Element Locators together with WebDriver API Commands)
ii) Java programming
(To elevate Test cases)
iii) TestNG Testing Framework
(To grouping Test cases, execute Test batches together with generate Test Reports.
-------------------------------------------------------
4) Platforms Supported yesteryear Selenium
a) Browsers
--------------
Google Chrome
Mozilla Firefox
IE
Opera
Safari etc...
b) Operating Systems
------------------------
MS Windows
Linux
Macintosh etc...
c) Programming Languages
------------------------------
Java
C#
Python
Perl
Ruby
PHP
d) Application Environment
------------------------------
Computer Software together with Mobile Software
Computer Software
CUI based Application
1) Desktop Applications - No
2) Web Applications - Yes
Hybrid Application
Mobile Software
1) Native Application - No
2) Web Apps - Yes
3) Hybrid Applications -No
-------------------------------------------------------
5) Selenium License
All Selenium Projects released nether the Apache 2.0 License
> Anybody tin download together with purpose all Selenium Projects / Components amongst gratis of cost
> Anybody tin alter the rootage code together with distribute the rootage code.
** Selling modified code is non allowed.
--------------------------------------------------------------
6) Testing Frameworks together with other Tools used inwards Selenium
Testing Frameworks
Java Platform
i) JUnit
ii) TestNG - To grouping Test cases, Execute Test Batches, together with Generate Reports
.NET
NUnit
----------------------------------------
Eclipse IDE - To write together with execute Java Programs
Firebug together with Firpath plug ins for Mozilla Firefox browser to inspect elements
(Page Inspector built-in characteristic also at that spot inwards Firefox browser)
For Google Chrome, IE browsers, built-in developer tools available
-------------------------------
Identifying Elements together with performing operations on Elements
-----------------------------------------------------------
Browser Drivers
Mozilla Firefox is default browser
For Chrome, IE etc... browsers, involve to download browser drivers together with ready path.
-------------------------------------------------------
7) Advantages of Selenium
i) Selenium is an Open Source Software Tools Suite
ii) Selenium supports diverse Browsers (Firefox, Chrome, IE, Safari, Opera etc...)
iii) Selenium supports diverse Programming languages (Java/Python/C#/Perl/Ruby/PHP)
iv) Selenium supports diverse operating environments (MS Windows, Linux, Mac etc...)
v) Selenium supports Parallel Testing
vi) Selenium uses less Hardware resources.
-------------------------------------------------------
8) Disadvantages of Selenium
i) Selenium supports Web Applications / Browser based Applications only.
ii) No reliable Technical back upwardly from anybody.
iii) Difficult to use, takes to a greater extent than fourth dimension to practice Test cases.
----------------
Create Tests
UFT
Record / Descriptive programming to practice basic steps
Use Checkpoints / VBScript Flow control; statements to insert verification points
Use Data Table / Use VBScript Flow command together with Excel Object for Data driven Testing
Write Comments
Selenium
Selenium IDE
Record / Type steps to practice basic steps
Use Selenese Commands (Assert/Verify commands)
No support
Write Comments
Selenium WebDriver
Write Test Steps using Element Locators together with WebDriver Commands / Methods
Use Programming logic / Flow Control or Testing Framework Assert methods
Use Programming features (Text file, Excel etc...)
Write Comments
---------------------
iv) Difficult setup Test Environment
If It is UFT, Download together with Install
If It is Selenium WebDriver, Download Java, Selenium WebDriver Java Language Binding, together with Download JUnit or TestNG Framework together with Configure all...
-----------------------
v) Limited back upwardly for Image Testing
vi) New features may non operate properly
vii) No other tool integration for Test management
viii) No built inwards Result Reporting facility
-------------------------------------------------------
9) Selenium versus UFT (formerly QTP)
Selenium:
i) Selenium Open Source
ii) Selenium Doesn't back upwardly Desktop Applications
iii) Supports diverse Programming Environments
iv) Supports Parallel Testing
v) Supports diverse operating Environments
vi) No IDE inwards Selenium WebDriver
vii) Less Technical support
viii) New features may non operate properly
ix) Difficult to Setup Test Environment
x) No other tool integration for Test Management
xi) Selenium Uses less hardware resources
xii) Difficult use, takes to a greater extent than fourth dimension to practice Test cases
xiii) No built-in Reporting facility
xiv) No Authorized Certification
UFT (Formerly QTP):
i) UFT is Commercial / Vendor Tool
ii) UFT Supports Desktop Applications together with Web Applications
iii) UFT Supports VBScript only
iv) UFT Doesn't back upwardly Parallel Testing
v) UFT Supports MS Windows only
vi) UFT has IDE every bit good every bit Programming Interface
vii) HP provides Technical support
viii) UFT novel features volition workproperly.
ix) Easy to Setup Test Environment
x) UFT tin Integrate amongst ALM/QC
xi) UFT Uses to a greater extent than hardware resources
xii) Easy to practice Tests using UFT
xiii) UFT has Built inwards Reporting facility
xiv) HP Conducts Certification Program
-------------------------------------------------------
10) Selenium Test Environment Setup
Choose Selenium Tools together with Others
Eclipse IDE to write together with execute programs
Java every bit Programming
Selenium WebDriver to Create Test Cases
TestNG Testing Framework every bit Test Runner
Browser drivers also
.................
----------------------------------------
Configure Selenium
> Download Eclipse IDE together with Extract
> Download Java Software together with Install
> Download Selenium WebDriver Java Language binding (seleniumhq.org) together with Add WebDriver jolt files to Java Project inwards Eclipse IDE
> Download Chrome, IE etc... Browser Drivers to execute Test Cases against all pop browsers
> Download together with Install TestNG Framework cast Eclipse IDE
-------------------------------------------------------
Sumber http://www.gcreddy.com/
1) Introduction to Selenium
2) History of the Selenium Project
3) Selenium Components / Selenium's Tool Suite
4) Platforms supported yesteryear Selenium
5) Selenium License
6) Testing Frameworks together with other Tools used inwards selenium
7) Advantages of Selenium
8) Disadvantages of Selenium
9) Selenium versus UFT (formerly QTP)
10) Selenium Environment Setup
-------------------------------------------------------
1) Introduction to Selenium
> Selenium is mainly used for Functional together with Regression Testing
> Selenium is an Open Source Software
> Selenium is a suite of Software Tools to automate Web Browsers.
> Selenium supports diverse operating environments.
MS Windows
Linux
Macintosh etc...
> Selenium supports diverse Browsers
Mozilla Firefox
Google Chrome
IE
Safari
Opera Etc...
---------------------
Note: Selenium IDE supports Mozilla Firefox browser only.
> Selenium supports diverse programming languages to write programs (Test Scripts).
Java
C#
Python
Perl
Ruby
PHP
-------------------------------------------------------
2) History of the Selenium Project
> Selenium get-go came to life inwards 2004.
> In 2006, Selenium WebDriver was launched at Google.
> In 2008, the whole Selenium squad decided to merge Selenium WebDriver amongst selenium RC
in gild to cast to a greater extent than powerful tool called Selenium 2.0
Selenium 1.0
(Selenium IDE + Selenium RC + Selenium Grid)
Selenium 2.0
(Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid)
Selenium 3.0 Coming
-------------------------------------------------------
3) Selenium’s Tool suite / Selenium Components
i) Selenium IDE
ii) Selenium RC (*Out Dated)
iii) Selenium WebDriver
iv) Selenium Grid
i) Selenium IDE (Integrated Development Environment)
It is a Firefox Browser Add on, used to practice together with execute Test cases.
Selenium IDE features:
> Create Test Cases, Test Suites
(Record or Type Test Steps)
> Edit Cases
> Execute Test Cases, Test suites
> Debug Test Cases
> Enhance Test Cases
> Export Test Cases to other formats (java, ruby etc...)
Note: Selenium IDE Test Case default format is .html
--------------------------------------------------------------
Drawbacks of Selenium IDE
> It industrial plant on Mozilla Firefox Browser only.
> It doesn't back upwardly programming logic/features to elevate Test Cases
> It doesn't back upwardly Data Driven Testing
> It is non suitable for complex Test illustration design
> No centralized maintenance of Elements / objects
------------------------------------
ii) Selenium RC (* Out Dated)
-----------------------------------
iii) Selenium WebDriver
> Selenium WebDriver is a Programming Interface (No IDE) to practice together with execute Test Cases.
Selenium WebDriver - Programming Interface, no IDE
Selenium IDE - IDE but no Programming interface
UFT/QTP - IDE every bit good every bit Programming Interface
-----------------------------------------------------------
Selenium WebDriver supports diverse programming languages
Java
C#
Python
Perl
PHP
Ruby
--------------------------------------------------------
Selenium WebDriver Supports diverse browsers
Mozilla Firefox
Google Chrome
IE
Safari
Opera Etc...
-----------------------------------------------
Selenium Supports diverse operating environments
MS Windows
Linux
Macintose Etc...
--------------------------------------------------------------
Drawbacks of Selenium WebDriver
> No built-in Result Reporting facility
> Selenium WebDriver has no IDE, takes to a greater extent than fourth dimension to practice Test Cases.
> It doesn't direct maintain an integrated spread canvas for Data driven testing
-----------------------------------
iv) Selenium Grid
> Selenium Grid Executes Test cases across multiple browsers, operating environments
and machines inwards Parallel
> Selenium Grid 2.0 supports Selenium RC Test Cases together with Selenium WebDriver Test Cases.
-----------------------------------
You Focus on:
Test Automation using Selenium
i) Selenium WebDriver
(To practice together with execute Test Cases using Element Locators together with WebDriver API Commands)
ii) Java programming
(To elevate Test cases)
iii) TestNG Testing Framework
(To grouping Test cases, execute Test batches together with generate Test Reports.
-------------------------------------------------------
4) Platforms Supported yesteryear Selenium
a) Browsers
--------------
Google Chrome
Mozilla Firefox
IE
Opera
Safari etc...
b) Operating Systems
------------------------
MS Windows
Linux
Macintosh etc...
c) Programming Languages
------------------------------
Java
C#
Python
Perl
Ruby
PHP
d) Application Environment
------------------------------
Computer Software together with Mobile Software
Computer Software
CUI based Application
1) Desktop Applications - No
2) Web Applications - Yes
Hybrid Application
Mobile Software
1) Native Application - No
2) Web Apps - Yes
3) Hybrid Applications -No
-------------------------------------------------------
5) Selenium License
All Selenium Projects released nether the Apache 2.0 License
> Anybody tin download together with purpose all Selenium Projects / Components amongst gratis of cost
> Anybody tin alter the rootage code together with distribute the rootage code.
** Selling modified code is non allowed.
--------------------------------------------------------------
6) Testing Frameworks together with other Tools used inwards Selenium
Testing Frameworks
Java Platform
i) JUnit
ii) TestNG - To grouping Test cases, Execute Test Batches, together with Generate Reports
.NET
NUnit
----------------------------------------
Eclipse IDE - To write together with execute Java Programs
Firebug together with Firpath plug ins for Mozilla Firefox browser to inspect elements
(Page Inspector built-in characteristic also at that spot inwards Firefox browser)
For Google Chrome, IE browsers, built-in developer tools available
-------------------------------
Identifying Elements together with performing operations on Elements
-----------------------------------------------------------
Browser Drivers
Mozilla Firefox is default browser
For Chrome, IE etc... browsers, involve to download browser drivers together with ready path.
-------------------------------------------------------
7) Advantages of Selenium
i) Selenium is an Open Source Software Tools Suite
ii) Selenium supports diverse Browsers (Firefox, Chrome, IE, Safari, Opera etc...)
iii) Selenium supports diverse Programming languages (Java/Python/C#/Perl/Ruby/PHP)
iv) Selenium supports diverse operating environments (MS Windows, Linux, Mac etc...)
v) Selenium supports Parallel Testing
vi) Selenium uses less Hardware resources.
-------------------------------------------------------
8) Disadvantages of Selenium
i) Selenium supports Web Applications / Browser based Applications only.
ii) No reliable Technical back upwardly from anybody.
iii) Difficult to use, takes to a greater extent than fourth dimension to practice Test cases.
----------------
Create Tests
UFT
Record / Descriptive programming to practice basic steps
Use Checkpoints / VBScript Flow control; statements to insert verification points
Use Data Table / Use VBScript Flow command together with Excel Object for Data driven Testing
Write Comments
Selenium
Selenium IDE
Record / Type steps to practice basic steps
Use Selenese Commands (Assert/Verify commands)
No support
Write Comments
Selenium WebDriver
Write Test Steps using Element Locators together with WebDriver Commands / Methods
Use Programming logic / Flow Control or Testing Framework Assert methods
Use Programming features (Text file, Excel etc...)
Write Comments
---------------------
iv) Difficult setup Test Environment
If It is UFT, Download together with Install
If It is Selenium WebDriver, Download Java, Selenium WebDriver Java Language Binding, together with Download JUnit or TestNG Framework together with Configure all...
-----------------------
v) Limited back upwardly for Image Testing
vi) New features may non operate properly
vii) No other tool integration for Test management
viii) No built inwards Result Reporting facility
-------------------------------------------------------
9) Selenium versus UFT (formerly QTP)
Selenium:
i) Selenium Open Source
ii) Selenium Doesn't back upwardly Desktop Applications
iii) Supports diverse Programming Environments
iv) Supports Parallel Testing
v) Supports diverse operating Environments
vi) No IDE inwards Selenium WebDriver
vii) Less Technical support
viii) New features may non operate properly
ix) Difficult to Setup Test Environment
x) No other tool integration for Test Management
xi) Selenium Uses less hardware resources
xii) Difficult use, takes to a greater extent than fourth dimension to practice Test cases
xiii) No built-in Reporting facility
xiv) No Authorized Certification
UFT (Formerly QTP):
i) UFT is Commercial / Vendor Tool
ii) UFT Supports Desktop Applications together with Web Applications
iii) UFT Supports VBScript only
iv) UFT Doesn't back upwardly Parallel Testing
v) UFT Supports MS Windows only
vi) UFT has IDE every bit good every bit Programming Interface
vii) HP provides Technical support
viii) UFT novel features volition workproperly.
ix) Easy to Setup Test Environment
x) UFT tin Integrate amongst ALM/QC
xi) UFT Uses to a greater extent than hardware resources
xii) Easy to practice Tests using UFT
xiii) UFT has Built inwards Reporting facility
xiv) HP Conducts Certification Program
-------------------------------------------------------
10) Selenium Test Environment Setup
Choose Selenium Tools together with Others
Eclipse IDE to write together with execute programs
Java every bit Programming
Selenium WebDriver to Create Test Cases
TestNG Testing Framework every bit Test Runner
Browser drivers also
.................
----------------------------------------
Configure Selenium
> Download Eclipse IDE together with Extract
> Download Java Software together with Install
> Download Selenium WebDriver Java Language binding (seleniumhq.org) together with Add WebDriver jolt files to Java Project inwards Eclipse IDE
> Download Chrome, IE etc... Browser Drivers to execute Test Cases against all pop browsers
> Download together with Install TestNG Framework cast Eclipse IDE
-------------------------------------------------------