Thursday, February 25, 2016

Let's Start The Test automation with SELENIUM

START TEST AUTOMATION WITH


SELENIUM


Selenium is an open-source tool that is used for test automation which is suite of tools that helps in automating only web applications. As beginners I think that this blog will give in-depth understanding of Selenium and its related tools and their usage. At this age I am also a bigger to selenium so this is try to shape my knowledge too so some issues may be there please if you found some mistakes Sorry for me  and be kind enough to correct it from comment.


If you are interested in browser automation or web application testing you may have already heard of Selenium. Since there is a lot of terminology related to this framework, it is easy for you to get lost, especially if you come to Selenium for the first time. In this article I want to save your day by providing a short and clear explanation of what is what in the Selenium project.

WHAT IS THAT SELENIUM ... ??


  • Selenium is an open-source
  • Portable automated software testing tool.
  • It is used to testing web applications.
  • It has capabilities to operate across different browsers and operating systems.
  • Selenium is not just a single tool but a set of tools that helps testers to automate web-based applications more efficiently.
  • That allows you to write tests in many programming languages like  Java, C#, Groovy, Perl, PHP, Python and Ruby. Selenium deploys on Windows, Linux, and MAC OS.
  • Released under the Apache 2.0 license, so you can download and use it without charge.

Let us now understand each one of the terminology

Selenium is composed of multiple software tools. Each has a specific terminology.


Terminology



  • Selenium Core (aka Core) is a set of JavaScript scripts that control the browser, imitating user activity. These scripts are injected into the web page and executed according to a list of actions written in a special HTML-table-based command language (aka  Selense), thus simulating user activity.

  • Selenium RC (aka Selenium Remote Control or Selenium 1) receives Selenium Core commands via HTTP and executes them on a remote machine, proxying the web browser in order to avoid the “same host origin” restriction. This also allows writing the tests in other languages like C#, Python, Perl, PHP, Java and Ruby (via language bindings for Selenium Core).

  • Selenium-WebDriver (aka WebDriver or Selenium 2) is a successor of Selenium RC. It does the same job, but in a different way: instead of injecting a JavaScript code into the browser to simulate user actions, it uses the browser’s native support for automation (different for each browser). Also, instead of a dictionary-based API (used in Selenium RC), it offers the more convenient object-oriented API.

  • Selenium Server allows using Selenium-WebDriver on a remote machine.

  • Selenium IDE is a Firefox add-on that records user activity and creates a test case based on it. It can also play the tests back and save them as a program in different languages.

  • Selenium-Grid allows you run the tests on different machines against different browsers in parallel; in other words it enables distributed test execution.

  • Selenese is a special “language” represented by a set of Selenium commands that run your tests. A sequence of these commands is called a test script.

Where to start?



It’s good to start with Selenium IDE. It will help you to become more familiar with Selenium commands, and you can see how Selenium works by running the test scripts right from this tool. Note, however, that when you run your test scripts from Selenium IDE, they are executed in a different way than when you run them through other Selenium tools. If you need to test your application, you’d better use Selenium WebDriver or Selenium RC. I put Selenium WebDriver first, because it is the successor of Selenium RC which  has been officially deprecated.

You can download everything at http://docs.seleniumhq.org/download


A bit of history



2004 –  Jason Huggins creates a JavaScript based tool for automatic testing called Selenium (now it is known as Selenium Core). Later Selenium Remote Control (aka Selenium RC) was developed to address the “same host origin” browser policy and allow many language bindings to control the browser at a distance


2006 –  Simon Stewart started working on another web testing tool called WebDriver


2009 –  Selenium RC and WebDriver are merged into a one project called Selenium-WebDriver (aka Selenium 2.0)


2013 –  The first working draft of WebDriver API W3C Specification is released









No comments:

Post a Comment

MS VISUAL STUDIO CODEDUI TEST FRAMEWORK AND TEST EXECUTION

MS VISUAL STUDIO CODEDUI TEST FRAMEWORK AND TEST EXECUTION  1.0 Pre-Requisites for the execution 1.1 Software Requirements ...