Beruflich Dokumente
Kultur Dokumente
Available at http://www.ijcsonline.com/
Abstract
Software testing helps in finalizing the software application or product against business and user requirements. Testers
play an important role in producing the high quality software product.It is the process of validating and verifying the
software program. Testing automation tools helps us to automate the entire process of testing in software
development.There are variety of software testing automation tools available.From which QTP supports the largest
range of technology in the industry whereas selenium is one of the few free tool on the market that appears to have
functionality that one would expect in a vendor tool. The objective of this paper is to conduct a comparative study of
automated tools which are Selenium free source and Quick test professional (QTP).
Keywords: Selenium web driver, QTP, Object repository.
I.
INTRODUCTION
A.QTP:
In this paper we have to handle the dynamic objects in
QTP using the following methods
(i) GetRo:
To capture the value of a dynamic object in a web
application GetRo method is executed. In order to capture
the value of an object and that too of a dynamic object
then we will use this property which means Get Run time
object property. A sample code for gmail to count unread
emails from any account is given below.The prerequisite is
that you have to login to your gmail account and then run
this script
Inboxcount=Browser(title:Gmail.*).Page(title:
Gmail.*).Link(innertext:Inbox.*).getRoproperty(innert
ext)
If inboxcount =Inbox Then
Print No Unread Emails
Exit action
Else
//replaces inbox with space
emailcount = replace(inboxcount,Inbox,)
//removes all the spaces
emailcount= trim(emailcount)
emailcount=replace(emailcount, ),)
117 | International Journal of Computer Systems, ISSN-(2394-1065), Vol. 03, Issue 02, February, 2016
R. Bhavithra et al
Comparative Study of Automated Testing Tools: Selenium and Quick Test Professional
emailcount=replace(emailcount, ),)
Print you have &emailcount& unread emails in your
inbox
End If.
and all the steps are written one after the other in a linear
fashion.
Following diagram illustrates the components and the
typical workflow of the Linear Framework in QTP.
B.SELENIUM:
(i).Absolute Xpath:
Xpath position or absolute Xpath are most frequently
used to resolve the dynamic element issues. Only problem
with using Xpath locators is that they are very fragile.
They are most prone to breakage in case of change in web
page. This factor could get worse exponentially as the test
suite size and completely increases. An example is:
web_element_name=html/body/div[30]/div[2]/div[2]
(ii).Identify element by starting text:
If the dynamic elements have a definite pattern to
them, then we can also use javascript functions like starts
with or contains in one element locators to separate the
dynamic part of locator from static part. So we can starts
with function here.
Xpath://button[starts-with(@id, Submit-)]
(iii).Identify element by containing text:
Here we can use contains function where dynamic
element is surrounded by a static value.
<input class=new-user field-001>
<input class=old-user field-002>
Xpath://input[contains(@class,suggest)]
A. QTP
(i).Components of QTP in linear framework:
Here each test case has its own local object
repository and the data is hard-coded in the script. Linear
Framework is the framework where you write the scripts
in a step by step manner as depicted in the test case flow.
In this type of framework, we dont create any functions
118 | International Journal of Computer Systems, ISSN-(2394-1065), Vol. 03, Issue 02, February, 2016
R. Bhavithra et al
Comparative Study of Automated Testing Tools: Selenium and Quick Test Professional
COMPARATIVE STUDY
SELENIUM
QTP
Open source
Paid tool
Works on all OS
Works on windows.
Tests
only
applications.
Works on
browsers.
Figure 3:Components
framework in QTP.
and
workflow
of
modular
B.SELENIUM:
almost
all
No object repository.
Has
got
repository.
V.
web
an
object
CONCLUSION
[5]
[6]
Principle
and
components
of
Selenium.
http://en.wikipedia.org/wiki/principles.
QTP V/S Selenium, qtp-sel.blogspot.in/?m=1.
Seleniumwebdriver
http://www.seleniumhq.org/doc/03_webdriver.jsp
selenium
Introduction
and
its
components
http://tfortesting.wordpress.com/2012/10/25/selenium-introductionand-its-components/
QTP Introduction.www.tutorialspoint.com/qtp/qtp_overview.html.
Harpeet Kaur et al, Comparative study of automated testing tools
QTP Selenium and TC, Int. Journal of Engineering Research and
119 | International Journal of Computer Systems, ISSN-(2394-1065), Vol. 03, Issue 02, February, 2016
R. Bhavithra et al
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]
Comparative Study of Automated Testing Tools: Selenium and Quick Test Professional
Applications.ISSN:2248-9622,Vol.3,Issue 5,Sep-oct2013,pp.17391743
Innovative approaches of automated tools in software testing and
current technology as compared to manual testing Global journal of
enterprise of information system, an 2009-jan 2009.
Sneha Khoria and Pragati Up adhyay,Performance Evaluation and
Comparison of Software Testing Tools VSRD International
Journal of Computer Science Information Technology, Vol. 2 No.
10 & October 2012.
Software Test Automation - http ://en.wikipedia.org/wiki/Test
automation
Mohd. Ehmer Khan, Different Forms of Software
TestingTechniques for Finding Errors,IJCSI International Journal
of Computer Science Issues, Vol. 7, Issue 3, No 1, May 2010.
Jovanovich and Irena, Software Testing Methods and
Techniques, May 26, 2008.
Quick Test Professional entry in Wikipedia: Http:
//en.wikipedia.org. /wiki/HP_ Quick Test_ Professional.
Mercury Quick Test Professional tutorial, version 8.0.Mercury
Interactive Corp oration, Documentation, 2004.
Automationtesting- www.guru99.com/automationtesting. html.
120 | International Journal of Computer Systems, ISSN-(2394-1065), Vol. 03, Issue 02, February, 2016