Skip to main content

What is the difference between Selenium and QTP?

Feature
QTP(UFT)
Selenium
Language Support
VB Script
Java, C#, Ruby, Python, Perl, PHP
Windows (Non-browser)
based Application support
Yes
No
Browser support
Google Chrome (uptill ver 23) Internet Explorer , Firefox ( ver 21)
Google Chrome , Internet Explorer , Firefox , Opera , HtmlUnit, Safari
Environment Support
Only Windows
Windows , Linux , Solaris
OS X , iOS, Android, Others (If brower & JVM or
Javascript support exists)
Mobile (Phones & Tablets)
Support
Different commercial product i.e. HP UFT Mobile (formerly known as MobileCloud for QTP)
Android , iPhone & iPad ,
Blackberry , Headless WebKit

Framework
Easily integrated with HP Quality Center or HP ALM (separate commercial products)
Selenium + Eclipse + Maven / ANT + Jenkins / Hudson & its plugins / Cruise Control + TestNG + SVN
Continuous Integration
Possible through Quality Center / ALM or Jenkins
Possible through Jenkins / Hudson / Cruise Control
Object Recognition
/ Storage
Inbuilt Object Repository (storing Element Id, multiple attributes) along with weightage that gives flexibility on deviation acceptance in control
recognition
UI Maps and different object location strategy such as -XPath Element ID or attribute DOM

Image based Tests
Easily possible
Possible but not easy
Reports
Quality Center has in-built awesome dashboards

ntegration with Jenkins can give good reporting & dashboard capabilities
Software Cost
License & Annual maintenance Fees
Zero
Coding Experience of
Engineer
Not Much
Should be very good along with technical capabilities of integrating different pieces of framework
Script Creation Time
Less
High
Hardware resource (CPU
+ RAM) consumption during
script execution
High
Low
Product Support
Dedicate HP support along with support forums
Since it is an open source, it has no official tech support.
Test Development Environment
Test scripts can be developed in various IDEs like Eclipse, Visual Studio, Netbeans etc.
Test scripts can be developed only in QTP.

Comments

Popular posts from this blog

Operating Systems supported by Selenium Webdriver

Microsoft Windows: Most versions of MS Windows that are currently still supported by Microsoft should work with Selenium. Altough here's the list of OS's we currently run tests against before each release:     Windows XP (to be unsupported on April 8, 2014)     Windows 7     Windows 8     Windows 8.1 If your version of windows is not listed, it does not mean Selenium won't attempt to support it. That only means we don't continually run tests on that particular version of Windows. Apple OS X : We currently do not use any version of OS X in our automated tests against the selenium project. However most developers on the project are using a recent version of OS X and we'll continue to support the current stable release and often the previous release. Linux: We test mainly on Ubuntu, but other variations of Linux should also work where the browser manufacturers support them. iOS : The first lines of the ...

Working with Dropdown in Selenium Webdriver

WebDriver has a class called “ Select ” to interact with dropdown. Dropdown is an another WebElement like textbox, radio button, links etc. We use below methods frequently to interact with Dropdown using Select class. selectByIndex(int index) selectByValue(String value) selectByVisibleText(String text) getOptions() getFirstSelectedOption() Note: Select class can be found in org.openqa.selenium.support.ui  package Sample Dropdown: selectByIndex(int index): This method is used to select dropdown value by using index. This method accept integer as an argument. Index value always start from 0 (Zero). So if we want to select 2 nd value from dropdown we have to give index 1. Syntax: Select s = new Select(dropdown_WebElement); s.selectByIndex(1); Example: package selenium; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; ...