SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1920
Intelligent Testing Tool: Selenium Web Driver
Renu Patil1, Rohini Temkar2
1 Student, Dept. of MCA, VES's Institute of Technology, Maharashtra, India
2Assistant Professor, Dept. of MCA, VES's Institute of Technology, Maharashtra, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - Testing in Software developmentprocessisthe
most costly and tedious process for QA Testers. As the need
of Web applications are growing testing has to grow
tremendously to test GUI of these web application hence the
automation becomes challenging because of its dynamically
changing nature. Numerous automation testing has been
done since decade yet they result into halfway automated or
need more tester inclusion. Hence tool for testing needs to
be invented which has the ability to enhance the testing
performance and its competences as well. In this paper we
will discuss the new automation testing tool Selenium web
driver. Selenium web driver is open source software
available for different windows and different web browser.
Key Words: Automation Testing, Manual Testing,
Selenium Web Driver
1. INTRODUCTION
Software testing is a procedure of executing a program or
application with the purpose of finding the productbugs.It’s
the process of validating and verifying all the components of
a system and also checking it satisfies specified
requirements and achieving the expected quality [1].
Manual testing is the process of manually testing software
for finding bugs this testing is performed without using any
testing tool it requires a tester to play the role of an end user
and verifies all the correct behaviorofsoftwarecomponents.
But this testing is not effective for large projects as it
requires more resources and time [1].
Automated testing is a process in which tool is used to
execute the pre-defined scripts and finding the defects.
Automation testing improves the accuracy, saves the tester
time and resources. It is suitable for large projects and best
in the repeatedly changingenvironmentwherehugeamount
of regression testing is required to be performed it also
increases the effectiveness and efficiency of softwaretesting
[1].
In this paper we have discussed one of the intelligent
automated testing tool Selenium Web Driver is the object
oriented API and newest addition to the selenium toolkit
This tool provides all kind of phenomenal features and
helped to overcome all the limitations of the old
implementation.
Two common methodologies for test automation:
Code-Driven testing.
The interfaces to classes, modules or libraries are tested
with multiple and variety of input argumentstovalidatethat
the results that are returned are precise [2].
Graphical User Interface testing (GUI).
A testing system that creates UI events, for example,
keystrokes and mouse clicks and sees the varieties that
outcome in the UI, to approve that the recognizable conduct
of the program is exact [2].
1.1 Test Automation
Test automation is the use of special software which
automates the repetitive and necessarytask andcontrolsthe
execution of tests comparingactual resultswiththeexpected
results or perform additional testing that would be difficult
to do manually. Many test automation tools give record and
playback features enabling clients to intelligently record
activities and replay them back to many times advantage of
this tool is that it needs no coding or improvement of the
software. However this methodology has several
disadvantages as tests need to be re-recorded evenforsmall
changes in the applicationlikemoving thecontrolsrenaming
the controls. Record and playback also frequently adds
indecorous activities or erroneously records some activities
[2].
There are many advantages of test automation with respect
to execution time, speed of test execution, repeatability of
the tests, less human intervention. There are a number of
feasible and open source tools available for test automation
and selenium is one of the most widely used open source
tool [2].
Test automation has many advantages some of these are:
• Repeated regression testing
• Quick feedback to the developers
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1921
• Indefinite repetitions of test case execution
• Support for the development methodologies
• Agile and extreme development
• Orderly documentation of test cases
• Customized reporting of the defects
• Finding defects missed during manual testing
1.2 Selenium
Selenium is an open source automation testing tool which is
used to test the web application across different platforms.
Selenium uses test scripts to execute the test cases within
the browser. It uses iframes and Java Scripts to embed the
test automation engine into the browser. This helps to run
and test same test scripts on multiple browsers on multiple
platforms. Selenium is basically used for functional
regression testing [2]. Selenium is a suit of components each
has its own testing purpose and these components are:
Selenium IDE, Selenium Remote Control, Selenium Web
Driver, and Selenium Grid [5].
Selenium components:
Selenium Integrated Development Environment (IDE)
Selenium Remote Control
Web Driver
Selenium Grid
Selenium Integrated Development Environment (IDE)
Selenium Integrated Development Environment is a Firefox
plugin that allow testers to record their actions. Selenium
IDE has a recording feature, which records user actions and
then exports them as a reusable scripts in one of the
supported programming languages that can be later
executed. As it only supports Firefox browser hence all the
user actions are recorded using a Graphical User Interface
with Firefox browser. These recorded actions thenexported
to various programming languages supported by selenium
and then executed on many browsers [5].
Selenium Remote Control
Selenium RC is the first automated web testing tool that
allow users to write web application UI test in multiple
programming languages. In selenium RC selenium opens
multiple browsers at the same time and then runs the saved
test-cases concurrently. Selenium RC not limitedtoselective
browsers it supports many new browsers hence user can
run many test-cases with own preferred language this helps
in enhancing the performance of test-cases covering all the
test scenarios and checks. Selenium RC Use many
programming languages like Java, C#, PHP, Python, Perl,
Ruby to create complex tests [5].
Selenium Web Driver
Selenium Web Driver is an automation framework tool that
supports multiple browsers and Ajax applications and
implements a more modern and stable approach in
automating the browser’s actions. Selenium web driver is
also known as selenium 2.0. It controls the browser by
directly communicating with it thereby controlling it from
the OS level. Selenium web driver supports multiple
Programming languagesto writethetestscriptssuchasJava,
C#, PHP, Python, Perl, Java [3]. Web Driver has a good
control on dynamic web pages where the elements of a web
pages change without the page itself being reloaded [5].
Selenium Grid
Selenium Grid is a tool used to run parallel tests across
multiple machines on different browsers simultaneously
which results in saved execution time. Selenium Grid uses
hub and nodes concept where hub acts as a central point of
selenium commands to each node connected to it. Selenium
Grid has only one hub and nodes are instances that are
attached to the hub which executes the tests [5].
2. SELENIUM WEB DRIVER: TESTING TOOL
Web Driver drives the web browser, controls the browser
action and uses the browser’s own engine to control it. Web
driver works with web elements of a web page. Initially it
locates the web elements on the web page and then
performs some action on it. It communicates with all page
elements in a more realistic way [3].
Locators in Web Driver
In Web Driver automation everything is identified with web
components as it is a web application automation tool. Web
Components are DOM Objects exhibit on the Web Page. To
perform operations on a Web Element we have to find the
Elements precisely [3].
As in the above articulation we need to determine some
locator to distinguish web component. "By" is the class, in
the class we have distinctive static techniques to recognize
components as beneath
1. id
2. name
3. className
4. tagName
5. cssSelector
6. xpath
7. linkText
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1922
8. partialLinkText
 By.id – Use “id” attribute to locate the
element.
 By.name - Use “name” attribute to locate
the element.
 By.className - Use “class” attribute to
locate the element.
 By.tagName - locates elementsbytheirtag
name
 By.cssSelector - finds elements based on
the driver’s underlyingCSSSelectorengine.
 By.xpath - locates elements via xpath.
 By.linkText - finds a link element by the
exact text it displays.
 By.partialLinkText -locateselementsthat
contain the given link text.
Synchronization in Web Driver
Web Driver has two types of waits –
• Implicit Wait – Is utilized to set the default holding up time
all through the program. This hold up is less complex to
code.
• Explicit Wait – Is utilized to set the waiting time for a
specific instance only.
Windows Handling in Web Driver
There are Two kinds of windows which we can handle using
Web Driver –
1) HTML Windows
2) Pop-Ups/Alerts
HTML Windows
Many Web Applications has different windows. Web Driver
manages moving between named windows using the
“switchto()” method.
Alerts
Alerts can be handled using four methods –
 accept () – this method is used to accept and close
the alert box.
 dismiss() – this method is used to reject and close
the alert box.
 gettext()– this method is used to retrieve the
message of the alert box.
 sendKeys() To write some text to the alert
Programming using Web Driver
Web Driver handles Keyboard operations and Mouse Event
operations. It contains the Actions classes that are required
when executing these events [6].
Below are the most commonly used keyboard and mouse
events provided by the Actions Class
Method Description
clickAndHold() It performs Click operation
without discharging at the
present mouse region
contextClick() Performs a context-click at
the current mouse area.
doubleClick() Performs a double click at
the current mouse area.
dragAndDrop(source,
target)
It Performs click and hold
operation at the region of
the source control, at that
point moves to the region
of the target control, at that
point discharges the mouse
dragAndDropBy(source,
x-offset, y-offset)
Performs click-and-hold at
the area of the source
element, moves to a given
offset, and then releases
the mouse.
keyUp(modifier _key) Does a key release.
moveByOffset(x-offset, y-
offset)
It performs Moving
operation on mouse from
its present position to the
provided offset.
release() Releases the pressed left
mouse button at the
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1923
present mouse location
sendKeys(onElement,
charsequence)
Sends a sequence of
keystrokes onto the
element.
Limitations
However, despite all advantages of selenium web driver, it
has some limitations. Selenium web driver has no built in
report generation functionality. Selenium web driver hasno
built in screenshot generation functionality. It is dependent
on the third party tool for report and screenshot generation
[4].
3. FUTURE WORK
There is scope of running scripts at the background without
disturbing the foreground processes so testercanwork with
different task along with running the test scripts at the
background. It will help in reducing the execution time by
executing the test cases concurrently in multiple browsers
on multiple machines at the background what we needto do
is to implement the code that will support the Multithread
concept and minimizing the browser and run at the
background. The future Implementation picture looks like
figure 1
Fig -1: Execution Time
4. CONCLUSION
Selenium Web Driver is a tool forin-WebApplicationtesting,
begun by just contemplation and now it is being utilized
effectively by both the engineers and clients. The most
essential highlight of this tool is that it additionally
encourages the testing of web applications alongside
enhancing testing speed and reducing execution time for
repetitive test cases. Selenium Web Driver is positively an
advantage for any individual who is hoping to include an
effective web testing tool to their toolbox.
5. REFERENCES
[1] Neha Bhateja, “A Study on Various SoftwareAutomation
Testing Tools “, ijarcsse Volume 5, Issue 6, June 2015.
[2] Himanshi, Nitin Umesh , Amar Saraswat ,” Automation
Testing: An Introduction to Selenium “, International
Journal of ComputerApplications(0975 – 8887)Volume
119 – No.3, June 2015.
[3] Purnima Bindal, Sonika Gupta, “Test Automation
Selenium WebDriver using TestNG”,
JECAS Volume 3, No.9, September 2014.
[4] Satish Gojare,Rahul Joshi,Dhanashree Gaigaware,”
Analysis and Design ofSeleniumWebDriverAutomation
Testing Framework “, 2nd International Symposium on
Big Data and Cloud Computing (ISBCC’15)
[5] Jagannatha ,Niranjanamurthy, Manushree ,Chaitra,”
Comparative Study on Automation Testing using
Selenium Testing Framework and QTP “, IJCSMC, Vol. 3,
Issue. 10, October 2014, pg.258 – 267
[6] http://www.guru99.com/selenium-tutorial.html

More Related Content

What's hot (20)

PDF
Test Automation Frameworks Using Selenium | Edureka
Edureka!
 
PPTX
Real world selenium resume which gets more job interviews
ABSoft Trainings
 
PDF
Selenium and JMeter Testing
ArchanaKalapgar
 
PDF
Selenium and JMeter
ArchanaKalapgar
 
PDF
Open Source Software Testing Tools
Varuna Harshana
 
PPTX
Selenium Test Automation
BabuDevanandam
 
PDF
Application Testing Suite
oracleonthebrain
 
PPTX
Selenium
abiramimaya
 
PDF
Selenium - Introduction
Amr E. Mohamed
 
DOCX
Ajit jadhav automation_qa_4_ yrs
Ajit Jadhav
 
PPTX
Selenium RC, Selenium WebDriver and HP LoadRunner
Murageppa-QA
 
PDF
Selenium Automation Testing Interview Questions And Answers
Ajit Jadhav
 
DOC
Ashish Baraiya
Ashish Baraiya
 
PPTX
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
Anna Russo
 
PPT
Testing soa, web services and application development framework applications
InSync Conference
 
PPT
Hybrid framework
Sudhakar Mangi
 
PPT
Test Automation Framework Development Introduction
Ganuka Yashantha
 
PPS
Final Automation Testing
priya_trivedi
 
DOC
William Truong_updated
Bill Truong
 
DOC
Hybrid framework for test automation
srivinayak
 
Test Automation Frameworks Using Selenium | Edureka
Edureka!
 
Real world selenium resume which gets more job interviews
ABSoft Trainings
 
Selenium and JMeter Testing
ArchanaKalapgar
 
Selenium and JMeter
ArchanaKalapgar
 
Open Source Software Testing Tools
Varuna Harshana
 
Selenium Test Automation
BabuDevanandam
 
Application Testing Suite
oracleonthebrain
 
Selenium
abiramimaya
 
Selenium - Introduction
Amr E. Mohamed
 
Ajit jadhav automation_qa_4_ yrs
Ajit Jadhav
 
Selenium RC, Selenium WebDriver and HP LoadRunner
Murageppa-QA
 
Selenium Automation Testing Interview Questions And Answers
Ajit Jadhav
 
Ashish Baraiya
Ashish Baraiya
 
STARWEST 2011 - 7 Steps To Improving Software Quality using Microsoft Test Ma...
Anna Russo
 
Testing soa, web services and application development framework applications
InSync Conference
 
Hybrid framework
Sudhakar Mangi
 
Test Automation Framework Development Introduction
Ganuka Yashantha
 
Final Automation Testing
priya_trivedi
 
William Truong_updated
Bill Truong
 
Hybrid framework for test automation
srivinayak
 

Similar to Intelligent Testing Tool: Selenium Web Driver (20)

PPTX
A Simple Guide to Selenium Software Testing
Calidad Infotech
 
PDF
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
PDF
Selenium Automation Testing - A Complete Guide.pdf
kalichargn70th171
 
PDF
Selenium Automation Testing - A Complete Guide.pdf
flufftailshop
 
PPT
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
PDF
Selenium -Test automation for web applications
AnisGhelissi
 
PPTX
Test Automation Using Selenium
Nikhil Kapoor
 
PPTX
Test automation using selenium
Cynoteck Technology Solutions Private Limited
 
PDF
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
kalichargn70th171
 
PPTX
What is Selenium Introduction to Selenium Testing.pptx
Syntax Technologies
 
DOCX
What is selenium
Pesara Swamy
 
PPTX
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
hemasubbu08
 
PPTX
Selenium
Jahan Murugassan
 
PPTX
Selenium
Satyam Pandey
 
PPTX
Selenium.pptx
orbitprojects
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
PPT
Selenium Concepts
Swati Bansal
 
PDF
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
PPTX
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
PPTX
Selenium- A Software Testing Tool
Zeba Tahseen
 
A Simple Guide to Selenium Software Testing
Calidad Infotech
 
Selenium Automation Testing - A Complete Guide
Abhay Kumar
 
Selenium Automation Testing - A Complete Guide.pdf
kalichargn70th171
 
Selenium Automation Testing - A Complete Guide.pdf
flufftailshop
 
QSpiders - Automation using Selenium
Qspiders - Software Testing Training Institute
 
Selenium -Test automation for web applications
AnisGhelissi
 
Test Automation Using Selenium
Nikhil Kapoor
 
Test automation using selenium
Cynoteck Technology Solutions Private Limited
 
Pros and Cons of Selenium In Automation Testing_ A Comprehensive Assessment.pdf
kalichargn70th171
 
What is Selenium Introduction to Selenium Testing.pptx
Syntax Technologies
 
What is selenium
Pesara Swamy
 
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
hemasubbu08
 
Selenium
Satyam Pandey
 
Selenium.pptx
orbitprojects
 
Test Automation and Selenium
Karapet Sarkisyan
 
Selenium Concepts
Swati Bansal
 
Selenium Testing The Complete Step-by-Step Tutorial.pdf
Steve Wortham
 
test-automation-selenium-160216124839.pptx
SyedZaeem9
 
Selenium- A Software Testing Tool
Zeba Tahseen
 
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
PDF
Kiona – A Smart Society Automation Project
IRJET Journal
 
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
PDF
Breast Cancer Detection using Computer Vision
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
PDF
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
PDF
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
IRJET Journal
 
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
IRJET Journal
 
Kiona – A Smart Society Automation Project
IRJET Journal
 
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
IRJET Journal
 
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
IRJET Journal
 
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
IRJET Journal
 
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
IRJET Journal
 
BRAIN TUMOUR DETECTION AND CLASSIFICATION
IRJET Journal
 
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
IRJET Journal
 
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
IRJET Journal
 
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
IRJET Journal
 
Breast Cancer Detection using Computer Vision
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
IRJET Journal
 
Auto-Charging E-Vehicle with its battery Management.
IRJET Journal
 
Analysis of high energy charge particle in the Heliosphere
IRJET Journal
 
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
IRJET Journal
 
Ad

Recently uploaded (20)

PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PDF
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
PDF
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PPTX
Distribution reservoir and service storage pptx
dhanashree78
 
PPT
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PPTX
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
PPTX
仿制LethbridgeOffer加拿大莱斯桥大学毕业证范本,Lethbridge成绩单
Taqyea
 
PPTX
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
PDF
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
PDF
Bachelor of information technology syll
SudarsanAssistantPro
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PPTX
darshai cross section and river section analysis
muk7971
 
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
PPTX
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
原版一样(EC Lille毕业证书)法国里尔中央理工学院毕业证补办
Taqyea
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
Distribution reservoir and service storage pptx
dhanashree78
 
Footbinding.pptmnmkjkjkknmnnjkkkkkkkkkkkkkk
mamadoundiaye42742
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
2025 CGI Congres - Surviving agile v05.pptx
Derk-Jan de Grood
 
仿制LethbridgeOffer加拿大莱斯桥大学毕业证范本,Lethbridge成绩单
Taqyea
 
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
Electrical Machines and Their Protection.pdf
Nabajyoti Banik
 
Bachelor of information technology syll
SudarsanAssistantPro
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
darshai cross section and river section analysis
muk7971
 
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
澳洲电子毕业证澳大利亚圣母大学水印成绩单UNDA学生证网上可查学历
Taqyea
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
原版一样(EC Lille毕业证书)法国里尔中央理工学院毕业证补办
Taqyea
 

Intelligent Testing Tool: Selenium Web Driver

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1920 Intelligent Testing Tool: Selenium Web Driver Renu Patil1, Rohini Temkar2 1 Student, Dept. of MCA, VES's Institute of Technology, Maharashtra, India 2Assistant Professor, Dept. of MCA, VES's Institute of Technology, Maharashtra, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - Testing in Software developmentprocessisthe most costly and tedious process for QA Testers. As the need of Web applications are growing testing has to grow tremendously to test GUI of these web application hence the automation becomes challenging because of its dynamically changing nature. Numerous automation testing has been done since decade yet they result into halfway automated or need more tester inclusion. Hence tool for testing needs to be invented which has the ability to enhance the testing performance and its competences as well. In this paper we will discuss the new automation testing tool Selenium web driver. Selenium web driver is open source software available for different windows and different web browser. Key Words: Automation Testing, Manual Testing, Selenium Web Driver 1. INTRODUCTION Software testing is a procedure of executing a program or application with the purpose of finding the productbugs.It’s the process of validating and verifying all the components of a system and also checking it satisfies specified requirements and achieving the expected quality [1]. Manual testing is the process of manually testing software for finding bugs this testing is performed without using any testing tool it requires a tester to play the role of an end user and verifies all the correct behaviorofsoftwarecomponents. But this testing is not effective for large projects as it requires more resources and time [1]. Automated testing is a process in which tool is used to execute the pre-defined scripts and finding the defects. Automation testing improves the accuracy, saves the tester time and resources. It is suitable for large projects and best in the repeatedly changingenvironmentwherehugeamount of regression testing is required to be performed it also increases the effectiveness and efficiency of softwaretesting [1]. In this paper we have discussed one of the intelligent automated testing tool Selenium Web Driver is the object oriented API and newest addition to the selenium toolkit This tool provides all kind of phenomenal features and helped to overcome all the limitations of the old implementation. Two common methodologies for test automation: Code-Driven testing. The interfaces to classes, modules or libraries are tested with multiple and variety of input argumentstovalidatethat the results that are returned are precise [2]. Graphical User Interface testing (GUI). A testing system that creates UI events, for example, keystrokes and mouse clicks and sees the varieties that outcome in the UI, to approve that the recognizable conduct of the program is exact [2]. 1.1 Test Automation Test automation is the use of special software which automates the repetitive and necessarytask andcontrolsthe execution of tests comparingactual resultswiththeexpected results or perform additional testing that would be difficult to do manually. Many test automation tools give record and playback features enabling clients to intelligently record activities and replay them back to many times advantage of this tool is that it needs no coding or improvement of the software. However this methodology has several disadvantages as tests need to be re-recorded evenforsmall changes in the applicationlikemoving thecontrolsrenaming the controls. Record and playback also frequently adds indecorous activities or erroneously records some activities [2]. There are many advantages of test automation with respect to execution time, speed of test execution, repeatability of the tests, less human intervention. There are a number of feasible and open source tools available for test automation and selenium is one of the most widely used open source tool [2]. Test automation has many advantages some of these are: • Repeated regression testing • Quick feedback to the developers
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1921 • Indefinite repetitions of test case execution • Support for the development methodologies • Agile and extreme development • Orderly documentation of test cases • Customized reporting of the defects • Finding defects missed during manual testing 1.2 Selenium Selenium is an open source automation testing tool which is used to test the web application across different platforms. Selenium uses test scripts to execute the test cases within the browser. It uses iframes and Java Scripts to embed the test automation engine into the browser. This helps to run and test same test scripts on multiple browsers on multiple platforms. Selenium is basically used for functional regression testing [2]. Selenium is a suit of components each has its own testing purpose and these components are: Selenium IDE, Selenium Remote Control, Selenium Web Driver, and Selenium Grid [5]. Selenium components: Selenium Integrated Development Environment (IDE) Selenium Remote Control Web Driver Selenium Grid Selenium Integrated Development Environment (IDE) Selenium Integrated Development Environment is a Firefox plugin that allow testers to record their actions. Selenium IDE has a recording feature, which records user actions and then exports them as a reusable scripts in one of the supported programming languages that can be later executed. As it only supports Firefox browser hence all the user actions are recorded using a Graphical User Interface with Firefox browser. These recorded actions thenexported to various programming languages supported by selenium and then executed on many browsers [5]. Selenium Remote Control Selenium RC is the first automated web testing tool that allow users to write web application UI test in multiple programming languages. In selenium RC selenium opens multiple browsers at the same time and then runs the saved test-cases concurrently. Selenium RC not limitedtoselective browsers it supports many new browsers hence user can run many test-cases with own preferred language this helps in enhancing the performance of test-cases covering all the test scenarios and checks. Selenium RC Use many programming languages like Java, C#, PHP, Python, Perl, Ruby to create complex tests [5]. Selenium Web Driver Selenium Web Driver is an automation framework tool that supports multiple browsers and Ajax applications and implements a more modern and stable approach in automating the browser’s actions. Selenium web driver is also known as selenium 2.0. It controls the browser by directly communicating with it thereby controlling it from the OS level. Selenium web driver supports multiple Programming languagesto writethetestscriptssuchasJava, C#, PHP, Python, Perl, Java [3]. Web Driver has a good control on dynamic web pages where the elements of a web pages change without the page itself being reloaded [5]. Selenium Grid Selenium Grid is a tool used to run parallel tests across multiple machines on different browsers simultaneously which results in saved execution time. Selenium Grid uses hub and nodes concept where hub acts as a central point of selenium commands to each node connected to it. Selenium Grid has only one hub and nodes are instances that are attached to the hub which executes the tests [5]. 2. SELENIUM WEB DRIVER: TESTING TOOL Web Driver drives the web browser, controls the browser action and uses the browser’s own engine to control it. Web driver works with web elements of a web page. Initially it locates the web elements on the web page and then performs some action on it. It communicates with all page elements in a more realistic way [3]. Locators in Web Driver In Web Driver automation everything is identified with web components as it is a web application automation tool. Web Components are DOM Objects exhibit on the Web Page. To perform operations on a Web Element we have to find the Elements precisely [3]. As in the above articulation we need to determine some locator to distinguish web component. "By" is the class, in the class we have distinctive static techniques to recognize components as beneath 1. id 2. name 3. className 4. tagName 5. cssSelector 6. xpath 7. linkText
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1922 8. partialLinkText  By.id – Use “id” attribute to locate the element.  By.name - Use “name” attribute to locate the element.  By.className - Use “class” attribute to locate the element.  By.tagName - locates elementsbytheirtag name  By.cssSelector - finds elements based on the driver’s underlyingCSSSelectorengine.  By.xpath - locates elements via xpath.  By.linkText - finds a link element by the exact text it displays.  By.partialLinkText -locateselementsthat contain the given link text. Synchronization in Web Driver Web Driver has two types of waits – • Implicit Wait – Is utilized to set the default holding up time all through the program. This hold up is less complex to code. • Explicit Wait – Is utilized to set the waiting time for a specific instance only. Windows Handling in Web Driver There are Two kinds of windows which we can handle using Web Driver – 1) HTML Windows 2) Pop-Ups/Alerts HTML Windows Many Web Applications has different windows. Web Driver manages moving between named windows using the “switchto()” method. Alerts Alerts can be handled using four methods –  accept () – this method is used to accept and close the alert box.  dismiss() – this method is used to reject and close the alert box.  gettext()– this method is used to retrieve the message of the alert box.  sendKeys() To write some text to the alert Programming using Web Driver Web Driver handles Keyboard operations and Mouse Event operations. It contains the Actions classes that are required when executing these events [6]. Below are the most commonly used keyboard and mouse events provided by the Actions Class Method Description clickAndHold() It performs Click operation without discharging at the present mouse region contextClick() Performs a context-click at the current mouse area. doubleClick() Performs a double click at the current mouse area. dragAndDrop(source, target) It Performs click and hold operation at the region of the source control, at that point moves to the region of the target control, at that point discharges the mouse dragAndDropBy(source, x-offset, y-offset) Performs click-and-hold at the area of the source element, moves to a given offset, and then releases the mouse. keyUp(modifier _key) Does a key release. moveByOffset(x-offset, y- offset) It performs Moving operation on mouse from its present position to the provided offset. release() Releases the pressed left mouse button at the
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 06 | June -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 1923 present mouse location sendKeys(onElement, charsequence) Sends a sequence of keystrokes onto the element. Limitations However, despite all advantages of selenium web driver, it has some limitations. Selenium web driver has no built in report generation functionality. Selenium web driver hasno built in screenshot generation functionality. It is dependent on the third party tool for report and screenshot generation [4]. 3. FUTURE WORK There is scope of running scripts at the background without disturbing the foreground processes so testercanwork with different task along with running the test scripts at the background. It will help in reducing the execution time by executing the test cases concurrently in multiple browsers on multiple machines at the background what we needto do is to implement the code that will support the Multithread concept and minimizing the browser and run at the background. The future Implementation picture looks like figure 1 Fig -1: Execution Time 4. CONCLUSION Selenium Web Driver is a tool forin-WebApplicationtesting, begun by just contemplation and now it is being utilized effectively by both the engineers and clients. The most essential highlight of this tool is that it additionally encourages the testing of web applications alongside enhancing testing speed and reducing execution time for repetitive test cases. Selenium Web Driver is positively an advantage for any individual who is hoping to include an effective web testing tool to their toolbox. 5. REFERENCES [1] Neha Bhateja, “A Study on Various SoftwareAutomation Testing Tools “, ijarcsse Volume 5, Issue 6, June 2015. [2] Himanshi, Nitin Umesh , Amar Saraswat ,” Automation Testing: An Introduction to Selenium “, International Journal of ComputerApplications(0975 – 8887)Volume 119 – No.3, June 2015. [3] Purnima Bindal, Sonika Gupta, “Test Automation Selenium WebDriver using TestNG”, JECAS Volume 3, No.9, September 2014. [4] Satish Gojare,Rahul Joshi,Dhanashree Gaigaware,” Analysis and Design ofSeleniumWebDriverAutomation Testing Framework “, 2nd International Symposium on Big Data and Cloud Computing (ISBCC’15) [5] Jagannatha ,Niranjanamurthy, Manushree ,Chaitra,” Comparative Study on Automation Testing using Selenium Testing Framework and QTP “, IJCSMC, Vol. 3, Issue. 10, October 2014, pg.258 – 267 [6] http://www.guru99.com/selenium-tutorial.html