Tuesday 21 February 2017

Automation Testing : Why we go for Automation ?




What is "Automated Testing" ?

Testing an application with third party software help or Automation Tool is called Automation testing.
or
Converting manual test cases into Automation Scripts (in form of code) is called Automation Testing.
  • Automation Testing is automating the manual testing process currently in use.
  • This require that a formalized "Manual Testing process" currently exists in your company
Minimally, such a process includes :
  1. Detailed test cases, including predictable "expected results".(test cases must be documented)
  2. A standalone Test Environment, including a Test Database, such that the test cases are able to be repeated each time there are modifications made to the applications.
If your current testing process does not include the above points, you are never going to be able to make any effective use of an Automated test tool.
  • The real use and purpose of automated test tools is to automate regression testing.
  • This means that you must have or must develop a database of detailed test cases that are ensure that the change does not produce unintended consequences(errors)
  • An "automated test scripts" is a program.
  • Automated Script development, to be effective must be subject to the same rules and standards that are applied to software development.
  • An "automated test suite" is a database of all detailed Automation test cases.
Why we go for Automation ?

Testing an application with human interaction is called Manual Testing. Manual testing is always a priority but there are some problems in manual testing.
  • No Reusability
  • More Resources required
  • Time consuming
  • Budget is high
  • Human errors causes poor quality
Benefits of Automation Testing :
  • Fast : Automation tool runs tests significantly faster than human users.
  • Reliable : Automation tool can perform the same operations each time, if you repeated multiple times, so that we can eliminate human errors.
  • Repeatable : We can check how application and website react after repeated the same operation with multiple times.
  • Reusable : Automation scripts reusable on different version of the application of websites even if the user interfaces changes.
  • Comprehensive : In Automation testing we can build a suit of tests that covers every feature in the application or website.
  • Programmable : We can program sophisticated Test that brings out hidden information from the application.

Monday 13 February 2017

Major Difference Between Selenium and QTP

When we talk about automation testing, so we have to more like company have to decide which automation tool will gonna use. Company decide tool based on the cost of project, which tool suites client fulfillment etc.

Selenium and QTP are widely used testing tools used in current market. But because Selenium is free testing tool, it is used mostly.


So, Here are the major difference between Selenium and QTP :-




Properties
Selenium
QTP
Cost
It is an Open source tool.
It is a Paid tool.
OS Compatibility
Selenium works on all Operating Systems (Windows, OS X, Linux, Solaris, and Mac).
It works only on Windows.
Application Type
Tests only Web applications
Tests web and desktop applications
Browser Compatibility
Works on almost all browsers (IE, Firefox, Chrome, Safari, Opera).
Works on IE
Language
Code can be made in any one of languages such as Java, C#, Ruby, Python, pearl, php etc.
Code only made in VB Script.
Element Locator
Objects will identify by using HTML ID, name, Xpath, CSS, DOM and Link text.
Objects will identify by using Object properties, Repository objects.
Object Repository
Selenium does not have such built in object repository , but object can be managed by using UI element user extension like Firebug & firepath.
HP UFT comes with built in object repository. Object repository development and maintenance is quite easy in HP ALM.
Recording
IDE sometimes does not record some events.
Recording is a little reliable.
Storage
Set of Libraries, around 20MB (Need to include other supporting software).
Around 1.5GB
Maintenance and support
Saucelabs.com, Elements34, Commercial Supports.(no official support)
From HP

Friday 10 February 2017

What is Selenium ?

 

History of Selenium :

  •  In 2004 invented by Jason Huggins and team.
  • Original name is JavaScript Functional Tester (JSFT).
  • Open source browser based integration framework (Selenium RC) built originally by Thought Works.
  • Google, who has been a long time user of Selenium, had a developer named Simon Stewart who developed WebDriver. This tool circumvented Selenium's JavaScript sandbox to allow it to communicate with the Browser and Operating System directly using native methods.
  • In 2008, Selenium and WebDriver merged technologies and intellectual intelligence to provide the best possible test automation framework.

 

What is Selenium ? :


"Selenium is one API having a group of components."
Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms. It is quite similar to HP Quick Test Pro (QTP) only that Selenium focuses on automating web-based applications. It is 100% JavaScript and HTML Web Testing Tool which supports for cross-Browser testing (On Multiple browsers) and multiple operating systems.
Selenium is not just a single tool but a suite of software, each catering to different testing needs of an organization. It has five components.

 

Selenium Components :-

  • Selenium IDE (Integrated Development Environment) - Record and Playback
  • Selenium Core - Runs the test suits on the web server where the web application is deployed
  • Selenium RC - 1.0 - Server / Client (Selenium. Start/Selenium. Stop)
  • Selenium 2.0 / WebDriver / Advanced Selenium
  • Selenium Grid - Performance Tool
Selenium Components