Selenium Tutorial 1
(Overview of Test Automation, Overview of Selenium Part-1)
Session 1: Overview of Test Automation
tin last done inward ii ways.
a) Manual Testing
b) Test Automation
-------------------------
i) Advantages as well as Disadvantages of Manual Testing
Advantages:------------
> No Test Tool cost
> Can last used for dynamically changing UI designs
> No Environment Limitations
> Useful for Short term projects
> For usability testing manual testing is the exclusively option.
> Programming cognition is non required.
--------------------------------
Disadvantages:
> It takes to a greater extent than fourth dimension or to a greater extent than resources, sometimes both.
> Performance Testing is impractical.
> Comparing large total of information is difficult
> Data Driven Testing as well as Batch Testing accept to a greater extent than fourth dimension as well as efforts
> Checking GUI objects sizes as well as color combinations are difficult
> Less Test Coverage
> Less Accuracy
Etc....
----------------------------
ii) Advantages as well as Disadvantages of Test Automation
Advantages:
> Fast: Test Tool is faster inward execution than human users.
> Reusable: Sanity Tests, Regression Tests
> Repeatable: Data Driven Tests
> Reliable:
> Programmable:
> Comprehensive: Batch Testing
> For Performance Testing Test Automation is the exclusively solution
---------------------------------
Disadvantages
> Not suitable for brusque term projects
> 100 % Test automation is non possible
> All types of testing are non possible (Ex: Usability Testing)
> Lack of knowledge
> Debugging issues
> Test tools direct maintain their ain defects, as well as thence nosotros may non conk desired benefits.
> Environment limitations
> Not suitable for Shot term projects, dynamically changing requirements, dynamically changing UI designs.
-------------------------------------------------
iii) Types of Test Tools
a) Business classification
1) Vendor Tools
UFT, LoadRunner, ALM/QC, RFT, RPT, SilkTest etc....
2) Open root Tools
Selenium, Jmeter, Jira, Bugzilla etc...
3) In-house Tools
-----------------------
b) Technical classification:
1) Functional as well as Regression exam tools
UFT, RFT, SilkTest, Selenium, etc....
2) Performance Test tools
LoadRunner, Jmeter, RPT, Silk Performer, etc...
3) Test administration Tools
ALM /QC, Jira etc....
4) Defect Management tools
Bugzilla, PR-Tracker etc...
-------------------------------------
iv) ATLM (Automation Test Life bicycle methodology)
a) Decision to Automation
Test type: Functional Testing
Time
Budget
Customer interests:
Maintenance:
b) Test Tool selection:
Test Type:
Application Environment:
Cost:
Available Resources:
Technical Support
-----------------------------
c) Test Planning as well as Test Development
Configure the Tool
Analyzing the AUT
Select Test cases of Automation
Tests that nosotros direct maintain to execute on every construct (Sanity Tests)
Tests that nosotros direct maintain to execute on every modified construct (Regression Tests)
Tests that nosotros direct maintain to execute using multiple sets of Test information (Data driven tests)
Select Automation framework as well as implement
Developing Tests using Recording or Type exam scripts manually
Enhancing Tests using Tool IDE as well as Programming features
d) Test Execution
Single Test Run
Batch Testing
Generating Test Reports
e) Analyzing Test Results as well as Reporting Defects
f) Maintenance of Automation Resources
-------------------------------------------
Session 2: Overview on Selenium
i) Introducing Selenium:
> It is a suite of software tools to automate spider web browsers
> It is a opened upwards root software
> Selenium supports diverse Operating environments (Windows, UNIX, Macintosh etc...)
> Selenium supports diverse browsers (Mozilla firefox, IE, Chrome, Opera, Safari etc...)
> Selenium supports diverse Programming as well as scripting languages to pattern as well as execute tests.
Java, C#, PHP, Perl, Python, Ruby
Use Java Programming language
Most of the Help documentation as well as implementations available for Java only.
------------------------------------------
ii) History of the Selenium Project
> Selenium commencement came to life inward 2004
> Selenium WebDriver launched at Google inward 2006
> In 2008 Selenium WebDriver merged amongst selenium RC, called every bit Selenium 2.0
----------------------------------------------
iii) Selenium License:
All selenium projects released nether the license of Apache 2.0
Anybody tin download as well as use
Anybody tin alteration the root code
Anybody tin distribute the code.
* Selling the modified code is non allowed.
-----------------------------------------------
iv) Selenium supporting platforms/Environments
a) Application Environment
1) It doesn't back upwards CUI based Application
2) It doesn't back upwards I-tier, II-Tier (Desktop Applications or Windows based Applications)
3) It supports Web Applications
4) Mobile Applications which are having spider web forms
b) Operating Environment
1) It supports Windows operating environs
2) It supports UNIX operating environs
3) It supports Mac operating environs
c) Web Browsers
1) IE
2) Mozilla Firefox
3) Chrome
4) Safari
5) Opera etc...
d) Programming / Scripting Languages
1) Java
2) C#
3) PHP
4) Python
5) Perl
6) Ruby
----------------------------------------------
v) Selenium Suite of Tools
a) Selenium IDE (Integrated Development Environment)
----------------
It is Firefox Add on
It is prototyping tool
Selenium Test default format is html
Features:
> Record as well as Playback Test cases
> Edit Test Cases
> Execute a Test case
> Execute a Test Suite
> Type Test Script using Elements locaters as well as selenium commands
> Debugging Test Cases
> Export Test cases to other programming as well as scripting languges
-------------------
Limitations:
------------
> It supports Firefox browser only
> Data driven Testing is non possible
> No Flow Control
> No detailed Result reports
---------------------------------------------
b) Selenium RC (Remote Control)----------------
It is Client/server Applications
Features:
> Import Test Cases from Selenium IDE
> Type Test script using UI chemical factor locators as well as methods
> It supports conditional as well as Loop statements
> It supports diverse browsers (IE, Firefox, Chrome, Safari, Operara etc...)
> It supports diverse programming as well as scripting languages to practice as well as execute Tests
> Built inward Result generator
> random Test execution is possible
Drawbacks:
-----------
> It takes to a greater extent than fourth dimension for Test execution
> It can't executes tests inward parallel
--------------------------------------
c) Selenium WebDriver
It is an interface
> Faster inward Test Execution
---------------------------------------
d) Selenium Grid
Selenium Grid 1.0 supports Selenium RC tests only
Selenium Grid 2.0 supports WebDriver tests
> It is used to grouping Tests
> It is used execute Tests inward parallel
Scenario 1 : 100 Tests using diverse browser
Machine 1: 100 Tests using IE
Machine 2: 100 Tests using Chrome
....
Scenario 2 : 300 Tests Using IE only
Machine 1: First 100 Tests
Machine 2: Second 100 Tests
.....
> Generating Test Reports using HTML/ XML format
--------------------------------
vi) Selenium Versus UFT (Formerly QTP)
Selenium
a) Open source, No license cost
b) Supports Web based Applications only
c) Using Elements locators
d) Supports Java, C#, PHP, Ruby, Python, Perl to practice as well as heighten tests.
e) Supports Windows, UNIX, Mac etc... Operating environments
f) Supports IE, Firfox, Chrome, Opera, Safari etc...
g) Limited back upwards for Image testing
h) Difficult to purpose
i) No reliable technical support
j) New features may non run properly
k) No Object Repository, No centralized maintenance of Objects
l) No authorized Certification
m) No Other tools integration
----------------------------
HP UFT (Unified Functional Testing)
a) Vendor, HP, Cost
b) Supports Desktop as well as Web Applications
c) Based on Add ins exclusively it supports
d) VBScript only
e) Only Windows Operating environment
f) IE, Firefox as well as Chrome
g) Rich back upwards for Image Testing
h) Easy to use
i) HP provides technical support
j) New features volition run properly
k) Centralized maintenance of Objects
l) HP Conducts Certification
m) ALM/QC cab last integrated for Test Management --------------------------------------------------------------------------
vii) Frameworks as well as other tools used inward Selenium
Other tools or Add ins
i) Firebug:
It is Firefox add together on used to inspect UI elements
ii) Firepath:
It is extension of Firebug, used to conk xpaths
----------------------------
Frameworks used inward Selenium
i) JUnit
ii) TestNG
-------------
h) Advantages of Selenium
i) Disadvantages of Selenium
j) Choose Selenium Tools
k) Configure Selenium Tools
----------------------------------------------------
Selenium Tutorial 2
(Overview of Test Automation, Overview of Selenium Part-1)
Session 1: Overview of Test Automation
tin last done inward ii ways.
a) Manual Testing
b) Test Automation
-------------------------
i) Advantages as well as Disadvantages of Manual Testing
Advantages:------------
> No Test Tool cost
> Can last used for dynamically changing UI designs
> No Environment Limitations
> Useful for Short term projects
> For usability testing manual testing is the exclusively option.
> Programming cognition is non required.
--------------------------------
Disadvantages:
> It takes to a greater extent than fourth dimension or to a greater extent than resources, sometimes both.
> Performance Testing is impractical.
> Comparing large total of information is difficult
> Data Driven Testing as well as Batch Testing accept to a greater extent than fourth dimension as well as efforts
> Checking GUI objects sizes as well as color combinations are difficult
> Less Test Coverage
> Less Accuracy
Etc....
----------------------------
ii) Advantages as well as Disadvantages of Test Automation
Advantages:
> Fast: Test Tool is faster inward execution than human users.
> Reusable: Sanity Tests, Regression Tests
> Repeatable: Data Driven Tests
> Reliable:
> Programmable:
> Comprehensive: Batch Testing
> For Performance Testing Test Automation is the exclusively solution
---------------------------------
Disadvantages
> Not suitable for brusque term projects
> 100 % Test automation is non possible
> All types of testing are non possible (Ex: Usability Testing)
> Lack of knowledge
> Debugging issues
> Test tools direct maintain their ain defects, as well as thence nosotros may non conk desired benefits.
> Environment limitations
> Not suitable for Shot term projects, dynamically changing requirements, dynamically changing UI designs.
-------------------------------------------------
iii) Types of Test Tools
a) Business classification
1) Vendor Tools
UFT, LoadRunner, ALM/QC, RFT, RPT, SilkTest etc....
2) Open root Tools
Selenium, Jmeter, Jira, Bugzilla etc...
3) In-house Tools
-----------------------
b) Technical classification:
1) Functional as well as Regression exam tools
UFT, RFT, SilkTest, Selenium, etc....
2) Performance Test tools
LoadRunner, Jmeter, RPT, Silk Performer, etc...
3) Test administration Tools
ALM /QC, Jira etc....
4) Defect Management tools
Bugzilla, PR-Tracker etc...
-------------------------------------
iv) ATLM (Automation Test Life bicycle methodology)
a) Decision to Automation
Test type: Functional Testing
Time
Budget
Customer interests:
Maintenance:
b) Test Tool selection:
Test Type:
Application Environment:
Cost:
Available Resources:
Technical Support
-----------------------------
c) Test Planning as well as Test Development
Configure the Tool
Analyzing the AUT
Select Test cases of Automation
Tests that nosotros direct maintain to execute on every construct (Sanity Tests)
Tests that nosotros direct maintain to execute on every modified construct (Regression Tests)
Tests that nosotros direct maintain to execute using multiple sets of Test information (Data driven tests)
Select Automation framework as well as implement
Developing Tests using Recording or Type exam scripts manually
Enhancing Tests using Tool IDE as well as Programming features
d) Test Execution
Single Test Run
Batch Testing
Generating Test Reports
e) Analyzing Test Results as well as Reporting Defects
f) Maintenance of Automation Resources
-------------------------------------------
Session 2: Overview on Selenium
i) Introducing Selenium:
> It is a suite of software tools to automate spider web browsers
> It is a opened upwards root software
> Selenium supports diverse Operating environments (Windows, UNIX, Macintosh etc...)
> Selenium supports diverse browsers (Mozilla firefox, IE, Chrome, Opera, Safari etc...)
> Selenium supports diverse Programming as well as scripting languages to pattern as well as execute tests.
Java, C#, PHP, Perl, Python, Ruby
Use Java Programming language
Most of the Help documentation as well as implementations available for Java only.
------------------------------------------
ii) History of the Selenium Project
> Selenium commencement came to life inward 2004
> Selenium WebDriver launched at Google inward 2006
> In 2008 Selenium WebDriver merged amongst selenium RC, called every bit Selenium 2.0
----------------------------------------------
iii) Selenium License:
All selenium projects released nether the license of Apache 2.0
Anybody tin download as well as use
Anybody tin alteration the root code
Anybody tin distribute the code.
* Selling the modified code is non allowed.
-----------------------------------------------
iv) Selenium supporting platforms/Environments
a) Application Environment
1) It doesn't back upwards CUI based Application
2) It doesn't back upwards I-tier, II-Tier (Desktop Applications or Windows based Applications)
3) It supports Web Applications
4) Mobile Applications which are having spider web forms
b) Operating Environment
1) It supports Windows operating environs
2) It supports UNIX operating environs
3) It supports Mac operating environs
c) Web Browsers
1) IE
2) Mozilla Firefox
3) Chrome
4) Safari
5) Opera etc...
d) Programming / Scripting Languages
1) Java
2) C#
3) PHP
4) Python
5) Perl
6) Ruby
----------------------------------------------
v) Selenium Suite of Tools
a) Selenium IDE (Integrated Development Environment)
----------------
It is Firefox Add on
It is prototyping tool
Selenium Test default format is html
Features:
> Record as well as Playback Test cases
> Edit Test Cases
> Execute a Test case
> Execute a Test Suite
> Type Test Script using Elements locaters as well as selenium commands
> Debugging Test Cases
> Export Test cases to other programming as well as scripting languges
-------------------
Limitations:
------------
> It supports Firefox browser only
> Data driven Testing is non possible
> No Flow Control
> No detailed Result reports
---------------------------------------------
b) Selenium RC (Remote Control)----------------
It is Client/server Applications
Features:
> Import Test Cases from Selenium IDE
> Type Test script using UI chemical factor locators as well as methods
> It supports conditional as well as Loop statements
> It supports diverse browsers (IE, Firefox, Chrome, Safari, Operara etc...)
> It supports diverse programming as well as scripting languages to practice as well as execute Tests
> Built inward Result generator
> random Test execution is possible
Drawbacks:
-----------
> It takes to a greater extent than fourth dimension for Test execution
> It can't executes tests inward parallel
--------------------------------------
c) Selenium WebDriver
It is an interface
> Faster inward Test Execution
---------------------------------------
d) Selenium Grid
Selenium Grid 1.0 supports Selenium RC tests only
Selenium Grid 2.0 supports WebDriver tests
> It is used to grouping Tests
> It is used execute Tests inward parallel
Scenario 1 : 100 Tests using diverse browser
Machine 1: 100 Tests using IE
Machine 2: 100 Tests using Chrome
....
Scenario 2 : 300 Tests Using IE only
Machine 1: First 100 Tests
Machine 2: Second 100 Tests
.....
> Generating Test Reports using HTML/ XML format
--------------------------------
vi) Selenium Versus UFT (Formerly QTP)
Selenium
a) Open source, No license cost
b) Supports Web based Applications only
c) Using Elements locators
d) Supports Java, C#, PHP, Ruby, Python, Perl to practice as well as heighten tests.
e) Supports Windows, UNIX, Mac etc... Operating environments
f) Supports IE, Firfox, Chrome, Opera, Safari etc...
g) Limited back upwards for Image testing
h) Difficult to purpose
i) No reliable technical support
j) New features may non run properly
k) No Object Repository, No centralized maintenance of Objects
l) No authorized Certification
m) No Other tools integration
----------------------------
HP UFT (Unified Functional Testing)
a) Vendor, HP, Cost
b) Supports Desktop as well as Web Applications
c) Based on Add ins exclusively it supports
d) VBScript only
e) Only Windows Operating environment
f) IE, Firefox as well as Chrome
g) Rich back upwards for Image Testing
h) Easy to use
i) HP provides technical support
j) New features volition run properly
k) Centralized maintenance of Objects
l) HP Conducts Certification
m) ALM/QC cab last integrated for Test Management --------------------------------------------------------------------------
vii) Frameworks as well as other tools used inward Selenium
Other tools or Add ins
i) Firebug:
It is Firefox add together on used to inspect UI elements
ii) Firepath:
It is extension of Firebug, used to conk xpaths
----------------------------
Frameworks used inward Selenium
i) JUnit
ii) TestNG
-------------
h) Advantages of Selenium
i) Disadvantages of Selenium
j) Choose Selenium Tools
k) Configure Selenium Tools
----------------------------------------------------
Selenium Tutorial 2