Android apps to use in appium android test examples


Thursday, June 7, 2018

Introduction to Selenium Videos in addition to Class Notes

Selenium 1: Introduction to Selenium

i) What is Selenium?
ii) History of the Selenium Project
iii) Selenium Components / Selenium's Tools suite
Selenium IDE
Selenium RC
Selenium WebDriver
Selenium Grid
iv) Platforms supported past times Selenium
v) Selenium License
vi) Advantages of Selenium
vii) Disadvantages of Selenium
viii) Testing Frameworks too other tools used inwards Selenium
ix) Selenium vs. UFT/QTP
x) Selenium Environment Setup
i) What is Selenium?

> Selenium is mainly used for Functional & Regression Testing.

(We guide maintain unlike types of Test Automation or Automated Testing, ex: Functional Test Automation, Performance Test Automation, too Test Management etc..., Our Selenium is used for Functional Test Automation too Other Test Tools inwards this category are UFT / QTP, RFT, SilkTest, Test Complete, Test Partner etc...)

> Selenium is an Open Source Software to automate Web Browsers.

(Open Source means, Source code available on Internet too anybody tin give the sack download & role amongst costless of cost. Selenium tin give the sack automate Web based Applications only, it doesn't automate Desktop or Windows based Applications, where equally UFT (other tool inwards this category) tin give the sack automate desktop too Web Applications.)

> Selenium supports diverse Operating Environments.

(Suppose our AUT (Application Under Test installed on Windows too hence nosotros role Selenium for Functional Test Automation, Our Software Application installed on Linux operating environs too hence nosotros tin give the sack role Selenium, Our Software Application deployed on Macintosh too hence nosotros tin give the sack role Selenium for Automation. UFT formerly QTP supports Windows operating environs only.)

MS Windows,
Macintosh etc...

> Selenium supports diverse Browsers to exercise too execute Tests/Test Cases/Test Scripts

We tin give the sack role diverse browsers to launch our Web Application, too Selenium supports diverse browsers for Test Automation, Test Steps inwards Test Cases are mutual for all browsers, too browser driver exclusively diverse from 1 browser to another.)

Mozilla Firefox
Google Chrome
Internet Explorer /MS Edge
Safari etc...

> Selenium supports diverse programming languages to write programs (Test Scripts)

(Selenium supports diverse Programming environs to write Test scripts (programs) but yous tin give the sack role whatsoever 1 of those programming languages, too close of the Selenium Testers using Java for selenium. UFT/QTP supports exclusively VBScript for writing Tests/Test Scripts)


Note: Selenium IDE doesn't back upward whatsoever programming to write Test cases.
 Testing Frameworks too other tools used inwards Selenium Introduction to Selenium Videos too Class Notes
ii) History of the Selenium Project

> Selenium was launched inwards 2004,
> In 2006, Selenium WebDriver was launched at Google,
> In 2008, the whole Selenium Team decided to merge Selenium WebDriver amongst Selenium RC inwards companionship to cast a powerful tool called selenium 2.0

Selenium 1.0
(Selenium IDE + Selenium RC + Selenium Grid)

Selenium 1.0 + Selenium WebDriver = Selenium 2.0

Selenium 2.0
(Selenium IDE + Selenium RC + Selenium WebDriver + Selenium Grid)

* Selenium 3.0 (2016)

(Less characteristic enhancements and More novel production environments inwards Selenium 3.0, inwards Selenium 2.0 default browser is Mozilla Firefox, but no default browser inwards Selenium 3.0. Selenium IDE doesn't back upward Mozilla Firefox browser only, too Selenium WebDriver supports diverse browsers to exercise too execute exam cases.)
iii) Selenium Components / Selenium's Tools Suite (
(Selenium RC was removed from Selenium 3.0 (latest version of Selenium)
  Selenium IDE
Selenium WebDriver
Selenium Grid

a) Selenium IDE (Integrated Development Environment)

Selenium IDE Features:
> It is a Firefox browser plug-in too Prototype type tool.
> It is used to exercise too execute exam cases using Mozilla Firefox browser
(* Record Test Steps / Type Test Steps using Element locators too Selenese commands/Selenium IDE Commands)
> User tin give the sack edit Test Steps inwards Test Case(Add/Update/Delete)
> Using Selenium IDE nosotros tin give the sack exercise Test Cases too cast Test Bathes /suites/set...
> We tin give the sack export Selenium IDE Test Cases to other supported formats (Java/Ruby...)
Note: Selenium IDE Test Case default format / Native format is .html
> User tin give the sack debug Test Cases, too insert comments inwards Test Cases.

selenium IDE Disadvantages:
> It supports Mozilla Firefox browser exclusively to execute / run Test Cases
> It doesn't back upward Programming to heighten Test Cases, hence it non suitable for complex Test representative design.
> It doesn't back upward Parameterization/Data driven Testing
> No centralized maintenance of Elements / Objects
> It doesn't generate detailed Test Reports but generates Test summary only.
b) Selenium WebDriver 

> Selenium WebDriver having Programming Interface exclusively but no IDE,
> Selenium WebDriver is a powerful tool inwards the Selenium suite

Selenium IDE- It has IDE exclusively but no programming Interface
Selenium WebDriver- It has Programming Interface only, but no IDE
UFT/QTP - It has both IDE equally good equally Programming Interface
> Selenium WebDriver is used to exercise too execute / run Test cases,
> We / Testers/Users role Element Locators too WebDriver API Commands / Methods to exercise Test Cases,

> Selenium WebDriver supports diverse Browsers, Operating environments, too programming languages to exercise Test Scripts / Test Cases /Programs

Google Chrome, Mozilla Firefox, MS IE / Edge, safari, Opera etc...
MS Windows, Linux, Macintosh etc...
Java, Python, C#, Perl, PHP, too Ruby
Create Test Cases:

Types of Test Steps inwards Selenium WebDriver:

Object Calls / Test Object Statements

Object Property value
Button text OK
Browser   name Google

Selenium WebDriver:
Element Calls / Element Steps:

2nd *WebDriver Doesn't support

Element Locator Value
Edit box id username
Click "Gmail" Link inwards the Google Home Page,



In Selenium WebDriver:

Element Calls / Element Statements / Object Calls / Test Object Statements
Click "Gmail" Link inwards the Google Home Page,
1) Identify "Gmail" Link inwards Google Home Page, - Using Element Locators
2) Click on "Gmail" Link, - WebDriver Commands / Methods
1) Element Calls / Element Statements
2) Declarations (Variables, Constants etc...)
3) Verification Points....
4) Parameterization Steps
5) Synchronization steps
6) File treatment steps
7) Error treatment steps....
Drawbacks of Selenium WebDriver:
> Selenium WebDriver has no IDE, hence takes to a greater extent than fourth dimension too efforts to exercise Test Cases,
> No built Result Report facility 
> No other tool Integration for Test Management
> Difficult to configure selenium WebDriver when it compares to other tools
c) Selenium Grid

Selenium Grid is non for Test Case Design, exclusively for Test Execution,

* Selenium Grid doesn't back upward Selenium IDE Test Case execution,
Selenium Grid (in Selenium 1.0) supports Selenium RC Test Cases execution only,
Selenium Grid (in Selenium 2.0) supports Selenium RC, too Selenium WebDriver Test Cases execution,
Selenium Grid (in Selenium 3.0) supports Selenium WebDriver Test Cases execution only,

Selenium Grid supports Parallel Testing (It tin give the sack execute exam cases against unlike browsers too machines/computers
in Parallel,

100 Test Cases - four hours
iv) Platforms Supported past times Selenium

1) Browsers:

Google Chrome,
Mozilla Firefox,
Internet Explorer / MS Edge
Safari Etc...

2) Operating Systems

MS Windows
Macintosh Etc...

3) Programming Languages


4) Application Environment

Computer Software too Mobile Software,

Computer Software

i) CUI based Applications - Doesn't support
ii) Desktop Applications - Doesn't support
iii) Web Applications - Yes

Mobile Software

i) Native Applications - No
ii) Web Applications / Web Apps - Yes
iii) Hybrid Applications -No
Note 1: Using latest plug inwards nosotros tin give the sack run amongst native too Hybrid Applications also.
Note 2: Selenium IDE doesn't back upward diverse Browsers, too programming.
v) Selenium License

> Selenium is an Open Source Software, anybody tin give the sack download too role amongst costless of cost,
> Selenium Projects were released nether Apache 2.0 License,

i) Anybody tin give the sack download too role Selenium projects amongst costless of cost
ii)  Anybody tin give the sack alteration the root code too use, too distribute the code.
* Selling modified code is non allowed.
vii) Advantages of Selenium

1) It is an Open Source Software
2) It supports diverse Operating Environments,
3) It supports diverse Programming platforms,
4) It supports diverse Browser Environments,
5) It supports Parallel Testing
6) It uses less Hardware resources for Test Automation
---------------------------- ----------------------------
viii) Disadvantages of Selenium

1) It supports Web Applications only...
2) No Reliable Technical Support from anybody,
3) New Features may non run properly,
4) Less Support for Image based Testing,
5) No Other Tool integration for Test management
6) No built inwards Result Reporting facility
vi) Testing Frameworks too Other Tools used inwards Selenium

Test Frameworks,
Selection of Testing Framework depends too Programming platform,
Java - JUnit or TestNG 
C#.NET - NUnit
* Priti - What are the supported Testing Frameworks for Python, Ruby, PHP, too Perl.
* What are the Usees of Maven, ANT tools inwards Selenium (Test Automation using Selenium)
* What is the Use of Jenkins inwards Selenium,


No comments:

Post a Comment