MainMenu

Home Java Overview Maven Tutorials

Selenium Overview for beginner

An Introduction to automation : 
"When pre-written Test script/Test Suite is executed by any automation tool then it is known as automation testing."

Why we need automation?
When frequent testing is required  also for a long application to minimize testing effort.

Popular Tools in Market :
There are number of tools in the market but few popular are described below :
Selenium :  Open source tool , need basics of core java programming skill
QTP : licence tool, need VB script knowledge & easy to use.
SOAPUI : Open source, need Groovy knowledge.
Watir : It is an open source tool & need ruby knowledge.
   

As we know that manual testing is that when a human execute test cases/steps  with in application and execute entire suite manually but if the application is lengthy and regression is required frequently then it is good to have an automation tool.


So when a testing is done with an automation tool which follow the instruction of a script then it will become an automation testing.


"Automated software testing is a process in which automation testing tool execute scripted tests on a software."


It minimize the testing efforts & needs technical knowledge.


Below is the list of few popular automation tools :


Selenium : Open source & work on various platform and browser


HP QTP : QTP is a best functional testing tool supported on wide range of coding languages but it is a licence tool/paid tool.


Watir : Watir is a set of Ruby libraries for automating web browsers


SOUP UI: SoapUI is a cross-platform functional testing tool. It has been specifically designed to help automatically test APIs such as SOAP and REST interfaces to ensure the interoperability of different applications.


Advantage & Disadvantage of Automation testing


Advantage :


  • Test automation make testing process to more efficient.
  • Once written script can be easily updated & reusable.
  • Test automation, increase speed, efficiency and quality.
  • Test automation is Quick return on investment because it is cost-effective for software products with a long maintenance life.
  • Test automation include different kind of testing to increase test coverage.
  • Bug can be replicated easily.

Disadvantage :

  • It is a major issue to debug test script
  • Require high skill level of team member
  • In case of Playback mood test maintenance cost is high
  • GUI testing is not possible
  • Manual testing can be done in any language which is not possible in automation.
  • Ad-hoc testing, monkey testing can't be done in automation.
  • Hard to design complex scenario as compared to manual.
Hello Friends, this section will cover the brief intro of selenium Testing tool and procedure to configure it.

As we know that manual testing is that when a human execute test cases/steps with in application and execute entire suite manually but if the application is lengthy and regression is required frequently then it is good to have an automation tool.

So when a testing is done with an automation tool which follow the instruction of a script then it will become an automation testing.

"Automated software testing is a process in which automation testing tool execute scripted tests on a software."

It minimize the testing efforts & needs technical knowledge.

Below is the list of few popular automation tools :

Selenium : Open source & work on various platform and browser

HP QTP : QTP is a best functional testing tool supported on wide range of coding languages but it is a licence tool/paid tool.

Watir : Watir is a set of Ruby libraries for automating web browsers

SOUP UI: SoapUI is a cross-platform functional testing tool. It has been specifically designed to help automatically test APIs such as SOAP and REST interfaces to ensure the interoperability of different applications.

Advantage & Disadvantage of Automation testing

Advantage :

  • Test automation make testing process to more efficient.
  • Once written script can be easily updated & reusable.
  • Test automation, increase speed, efficiency and quality.
  • Test automation is Quick return on investment because it is cost-effective for software products with a long maintenance life.
  • Test automation include different kind of testing to increase test coverage.
  • Bug can be replicated easily.

Disadvantage :

  • It is a major issue to debug test script
  • Require high skill level of team member
  • In case of Playback mood test maintenance cost is high
  • GUI testing is not possible
  • Manual testing can be done in any language which is not possible in automation.
  • Ad-hoc testing, monkey testing can't be done in automation.
  • Hard to design complex scenario as compared to manual.
What is Selenium?
Selenium is an Automation Testing Tool which is used to Automate, browsers or browser bases application also it is an open source application tool means free of cost.


Who developed selenium?

Primarily, Selenium was created by Jason Huggins in 2004. An engineer at ThoughtWorks, he was working on a web application that required frequent testing. Having realized that the repetitious manual testing of their application was becoming more and more inefficient, he created a JavaScript program that would automatically control the browser's actions. He named this program as the "JavaScriptTestRunner." Seeing potential in this idea to help automate other web applications , he made JavaScriptRunner open-source which was later re-named as Selenium Core.



Components of Selenium
1)• Selenium Integrated Development Environment (IDE)
2)• Selenium Remote Control (RC)
3)• WebDriver
4)• Selenium Grid
Selenium IDE : Selenium Integrated development Environment(IDE) is a firefox plugin that allows us to record as we ifollow the workflow of application in a browser.
Selenium RC : Selenium Remote control (RC) was the flagship testing framework that allows more than simple browser actions and linear execution. It makes use of full power programming languages such as java, C#, PHP, Phython, Ruby and PERL to create more complex tests.
Selenium Webdriver : Selenium Webdriver is the successor to selenium RC which sends commands directly to the browser and retrieves results.
Selenium Grid : It is a tool used to run parallel tests across different machines and different browsers simultaneously which results in minimized execution time.


Difference between QTP and selenium


In some cases selenium is more effecient as compare to qtp but in few cases QTP is more powerful than Selenium.
The major advantage of selenium is that it is open source(free of cost) can work in Different OS.
Few major differences are below :

Advanage of selenium over QTP
1. Selenium is an open source tool.
QTP is commercial tool and cost involved in each one the license.
2. Selenium has capability to execute the scripts across different browsers.
QTP can run tests in specific versions of Firefox, IE and Chrome.
3.Selenium Can execute script on varios operating Systems.
Works only with windows.
4.Selenium Supports the mobile devices.
QTP support mobile devices with the help of third party tool.
5.Selenium can execute tests within the browser so focuss is NOT reuired while script execution in progress.
QTP need focus during script execution as the tool acts on the browser (mimics user actions).
6. Selenium can execut tests in parallel with use of selenium grids.
QTP can not execute tests in parallel but integrating QTP with QC allow testers to execute in parallel. QC is also a commercial tool.


Advanage of QTP over Selenium 1.Selenium Supports only web based application.
QTP can test both web and desktop application.
2.Selenium don't have feature like object repository/Recovery Scenario.
QTP has object repository and recovery scenarios build-in.
3.Selenium Have NO IDE so the script development won't be as fast as QTP
QTP have more intuitive IDE, Automation can be achieved faster.
4.Selenium can not access controls with in the browsers.
QTP can access controls within the browser such as favorites bar, backword and forward buttons.
5.Seleniium have no default test report generation.
QTP have default test result generation with the tools.
6.In selenium for parameterization users has to rely on the programming language.
although in Parameteriation is builtin and easy to implement.






No comments:

Post a Comment