There are many testing tools in market like QTP, SilkUI, and Selenium and so on. However, individuals lean toward Selenium because Selenium is an open source (i.e. you can download this tool free of cost) automation testing tool. We have QTP likewise for automation testing yet you have to pay to HP folks on the off chance that you need to utilize QTP.
You can work on multiple operating systems using Selenium. Selenium is the only tool which can work on MAC, Windows, Linux, and Solaris.
It is used only for web-based applications. QTP can work on windows but Selenium can be used only for web-based applications or websites.
By using Selenium, you can work on multiple OS. Selenium is developed to work at MAC, Windows, Linux, and Solaris.
Platforms supported By Selenium:
- Windows
- OS X (Mac OS)
- Linux
- Solarsis
Presently, it supports mobiles too. There is another tool called Appeium which is an expansion to Selenium. Appeium offers help to IOS and also Android.
Languages used with Selenium:
You can write Selenium code in any language mentioned below:
- Java
- C#
- Ruby
- Python
- PHP
- Perl
NOTE: In the event that your application is based on one language, you may use any other language to automate it. Like if your application is created in C# and to automate its testing you may use Java.
SO THE LANGUAGE WHAT YOU WRITE YOUR AUTOMATION CODE IS INDEPENDENT OF THE LANGUAGE WHAT YOUR APPLICATION IS BUILT ON.
Browsers supported by Selenium:
- Internet Explorer
- Firefox
- Chrome
- Safari and many more
Selenium is the only tool which supports cross browsers testing.
Due to such a large number of features (like various language support, numerous browser, different OS support) given by Selenium, it is so well known in the market.
Selenium History:
Selenium came into existence in 2004 when Jason Huggins was testing an internal application at ThoughtWorks.
Available versions of Selenium:
- Selenium 1.0 – formally we call it RC (Remote control server).
It is officially depreciated by Selenium team.
The purpose behind Depreciation is:
Selenium 1.0 Architecture:
- Selenium 2.0 –Web Driver
- Recently Selenium 3.0 version also came (for it minimum java version required is 1.8)
Selenium 2.0 Architecture– Web Driver:
So we are conquering the first disadvantage of Selenium 1.0.
How the second disadvantage is survived:
Editor instead of using java to trigger the events, utilizes Browsers own/native language to trigger the events (or to converse with the application). Suppose our Firefox browser is built in Java so to converse with a site which is running on Firefox, editor use java. Our IE is based upon C# so editor uses C# to converse with the application in C#. The site which is running on IE can’t stop C# to trigger an event so hence the second issue is settled.
Working of Selenium WebDriver:
Selenium WebDriver working can be clarified in 2 different ways:
- Nontechnical- using the analogy
- Technical
Nontechnical- using the analogy: To explain working, the analogy used is taxi driving.
The manner in which a cab driver drives a taxi, same way Selenium WebDriver drives a browser.
In taxi driving, there are 3 sections:
- The customer, who chooses where to go and how to arrive, he advises this to the cabbie.
- The cab driver, the cab driver, who goes about according to the customer’s solicitations and sends his very own solicitations to the vehicle.
- The vehicle, it goes about according to cabbie’s solicitations.
So also, in Selenium WebDriver test automation (and other tools), there are 3 sections:
- Test engineer, who writes the automation code, which sends requests to the browser driver component.
- The browser driver component, who executes the test requests, sent by the engineer, it sends its own request to the browser.
- The browser, who executes the browser driver requests.
So this is the analogy:
- Test engineer <-> The customer
- The browser <->Cab driver
- The browser <->Vehicle(Car)
Technical explanation :
Beneath steps happen when the automation script is executed:
- For each Selenium command, an HTTP request is created and sent to the browser driver
- Using the HTTP server, the browser driver get the HTTP requests
- The HTTP server implements the Selenium command and executes them on the browser
- The execution status is sent back to the HTTP server which in turn sends the status back to the automation script.
Selenium Job Roles
The mainstream programming testing work titles after doing Selenium WebDriver training are:
- Quality Engineer
- Automation Test Lead
- QA Engineer
- Selenium Automation Analyst
- Senior Test Engineer
Visit the link for Best Selenium Training in Gurgaon.
Who should choose Software testing as a career?
- One who is good in comprehending intelligent riddles: Software will go to the market if a tester says there are no bugs in the product and it is prepared to release. Tester discovers bugs and likewise breaks the framework as far as stress testing.
- One who love helping other people: A tester help in releasing a quality product to the market. To release a decent product, engineers give a valiant effort. Yet at the same time risks are there will be a few errors. Being a tester you have to discover those mix-ups.
- One who loves to take challenges: A tester needs to investigate the framework for comprehension and discovering bugs. At that point, he reports the bugs, which are settled by the engineer. Thus, at last, a quality product is conveyed to the market.
- One who loves coding: An Automation Tester writes code to discover the bugs in the framework. And in this way, a quality product will be conveyed.
- One who loves to communicate with people: A tester needs to associate with engineers and client to get more information on domain knowledge.
- One who loves to be in a team where quality products will be delivered: Being a tester one help in conveying a quality product which makes everyone cheerful.