A faster approach for accessing Snap Deal URL using Multi browser with Selenium Web Driver

Similar documents
But before understanding the Selenium WebDriver concept, we need to know about the Selenium first.

Selenium. Duration: 50 hrs. Introduction to Automation. o Automating web application. o Automation challenges. o Automation life cycle

Koenig Solutions Pvt. Ltd. Selenium with C#

webdriver selenium 08FE064A22BF82F5A04B63153DCF68BB Webdriver Selenium 1 / 6

This is one of the common interview questions in any Automation testing job.

SELENIUM - REMOTE CONTROL

ActiveNET Enterprise Solution Company

International Journal of Advance Engineering and Research Development. Proof of concept (Poc) selenium web driver based Automation framework

Automation Script Development using Capybara

CENTRALIZED UI AUTOMATION FOR SAAS APPLICATION

What is the Selendroid?

@AfterMethod

Class 1 Introduction to Selenium, Software Test Life Cycle.

QMS ISO 9001:2015 CERTIFIED COMPANY Software Testing TRAINING.

OSSW ICOSST 2009, Al-Khawarizmi Institute of Computer Science University of Engineering and Technology, Lahore

AN ISO 9001:2008 CERTIFIED COMPANY. Software Testing TRAINING.

13 th Annual International Software Testing Conference in India 2013

Sahi. Cost effective Web Automation

BrowseEmAll Documentation

MultiBrowser Documentation

Learning Objectives of CP-SAT v 1.31 (C#)

SELENIUM. Courses Offered. Ph: / Course Coverage:- Date:..Timings.. Duration Fees. Testing Tools QTP Load Runner Hadoop

Software Testing

Selenium Web Test Tool Training Using Ruby Language

Selenium Training. Training Topics

SeleniumJava Training Solution

MANUAL+ SELENIUM CURRICULUM

Manual Testing. Software Development Life Cycle. Verification. Mobile Testing

Selenium Course Content

WebDriver: Controlling your Web Browser

The age of automation is going to be the age of 'do it yourself. - Marshall McLuhan

Technology. Business Objectives & Challenges. Overview. Technical Solution

Mind Q Systems Private Limited

Selenium WebDriver Interview Questions & Answers

Chrome if I want to. What that should do, is have my specifications run against four different instances of Chrome, in parallel.

Selenium Webdriver Github

Cross-Browser Functional Testing Best Practices

Appium mobile test automation

Automated Web Tests withselenium2

GuideAutomator: Automated User Manual Generation with Markdown

Selenium Testing Training

EXPERT TRAINING PROGRAM [Selenium 2.0 / WebDriver]

SELENIUM. SELENIUM COMPONENTS Selenium IDE Selenium RC Selenium Web Driver Selenium Grid

Introduction to Automation. What is automation testing Advantages of Automation Testing How to learn any automation tool Types of Automation tools

SeU Certified Selenium Engineer (CSE) Syllabus

The Software Delivery Experts. Agile, DevOps & QA Conference

FRESHER TRAINING PROGRAM [MANUAL/QTP/ALM/QC/SE/LR/DB/MOBILE]

Selenium Testing Course Content

Automated Web Application Testing Using Selenium

IJSRD - International Journal for Scientific Research & Development Vol. 3, Issue 02, 2015 ISSN (online):

IBM Website Monitoring Response Time

C# 2013 Express Web WebDriver Automation. Introduction tutorial

SeU Certified Selenium Engineer (CSE) Syllabus

SELENIUM TRAINING COURSE CONTENT

Troubleshooting for Recorded Scripts

STQA Mini Project No. 2

Web testing at Corporama

Rapise Quick Start Guide An Introduction to Testing Web Applications with Rapise

Java Programming Basics

Social Media Testing with Selenium

1. Selenium Integrated Development Environment (IDE) 2. Selenium Remote Control (RC) 3. Web Driver 4. Selenium Grid

Open2Test Test Automation Framework for Selenium Web Driver - Introduction

TERSUBSCRIBE. Making testing more. E s s e n t i a l f o r s o f t w a r e t e s t e r s. It s FREE for testers. April / 5 v2.

Test Automation Integration with Test Management QAComplete

Read & Download (PDF Kindle) Selenium WebDriver Practical Guide

Integration Test Plan

Implemented Test Automation Framework for the World s Largest Learning Company ATTENTION. ALWAYS.

User Manual 3.0. TestingWhiz User Manual 3.0

How Automated Testing Tools Are Showing Its Impact In The Field Of Software Testing

How Manual Testers can execute Test Automation. White Papers. Muthiah Director of Testing. Expedux on How Manual Testers

[paf Wj] open source. Selenium 1.0 Testing Tools. Beginner's Guide. using the Selenium Framework to ensure the quality

Turbo boost your digital app test automation with Jenkins

Selenium Workshop. Removing the Mystery from Open Source Test Automation. Presented By Chris Petrov, PMP Leverage Point Corporation

Test Automation Integration with Test Management QAComplete

End-to-end testing with Selenium + Nightwatch.js

Learning Objectives of CP-SAT v 1.3

Asst. Professor, Dept. of MCA, Siddaganga Institute of Technology, Tumakuru, Karnataka

BY: ATASHI SAMADDAR 1

Selenium IDE. Steve Kwon, Raphael Huang, Amad Hussain, Mubasil Shamim

Measuring Effectiveness of software Quality by Comparing Manual Testing and Selenium

Web Agent Automation Development for Web Access Management

Final Paper. Automation in Agile Testing. Vijay Kumar - Senior Software Engineer - Testing CenturyLink Technologies

Learning Objectives of CP-SAT v 1.31

H elping you choose the right automation testing tool

Lab 5: Web Application Test Automation

Internet programming Lab. Lecturer Mariam A. Salih

Selenium vs UFT: Which is Better for Your Mobile Testing Strategy?

LivePoplet: Technology That Enables Mashup of Existing Applications

Research Scholar, Sree Saraswathi Thyagaraja College, Pollachi, Tamil Nadu, India. Pollachi, Tamil Nadu, India. 1. Introduction

Manipulating Web Application Interfaces a New Approach to Input Validation Testing. AppSec DC Nov 13, The OWASP Foundation

Testing Masters Technologies. Selenium FAQs

Successfully Delivering XPages Projects All Things Considered. Martin Donnelly Pete Janzen

A Heuristic Evaluation of Ohiosci.org

About Us. Services CONSULTING OUTSOURCING TRAINING MENTORING STAFF AUGMENTATION 9/9/2016

Comparative Study of Software Automation Testing Tools: OpenScript and Selenium

Open Source Test Automation: Riding the Second Wave

Understanding Browsers

(Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info

Selenium Automation Testing Interview Questions And Answers

GAUTAM SINGH STUDY MATERIAL SOFTWARE QUALITY Unit 9. Cucumber

Transcription:

A faster approach for accessing Snap Deal URL using Multi browser with Selenium Web Driver 1 Mahan Sunhare, 2 Abhishek Tiwari Student (M-tech), Guide MIT, Ujjain, India ABSTRACT: In current paper, we are presenting a new approach for accessing Snap Deal URL using multiple browser support with the help of Web Driver which is faster than the approach using Selenium RC because of No interaction with the server as it interacts in selenium RC. In Selenium Web Driver, elements of the web page are accessible through XPATH; it makes faster access of the element than RC. Browser compatibility and consistency are the major challenges for the Testers. To overcome this problem created an approach which support the fastest URL access with multiple browsers using Selenium WebDriver which faster than the Selenium Remote Control (RC). Web Driver communicates with the browsers directly while selenium Remote Control communicates through the server that s why our proposed approach is faster than Selenium Remote Control (RC). The experimental results have proven that the execution of the current approach is faster. 1. Introduction Test automation used in: Recurrent regression testing Round trip testing Quick feedback to developers Support for Agile based methodologies. Customized defect reporting. Finding defects skipped by manual testing. Selenium is a collection of tools which enables fast development of automation for web supported applications. It is licensed under Apache License 2.0. The selenium suite package consists of the Selenium Remote Control, WebDriver and Selenium Grid. I. SELENIUM REMOTE CONTROL (RC) Selenium Remote Control is an automation test tool. Selenium RC has two parts. - A server which plays a role as a HTTP proxy for web requests automatically launches and closes browsers. - Client libraries for computer languages. Architecture of Selenium RC's is more complicated than selenium WebDriver. In case of RC, first we require to begin a separate application i.e. Selenium Remote Control Server before perform testing. The Remote Control Server plays a role as an "agent" between Selenium commands given by you and your browser. When you start testing, Selenium RC Server injects a JavaScript program i.e. Core into web-browser. After injection, Core will start getting the instructions given by the Remote Control Server from the test program. After getting the instructions, Selenium Core would execute them as JavaScript commands. The browser would follow the instructions of Core, and would relay its output to the IJSDR1609012 International Journal of Scientific Development and Research (IJSDR) www.ijsdr.org 71

Remote Control Server. The Remote Control Server will get the response of the browser then display the results to your Server will get the next instruction from your test script and repeat the whole cycle. Selenium Remote Control is slower since it uses a JavaScript program i.e. called Selenium Core. Core directly controls the web-browser, not you. Selenium Remote Control s API is more matured but contains some redundancies and also having few confusing commands. As most of the time, testers are in dilemma that whether to use type or type Keys; or whether to use click, mouse Down, or mouse Down at. Worse, different browsers interpret each of these commands in different ways too! II. SELENIUM WEBDRIVER WebDriver is an automation tool for web application testing, and in specific to verify that they work as expected. Goal of WebDriver is to support a friendly API that s easy to understand and explore, easier to use than the Selenium-Remote Control (1.0) API, which will support to make your tests easier to maintain and read. It s not bind to any particular web based application test framework, so it can be used similarly well in a unit testing or from a simple old main method. Selenium WebDriver supports the below mentioned browsers: Chrome, Internet Explorer (IE), Opera, Firefox Html Unit. Android enabled phones ios enabled phones. As a result, Selenium Web Driver is a most useful automated testing tool was developed called Selenium 2.0. Web Driver is a purely object oriented testing framework. In WebDriver, no server required to start. WebDriver's architecture is much simpler than Selenium RC's. 2.Research Methodology: Research work is used to calculate the performance of selenium web driver and also working of the selenium Web driver which is simpler than selenium RC. In present work, we have evaluated performance of web driver using below mentioned code: SnapDealController.java package com.snapdeal; import org.openqa.selenium.by; import org.openqa.selenium.webdriver; import org.openqa.selenium.webelement; import org.openqa.selenium.support.ui.expectedconditions; IJSDR1609012 International Journal of Scientific Development and Research (IJSDR) www.ijsdr.org 72

import org.openqa.selenium.support.ui.webdriverwait; public class SnapDealController { public static void main(string[] args) { SnapDealBrowsersLaunch browserlaunch = new SnapDealBrowsersLaunch(); WebDriver driver = browserlaunch.launhbrowser("ie"); WebElement serachbar = driver.findelement(by.xpath("//*[@id='inputvalenter']")); WebDriverWait wt = new WebDriverWait(driver, 60); wt.until(expectedconditions.visibilityofelementlocated(by.xpath("//*[@id='inputvalenter']"))); serachbar.clear(); serachbar.sendkeys("mobile Phones"); WebElement serachbutton = driver.findelement(by.xpath("//*[@id='sdheader']/div[4]/div[2]/div[3]/button")); serachbutton.click(); WebDriverWait wt1 = new WebDriverWait(driver, 60); wt1.until(expectedconditions.visibilityofelementlocated(by.xpath("//*[@id='686534480658']/div[2]/a/img"))); WebElement selectanymobile = driver.findelement(by.xpath("//*[@id='686534480658']/div[2]/a/img")); selectanymobile.click(); SnapDealBrowsersLaunch.java: package com.snapdeal; import org.openqa.selenium.webdriver; import org.openqa.selenium.chrome.chromedriver; import org.openqa.selenium.firefox.firefoxdriver; import org.openqa.selenium.ie.internetexplorerdriver; public class SnapDealBrowsersLaunch { WebDriver driver = null; String snapdealurl = "http://www.snapdeal.com/"; public WebDriver LaunhBrowser(String browsername) { if (browsername.equalsignorecase("firefox")) { driver = new FirefoxDriver(); else if (browsername.equalsignorecase("chrome")) { System.setProperty("webdriver.chrome.driver", "D:\\workspace\\Selenium_workspace\\MultiBrowser\\chromedriver.exe"); driver = new ChromeDriver(); else if (browsername.equalsignorecase("ie")) { System.setProperty("webdriver.ie.driver", "D:\\workspace\\Selenium_workspace\\MultiBrowser\\IEDriverServer.exe"); driver = new InternetExplorerDriver(); else { System.out.println("Browser '{0' not recognized. default Firefox browser." + browsername); driver.get(snapdealurl); driver.manage().window().maximize(); return driver; IJSDR1609012 International Journal of Scientific Development and Research (IJSDR) www.ijsdr.org 73

As output of the code as mentioned below in the screenshot which renders through the code automatically in a faster manner because of simple API and XPATH. 3.Related Work: In SDLC, the use of test automation is to automate the execution of tests (test cases) and calculate the actual outcomes to expected outcomes. Automation Test tool can also be used to automate some constant tasks but add some extra testing that would be difficult to perform in manual testing [1]. With the era of internet technology, Web based application becomes more complex. The reliability and quality of the product is a matter of concern for the organizations. In Web based application testing, particularly the regression testing is more difficult task for manual testers [2], [3]. Software developers contribute to build "beautiful" pages but don't care about accessibility. Microsoft IE is used by the major companies so that the pages are viewed IJSDR1609012 International Journal of Scientific Development and Research (IJSDR) www.ijsdr.org 74

only by this browser(ie), ignoring that in other browsers their pages look poorly, or (in some cases) some features are not visible [4]. Research is required to help focusing on Browser compatibility issue for consistent look and feel across the browsers. Therefore, it becomes important to carry out research by providing tools and mechanisms that would help towards Browser based testing in a faster way using Selenium Web Driver as compared to Selenium RC. Current paper intends to give a contribution in this direction by proposing browser based testing tool like Selenium Web Driver. 4. Conclusion: In current paper, we are presenting a fast approach using web driver to access a snap deal URL using XPATH which faster than selenium RC because no extra layer or server is required to run a web testing. In current paper, we proposed an approach for accessing the Snap Deal URL using multiple browser support with XPATH which is faster than selenium RC because of direct communication with the browser instead of server interaction to communicate with the browsers. Current approach is simple and easy to use for an Automation Tester to validate web specific scenarios. REFERENCES [1] A. Kolawa, D. Huizinga. (2007). Automated Defect Prevention: Best Practice in Software Management. IEEE Computer Society Press. ISBN 0-470-04212-5. [2] F. Cannizzo, G. Marcionetti, P. Moser, Evolution of the Tools and Practices of a Large Distributed Agile Team, in Proceedings of the Agile 2008 Conference, IEEE Computer Society, 2008, pp. 513-518 [3] F. Coda, C. Ghezzi, G. Vigna et al. A Software Engineering concept towards Web Based Development. The 9 th International workshop on Software Design and Specification, Ise-Shirna Japan:IEEE Computer Society Press, April 16-18, 1998, pp. 8-17. [4] J. T. Yang, J. L. Huang, F. J. Wang, and W. C. Chu, An Object-Oriented Framework Supporting Web Based Testing. IEEE twenty third Annual International Computer S/W and Application Conference, USA: IEEE Computer Society Press, October 2000, pp. 122-127. [5] M Kirchner, A standard approach for Web Based Testing for the Pages Accessibility. The 5 th IEEE International Workshop on Web Site Evolution (WSE 03), 2003. IJSDR1609012 International Journal of Scientific Development and Research (IJSDR) www.ijsdr.org 75