Selenium Tutorial For Beginners

Selenium Tutorial For Beginners

Introduction to Selenium

1) Selenium is a Suite of Tools for Functional as well as Regression Testing.

> Selenium is non a unmarried tool, suite of tools, but you lot no involve to role all tools for whatsoever project, you lot tin choose 1 or ii tools, enough...

> Selenium Components or Selenium's Tool Suite:
i) Selenium IDE
ii) Selenium RC
iii) Selenium WebDriver
iv) Selenium Grid

> Other Test Tools inwards this category (Functional & Regression Testing) are,
i) HP-UFT (Formerly QTP)
ii) RBM-RFT
iii) Micro Focus-SilkTest Etc...
 Selenium is a Suite of Tools for Functional as well as Regression Testing Selenium Tutorial For Beginners
2) Selenium is an Open Source Software, as well as it Automates Web Browsers...

> Selenium is an Open source Software, anybody tin download from Selenium official website www.seleniumhq.ord as well as role amongst costless of cost.

For Example UFT/QTP, RFT are commercial tools

> Selenium tin automate Web Applications/Browser based Applications only, it doesn’t automate Desktop Applications, UFT/QTP automates both Desktop Applications as well as Web Applications, 

Note: No Problem nowadays, nearly of the Software Applications are Web Applications only.

3) Selenium Supports Various Operating Environments to behave Automated Testing…

> It supports,
i) MS Windows,
ii) Linux,
iii) Macintosh etc...

> Whereas UFT Supports MS Windows Operating Environment Only

> What is Operating Environment Support, for instance our AUT (Application Under Test) Installed on Windows, nosotros tin role Selenium for Automated Testing, or our AUT installed on Linux, nosotros tin role Selenium for Automated testing. or our AUT installed on Macintosh, nosotros tin role Selenium for Automated Testing...

4) Selenium supports diverse Browsers to Create as well as Execute Test Cases…

> Selenium supports all pop browsers like,
i) Mozilla Firefox
ii) Google Chrome
iii) Internet Explorer /MS Edge
iv) Opera
v) Safari etc...

> Means nosotros tin practise Tests inwards 1 browser as well as execute the Tests inwards the same browser or using other Browsers

> Suppose practise Test cases using Firefox Browser, execute the Tests using Firefox, or Chrome, or IE etc...Browsers

5) Selenium supports diverse Programming Platforms to Write & Execute Test Case…

> Selenium supports,
i) Java,
ii) Python
iii) C#.Net
iv) Perl
v) Ruby
vi) PHP

> You tin role whatsoever 1 of those programming languages to write Test Scripts/Test Cases

> UFT/QTP supports VBScript only

Note: Selenium IDE inwards Selenium's Tool Suite doesn't back upward whatsoever programming to write Test cases.

6) Drawbacks of Selenium…

> Before going to explicate Drawbacks of Selenium, you lot tin easily empathize the Advantages of Selenium, I already explained or as well as then points,

i) Selenium is Open Source Software, anybody tin role this Software amongst costless of cost 

ii) Selenium Supports diverse operating environments, Browsers, as well as programming platforms for Automated Testing,

next come upward to Drawbacks of Selenium,

i) No reliable Technical Support from anybody.
(Since It is Open Source software nobody providing reliable technical support, if it is UFT/QTP Vendor (HP) provides Technical Support)

ii) It supports Web based applications only.

iii) No Built-in Reporting facility. 
(Selenium WebDriver doesn't get got built inwards Result Report facility, nosotros involve to get got aid from either JUnit ot TestNG Testing Framework to generate Test Reports.)

Note: UFT/QTP has built-in Result Reporting facility (Test Result Viewer), UFT provides Test Result for every Test iteration.)

7) Selenium Environment Setup…

Select Selenium Tools as well as Others for Test Automation,

For Example:

i) Eclipse IDE Software - To Create as well as Run Java programs
ii) Selenium WebDriver for creating Test Scripts/Test Cases
iii) Java Standard edition / Core Java
iv) TestNG Testing Framework
Etc...

Configure / Setup Selenium Environment
Steps:
------
i) Download as well as Extract Eclipse IDE Software (based on our OS Environment, 
   ex: Windows x - 32 flake OS)

ii) Download (JDK) software (either from Java.com or oracle.com) as well as Install inwards our computer

iii) Set Environment Variable (Path Variable)
(In Oder to access Java software from whatsoever directory)

iv) Download Selenium WebDriver Java linguistic communication binding from seleniumhq.org, as well as Add to Java Project inwards Eclipse IDE.

v) Download TestNG Testing Framework Software as well as Install from Eclipse IDE.

> Download Browser drivers as well as instantiate browser driver inwards our Test cases for Test execution
(You tin role diverse browser drivers to behave Cross Browser Testing)

8) Test Design inwards Selenium...

> You know nosotros get got 4 tools inwards our Selenium's tool suite,

> First get got Selenium IDE, In Selenium IDE nosotros practise Test Cases using Element Locators as well as selenese Commands to write Test Cases, It supports Recording to Create Test Cases otherwise you lot tin type Test Steps if know the Syntax...

> Second one, Selenium RC, It is Out dated, you lot no involve to learn, as well as It was removed from latest versions of Selenium

> Third one, Selenium WebDriver, It is a ability tool inwards Selenium's tool suite, exhibit nearly of the companies using this tool for Automated Testing, as well as then focus
   more this tool,

Selenium WebDriver doesn't get got IDE, as well as then No Recording facility, nosotros involve to write code for every step,

> Using Element Locators as well as WebDriver Commands nosotros tin write Test cases,

> Using Programming features (either Java or Python etc...), Testing Framework 
(either JUnit or TestNG) nosotros tin get upward our Test cases...

> Last 1 Selenium Grid, Selenium Grid doesn't back upward Test Design, it is exclusively for Test execution, using Selenium Grid nosotros tin behave Parallel Testing.

Conclusion, Eliminate Selenium RC for Test Design, selenium Grid doesn’t' support, Next selenium IDE as well as Selenium WebDriver are exclusively available for Test Design,

Selenium IDE is Proto type tool, no programming back upward etc..., as well as then focus on, Selenium WebDriver...
--------------------------------------
Watch:
Selenium Step past times Step Videos...

Sumber http://www.gcreddy.com/
Post a Comment (0)
Previous Post Next Post