Selenium Training Course


Introduction About Selenium:
Selenium is a mobile software testing framework for internet apps. Selenium provides a playback tool without learning a test scripting language for authoring evaluations. Selenium offers a test domain-specific language (DSL) to write evaluations in several popular programming languages, including Java, Ruby, Groovy, Python, PHP, and Perl. Evaluation playback is in modern browsers. Selenium sets up to Windows, Linux, and mac platforms.
There are differing approaches to utilizing Selenium in code-base and the Task question neighborhood. Evaluations may be created as tables in HTML or in a more concise format, a document with all the extension ".sel" where the elements of a command are separated by way of a '|' character. Evaluations may be running employing a Firefox extension called "Selenium IDE" or which can be run in the command line using the "Selenium-Remote Control" categories. Evaluations may be run from inside a Project WOnder program using the direct-action that is ERSelenium. Evaluations utilizing the Hudson/Jenkins continuous integration program or can be run using an ant task.
Project Question makes it an easy task to incorporate Selenium screening in to your own WebObjects program using the ERSelenium framework from Undertaking Question. The bonus of that is the fact that evaluation programs would not have to be set up on non-development the tests to to perform. Additionally the evaluations are a part of the job resources and therefore ERSelenium use for Selenium screening is the most successful for WebObjects improvement groups that are utilizing source code management tools like subversion. Eventually meta elements that let you expand your Selenium evaluations are provided by ERSelenium. The process of ERSelenium check script metatags is not dissimilar, to using server side includes in HTML-files in apache, for instance.
Applications that is selenium is classified in to four categerious
1. Selenium IDE,
2.Selenium WebDriver,
3. Selenium RC (Rc),
4.Selenium Grid


Selenium-IDE:
Selenium-IDE (Integrated Development Environment) is the software you use to build up your Selenium test cases. It is an Easy-To-use Firefox plugin and is usually the the most productive method to come up with test cases.
In addition, it has a context menu which allows you to choose a UI component from the now shown page and choose from an inventory of Selenium commands of the browser with pre-described according to the circumstance of the UI component that is chosen. That is not just a Timesaver, but in addition a great way of studying script syntax that is Selenium.

 
Introducing Selenium WebDriver:
The main new feature in Selenium 2.0 is the consolidation of the Selenium WebDriver API. Selenium WebDriver is made to give a simpler, more concise programming interface as well as addressing some restrictions in the Selenium-RC API.
Selenium-Webdriver where itself being re-loaded might change with no page WebDriver was created to better support dynamic webpages. The aim of WebDriver will be to provide a well-developed object oriented API that provides enhanced support for modern sophisticated webapp testing issues.

 
How Can WebDriver 'Drive' the Browser When Compared With Selenium RC?
Selenium WebDriver makes direct calls to the browser utilizing the indigenous support for automation of each browser. These immediate calls are created, as well as the attributes they support is determined by the browser you're using. 
For all those comfortable with Selenium RC, this can be rather distinctive from that which you might be employed to. Selenium RC operated exactly the same manner for each supported browser. It 'injected' java Script features to the browser when the browser then used its java Script to generate the AUT inside the browser and was loaded. WebDriver will not make use of this technique. It drives the browser straight utilizing the browser's built in help for automation.
 
WebDriver Selenium-Host:
You need the Selenium Server, or might not, might, based on the way you plan to make use of Selenium WebDriver. In the event you are going to be just using the WebDriver API you may not want the Selenium-Host. If evaluations and your browser will all run to a single machine, as well as the WebDriver API is just used by your evaluations, therefore you may not have to run the Selenium-Host; WebDriver will operate the browser straight.
 
There are a few grounds though to make use of the Selenium-Host with Selenium-WebDriver.
  • You might be utilizing Selenium-Grid to distribute your tests over several devices or virtual machines (VMs).
  • You need to connect to your remote machine with a specific browser version which is not on your machine that is present.
  • You're not utilizing the Java bindings (i.e. Python, C#, or Ruby) and would like to use HtmlUnit Driver.


Selenium 1 (Selenium RC):
Selenium RC was the primary Selenium job to get quite a while, before the WebDriver/Selenium unite as you may read in Brief Background of The Selenium Job brought up Selenium 2, the latest and more powerful instrument.
 
Selenium RC is nevertheless earnestly supported (mainly in maintenance mode) and provides some characteristics which could not be accessible in Selenium 2 for some time, including support for many languages (Java, Java Script, Ruby, PHP, Python, Perl and C#) and help for virtually every browser out there.

How Selenium RC Functions?
First, we are going to describe in what way the parts of Selenium RC function as well as the part each performs in operating your test scripts.
 
Selenium RC parts are:
The Selenium Server which starts and kills browsers, interprets and runs the Selenese commands passed in the evaluation application, and functions as an HTTP proxy, checking and intercepting HTTP messages passed between the browser as well as the AUT.
Client libraries which provide the interface between the Selenium RC Server and each programming language.
 

What is Selenium-Grid?
Selenium-Grid lets your tests run on distinct machines against different browsers in parallel. That's, OS and running evaluations in once against different devices running different browsers. Basically, Selenium Grid support distributed evaluation execution. It enables for running your evaluations in a test execution environment that is distributed.
 
When to Put It To Use?
Generally, there is two reasons why you may want to make use of Selenium-Grid.
  • To to perform your tests against multiple browsers, multiple variants of browser, and browsers working on different systems.
  • To decrease time it requires for the test suite to perform a test move.
Detailed information on selenium trainings, Check here.